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(); } }; }
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(); } }; }
/// <summary> /// when this service is loaded in, defines the proper actions /// the special events are goint to be redefined /// </summary> /// <param name="sour">act. rights of the user</param> /// <param name="tileProd">the production tile itself</param> private void initProductsServBasicEvents(RightLevels rightToManageStore, Control tileProd) { tileProd.Click += (s, e) => { removeDoubleClickEvent(mgrid); mgrid.Visible = true; actServiceForSubEvents = FormMainServiceMode.PRODUCTSMANStripAct; productService = new ServiceProducts(dbci, mainWindow, setOfUserDetails.userId); panelOfCommLine.Visible = false; if (rightToManageStore == RightLevels.READ) { actServiceViewStandard = FromMainServiceViewStandard.READ; loadAppropriateProductonGridView(); loadAppropiateProductionCommandLineView(); initializeProdAlternativeCommandLineEvent(); initializeProdGridViewEvent(); } else if (rightToManageStore == RightLevels.MODiFY) { actServiceViewStandard = FromMainServiceViewStandard.OTHER; loadAppropriateProductonGridView(); loadAppropiateProductionCommandLineView(); initializeProdFullCommandLineEvents(); } }; }
private void initRightsManagingSerevice(RightLevels rightToManegeRights, Control tileRights) { tileRights.Click += (e, p) => { actServiceForSubEvents = FormMainServiceMode.OPENING; if (rightToManegeRights == RightLevels.READ) { rightsWin = new FormServiceRightsWindow(mainWindow, false, dbci); } else if (rightToManegeRights == RightLevels.MODiFY) { rightsWin = new FormServiceRightsWindow(mainWindow, true, dbci); } }; }
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(); } }; }
/// <summary> /// when this service is loaded in, defines the proper actions /// the special events are goint to be redefined /// </summary> /// <param name="sour">act. rights of the user</param> /// <param name="tileProd">the production tile itself</param> private void initProductsServBasicEvents(RightLevels rightToManageStore, Control tileProd) { tileProd.Click += (s, e) => { actServiceForSubEvents = FormMainServiceMode.PRODUCTSMANStripAct; productService = new ServiceProducts(dbci, mainWindow, setOfUserDetails.userId); panelOfCommLine.Visible = false; if (rightToManageStore == RightLevels.READ) { loadAppropiateProductonGridView(); initializeProdGridViewEvent(); } else if (rightToManageStore == RightLevels.MODiFY) { loadAppropiateProductonGridView(); initializeProdGridViewEvent(); initializeCommandLineEvents(); loadAppropiateProductionCommandLineView(); } }; }
private void adjustingRightMarkers(int i, char v) { if (i == 0) { if (v == '0') { uR1_ReqLocal = RightLevels.NONE; } else if (v == '1') { uR1_ReqLocal = RightLevels.READ; } else if (v == '2') { uR1_ReqLocal = RightLevels.MODiFY; } } else if (i == 1) { if (v == '0') { uR2_AccidLocal = RightLevels.NONE; } else if (v == '1') { uR2_AccidLocal = RightLevels.READ; } else if (v == '2') { uR2_AccidLocal = RightLevels.MODiFY; } } else if (i == 2) { if (v == '0') { uR3_UserLocal = RightLevels.NONE; } else if (v == '1') { uR3_UserLocal = RightLevels.READ; } else if (v == '2') { uR3_UserLocal = RightLevels.MODiFY; } } else if (i == 3) { if (v == '0') { uR4_UserGlobal = RightLevels.NONE; } else if (v == '1') { uR4_UserGlobal = RightLevels.READ; } else if (v == '2') { uR4_UserGlobal = RightLevels.MODiFY; } } else if (i == 4) { if (v == '0') { uR5_RightMan = RightLevels.NONE; } else if (v == '1') { uR5_RightMan = RightLevels.READ; } else if (v == '2') { uR5_RightMan = RightLevels.MODiFY; } } else if (i == 5) { if (v == '0') { uR6_AccidGlobal = RightLevels.NONE; } else if (v == '1') { uR6_AccidGlobal = RightLevels.READ; } else if (v == '2') { uR6_AccidGlobal = RightLevels.MODiFY; } } else if (i == 6) { if (v == '0') { uR7_StoreMan = RightLevels.NONE; } else if (v == '1') { uR7_StoreMan = RightLevels.READ; } else if (v == '2') { uR7_StoreMan = RightLevels.MODiFY; } } else if (i == 7) { if (v == '0') { uR8_ReqMan = RightLevels.NONE; } else if (v == '1') { uR8_ReqMan = RightLevels.READ; } else if (v == '2') { uR8_ReqMan = RightLevels.MODiFY; } } else if (i == 8) { if (v == '0') { uR9_Order = RightLevels.NONE; } else if (v == '1') { uR9_Order = RightLevels.READ; } else if (v == '2') { uR9_Order = RightLevels.MODiFY; } } else if (i == 9) { if (v == '0') { uR10_Subcontr = RightLevels.NONE; } else if (v == '1') { uR10_Subcontr = RightLevels.READ; } else if (v == '2') { uR10_Subcontr = RightLevels.MODiFY; } } }