public void UpdateBatchManagementInfo(ProductMaintainBatchManagementInfoVM vm, EventHandler <RestClientEventArgs <ProductBatchManagementInfo> > callback) { var msg = EntityConverter <ProductMaintainBatchManagementInfoVM, ProductBatchManagementInfo> .Convert(vm); //if (!string.IsNullOrEmpty(vm.Note)) //{ // msg.Logs = new List<ProductBatchManagementInfoLog>(); // msg.Logs.Add(new ProductBatchManagementInfoLog { Note = vm.Note, BatchManagementSysNo = msg.SysNo }); //} restClient.Update("/IMService/ProductExt/UpdateBatchManagementInfo", msg, callback); }
public ProductVM() { ProductMaintainCommonInfo = new ProductMaintainCommonInfoVM(); ProductMaintainBasicInfo = new ProductMaintainBasicInfoVM(); ProductMaintainDescription = new ProductMaintainDescriptionVM(); ProductMaintainAccessory = new ProductMaintainAccessoryVM(); ProductMaintainImage = new ProductMaintainImageVM(); ProductMaintainPriceInfo = new ProductMaintainPriceInfoVM(); ProductMaintainProperty = new ProductMaintainPropertyVM(); ProductMaintainWarranty = new ProductMaintainWarrantyVM(); ProductMaintainDimension = new ProductMaintainDimensionVM(); ProductMaintainSalesArea = new ProductMaintainSalesAreaVM(); ProductMaintainPurchaseInfo = new ProductMaintainPurchaseInfoVM(); ProductMaintainBatchManagementInfo = new ProductMaintainBatchManagementInfoVM(); ProductMaintainStepPrice = new ProductMaintainStepPriceVM(); }