public void Create(ERP_M001_Product_PackInfo ERP_M001_Product_PackInfo) { ERP_M001_Product_PackInfo.CreateDt = DateTime.Now; tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User; ERP_M001_Product_PackInfo.CreateUser = tempUser.UserName; ERP_M001_Product_PackInfo.Validate(); this.ERP_M001_Product_PackInfoRepository.Add(ERP_M001_Product_PackInfo); this.runtimeService.Commit(); }
public void Update(ERP_M001_Product_PackInfo ERP_M001_Product_PackInfo) { ERP_M001_Product_PackInfo.ModifyDt = DateTime.Now; tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User; ERP_M001_Product_PackInfo.ModifyUser = tempUser.UserName; ERP_M001_Product_PackInfo.Validate(); var existstb_Sys_Menu = this.GetById(ERP_M001_Product_PackInfo.Id); this.ERP_M001_Product_PackInfoRepository.SetValues(ERP_M001_Product_PackInfo, existstb_Sys_Menu); this.runtimeService.Commit(); }