OORadioGroup.html 18 KB

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