| | |
| | | { |
| | | entity.ItemUnit = entityItemUnit; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FBaseUnitId)) |
| | | { |
| | | entity.ItemUnit = item.FBaseUnitId; |
| | | } |
| | | else |
| | | { |
| | | entity.ItemUnit = "0"; |
| | |
| | | if (!string.IsNullOrWhiteSpace(entitySaleunit)) |
| | | { |
| | | entity.Saleunit = entitySaleunit; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FSaleUnitId)) |
| | | { |
| | | entity.Saleunit = item.FSaleUnitId; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | entity.Storeunit = entityStoreunit; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FStoreUnitID)) |
| | | { |
| | | entity.Storeunit = item.FStoreUnitID; |
| | | } |
| | | else |
| | | { |
| | | entity.Storeunit = "0"; |
| | |
| | | if (!string.IsNullOrWhiteSpace(entityFpurchaseunitid)) |
| | | { |
| | | entity.Fpurchaseunitid = entityFpurchaseunitid; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FPurchaseUnitId)) |
| | | { |
| | | entity.Fpurchaseunitid = item.FPurchaseUnitId; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | entity.ProduceUnit = entityProduceUnit; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FPRODUCEUNITID)) |
| | | { |
| | | entity.ProduceUnit = item.FPRODUCEUNITID; |
| | | } |
| | | else |
| | | { |
| | | entity.ProduceUnit = "0"; |
| | |
| | | if (!string.IsNullOrWhiteSpace(entitySubconUnit)) |
| | | { |
| | | entity.SubconUnit = entitySubconUnit; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FSUBCONUNITID)) |
| | | { |
| | | entity.SubconUnit = item.FSUBCONUNITID; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | entity.DepotCode = entityDepotCode; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FStockId)) |
| | | { |
| | | entity.DepotCode = item.FStockId; |
| | | } |
| | | else |
| | | { |
| | | entity.DepotCode = "0"; |
| | |
| | | { |
| | | entity.Fpurchaserid = entityFpurchaserid; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FPurchaserId)) |
| | | { |
| | | entity.Fpurchaserid = item.FPurchaserId; |
| | | } |
| | | else |
| | | { |
| | | entity.Fpurchaserid = "0"; |
| | |
| | | if (!string.IsNullOrWhiteSpace(entityProductionWorkshop)) |
| | | { |
| | | entity.ProductionWorkshop = entityProductionWorkshop; |
| | | } |
| | | else if (!string.IsNullOrWhiteSpace(item.FWorkShopId)) |
| | | { |
| | | entity.ProductionWorkshop = item.FWorkShopId; |
| | | } |
| | | else |
| | | { |