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