Пример #1
0
        public void ShowOrderEditForm()
        {
            try
            {
                Zamówienie order = orders.GetActiveElement();
                OrderForm form = new OrderForm(order);
                OrderFormController formController = new OrderFormController(form, Operation.Edit);
                formController.Queries = queriesOrder;
                dr = form.ShowDialog();
                ReloadIfFormReturnedOK();
            }
            catch (NullReferenceException ex)
            {

            }
        }
Пример #2
0
 public void ShowOrderDeleteForm()
 {
     try
     {
         Zamówienie order = orders.GetActiveElement();
         OrderForm form = new OrderForm(order);
         OrderFormController formController = new OrderFormController(form, Operation.Delete);
         formController.Queries = queriesOrder;
         form.ShowDialog();
         SelectAllAtActiveWindow();
     }
     catch (NullReferenceException ex)
     {
     }
 }
Пример #3
0
        public void ShowOrderEditForm()
        {
            try
            {
                Zamówienie order = orders.GetActiveElement();
                OrderForm form = new OrderForm(order);
                OrderFormController formController = new OrderFormController(form, Operation.Edit);
                formController.OrderQuery = queriesOrder;
                formController.WarehouseQuery = queriesWarehouse;

                form.PartsNotAddedToOrder = queriesOrder.SelectPartsAvailableToOrder();
                form.PartsAddedToOrder = queriesOrder.SelectPartsByOrder((int)order.Zamówienie_ID);
                form.SetColumns();

                dr = form.ShowDialog();
                ReloadIfFormReturnedOK();
            }
            catch (NullReferenceException)
            {

            }
        }
Пример #4
0
 // --- FORMULARZE
 public void ShowOrderAddForm()
 {
     OrderForm form = new OrderForm();
     OrderFormController formController = new OrderFormController(form, Operation.Add);
     formController.Queries = queriesOrder;
     dr = form.ShowDialog();
     ReloadIfFormReturnedOK();
 }
Пример #5
0
        // --- FORMULARZE
        public void ShowOrderAddForm()
        {
            OrderForm form = new OrderForm();
            OrderFormController formController = new OrderFormController(form, Operation.Add);
            formController.OrderQuery = queriesOrder;
            formController.WarehouseQuery = queriesWarehouse;

            form.PartsNotAddedToOrder = queriesOrder.SelectPartsAvailableToOrder();
            form.PartsAddedToOrder = form.PartsNotAddedToOrder.Clone();
            form.SetColumns();

            dr = form.ShowDialog();
            ReloadIfFormReturnedOK();
        }