select.html 18 KB

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