OOSelect.html 18 KB

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