OOCheckGroup.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="{{$.lp.base}}" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">{{$.lp.id}}:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.name}}:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.description}}:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.showMode}}:</td>
  18. <td class="editTableValue">
  19. <label><input type="radio" name="showMode" value="editable" text{($.showMode!=='readonlyMode' && $.showMode!=='disabled' && $.showMode!=='read')?'checked':''}/>{{$.lp.editable}}</label>
  20. <label><input type="radio" name="showMode" value="disabled" text{($.showMode==='disabled')?'checked':''}/>{{$.lp.disabled}}</label>
  21. <label><input type="radio" name="showMode" value="read" text{($.showMode==='read')?'checked':''}/>{{$.lp.read}}</label>
  22. </td>
  23. </tr>
  24. <tr>
  25. <td class="editTableTitle">{{$.lp.required}}:</td>
  26. <td class="editTableValue">
  27. <input type="radio" name="required" value="true" text{($.required==true)?'checked':''}/>{{$.lp.yes}}
  28. <input type="radio" name="required" value="false" text{($.required!=true)?'checked':''}/>{{$.lp.no}}
  29. </td>
  30. </tr>
  31. <tr>
  32. <td colspan="2"><b>{{$.lp.readModeEvents}}:</b>
  33. <input type="radio" name="readModeEvents" value="yes" text{($.readModeEvents=='yes')?'checked':''}/>{{$.lp.yes}}
  34. <input type="radio" name="readModeEvents" value="no" text{($.readModeEvents!=='yes')?'checked':''}/>{{$.lp.no}}
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="editTableTitle">{{$.lp.title}}:</td>
  39. <td class="editTableValue" id="text{$.pid}isTitleArea">
  40. <input type="text" name="label" value="text{$.label}" class="editTableInput"/>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td class="editTableTitle">{{$.lp.countPerline}}:</td>
  45. <td class="editTableValue">
  46. <input type="text" name="countPerline" value="text{$.countPerline}" class="editTableInput" onkeyup="this.value=this.value.replace(/[^\d]/g,'')"/>
  47. <div style="color:#999999; padding:5px;">{{$.lp.countPerlineNote}}</div>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td class="editTableTitle">{{$.lp.canSelectCount}}:</td>
  52. <td class="editTableValue">
  53. <input type="text" name="canSelectCount" value="text{$.canSelectCount}" class="editTableInput"/>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="editTableTitle">{{$.lp.options}}:</td>
  58. <td class="editTableValue">
  59. <input class="editTableRadio" onclick="if (this.checked){
  60. $('text{$.pid}selectEditItemValues').setStyle('display', 'block');
  61. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  62. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  63. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  64. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  65. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  66. }" name="itemType" text{(!$.itemType || $.itemType=='values')?'checked':''} type="radio" value="values"/>{{$.lp.textValue}}
  67. <input class="editTableRadio" onclick="if (this.checked){
  68. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  69. $('text{$.pid}selectEditItemScript').setStyle('display', 'block');
  70. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  71. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  72. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  73. $('text{$.pid}selectFirstOption').setStyle('display', 'none');
  74. }" name="itemType" text{($.itemType=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}
  75. <input class="editTableRadio" onclick="if (this.checked){
  76. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  77. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  78. $('text{$.pid}selectEditItemDict').setStyle('display', 'block');
  79. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  80. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  81. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  82. }" name="itemType" text{($.itemType=='dict')?'checked':''} type="radio" value="dict"/>{{$.lp.dict}}
  83. <input class="editTableRadio" onclick="if (this.checked){
  84. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  85. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  86. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  87. $('text{$.pid}selectEditItemView').setStyle('display', 'block');
  88. $('text{$.pid}selectEditItemStatement').setStyle('display', 'none');
  89. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  90. }" name="itemType" text{($.itemType=='view')?'checked':''} type="radio" value="view"/>{{$.lp.view}}
  91. <input class="editTableRadio" onclick="if (this.checked){
  92. $('text{$.pid}selectEditItemValues').setStyle('display', 'none');
  93. $('text{$.pid}selectEditItemScript').setStyle('display', 'none');
  94. $('text{$.pid}selectEditItemDict').setStyle('display', 'none');
  95. $('text{$.pid}selectEditItemView').setStyle('display', 'none');
  96. $('text{$.pid}selectEditItemStatement').setStyle('display', 'block');
  97. $('text{$.pid}selectFirstOption').setStyle('display', 'block');
  98. }" name="itemType" text{($.itemType=='statement')?'checked':''} type="radio" value="statement"/>{{$.lp.statement}}
  99. </td>
  100. </tr>
  101. </table>
  102. <div id="text{$.pid}selectEditItemValues" style="display: text{(!$.itemType || $.itemType=='values')?'block':'none'}" class="MWFArraylist" name="itemValues" title="{{$.lp.options}}"></div>
  103. <div id="text{$.pid}selectEditItemScript" style="display: text{($.itemType=='script')?'block':'none'}" class="MWFScriptArea" name="itemScript" title="{{$.lp.optionScript}} (S)"></div>
  104. <div id="text{$.pid}selectFirstOption" style="display: text{(['dict','view','statement'].contains($.itemType))?'block':'none'}">
  105. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  106. <tr>
  107. <td class="editTableTitle">{{$.lp.firstOptionEnable}}:</td>
  108. <td class="editTableValue">
  109. <input class="editTableRadio" onclick="if (this.checked){
  110. $('text{$.pid}firstOptionTextTr').setStyle('display', '');
  111. }" name="firstOptionEnable" text{($.firstOptionEnable)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  112. <input class="editTableRadio" onclick="if (this.checked){
  113. $('text{$.pid}firstOptionTextTr').setStyle('display', 'none');
  114. }" name="firstOptionEnable" text{(!$.firstOptionEnable)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  115. </td>
  116. </tr>
  117. <tr id="text{$.pid}firstOptionTextTr" style="display: text{($.firstOptionEnable)?'':'none'}">
  118. <td class="editTableTitle">{{$.lp.firstOption}}:</td>
  119. <td class="editTableValue"><input type="text" name="firstOption" value="text{$.firstOption}" class="editTableInput"/></td>
  120. </tr>
  121. </table>
  122. </div>
  123. <div id="text{$.pid}selectEditItemDict" style="display: text{($.itemType=='dict')?'block':'none'}" class="MWFDictionaryItemContainer">
  124. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  125. <tr>
  126. <td class="editTableTitle">{{$.lp.dict}}:</td>
  127. <td class="editTableValue">
  128. <div class="MWFDictionaryNode" data-count=1 name="itemDict"></div>
  129. </td>
  130. </tr>
  131. <tr>
  132. <td class="editTableTitle">{{$.lp.dictPath}}:</td>
  133. <td class="editTableValue">
  134. <div class="MWFDictionaryItemNode" name="itemDictPath" data-dict="itemDict" title="{{$.lp.dict}}{{$.lp.dictPath}}"></div>
  135. </td>
  136. </tr>
  137. <!-- <tr>-->
  138. <!-- <td class="editTableTitle">{{$.lp.asyncLoad}}</td>-->
  139. <!-- <td class="editTableValue">-->
  140. <!-- <input type="radio" name="itemDictAsync" value="true" text{($.itemDictAsync!==false)?'checked':''}/>{{$.lp.yes}}-->
  141. <!-- <input type="radio" name="itemDictAsync" value="false" text{($.itemDictAsync===false)?'checked':''}/>{{$.lp.no}}-->
  142. <!-- </td>-->
  143. <!-- </tr>-->
  144. <tr>
  145. <td class="editTableValue" colspan="2">{{$.lp.dictKeyNote}}:</td>
  146. </tr>
  147. <tr>
  148. <td class="editTableTitle">{{$.lp.valueKey}}:</td>
  149. <td class="editTableValue">
  150. <input type="text" name="dictValueKey" value="text{$.dictValueKey}" class="editTableInput"/>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td class="editTableTitle">{{$.lp.textKey}}:</td>
  155. <td class="editTableValue">
  156. <input type="text" name="dictTextKey" value="text{$.dictTextKey}" class="editTableInput"/>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td class="editTableTitle">{{$.lp.useCache}}:</td>
  161. <td class="editTableValue">
  162. <input type="radio" name="dictUseCache" value="true" text{($.dictUseCache!==false)?'checked':''}/>{{$.lp.yes}}
  163. <input type="radio" name="dictUseCache" value="false" text{($.dictUseCache===false)?'checked':''}/>{{$.lp.no}}
  164. <div style="color:#999;">{{$.lp.useCacheNote}}</div>
  165. </td>
  166. </tr>
  167. </table>
  168. </div>
  169. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  170. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  171. <tr>
  172. <td class="editTableTitle">{{$.lp.view}}:</td>
  173. <td class="editTableValue">
  174. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  175. </td>
  176. </tr>
  177. <tr>
  178. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  179. <td class="editTableValue">
  180. <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  185. <td class="editTableValue">
  186. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  187. </td>
  188. </tr>
  189. </table>
  190. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  191. <div class="MWFViewFilterWithTemplate"></div>
  192. </div>
  193. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  194. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  195. <tr>
  196. <td class="editTableTitle">{{$.lp.statement}}:</td>
  197. <td class="editTableValue">
  198. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  199. </td>
  200. </tr>
  201. <tr>
  202. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  203. <td class="editTableValue">
  204. <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  209. <td class="editTableValue">
  210. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  211. </td>
  212. </tr>
  213. </table>
  214. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  215. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  216. </div>
  217. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  218. <!-- <div class="MWFMaplist" name="buttonStyles" title="{{$.lp.buttonStyle}}"></div>-->
  219. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  220. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  221. <tr>
  222. <td class="editTableTitle">{{$.lp.compute}}:</td>
  223. <td class="editTableValue">
  224. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  225. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  226. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  227. </td>
  228. </tr>
  229. </table>
  230. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  231. <div class="MWFValidation" name="validationConfig"></div>
  232. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  233. </div>
  234. <div title="{{$.lp.section}}" class="MWFTab">
  235. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  236. <tr>
  237. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  238. <td class="editTableValue">
  239. <input onclick="if (this.checked){
  240. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  241. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  242. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  243. <input onclick="if (this.checked){
  244. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  245. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  246. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  247. </td>
  248. </tr>
  249. </table>
  250. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  251. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  252. <tr>
  253. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  254. <td class="editTableValue">
  255. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>{{$.lp.handler}}<br/>
  256. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  257. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>{{$.lp.activityId}}<br/>
  258. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>{{$.lp.splitValue}}<br/>
  259. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>{{$.lp.script}}<br/>
  260. </td>
  261. </tr>
  262. </table>
  263. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  264. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  265. </div>
  266. </div>
  267. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  268. </div>
  269. <div title="{{$.lp.event}}" class="MWFTab">
  270. <div class="MWFEventsArea" name="events"></div>
  271. </div>
  272. <div title="HTML" class="MWFTab">
  273. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  274. </div>
  275. <div title="JSON" class="MWFTab">
  276. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  277. </div>
  278. </div>