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