V 10 1 LANG:1 8 (NoName) PANEL,218 100 820 645 N "hmpUserDeskPanelBack" 1 "$1" " main() { // ------ Decode the name of node ------ string sNode, sRoot; dyn_string dsDpName,dsAlias; sNode = $1; string root; hmpBase_GetCoords(sNode, iModule, iSector, extra, iType); sRoot = hmpBase_buildLogicalName(iType, iModule, iSector, extra); // ------ and estract all DPs that compose the PWSystem ------ iNum = dpGetAllAliases(dsDpName,dsAlias,sRoot+\"*\",\"*:*.**\"); if(iNum<1) { DebugN(\"hmpPWSystem: PWS Module definition empty !! ABORT [\"+sRoot+\"]\"); return; } // ----------------------------------------------------- // -------- Access control ------------------------------------------- // Set the CB Function that Hook the change of Logged User dyn_string exceptionInfo; fwAccessControl_setupPanel(\"hmpPWAll_LoggedUserAC\",exceptionInfo); if (dynlen(exceptionInfo)) { hmpPWAll_LoggedUserAC(\"\",\"\"); // global \"reject\" } // ---------------------------------------------------------------------- // ---------------- Set the title into the main window ------------------ dcsUiBase_setMainTitle(\"HMPID - Power System \"); // ---------------------------------------------------------------------- } " 0 "main() { // -------------- Event Terminate --------------------- // // Here REMOVE all objects inserted with an // addSymbol() function // // int removeSymbol (string moduleName, string panelName, string refName); // // }" 0 E E E 1 0 0 0 0 0 "" 0 1 E"#uses \"hmpBaselibrary.ctl\" int iModule,iSector,extra,iType, iNum; // ------ Access Control related Functions ------------------------------------ // void hmpPWAll_DisableAllAC() { // Put Here all commands to disable objects on panel } void hmpPWAll_EnableAC(bool isGuest, bool isOperator, bool isExpert, bool isAdmin) { if(isGuest) { // Put Here all commands to enable objects on panel // related to Guest grants } if(isOperator) { // Put Here all commands to enable objects on panel // related to Operator grants } if(isExpert) { // Put Here all commands to enable objects on panel // related to Expert grants } if(isAdmin) { // Put Here all commands to enable objects on panel // related to Administrator grants } } void hmpPWAll_LoggedUserAC(string dp, string username_from_ui) { // Set the minimum users grants bool isGuest=false; bool isOperator=false; bool isExpert=false; bool isAdmin=false; // Disable all items in the panel hmpPWAll_DisableAllAC(); // Get Grants for the specified user dcsUiBase_getACGrants(isAdmin,isExpert,isOperator,isGuest); // Now enable - this is related to the specific Policy rules hmpPWAll_EnableAC(isGuest,isOperator,isExpert,isAdmin); } // ------------------------------------------------------------------------------ " 0 2 "CBRef""1" "EClose"E "" DISPLAY_LAYER, 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 LAYER, 0 1 LANG:1 6 Layer1 1 0 14 "" 0 0 1 1 14 "" 1 0 1 2 14 "" 3 0 1 3 14 "" 4 0 1 4 14 "" 12 0 1 5 14 "" 14 0 1 6 14 "" 20 0 1 7 14 "" 2 0 1 18 16 "" 0 0 1 19 16 "" 1 0 1 20 16 "" 3 0 1 21 16 "" 4 0 1 22 16 "" 12 0 1 23 16 "" 14 0 1 24 16 "" 20 0 1 25 16 "" 2 0 1 36 17 "" 0 0 1 37 17 "" 1 0 1 38 17 "" 3 0 1 39 17 "" 4 0 1 40 17 "" 12 0 1 41 17 "" 14 0 1 42 17 "" 20 0 1 43 17 "" 2 0 1 54 18 "" 0 0 1 55 18 "" 1 0 1 56 18 "" 3 0 1 57 18 "" 4 0 1 58 18 "" 12 0 1 59 18 "" 14 0 1 60 18 "" 20 0 1 61 18 "" 2 0 1 72 19 "" 0 0 1 73 19 "" 1 0 1 74 19 "" 3 0 1 75 19 "" 4 0 1 76 19 "" 12 0 1 77 19 "" 14 0 1 78 19 "" 20 0 1 79 19 "" 2 0 1 90 20 "" 0 0 1 91 20 "" 1 0 1 92 20 "" 3 0 1 93 20 "" 4 0 1 94 20 "" 12 0 1 95 20 "" 14 0 1 96 20 "" 20 0 1 97 20 "" 2 0 1 108 21 "" 0 0 1 109 21 "" 1 0 1 110 21 "" 3 0 1 111 21 "" 4 0 1 112 21 "" 12 0 1 113 21 "" 14 0 1 114 21 "" 20 0 1 115 21 "" 2 0 1 8 14 "" 19 0 1 9 14 "" 5 0 1 10 14 "" 6 0 1 11 14 "" 7 0 1 12 14 "" 8 0 1 13 14 "" 9 0 1 14 14 "" 10 0 1 15 14 "" 16 0 1 16 14 "" 17 0 1 17 14 "" 18 0 1 26 16 "" 19 0 1 27 16 "" 5 0 1 28 16 "" 6 0 1 29 16 "" 7 0 1 30 16 "" 8 0 1 31 16 "" 9 0 1 32 16 "" 10 0 1 33 16 "" 16 0 1 34 16 "" 17 0 1 35 16 "" 18 0 1 44 17 "" 19 0 1 45 17 "" 5 0 1 46 17 "" 6 0 1 47 17 "" 7 0 1 48 17 "" 8 0 1 49 17 "" 9 0 1 50 17 "" 10 0 1 51 17 "" 16 0 1 52 17 "" 17 0 1 53 17 "" 18 0 1 62 18 "" 19 0 1 63 18 "" 5 0 1 64 18 "" 6 0 1 65 18 "" 7 0 1 66 18 "" 8 0 1 67 18 "" 9 0 1 68 18 "" 10 0 1 69 18 "" 16 0 1 70 18 "" 17 0 1 71 18 "" 18 0 1 80 19 "" 19 0 1 81 19 "" 5 0 1 82 19 "" 6 0 1 83 19 "" 7 0 1 84 19 "" 8 0 1 85 19 "" 9 0 1 86 19 "" 10 0 1 87 19 "" 16 0 1 88 19 "" 17 0 1 89 19 "" 18 0 1 98 20 "" 19 0 1 99 20 "" 5 0 1 100 20 "" 6 0 1 101 20 "" 7 0 1 102 20 "" 8 0 1 103 20 "" 9 0 1 104 20 "" 10 0 1 105 20 "" 16 0 1 106 20 "" 17 0 1 107 20 "" 18 0 1 116 21 "" 19 0 1 117 21 "" 5 0 1 118 21 "" 6 0 1 119 21 "" 7 0 1 120 21 "" 8 0 1 121 21 "" 9 0 1 122 21 "" 10 0 1 123 21 "" 16 0 1 124 21 "" 17 0 1 125 21 "" 18 0 0 LAYER, 1 1 LANG:1 6 Layer2 0 LAYER, 2 1 LANG:1 6 Layer3 0 LAYER, 3 1 LANG:1 6 Layer4 0 LAYER, 4 1 LANG:1 6 Layer5 0 LAYER, 5 1 LANG:1 6 Layer6 0 LAYER, 6 1 LANG:1 6 Layer7 0 LAYER, 7 1 LANG:1 6 Layer8 0 3 14 "" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 150 110 T 707 1 0 1 -90 -49 1 "$object""HMP_MP5_PW" 3 16 "Group14" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 60 70 T 709 1 0 1 0 31 1 "$object""HMP_MP4_PW" 3 17 "Group16" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 60 70 T 710 1 0 1 0 71 1 "$object""HMP_MP3_PW" 3 18 "Group18" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 60 70 T 711 1 0 1 0 111 1 "$object""HMP_MP2_PW" 3 19 "Group20" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 60 70 T 712 1 0 1 0 151 1 "$object""HMP_MP1_PW" 3 20 "Group22" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 60 70 T 713 1 0 1 0 191 1 "$object""HMP_MP0_PW" 3 21 "Group24" "dcsUi\\dcsUiFSMObjStatusWidget.pnl" 60 70 T 714 1 0 1 0 -49 1 "$object""HMP_MP6_PW" 0