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