private void initRequestServBasicEvents(RightLevels rightToManageRequests, Control tileRequest)
 {
     tileRequest.Click += (e, o) =>
     {
         removeDoubleClickEvent(mgrid);
         mgrid.Visible           = true;
         actServiceForSubEvents  = FormMainServiceMode.REQUESTSMANActive;
         requestService          = new ServiceRequests(dbci, mainWindow, setOfUserDetails.userId);
         panelOfCommLine.Visible = false;
         if (rightToManageRequests == RightLevels.READ)
         {
             actServiceViewStandard = FromMainServiceViewStandard.READ;
             loadAppropriateRequestGridView();
             loadAppropiateRequestCommandLineView();
             initializeInTheAlternativeRequCommandLineButton();
             initializeRequGridViewEvent();
         }
         else if (rightToManageRequests == RightLevels.MODiFY)
         {
             actServiceViewStandard = FromMainServiceViewStandard.OTHER;
             loadAppropriateRequestGridView();
             loadAppropiateRequestCommandLineView();
             initializeRequConnamdLineEvents();
         }
     };
 }
Ejemplo n.º 2
0
 public ServiceRequestsWinController(RequestRecordCalledOff rec, RequestWindowPuropse mode, ServiceRequests servReq,
                                     Form parentReq)
 {
     serviceRequests         = servReq;
     this.requestWindow      = parentReq;
     this.purposeOfTheWindow = mode;
     catchTheControls();
     adjustCancelledRecFields(rec);
 }
Ejemplo n.º 3
0
 public FormServiceRequestsWindow(RequestRecordCalledOff rec, RequestWindowPuropse mode, Form parMain,
                                  ServiceRequests servRequ)
 {
     this.parentMainWin = parMain;
     InitializeComponent();
     requestController = new ServiceRequestsWinController(rec, mode, servRequ, this);
     this.Show();
     parentMainWin.Hide();
 }
Ejemplo n.º 4
0
 private void initRequestSercBasicEvents(RightLevels rightToManageRequests, Control tileRequest)
 {
     tileRequest.Click += (e, o) =>
     {
         actServiceForSubEvents  = FormMainServiceMode.REQUESTSMANActive;
         requestService          = new ServiceRequests(dbci, mainWindow, setOfUserDetails.userId);
         panelOfCommLine.Visible = false;
         if (rightToManageRequests == RightLevels.READ)
         {
             loadAppropiateRequestGridView();
             initializeRequGridViewEvent();
         }
         else if (rightToManageRequests == RightLevels.MODiFY)
         {
             loadAppropiateRequestGridView();
             initializeRequGridViewEvent();
             loadAppropiateRequestCommandLineView();
             initializeConnamdLineEvents();
         }
     };
 }