public StockItemInfo(YuShang.ERP.Entities.Stocks.StockItem stockItem) { this.stockItem = stockItem; if (stockItem != null) { this.IsEnable = true; AssignValues(stockItem, this); } }
internal static void AssignValues(YuShang.ERP.Entities.Stocks.StockItem source, StockItemInfo target) { target.IsAllSold = source.IsAllSold; target.OrderContractKey = source.OrderContractKey; target.ProductItemId = source.ProductItemId; target.ProductKey = source.ProductKey; target.ProductName = source.ProductName; target.Quantity = source.Quantity; target.StockInDate = source.StockInDate; target.StockItemId = source.StockItemId; target.StockStatus = source.StockStatus; target.StockWeight = source.StockWeight; target.StoreHouseId = source.StoreHouseId; target.StoreHouseMountNumber = source.StoreHouseMountNumber; }