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