Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
 public ProductMaterialEditForm(ERP_M001_Product_Material tempData)
 {
     InitializeComponent();
     this.eRPM001ProductMaterialBindingSource.DataSource = tempData;
 }