Exemplo n.º 1
0
        private void OnModifyImportantPartCommand()
        {
            ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.MODIFY, SelectImportantPartEntity);

            importantPartWindow.Closed += importantPartWindowModify_Closed;
            importantPartWindow.Show();
        }
Exemplo n.º 2
0
        private void OnOutPartCommand()
        {
            //SelectImportantPartEntity.PartOutTime = DateTime.Now;
            ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.OUT, SelectImportantPartEntity);

            importantPartWindow.Closed += importantPartWindowModify_Closed;
            importantPartWindow.Show();
        }
Exemplo n.º 3
0
        private void OnArivePartCommand()
        {
            SelectImportantPartEntity.AriveTime = DateTime.Now;
            ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.ARIVE, SelectImportantPartEntity);

            importantPartWindow.Closed += importantPartWindowModify_Closed;
            importantPartWindow.Show();
        }
Exemplo n.º 4
0
        private void OnAddImportantPartCommand()
        {
            AddImportantPartEntity = new ImportantPartEntity();
            AddImportantPartEntity.UserEntityDictionary = UserEntityDictionary;
            AddImportantPartEntity.ImportantPart        = new ProductManager.Web.Model.important_part();
            ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.Add, AddImportantPartEntity);

            importantPartWindow.Closed += importantPartWindow_Closed;
            importantPartWindow.Show();
        }
Exemplo n.º 5
0
        void importantPartWindowModify_Closed(object sender, EventArgs e)
        {
            ImportantPartWindow importantPartWindow = sender as ImportantPartWindow;

            if (importantPartWindow.DialogResult == true)
            {
                IsBusy = true;
                SubmitOperation submitOperation = productDomainContext.SubmitChanges();
                submitOperation.Completed += submitOperation_Completed;
            }
        }
Exemplo n.º 6
0
        void importantPartWindow_Closed(object sender, EventArgs e)
        {
            ImportantPartWindow importantPartWindow = sender as ImportantPartWindow;

            if (importantPartWindow.DialogResult == true)
            {
                ImportantPartEntityList.Add(AddImportantPartEntity);
                productDomainContext.important_parts.Add(AddImportantPartEntity.ImportantPart);
                IsBusy = true;
                SubmitOperation submitOperation = productDomainContext.SubmitChanges();
                submitOperation.Completed += submitOperation_Completed;
            }
        }
Exemplo n.º 7
0
        private void OnViewImportantPartCommand()
        {
            ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.VIEW, SelectImportantPartEntity);

            importantPartWindow.Show();
        }