<?xml version="1.0"?>
<Entity>
	<Name>CostAllocation</Name>
	<Type>Single</Type>
	<Table>
		<Name>CostAllocation</Name>
		<Column>
			<Name>CostAllocationCode</Name>
			<DataType>System.String</DataType>
			<IsKey>true</IsKey>
			<IsAllowNull>false</IsAllowNull>
			<ColumnSize>50</ColumnSize>
		</Column>
		<Column>
			<Name>Status</Name>
			<DataType>System.Int32</DataType>
			<IsKey>false</IsKey>
			<IsAllowNull>false</IsAllowNull>
			<ColumnSize>4</ColumnSize>
		</Column>
		<Column>
			<Name>Remark</Name>
			<DataType>System.String</DataType>
			<IsKey>false</IsKey>
			<IsAllowNull>true</IsAllowNull>
			<ColumnSize>500</ColumnSize>
		</Column>
		<Column>
			<Name>InputPerson</Name>
			<DataType>System.String</DataType>
			<IsKey>false</IsKey>
			<IsAllowNull>true</IsAllowNull>
			<ColumnSize>50</ColumnSize>
		</Column>
		<Column>
			<Name>InputDate</Name>
			<DataType>System.DateTime</DataType>
			<IsKey>false</IsKey>
			<IsAllowNull>true</IsAllowNull>
			<ColumnSize>8</ColumnSize>
		</Column>
		<Sql>
			<Name>Select</Name>
			<String>select * from CostAllocation where  CostAllocationCode=@CostAllocationCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@CostAllocationCode</Name>
				<Column>CostAllocationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>SelectAll</Name>
			<String>select * from CostAllocation</String>
			<CommandType>Text</CommandType>
		</Sql>
		<Sql>
			<Name>Insert</Name>
			<String> Insert into CostAllocation (  CostAllocationCode, Status, Remark, InputPerson, InputDate ) values (  @CostAllocationCode, @Status, @Remark, @InputPerson, @InputDate )</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@CostAllocationCode</Name>
				<Column>CostAllocationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@Status</Name>
				<Column>Status</Column>
				<SqlDbType>Int</SqlDbType>
			</Param>
			<Param>
				<Name>@Remark</Name>
				<Column>Remark</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@InputPerson</Name>
				<Column>InputPerson</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@InputDate</Name>
				<Column>InputDate</Column>
				<SqlDbType>DateTime</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>Update</Name>
			<String> Update CostAllocation set Status=@Status,Remark=@Remark,InputPerson=@InputPerson,InputDate=@InputDate where  CostAllocationCode=@CostAllocationCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@CostAllocationCode</Name>
				<Column>CostAllocationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@Status</Name>
				<Column>Status</Column>
				<SqlDbType>Int</SqlDbType>
			</Param>
			<Param>
				<Name>@Remark</Name>
				<Column>Remark</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@InputPerson</Name>
				<Column>InputPerson</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
			<Param>
				<Name>@InputDate</Name>
				<Column>InputDate</Column>
				<SqlDbType>DateTime</SqlDbType>
			</Param>
		</Sql>
		<Sql>
			<Name>Delete</Name>
			<String> Delete from CostAllocation  where  CostAllocationCode=@CostAllocationCode</String>
			<CommandType>Text</CommandType>
			<Param>
				<Name>@CostAllocationCode</Name>
				<Column>CostAllocationCode</Column>
				<SqlDbType>VarChar</SqlDbType>
			</Param>
		</Sql>
	</Table>
</Entity>