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