/// <summary> /// /// </summary> /// <param name="srcObj"></param> public void CopyMangoProductInfo(CWmsProduct srcObj) { if (null == srcObj) { return; } itemCode = srcObj.ItemCode; itemName = srcObj.MangoProduct.Title; barCode = srcObj.WmsProduct.barCode; skuProperty = srcObj.MangoProduct.GGDict.Name; stockUnit = srcObj.MangoProduct.Unit; categoryId = srcObj.MangoProduct.ProductCategoryId.ToString(); categoryName = Simple_ProductCategory_Cache.ProductCategory_Cache_Store.All().Find(e => e.ProductCategoryId == srcObj.MangoProduct.ProductCategoryId.Int()).ProductCategory ?? ""; retailPrice = srcObj.MangoProduct.WuPinMoney.ToString(); // retailPrice.ToString(); brandName = srcObj.MangoProduct.Brands; isShelfLifeMgmt = "N"; // 0 < srcObj.MangoProduct.ZhiBaotime ? "Y" : "N"; // 默认不采集效期 remark = srcObj.MangoProduct.Remark; createTime = srcObj.MangoProduct.AddTime.ToString(); updateTime = srcObj.MangoProduct.UpdateTime.ToString(); }
/// <summary> /// construct by source object /// </summary> /// <param name="pSrc"></param> public HttpReqXml_ItemsSync_Item(CWmsProduct pSrc) { CopyMangoProductInfo(pSrc); }