| | 49 | |
| | 50 | == Definicja dodatkowych modułów == |
| | 51 | W systemie można również skonfigurować w oparciu o ten sam mechanizm własny moduł. |
| | 52 | Na wersji demonstracyjnej moduły dostępne przez użytkownika jmamon "Urlopy" oraz "Delegacje" są utworzone poprzez utworzenie następującego pliku w katalogu /var/tpl/CustomModules.xml |
| | 53 | |
| | 54 | |
| | 55 | {{{ |
| | 56 | <?xml version="1.0" encoding="UTF-8"?> |
| | 57 | <modules> |
| | 58 | <module id="cModule_1" name="Delegacje" label="Dodatkowy moduł" |
| | 59 | icon="processes.gif" right="bswfms.globalsearch"> |
| | 60 | <toolbar> |
| | 61 | </toolbar> |
| | 62 | <filters> |
| | 63 | </filters> |
| | 64 | <tabs> |
| | 65 | <tab label="Moje delegacje" rep_id="87"> |
| | 66 | <buttons> |
| | 67 | <button> |
| | 68 | <id> |
| | 69 | new |
| | 70 | </id> |
| | 71 | <label> |
| | 72 | Nowy |
| | 73 | </label> |
| | 74 | <dscrpt> |
| | 75 | Nowy dokument |
| | 76 | </dscrpt> |
| | 77 | <onclick> |
| | 78 | App.openDialogByCls('DOCUMENT', null, |
| | 79 | ({afterSubmit:'{AFTER_SUBMIT}',dctpid:23,dctptp:'CustomDocument', mode:'new'}).toJSONString()) |
| | 80 | </onclick> |
| | 81 | <icon> |
| | 82 | new.gif |
| | 83 | </icon> |
| | 84 | </button> |
| | 85 | <button> |
| | 86 | <id> |
| | 87 | edit |
| | 88 | </id> |
| | 89 | <label> |
| | 90 | Edycja |
| | 91 | </label> |
| | 92 | <dscrpt> |
| | 93 | Edytuj dokument |
| | 94 | </dscrpt> |
| | 95 | <onclick> |
| | 96 | App.openDialogByCls('DOCUMENT', {KEYVAL}, |
| | 97 | ({afterSubmit:'{AFTER_SUBMIT}',dctpid:23,dctptp:'CustomDocument', mode:'edit'}).toJSONString()) |
| | 98 | </onclick> |
| | 99 | <icon> |
| | 100 | edit.gif |
| | 101 | </icon> |
| | 102 | </button> |
| | 103 | <button> |
| | 104 | <id> |
| | 105 | delete |
| | 106 | </id> |
| | 107 | <label> |
| | 108 | Usuń |
| | 109 | </label> |
| | 110 | <dscrpt> |
| | 111 | Usuń |
| | 112 | </dscrpt> |
| | 113 | <onclick> |
| | 114 | App.openDialogByCls('DOCUMENT', {KEYVAL}, |
| | 115 | ({afterSubmit:'{AFTER_SUBMIT}',dctpid:23,dctptp:'CustomDocument',mode:'del'}).toJSONString()) |
| | 116 | </onclick> |
| | 117 | <icon> |
| | 118 | delete.gif |
| | 119 | </icon> |
| | 120 | </button> |
| | 121 | </buttons> |
| | 122 | </tab> |
| | 123 | </tabs> |
| | 124 | </module> |
| | 125 | |
| | 126 | <module id="Urlopy" name="Urlopy" label="Dodatkowy moduł" |
| | 127 | icon="travel.png" right="bswfms.globalsearch"> |
| | 128 | <toolbar> |
| | 129 | </toolbar> |
| | 130 | <filters> |
| | 131 | </filters> |
| | 132 | <tabs> |
| | 133 | <tab label="Moje wnioski" rep_id="95"> |
| | 134 | <buttons> |
| | 135 | <button> |
| | 136 | <id> |
| | 137 | new |
| | 138 | </id> |
| | 139 | <label> |
| | 140 | Nowy |
| | 141 | </label> |
| | 142 | <dscrpt> |
| | 143 | Nowy wniosek urlopowy |
| | 144 | </dscrpt> |
| | 145 | <onclick> |
| | 146 | App.openDialogByCls('DOCUMENT', null, |
| | 147 | ({afterSubmit:'{AFTER_SUBMIT}',dctpid:21,dctptp:'CustomDocument', mode:'new'}).toJSONString()) |
| | 148 | </onclick> |
| | 149 | <icon> |
| | 150 | new.gif |
| | 151 | </icon> |
| | 152 | </button> |
| | 153 | <button> |
| | 154 | <id> |
| | 155 | edit |
| | 156 | </id> |
| | 157 | <label> |
| | 158 | Edycja |
| | 159 | </label> |
| | 160 | <dscrpt> |
| | 161 | Edytuj wniosek |
| | 162 | </dscrpt> |
| | 163 | <onclick> |
| | 164 | App.openDialogByCls('DOCUMENT', {KEYVAL}, |
| | 165 | ({afterSubmit:'{AFTER_SUBMIT}',dctpid:21,dctptp:'CustomDocument', mode:'edit'}).toJSONString()) |
| | 166 | </onclick> |
| | 167 | <icon> |
| | 168 | edit.gif |
| | 169 | </icon> |
| | 170 | </button> |
| | 171 | <button> |
| | 172 | <id> |
| | 173 | delete |
| | 174 | </id> |
| | 175 | <label> |
| | 176 | Usuń |
| | 177 | </label> |
| | 178 | <dscrpt> |
| | 179 | Usuń |
| | 180 | </dscrpt> |
| | 181 | <onclick> |
| | 182 | App.openDialogByCls('DOCUMENT', {KEYVAL}, |
| | 183 | ({afterSubmit:'{AFTER_SUBMIT}',dctpid:21,dctptp:'CustomDocument',mode:'del'}).toJSONString()) |
| | 184 | </onclick> |
| | 185 | <icon> |
| | 186 | delete.gif |
| | 187 | </icon> |
| | 188 | </button> |
| | 189 | </buttons> |
| | 190 | </tab> |
| | 191 | </tabs> |
| | 192 | </module> |
| | 193 | |
| | 194 | |
| | 195 | </modules> |
| | 196 | |
| | 197 | }}} |
| | 198 | |