Beispiel #1
0
        public void Create(WMS_M001_Product WMS_M001_Product)
        {
            WMS_M001_Product.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_M001_Product.CreateUser = tempUser.UserName;
            WMS_M001_Product.Validate();
            this.WMS_M001_ProductRepository.Add(WMS_M001_Product);
            this.runtimeService.Commit();
        }
Beispiel #2
0
        public void Update(WMS_M001_Product WMS_M001_Product)
        {
            WMS_M001_Product.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

            this.WMS_M001_ProductRepository.SetValues(WMS_M001_Product, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }
Beispiel #3
0
        private void EditForm(string formText, string btnCommand)
        {
            WMS_M001_Product   temp = wMSM001ProductBindingSource.Current as WMS_M001_Product;
            WMSProductEditForm edit = new WMSProductEditForm(temp);

            edit.Text = formText;
            edit.Tag  = btnCommand;
            if (edit.ShowDialog() != DialogResult.OK)
            {
                wMSM001ProductBindingSource.CancelEdit();
            }
        }
Beispiel #4
0
 public WMSProductEditForm(WMS_M001_Product tempData)
 {
     InitializeComponent();
     this.wMSM001ProductBindingSource.DataSource = tempData;
 }