private void initOrderingServBasicEvents(RightLevels rightToManageOrdering, Control tileOrdering)
 {
     tileOrdering.Click += (f, g) =>
     {
         removeDoubleClickEvent(mgrid);
         mgrid.Visible           = true;
         actServiceForSubEvents  = FormMainServiceMode.ORDERINGNoted;
         orderingService         = new ServiceOrdering(dbci, mainWindow, setOfUserDetails.userId);
         panelOfCommLine.Visible = false;
         if (rightToManageOrdering == RightLevels.READ)
         {
             actServiceViewStandard = FromMainServiceViewStandard.READ;
             loadAppropriateOrderingGridView();
             loadAppropiateOrderingCommandLineView();
             initializeOrdGridViewDetailsEvent();
             initializeOrdAlternativeComangLineEvent();
         }
         else if (rightToManageOrdering == RightLevels.MODiFY)
         {
             actServiceViewStandard = FromMainServiceViewStandard.OTHER;
             loadAppropriateOrderingGridView();
             loadAppropiateOrderingCommandLineView();
             initializeOrdFullCommandLineEvents();
         }
     };
 }
Example #2
0
 public ServiceOrderingWinController(OrderingMissing rec, OrderingWindowPurpose windMode, ServiceOrdering serviceOrd, Form parentWinOrd)
 {
     this.parentOrdWin     = parentWinOrd;
     this.servOrdering     = serviceOrd;
     this.windoProcessMode = windMode;
     catchTheControls();
     adjutTheFieldsWithProperDatas(rec);
 }
Example #3
0
 public ServiceOrderingWinController(SetOfUserDetails userDatas, OrderingWindowPurpose windMode, ServiceOrdering serviceOrd, Form parentWinOrd)
 {
     this.parentOrdWin     = parentWinOrd;
     this.servOrdering     = serviceOrd;
     this.windoProcessMode = windMode;
     catchTheControls();
     adjutTheFieldsWithProperDatas(userDatas);
 }
 public ServiceOrdBookArriveWinController(List <OrderingBooked> listBooked, Form parentOrdBookAriv, ServiceOrdering servOrd)
 {
     this.parentBookArrivWin = parentOrdBookAriv;
     this.servOrdering       = servOrd;
     actWorkWith             = RecordType.BOOKED;
     catchControls();
     this.listBooked = listBooked;
     labelTitle.Text = "Átvételi lista ellenőrzése";
     executeLoadInAllTheRecords();
 }
 public ServiceOrdBookArriveWinController(List <OrderingNoted> listNoted, Form parentOrdBookAriv,
                                          ServiceOrdering servOrd, SetOfUserDetails soud)
 {
     this.parentBookArrivWin = parentOrdBookAriv;
     this.servOrdering       = servOrd;
     this.soud   = soud;
     actWorkWith = RecordType.NOTED;
     catchControls();
     this.listNoted  = listNoted;
     labelTitle.Text = "Rendelési lista készítése";
     executeLoadInAllTheRecords();
 }
 public FormServiceOrdBookArriveWin(List <OrderingBooked> listNoted, Form parentMain, ServiceOrdering servOrd)
 {
     InitializeComponent();
     controllOrdBookArrive = new ServiceOrdBookArriveWinController(listNoted, this, servOrd);
     this.Show();
     this.parentMain = parentMain;
     parentMain.Hide();
 }
 public FormServiceOrderingWindow(OrderingFailed rec, OrderingWindowPurpose mode, Form parentMain, ServiceOrdering servOrd)
 {
     InitializeComponent();
     controllerOrd   = new ServiceOrderingWinController(rec, mode, servOrd, this);
     this.parentMain = parentMain;
     this.Show();
     parentMain.Hide();
 }
 public FormServiceOrderingWindow(SetOfUserDetails soud, OrderingWindowPurpose mode, Form parentMain, ServiceOrdering servOrd)
 {
     InitializeComponent();
     controllerOrd   = new ServiceOrderingWinController(soud, mode, servOrd, this);
     this.parentMain = parentMain;
     this.Show();
     parentMain.Hide();
 }