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