select.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. </table>
  127. </div>
  128. <div id="text{$.pid}selectEditItemView" style="display: text{($.itemType=='view')?'block':'none'}" class="MWFQueryViewItemContainer">
  129. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  130. <tr>
  131. <td class="editTableTitle">{{$.lp.view}}:</td>
  132. <td class="editTableValue">
  133. <div class="MWFQueryViewNode" data-count=1 name="itemView"></div>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  138. <td class="editTableValue">
  139. <select class="MWFViewColumnSelect" name="viewValueColumn" style="max-width: 270px;"></select>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  144. <td class="editTableValue">
  145. <select class="MWFViewColumnSelect" name="viewTextColumn" style="max-width: 270px;"></select>
  146. </td>
  147. </tr>
  148. <!-- <tr>-->
  149. <!-- <td class="editTableTitle">{{$.lp.asyncLoad}}</td>-->
  150. <!-- <td class="editTableValue">-->
  151. <!-- <input type="radio" name="itemViewAsync" value="true" text{($.itemViewAsync!==false)?'checked':''}/>{{$.lp.yes}}-->
  152. <!-- <input type="radio" name="itemViewAsync" value="false" text{($.itemViewAsync===false)?'checked':''}/>{{$.lp.no}}-->
  153. <!-- </td>-->
  154. <!-- </tr>-->
  155. </table>
  156. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  157. <div class="MWFViewFilterWithTemplate"></div>
  158. </div>
  159. <div id="text{$.pid}selectEditItemStatement" style="display: text{($.itemType=='statement')?'block':'none'}" class="MWFQueryStatementItemContainer">
  160. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  161. <tr>
  162. <td class="editTableTitle">{{$.lp.statement}}:</td>
  163. <td class="editTableValue">
  164. <div class="MWFQueryStatementNode" data-count=1 name="itemStatement"></div>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="editTableTitle">{{$.lp.valueColumn}}:</td>
  169. <td class="editTableValue">
  170. <select class="MWFStatementItemSelect" name="statementValueColumn" style="max-width: 270px;"></select>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td class="editTableTitle">{{$.lp.textColumn}}:</td>
  175. <td class="editTableValue">
  176. <select class="MWFStatementItemSelect" name="statementTextColumn" style="max-width: 270px;"></select>
  177. </td>
  178. </tr>
  179. <!-- <tr>-->
  180. <!-- <td class="editTableTitle">{{$.lp.asyncLoad}}</td>-->
  181. <!-- <td class="editTableValue">-->
  182. <!-- <input type="radio" name="itemStatementAsync" value="true" text{($.itemStatementAsync!==false)?'checked':''}/>{{$.lp.yes}}-->
  183. <!-- <input type="radio" name="itemStatementAsync" value="false" text{($.itemStatementAsync===false)?'checked':''}/>{{$.lp.no}}-->
  184. <!-- </td>-->
  185. <!-- </tr>-->
  186. </table>
  187. <div style="background-color: #eeeeee; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  188. <div class="MWFStatementFilterWithTemplate" data-statement="itemStatement"></div>
  189. </div>
  190. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  191. <div class="MWFMaplist" name="inputStyles" title="{{$.lp.selectStyle}}"></div>
  192. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  193. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  194. <tr>
  195. <td class="editTableTitle">{{$.lp.compute}}:</td>
  196. <td class="editTableValue">
  197. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  198. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  199. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  200. </td>
  201. </tr>
  202. </table>
  203. <div class="MWFScriptArea" name="defaultValue" title="{{$.lp.defaultValue}} (S)"></div>
  204. <div class="MWFValidation" name="validationConfig"></div>
  205. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  206. </div>
  207. <div title="{{$.lp.section}}" class="MWFTab">
  208. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  209. <tr>
  210. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  211. <td class="editTableValue">
  212. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  213. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  214. </td>
  215. </tr>
  216. </table>
  217. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  218. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  219. <tr>
  220. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  221. <td class="editTableValue">
  222. <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/>
  223. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='department')?'checked':''} type="radio" value="unit"/>{{$.lp.handlerUnit}}<br/>
  224. <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/>
  225. <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/>
  226. <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/>
  227. </td>
  228. </tr>
  229. </table>
  230. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  231. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  232. </div>
  233. </div>
  234. </div>
  235. <div title="{{$.lp.event}}" class="MWFTab">
  236. <div class="MWFEventsArea" name="events"></div>
  237. </div>
  238. <div title="HTML" class="MWFTab">
  239. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  240. </div>
  241. <div title="JSON" class="MWFTab">
  242. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  243. </div>
  244. </div>