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

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

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

            this.WMS_C103_ShelfRepository.SetValues(WMS_C103_Shelf, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }
예제 #3
0
        private void EditForm(string formText, string btnCommand)
        {
            WMS_C103_Shelf temp = wMSC103ShelfBindingSource.Current as WMS_C103_Shelf;
            ShelfEditForm  edit = new ShelfEditForm(temp);

            edit.Text = formText;
            edit.Tag  = btnCommand;
            if (edit.ShowDialog() != DialogResult.OK)
            {
                wMSC103ShelfBindingSource.CancelEdit();
            }
        }
예제 #4
0
 public ShelfEditForm(WMS_C103_Shelf tempData)
 {
     InitializeComponent();
     this.wMSC103ShelfBindingSource.DataSource = tempData;
 }