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