Пример #1
0
        public void Create(ERP_M001_Product_File ERP_M001_Product_File)
        {
            ERP_M001_Product_File.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            ERP_M001_Product_File.CreateUser = tempUser.UserName;
            ERP_M001_Product_File.Validate();
            this.ERP_M001_Product_FileRepository.Add(ERP_M001_Product_File);
            this.runtimeService.Commit();
        }
Пример #2
0
        public void Update(ERP_M001_Product_File ERP_M001_Product_File)
        {
            ERP_M001_Product_File.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            ERP_M001_Product_File.ModifyUser = tempUser.UserName;
            ERP_M001_Product_File.Validate();
            var existstb_Sys_Menu = this.GetById(ERP_M001_Product_File.Id);

            this.ERP_M001_Product_FileRepository.SetValues(ERP_M001_Product_File, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }
Пример #3
0
 public ProductFileEditForm(ERP_M001_Product_File tempData)
 {
     InitializeComponent();
     this.eRPM001ProductFileBindingSource.DataSource = tempData;
 }