view.html 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825
  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">text{$.id}</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.alias}}:</td>
  14. <td class="editTableValue"><input type="text" name="alias" value="text{$.alias}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.description}}:</td>
  18. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  19. </tr>
  20. <tr>
  21. <td class="editTableTitle">{{$.lp.hideView}}:</td>
  22. <td class="editTableValue">
  23. <input class="editTableRadio" name="display" text{($.display===false)?'checked':''} type="radio" value="false"/>{{$.lp.yes}}
  24. <input class="editTableRadio" name="display" text{($.display!==false)?'checked':''} type="radio" value="true"/>{{$.lp.no}}
  25. </td>
  26. </tr>
  27. <tr>
  28. <td class="editTableTitle">{{$.lp.orderNumber}}:</td>
  29. <td class="editTableValue"><input type="text" name="orderNumber" value="text{$.orderNumber}" class="editTableInput"/></td>
  30. </tr>
  31. <tr>
  32. <td class="editTableTitle">{{$.lp.viewStyles}}:</td>
  33. <td class="editTableValue">
  34. <select class="MWFViewStyle" name="data.viewStyleType"></select>
  35. <br/>
  36. <input class="editTableRadio" name="forceClearCustomViewStyle" type="checkbox" value="yes"/>{{$.lp.forceClearCustomViewStyle}}
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="editTableTitle">{{$.lp.expandView}}:</td>
  41. <td class="editTableValue">
  42. <input class="editTableRadio" name="data.isExpand" text{($.data.isExpand==='yes')?'checked':''} type="radio" value="yes"/>{{$.lp.yes}}
  43. <input class="editTableRadio" name="data.isExpand" text{($.data.isExpand!=='yes')?'checked':''} type="radio" value="no"/>{{$.lp.no}}
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="editTableTitle">{{$.lp.showSequence}}:</td>
  48. <td class="editTableValue">
  49. <input class="editTableRadio" name="data.isSequence" text{($.data.isSequence==='yes')?'checked':''} type="radio" value="yes"/>{{$.lp.yes}}
  50. <input class="editTableRadio" name="data.isSequence" text{($.data.isSequence!=='yes')?'checked':''} type="radio" value="no"/>{{$.lp.no}}
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="editTableTitleNoWidth">{{$.lp.maxRow}}:</td>
  55. <td class="editTableValue"><input type="number" name="count" value="text{$.count || 50000}" class="editTableInput"/></td>
  56. </tr>
  57. <tr>
  58. <td class="editTableTitleNoWidth">{{$.lp.pageSize}}:</td>
  59. <td class="editTableValue">
  60. <input type="number" name="pageSize" value="text{$.pageSize || 20}" class="editTableInput"/>
  61. <div style="color:#999;">{{$.lp.pageMaxCountNotice}}</div>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="editTableTitle">{{$.lp.actionbarHidden}}:</td>
  66. <td class="editTableValue">
  67. <input class="editTableRadio" name="data.actionbarHidden" text{($.data.actionbarHidden!==false)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  68. <input class="editTableRadio" name="data.actionbarHidden" text{($.data.actionbarHidden===false)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="editTableTitle">{{$.lp.pagingbarHidden}}:</td>
  73. <td class="editTableValue">
  74. <input class="editTableRadio" name="data.pagingbarHidden" text{($.data.pagingbarHidden===true)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  75. <input class="editTableRadio" name="data.pagingbarHidden" text{($.data.pagingbarHidden!==true)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  76. </td>
  77. </tr>
  78. <tr>
  79. <td class="editTableTitle">{{$.lp.searchbarHidden}}:</td>
  80. <td class="editTableValue">
  81. <input class="editTableRadio" name="data.searchbarHidden" text{($.data.searchbarHidden===true)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  82. <input class="editTableRadio" name="data.searchbarHidden" text{($.data.searchbarHidden!==true)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  83. </td>
  84. </tr>
  85. <tr>
  86. <td class="editTableTitle">{{$.lp.select}}:</td>
  87. <td class="editTableValue">
  88. <input class="editTableRadio" name="data.select" text{($.data.select!=='single' || $.data.select!=='multi' )?'checked':''} type="radio" value="none" onclick="
  89. if (this.checked){
  90. $('text{$.id}selectBoxShowTr').setStyle('display', 'none');
  91. $('text{$.id}allowSelectAllTr').setStyle('display', 'none');
  92. $('text{$.id}selectedAbleScript').setStyle('display', 'none');
  93. }"/>{{$.lp.none}}
  94. <input class="editTableRadio" name="data.select" text{($.data.select==='single')?'checked':''} type="radio" value="single" onclick="
  95. if (this.checked){
  96. $('text{$.id}selectBoxShowTr').setStyle('display', 'table-row');
  97. $('text{$.id}allowSelectAllTr').setStyle('display', 'none');
  98. $('text{$.id}selectedAbleScript').setStyle('display', 'block');
  99. }"/>{{$.lp.radio}}
  100. <input class="editTableRadio" name="data.select" text{($.data.select==='multi')?'checked':''} type="radio" value="multi" onclick="
  101. if (this.checked){
  102. $('text{$.id}selectBoxShowTr').setStyle('display', 'table-row');
  103. $('text{$.id}allowSelectAllTr').setStyle('display', 'table-row');
  104. $('text{$.id}selectedAbleScript').setStyle('display', 'block');
  105. }"/>{{$.lp.checkbox}}
  106. </td>
  107. </tr>
  108. <tr id="text{$.id}selectBoxShowTr" style="display: text{($.data.select=='single' || $.data.select=='multi')?'':'none'}">
  109. <td class="editTableTitle">{{$.lp.selectBoxShow}}:</td>
  110. <td class="editTableValue">
  111. <input class="editTableRadio" name="data.selectBoxShow" text{($.data.selectBoxShow==='always')?'checked':''} type="radio" value="always"/>{{$.lp.always}}
  112. <input class="editTableRadio" name="data.selectBoxShow" text{($.data.selectBoxShow!=='always')?'checked':''} type="radio" value="mouseover"/>{{$.lp.mouseover}}
  113. </td>
  114. </tr>
  115. <tr id="text{$.id}allowSelectAllTr" style="display: text{($.data.select=='multi')?'':'none'}">
  116. <td class="editTableTitle" id="">{{$.lp.allowSelectAll}}:</td>
  117. <td class="editTableValue">
  118. <input class="editTableRadio" name="data.allowSelectAll" text{($.data.allowSelectAll===true)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  119. <input class="editTableRadio" name="data.allowSelectAll" text{($.data.allowSelectAll!==true)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  120. </td>
  121. </tr>
  122. <tr>
  123. <td class="editTableTitle">{{$.lp.firstTdHidden}}</td>
  124. <td class="editTableValue">
  125. <input class="editTableRadio" name="data.firstTdHidden" text{($.data.firstTdHidden===true)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  126. <input class="editTableRadio" name="data.firstTdHidden" text{($.data.firstTdHidden!==true)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="editTableTitle">{{$.lp.noDataText}}:</td>
  131. <td class="editTableValue">
  132. <input type="text" name="data.noDataText" value="text{$.data.noDataText}" class="editTableInput"/>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td class="editTableTitle">{{$.lp.cacheAccess}}:</td>
  137. <td class="editTableValue">
  138. <input class="editTableRadio" name="cacheAccess" text{($.cacheAccess===true)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  139. <input class="editTableRadio" name="cacheAccess" text{($.cacheAccess!==true)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  140. <div style="color:#999;">{{$.lp.cacheAccessNotice}}</div>
  141. </td>
  142. </tr>
  143. <!--<tr>-->
  144. <!--<td class="editTableTitle">最大行数:</td>-->
  145. <!--<td class="editTableValue"><input type="text" name="max" value="text{$.max}" class="editTableInput"/></td>-->
  146. <!--</tr>-->
  147. </table>
  148. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999; font-weight: bold">{{$.lp.executable}}</div>
  149. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable" id="processEditStarter">
  150. <tr>
  151. <td class="editTableTitle">{{$.lp.availableIdentityList}}:</td>
  152. <td class="editTableValue">
  153. <div class="MWFPersonIdentity" name="availableIdentityList"></div>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td class="editTableTitle">{{$.lp.availableUnitList}}:</td>
  158. <td class="editTableValue">
  159. <div class="MWFPersonUnit" name="availableUnitList"></div>
  160. </td>
  161. </tr>
  162. <!--<tr>-->
  163. <!--<td class="editTableTitle">执行部门:</td>-->
  164. <!--<td class="editTableValue">-->
  165. <!--<div class="MWFSelectDepartment" name="availableDepartmentList"></div>-->
  166. <!--</td>-->
  167. <!--</tr>-->
  168. <!--<tr>-->
  169. <!--<td class="editTableTitle">执行公司:</td>-->
  170. <!--<td class="editTableValue">-->
  171. <!--<div class="MWFSelectCompany" name="availableCompanyList"></div>-->
  172. <!--</td>-->
  173. <!--</tr>-->
  174. </table>
  175. <div class="MWFFormulaArea" name="data.defaultSelectedScript" title="{{$.lp.defaultSelectedScript}}"></div>
  176. <div class="MWFFormulaArea" name="data.selectedAbleScript" title="{{$.lp.selectedAbleScript}}" id="text{$.id}selectedAbleScript"
  177. style="display: text{($.data.select=='single' || $.data.select=='multi')?'':'none'}"></div>
  178. <!--<div class="MWFApplicationSelect" title="选择应用"></div>-->
  179. <!--<div class="MWFProcessSelect" title="选择流程"></div>-->
  180. <!--<div class="MWFCompanySelect" title="选择公司"></div>-->
  181. <!--<div class="MWFDepartmentSelect" title="选择部门"></div>-->
  182. <!--<div class="MWFPersonSelect" title="选择人员"></div>-->
  183. <!--<div class="MWFIdentitySelect" title="选择身份"></div>-->
  184. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  185. <tr>
  186. <td class="editTableTitle">{{$.lp.language}}:</td>
  187. <td class="editTableValue">
  188. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}languageScriptArea').setStyle('display', 'none');}" name="data.languageType" text{($.data.languageType!=='default' && $.data.languageType!=='script')?'checked':''} type="radio" value="none"/>{{$.lp.none}}
  189. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}languageScriptArea').setStyle('display', 'block'); }" name="data.languageType" text{($.data.languageType==='script')?'checked':''} type="radio" value="script"/>{{$.lp.byScript}}
  190. </td>
  191. </tr>
  192. </table>
  193. <div id="text{$.pid}languageScriptArea" style="display: text{($.data.languageType=='script')?'block':'none'}">
  194. <div class="MWFScriptArea" name="data.languageScript" title="{{$.lp.languageScript}}"></div>
  195. <div style="padding: 5px;">{{$.lp.languageInfo}}</div>
  196. </div>
  197. <div style="background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold">{{$.lp.export}}</div>
  198. <div class="MWFFormulaArea" name="data.exportHeadText" title="{{$.lp.headText}}"></div>
  199. <div class="MWFFormulaArea" name="data.exportHeadStyle" title="{{$.lp.headStyle}}"></div>
  200. <div class="MWFFormulaArea" name="data.exportColumnTitleStyle" title="{{$.lp.columnTitleStyle}}"></div>
  201. <div class="MWFFormulaArea" name="data.exportColumnContentStyle" title="{{$.lp.columnContentStyle}}"></div>
  202. <div style="white-space: pre">
  203. exceljs style sample:
  204. return {
  205. font: { name: '宋体', family: 4, size: 10, bold: false },
  206. border: { top: {style:'thin'}, left: {style:'thin'}, bottom: {style:'thin'}, right: {style:'thin'} },
  207. fill: { type: 'pattern', pattern:'solid', fgColor:{argb:'FFFFFF'} },
  208. alignment : { vertical: 'middle', horizontal: 'center' } //wrapText: true
  209. }
  210. <a style="text-underline: #0a84ff;" target="_blank" href="https://github.com/exceljs/exceljs/blob/HEAD/README_zh.md#%E6%A0%B7%E5%BC%8F">
  211. see more
  212. </a></div>
  213. </div>
  214. <div title="{{$.lp.range}}" class="MWFTab">
  215. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999; font-weight: bold">{{$.lp.timeRange}}</div>
  216. <div style="height:auto; line-height: 24px; padding:5px;border-bottom: 1px dashed rgb(204, 204, 204);">{{$.lp.timeRangeNotice}}</div>
  217. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  218. <tr><td class="editTableTitle">{{$.lp.rangeType}}:</td><td class="editTableValue">
  219. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  220. onclick="if (this.checked){
  221. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'none');
  222. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'none');
  223. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'none');
  224. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'none');
  225. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'none');
  226. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'none');
  227. $('text{$.id}dateRangeType_adjust').setStyle('display', 'none');
  228. }"
  229. type="radio" text{(['year','season','month','week','date','season'].indexOf($.data.where.dateRange.dateRangeType)==-1)?'checked':''} value="none"/>{{$.lp.all}}
  230. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  231. onclick="if (this.checked){
  232. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'block');
  233. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'none');
  234. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'none');
  235. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'none');
  236. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'none');
  237. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'none');
  238. $('text{$.id}dateRangeType_adjust').setStyle('display', 'none');
  239. }"
  240. type="radio" text{($.data.where.dateRange.dateRangeType=='range')?'checked':''} value="range"/>{{$.lp.range}}<br/>
  241. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  242. onclick="if (this.checked){
  243. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'block');
  244. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'none');
  245. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'none');
  246. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'none');
  247. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'none');
  248. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'none');
  249. $('text{$.id}dateRangeType_adjust').setStyle('display', '');
  250. }"
  251. type="radio" text{($.data.where.dateRange.dateRangeType=='year')?'checked':''} value="year"/>{{$.lp.year}}
  252. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  253. onclick="if (this.checked){
  254. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'block');
  255. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'none');
  256. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'none');
  257. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'none');
  258. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'block');
  259. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'none');
  260. $('text{$.id}dateRangeType_adjust').setStyle('display', '');
  261. }"
  262. type="radio" text{($.data.where.dateRange.dateRangeType=='season')?'checked':''} value="season"/>{{$.lp.season}}
  263. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  264. onclick="if (this.checked){
  265. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'block');
  266. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'none');
  267. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'none');
  268. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'block');
  269. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'none');
  270. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'none');
  271. $('text{$.id}dateRangeType_adjust').setStyle('display', '');
  272. }"
  273. type="radio" text{($.data.where.dateRange.dateRangeType=='month')?'checked':''} value="month"/>{{$.lp.monthly}}
  274. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  275. onclick="if (this.checked){
  276. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'block');
  277. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'none');
  278. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'block');
  279. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'none');
  280. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'none');
  281. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'none');
  282. $('text{$.id}dateRangeType_adjust').setStyle('display', '');
  283. }"
  284. type="radio" text{($.data.where.dateRange.dateRangeType=='week')?'checked':''} value="week"/>{{$.lp.week}}
  285. <input class="editTableRadio" name="text{$.id}*data.where.dateRange.dateRangeType"
  286. onclick="if (this.checked){
  287. $('text{$.id}dateRangeType_YearArea').setStyle('display', 'block');
  288. $('text{$.id}dateRangeType_DateArea').setStyle('display', 'block');
  289. $('text{$.id}dateRangeType_WeekArea').setStyle('display', 'none');
  290. $('text{$.id}dateRangeType_MonthArea').setStyle('display', 'block');
  291. $('text{$.id}dateRangeType_SeasonArea').setStyle('display', 'none');
  292. $('text{$.id}dateRangeType_RangeArea').setStyle('display', 'none');
  293. $('text{$.id}dateRangeType_adjust').setStyle('display', '');
  294. }"
  295. type="radio" text{($.data.where.dateRange.dateRangeType=='date')?'checked':''} value="date"/>{{$.lp.date}}
  296. </td></tr>
  297. </table>
  298. <div id="text{$.id}dateRangeType_RangeArea" style="display: text{($.data.where.dateRange.dateRangeType=='range')?'block':'none'}">
  299. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  300. <tr>
  301. <td class="editTableTitle">{{$.lp.beginDate}}:</td>
  302. <td class="editTableValue"><input readonly type="text" name="data.where.dateRange.start" value="text{$.data.where.dateRange.start}" class="editTableInputDate"/></td>
  303. </tr>
  304. <tr>
  305. <td class="editTableTitle">{{$.lp.endDate}}:</td>
  306. <td class="editTableValue"><input readonly type="text" name="data.where.dateRange.completed" value="text{$.data.where.dateRange.completed}" class="editTableInputDate"/></td>
  307. </tr>
  308. </table>
  309. </div>
  310. <div id="text{$.id}dateRangeType_YearArea" style="display: text{(['year','season','month','week','date'].indexOf($.data.where.dateRange.dateRangeType)!=-1)?'block':'none'}">
  311. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  312. <tr>
  313. <td class="editTableTitle">{{$.lp.year}}:</td>
  314. <td class="editTableValue"><select name="data.where.dateRange.year">
  315. <option value="">{{$.lp.currentYear}}</option>
  316. fun{var y=(new Date()).getFullYear(); var html = ""; for (var i=0; i<10; i++)html+="<option "+( $.data.where.dateRange.year==(y-i).toString() ? "selected" : "" )+" value='"+(y-i)+"'>"+(y-i)+"</option>"; return html;}
  317. </select></td>
  318. </tr>
  319. </table>
  320. </div>
  321. <div id="text{$.id}dateRangeType_SeasonArea" style="display: text{($.data.where.dateRange.dateRangeType=='season')?'block':'none'}">
  322. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  323. <tr>
  324. <td class="editTableTitle">{{$.lp.season}}:</td>
  325. <td class="editTableValue">
  326. <select name="data.where.dateRange.season">
  327. <option value="" text{($.data.where.dateRange.season=='')?'selected':''}>{{$.lp.currentSeason}}</option>
  328. <option value="1" text{($.data.where.dateRange.season=='1')?'selected':''}>{{$.lp.firstSeason}}</option>
  329. <option value="2" text{($.data.where.dateRange.season=='2')?'selected':''}>{{$.lp.secondSeason}}</option>
  330. <option value="3" text{($.data.where.dateRange.season=='3')?'selected':''}>{{$.lp.thirdSeason}}</option>
  331. <option value="4" text{($.data.where.dateRange.season=='4')?'selected':''}>{{$.lp.fourthSeason}}</option>
  332. </select>
  333. </td>
  334. </tr>
  335. </table>
  336. </div>
  337. <div id="text{$.id}dateRangeType_MonthArea" style="display: text{(['month','date'].indexOf($.data.where.dateRange.dateRangeType)!=-1)?'block':'none'}">
  338. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  339. <tr>
  340. <td class="editTableTitle">{{$.lp.monthly}}:</td>
  341. <td class="editTableValue"><select name="data.where.dateRange.month">
  342. <option value="" text{($.data.where.dateRange.month=='')?'selected':''}>{{$.lp.currentMonth}}</option>
  343. <option value="01" text{($.data.where.dateRange.month=='01')?'selected':''}>1{{$.lp.monthNumber}}</option>
  344. <option value="02" text{($.data.where.dateRange.month=='02')?'selected':''}>2{{$.lp.monthNumber}}</option>
  345. <option value="03" text{($.data.where.dateRange.month=='03')?'selected':''}>3{{$.lp.monthNumber}}</option>
  346. <option value="04" text{($.data.where.dateRange.month=='04')?'selected':''}>4{{$.lp.monthNumber}}</option>
  347. <option value="05" text{($.data.where.dateRange.month=='05')?'selected':''}>5{{$.lp.monthNumber}}</option>
  348. <option value="06" text{($.data.where.dateRange.month=='06')?'selected':''}>6{{$.lp.monthNumber}}</option>
  349. <option value="07" text{($.data.where.dateRange.month=='07')?'selected':''}>7{{$.lp.monthNumber}}</option>
  350. <option value="08" text{($.data.where.dateRange.month=='08')?'selected':''}>8{{$.lp.monthNumber}}</option>
  351. <option value="09" text{($.data.where.dateRange.month=='09')?'selected':''}>9{{$.lp.monthNumber}}</option>
  352. <option value="10" text{($.data.where.dateRange.month=='10')?'selected':''}>10{{$.lp.monthNumber}}</option>
  353. <option value="11" text{($.data.where.dateRange.month=='11')?'selected':''}>11{{$.lp.monthNumber}}</option>
  354. <option value="12" text{($.data.where.dateRange.month=='12')?'selected':''}>12{{$.lp.monthNumber}}</option>
  355. </select></td>
  356. </tr>
  357. </table>
  358. </div>
  359. <div id="text{$.id}dateRangeType_WeekArea" style="display: text{($.data.where.dateRange.dateRangeType=='week')?'block':'none'}">
  360. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  361. <tr>
  362. <td class="editTableTitle">{{$.lp.week}}:</td>
  363. <td class="editTableValue"><select name="data.where.dateRange.week">
  364. <option value="">{{$.lp.currentWeek}}</option>
  365. fun{var html = ""; for (var i=1; i<56; i++)html+="<option "+ ( $.data.where.dateRange.week==i.toString() ? "selected" : "" ) +" value='"+i+"'>"+"{{$.lp.weekNumber}}".replace("(i)",i)+"</option>"; return html;}
  366. </select></td>
  367. </tr>
  368. </table>
  369. </div>
  370. <div id="text{$.id}dateRangeType_DateArea" style="display: text{($.data.where.dateRange.dateRangeType=='date')?'block':'none'}">
  371. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  372. <tr>
  373. <td class="editTableTitle">{{$.lp.date}}:</td>
  374. <td class="editTableValue"><select name="data.where.dateRange.date">
  375. <option value="">{{$.lp.today}}</option>
  376. fun{var html = ""; for (var i=1; i<32; i++)html+="<option "+( $.data.where.dateRange.date==(i<10 ? ("0"+i) : i).toString() ? "selected" : "" )+" value='"+(i<10 ? ("0"+i) : i)+"'>"+"{{$.lp.dateNumber}}".replace("(i)",i)+"</option>"; return html;}
  377. </select></td>
  378. </tr>
  379. </table>
  380. </div>
  381. <div id="text{$.id}dateRangeType_adjust" style="display: text{($.data.where.dateRange.dateRangeType=='none'||$.data.where.dateRange.dateRangeType=='range')?'none':''}">
  382. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  383. <tr>
  384. <td class="editTableTitle">{{$.lp.adjust}}:</td>
  385. <td class="editTableValue">
  386. <input type="text" name="data.where.dateRange.adjust" value="text{$.data.where.dateRange.adjust}" class="editTableInput"/>
  387. </td>
  388. </tr>
  389. </table>
  390. </div>
  391. <div style="height:24px; text-align: center; line-height: 24px; background-color: #EEE; border-top: 1px solid #999; font-weight: bold">{{$.lp.range}}</div>
  392. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  393. <tr>
  394. <td class="editTableValue" colspan="2" align="center">
  395. <input class="editTableRadio" onclick="
  396. if (this.checked){
  397. $('text{$.id}dateRangeType_process').setStyle('display', 'block');
  398. $('text{$.id}dateRangeType_cms').setStyle('display', 'none');
  399. $$('.text{$.id}dataPathSelectedProcessArea').setStyle('display', '');
  400. $$('.text{$.id}dataPathSelectedCMSArea').setStyle('display', 'none');
  401. }" name="text{$.id}*type" text{($.type!='cms')?'checked':''} type="radio" value="process"/>{{$.lp.processPlatform}}
  402. <input class="editTableRadio" onclick="
  403. if (this.checked){
  404. $('text{$.id}dateRangeType_process').setStyle('display', 'none');
  405. $('text{$.id}dateRangeType_cms').setStyle('display', 'block');
  406. $$('.text{$.id}dataPathSelectedProcessArea').setStyle('display', 'none');
  407. $$('.text{$.id}dataPathSelectedCMSArea').setStyle('display', '');
  408. }" name="text{$.id}*type" text{($.type=='cms')?'checked':''} type="radio" value="cms"/>{{$.lp.cmsPlatform}}
  409. </td>
  410. </tr>
  411. </table>
  412. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  413. <tr>
  414. <td class="editTableTitle">{{$.lp.authority}}:</td>
  415. <td class="editTableValue">
  416. <input class="editTableRadio" name="text{$.id}*data.where.accessible" text{($.data.where.accessible)?'checked':''} type="radio" value="true"/>{{$.lp.check}}
  417. <input class="editTableRadio" name="text{$.id}*data.where.accessible" text{(!$.data.where.accessible)?'checked':''} type="radio" value="false"/>{{$.lp.ignore}}
  418. </td>
  419. </tr>
  420. </table>
  421. <div id="text{$.id}dateRangeType_process" style="display: text{($.type!='cms')?'block':'none'}">
  422. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  423. <tr>
  424. <td class="editTableTitle">{{$.lp.processStatus}}:</td>
  425. <td class="editTableValue">
  426. <input class="editTableRadio" name="text{$.id}*data.where.scope" text{($.data.where.scope!='workCompleted' && $.data.where.scope!='all' && $.data.where.scope!='cms_info' && $.data.where.scope!='cms_data')?'checked':''} type="radio" value="work"/>{{$.lp.work}}
  427. <input class="editTableRadio" name="text{$.id}*data.where.scope" text{($.data.where.scope=='workCompleted')?'checked':''} type="radio" value="workCompleted"/>{{$.lp.workCompleted}}
  428. <input class="editTableRadio" name="text{$.id}*data.where.scope" text{($.data.where.scope=='all')?'checked':''} type="radio" value="all"/>{{$.lp.all}}
  429. </td>
  430. </tr>
  431. <tr>
  432. <td class="editTableValue" colspan="2">{{$.lp.selectApplicationNotice}}:</td>
  433. </tr>
  434. <tr>
  435. <td class="editTableTitle">{{$.lp.selectApplication}}:</td>
  436. <td class="editTableValue">
  437. <div class="MWFSelectApplication" name="data.where.applicationList"></div>
  438. </td>
  439. </tr>
  440. <tr>
  441. <td class="editTableTitle">{{$.lp.selectProcess}}:</td>
  442. <td class="editTableValue">
  443. <div class="MWFSelectProcess" name="data.where.processList"></div>
  444. </td>
  445. </tr>
  446. </table>
  447. </div>
  448. <div id="text{$.id}dateRangeType_cms" style="display: text{($.type=='cms')?'block':'none'}">
  449. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  450. <tr>
  451. <td class="editTableTitle">{{$.lp.dataType}}:</td>
  452. <td class="editTableValue">
  453. <input class="editTableRadio" name="text{$.id}*data.where.scope" text{($.data.where.scope!='cms_data' && $.data.where.scope!='all' && $.data.where.scope!='workCompleted' && $.data.where.scope!='work')?'checked':''} type="radio" value="cms_info"/>{{$.lp.dataTypeValue[0]}}
  454. <input class="editTableRadio" name="text{$.id}*data.where.scope" text{($.data.where.scope=='cms_data')?'checked':''} type="radio" value="cms_data"/>{{$.lp.dataTypeValue[1]}}
  455. <!-- <input class="editTableRadio" name="text{$.id}*data.where.scope" text{($.data.where.scope=='all')?'checked':''} type="radio" value="all"/>全部-->
  456. </td>
  457. </tr>
  458. <tr>
  459. <td class="editTableTitle">{{$.lp.showDraft}}:</td>
  460. <td class="editTableValue">
  461. <input class="editTableRadio" name="text{$.id}*data.where.draft" text{($.data.where.draft)?'checked':''} type="radio" value="true"/>{{$.lp.yes}}
  462. <input class="editTableRadio" name="text{$.id}*data.where.draft" text{(!$.data.where.draft)?'checked':''} type="radio" value="false"/>{{$.lp.no}}
  463. </td>
  464. </tr>
  465. <tr>
  466. <td class="editTableValue" colspan="2">{{$.lp.selectColumnNotice}}:</td>
  467. </tr>
  468. <tr>
  469. <td class="editTableTitle">{{$.lp.selectColumn}}:</td>
  470. <td class="editTableValue">
  471. <div class="MWFSelectCMSApplication" name="data.where.appInfoList"></div>
  472. </td>
  473. </tr>
  474. <tr>
  475. <td class="editTableTitle">{{$.lp.selectCategory}}:</td>
  476. <td class="editTableValue">
  477. <div class="MWFSelecCMStCategory" name="data.where.categoryInfoList"></div>
  478. </td>
  479. </tr>
  480. </table>
  481. </div>
  482. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  483. <tr>
  484. <td class="editTableValue" colspan="2">{{$.lp.selectOrgNotice}}:</td>
  485. </tr>
  486. <tr>
  487. <td class="editTableTitle">{{$.lp.selectUnit}}:</td>
  488. <td class="editTableValue">
  489. <div class="MWFSelectUnit" name="data.where.creatorUnitList"></div>
  490. </td>
  491. </tr>
  492. <tr>
  493. <td class="editTableTitle">{{$.lp.selectPerson}}:</td>
  494. <td class="editTableValue">
  495. <div class="MWFSelectPerson" name="data.where.creatorPersonList"></div>
  496. </td>
  497. </tr>
  498. <tr>
  499. <td class="editTableTitle">{{$.lp.selectIdentity}}:</td>
  500. <td class="editTableValue">
  501. <div class="MWFSelectIdentity" name="data.where.creatorIdentityList"></div>
  502. </td>
  503. </tr>
  504. </table>
  505. </div>
  506. <div title="{{$.lp.filter}}" class="MWFTab">
  507. <div class="MWFViewFilter">
  508. <div class="inputAreaNode_vf">
  509. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable restrictViewFilterTable_vf">
  510. <tr>
  511. <td class="editTableTitle">{{$.lp.title}}:</td>
  512. <td class="editTableValue"><input type="text" class="editTableInput titleInput_vf"/></td>
  513. </tr>
  514. <tr>
  515. <td class="editTableTitle">{{$.lp.path}}:</td>
  516. <td class="editTableValue"><input type="text" class="editTableInput pathInput_vf"/></td>
  517. </tr>
  518. <tr>
  519. <td class="editTableTitle">{{$.lp.dataType}}:</td>
  520. <td class="editTableValue"><select class="datatypeInput_vf"
  521. onchange="if (this.selectedIndex==2){
  522. $('text{$.id}viewFilterDateFormulaSelector').setStyle('display', 'block');
  523. // $('text{$.id}viewFilterDateFormulaSelector2').setStyle('display', 'block');
  524. $('text{$.id}viewFilterDateOnlyFormulaSelector').setStyle('display', 'none');
  525. // $('text{$.id}viewFilterDateOnlyFormulaSelector2').setStyle('display', 'none');
  526. $('text{$.id}viewFilterTimeOnlyFormulaSelector').setStyle('display', 'none');
  527. // $('text{$.id}viewFilterTimeOnlyFormulaSelector2').setStyle('display', 'none');
  528. }else if (this.selectedIndex==3){
  529. $('text{$.id}viewFilterDateFormulaSelector').setStyle('display', 'none');
  530. // $('text{$.id}viewFilterDateFormulaSelector2').setStyle('display', 'none');
  531. $('text{$.id}viewFilterDateOnlyFormulaSelector').setStyle('display', 'block');
  532. // $('text{$.id}viewFilterDateOnlyFormulaSelector2').setStyle('display', 'block');
  533. $('text{$.id}viewFilterTimeOnlyFormulaSelector').setStyle('display', 'none');
  534. // $('text{$.id}viewFilterTimeOnlyFormulaSelector2').setStyle('display', 'none');
  535. }else if (this.selectedIndex==4){
  536. $('text{$.id}viewFilterDateFormulaSelector').setStyle('display', 'none');
  537. // $('text{$.id}viewFilterDateFormulaSelector2').setStyle('display', 'none');
  538. $('text{$.id}viewFilterDateOnlyFormulaSelector').setStyle('display', 'none');
  539. // $('text{$.id}viewFilterDateOnlyFormulaSelector2').setStyle('display', 'none');
  540. $('text{$.id}viewFilterTimeOnlyFormulaSelector').setStyle('display', 'block');
  541. // $('text{$.id}viewFilterTimeOnlyFormulaSelector2').setStyle('display', 'block');
  542. }else{
  543. $('text{$.id}viewFilterDateFormulaSelector').setStyle('display', 'none');
  544. // $('text{$.id}viewFilterDateFormulaSelector2').setStyle('display', 'none');
  545. $('text{$.id}viewFilterDateOnlyFormulaSelector').setStyle('display', 'none');
  546. // $('text{$.id}viewFilterDateOnlyFormulaSelector2').setStyle('display', 'none');
  547. $('text{$.id}viewFilterTimeOnlyFormulaSelector').setStyle('display', 'none');
  548. // $('text{$.id}viewFilterTimeOnlyFormulaSelector2').setStyle('display', 'none');
  549. }
  550. if (this.selectedIndex==0){
  551. $('text{$.id}viewFilterTextFormulaSelector').setStyle('display', 'block');
  552. // $('text{$.id}viewFilterTextFormulaSelector2').setStyle('display', 'block')
  553. }else{
  554. $('text{$.id}viewFilterTextFormulaSelector').setStyle('display', 'none');
  555. // $('text{$.id}viewFilterTextFormulaSelector2').setStyle('display', 'none')
  556. }">
  557. <option value="textValue" selected>{{$.lp.textValue}}</option>
  558. <option value="numberValue">{{$.lp.numberValue}}</option>
  559. <option value="dateTimeValue">{{$.lp.dateTimeValue}}</option>
  560. <option value="dateValue">{{$.lp.dateValue}}</option>
  561. <option value="timeValue">{{$.lp.timeValue}}</option>
  562. <option value="booleanValue">{{$.lp.booleanValue}}</option>
  563. </select></td>
  564. </tr>
  565. <tr>
  566. <td class="editTableTitle"></td>
  567. <td class="editTableValue">
  568. <input type="radio" class="restrictFilterInput_vf" value="restrict" name="text{$.id}viewFilterType" onclick="if (this.checked){
  569. $('text{$.id}viewFilterRestrict').setStyle('display', 'block');
  570. $('text{$.id}viewCustomFilterRestrict').setStyle('display', 'none');
  571. }"/>{{$.lp.filterRestrict}}<br>
  572. <input type="radio" class="customFilterInput_vf" value="custom" name="text{$.id}viewFilterType" onclick="if (this.checked){
  573. $('text{$.id}viewFilterRestrict').setStyle('display', 'none');
  574. $('text{$.id}viewCustomFilterRestrict').setStyle('display', 'block');
  575. }" checked/>{{$.lp.customFilterRestrict}}
  576. </td>
  577. </tr>
  578. </table>
  579. <div id="text{$.id}viewFilterRestrict" style="display: none">
  580. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  581. <tr>
  582. <td class="editTableTitle">{{$.lp.logic}}:</td>
  583. <td class="editTableValue"><select class="logicInput_vf">
  584. <option selected value="and">{{$.lp.and}}(and)</option>
  585. <option value="or">{{$.lp.or}}(or)</option>
  586. </select></td>
  587. </tr>
  588. <tr>
  589. <td class="editTableTitle">{{$.lp.comparison}}:</td>
  590. <td class="editTableValue"><select class="comparisonInput_vf" onchange="
  591. // if (this.selectedIndex==8){
  592. // $('text{$.id}viewFilterValue2Area').setStyle('display', 'block');
  593. // $('text{$.id}viewFilterValueTitleArea').set('text', '从');
  594. // }else{
  595. // $('text{$.id}viewFilterValue2Area').setStyle('display', 'none');
  596. // $('text{$.id}viewFilterValueTitleArea').set('text', '值');
  597. // }"
  598. >
  599. <option value="equals" selected>{{$.lp.equals}}(==)</option>
  600. <option value="notEquals">{{$.lp.notEquals}}(!=)</option>
  601. <option value="greaterThan">{{$.lp.greaterThan}}(>)</option>
  602. <option value="greaterThanOrEqualTo">{{$.lp.greaterThanOrEqualTo}}(>=)</option>
  603. <option value="lessThan">{{$.lp.lessThan}}(<)</option>
  604. <option value="lessThanOrEqualTo">{{$.lp.lessThanOrEqualTo}}(<=)</option>
  605. <option value="like">{{$.lp.like}}(like)</option>
  606. <option value="notLike">{{$.lp.notLike}}(not-like)</option>
  607. <option value="range">{{$.lp.inRange}}(range)</option>
  608. <option value="in">{{$.lp.in}}(in)</option>
  609. </select></td>
  610. </tr>
  611. <tr>
  612. <td class="editTableTitle" id="text{$.id}viewFilterValueTitleArea">{{$.lp.value}}:</td>
  613. <td class="editTableValue" id="text{$.id}viewFilterValueArea">
  614. <input type="text" class="editTableInput valueTextInput_vf" style="display: block" onkeypress="$('text{$.id}viewFilterTextFormulaSelector').getElements('input').set('checked', false)"/>
  615. <input type="number" class="editTableInput valueNumberInput_vf" style="display: none"/>
  616. <input type="text" class="editTableInput valueDatetimeInput_vf" style="display: none" readonly/>
  617. <input type="text" class="editTableInput valueDateInput_vf" style="display: none" readonly/>
  618. <input type="text" class="editTableInput valueTimeInput_vf" style="display: none" readonly/>
  619. <select class="valueBooleanInput_vf" style="display: none">
  620. <option value="true" selected>{{$.lp.yes}}(True)</option>
  621. <option value="false">{{$.lp.no}}(False)</option>
  622. </select>
  623. <div class="multiValueNotice_vf" style="display: none;color: #999;line-height: 24px;">{{$.lp.multiValueNotice}}</div>
  624. </td>
  625. </tr>
  626. </table>
  627. <div style="display: none" id="text{$.id}viewFilterDateFormulaSelector">
  628. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  629. <tr>
  630. <td class="editTableTitle"></td>
  631. <td class="editTableValue">
  632. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDatetimeInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@year" />{{$.lp.currentYear}}
  633. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDatetimeInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@season" />{{$.lp.currentSeason}}
  634. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDatetimeInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@month" />{{$.lp.currentMonth}}<br/>
  635. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDatetimeInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@time" />{{$.lp.now}}
  636. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDatetimeInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@date" />{{$.lp.today}}
  637. </td>
  638. </tr>
  639. </table>
  640. </div>
  641. <div style="display: none" id="text{$.id}viewFilterDateOnlyFormulaSelector">
  642. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  643. <tr>
  644. <td class="editTableTitle"></td>
  645. <td class="editTableValue">
  646. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDateInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@year" />{{$.lp.currentYear}}
  647. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDateInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@season" />{{$.lp.currentSeason}}
  648. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDateInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@month" />{{$.lp.currentMonth}}<br/>
  649. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueDateInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@date" />{{$.lp.today}}
  650. </td>
  651. </tr>
  652. </table>
  653. </div>
  654. <div style="display: none" id="text{$.id}viewFilterTimeOnlyFormulaSelector">
  655. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  656. <tr>
  657. <td class="editTableTitle"></td>
  658. <td class="editTableValue">
  659. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueTimeInput_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@time" />{{$.lp.now}}
  660. </td>
  661. </tr>
  662. </table>
  663. </div>
  664. <div style="display: block" id="text{$.id}viewFilterTextFormulaSelector">
  665. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  666. <tr>
  667. <td class="editTableTitle"></td>
  668. <td class="editTableValue">
  669. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueTextInput_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula" onclick="" type="radio" value="@person" />{{$.lp.currentPerson}}
  670. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueTextInput_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula" type="radio" value="@identityList" />{{$.lp.currentIdentity}}<br/>
  671. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueTextInput_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula" type="radio" value="@unitList" />{{$.lp.currentPersonDirectUnit}}<br/>
  672. <input onclick="$('text{$.id}viewFilterValueArea').getElement('.valueTextInput_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula" type="radio" value="@unitAllList" />{{$.lp.currentPersonAllUnit}}
  673. </td>
  674. </tr>
  675. </table>
  676. </div>
  677. <div id="text{$.id}viewFilterValue2Area" style="display: none">
  678. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  679. <tr>
  680. <td class="editTableTitle">{{$.lp.to}}:</td>
  681. <td class="editTableValue" id="text{$.id}viewFilterValueArea2">
  682. <input type="text" class="editTableInput valueTextInput2_vf" style="display: block">
  683. <!-- onkeypress="$('text{$.id}viewFilterTextFormulaSelector2').getElements('input').set('checked', false)"/>-->
  684. <input type="number" class="editTableInput valueNumberInput2_vf" style="display: none"/>
  685. <input type="text" class="editTableInput valueDatetimeInput2_vf" style="display: none" readonly/>
  686. <input type="text" class="editTableInput valueDateInput2_vf" style="display: none" readonly/>
  687. <input type="text" class="editTableInput valueTimeInput2_vf" style="display: none" readonly/>
  688. <select class="valueBooleanInput2_vf" style="display: none">
  689. <option value="true" selected>{{$.lp.yes}}(True)</option>
  690. <option value="false">{{$.lp.no}}(False)</option>
  691. </select>
  692. </td>
  693. </tr>
  694. </table>
  695. <!-- rang的时候,所有@xxx都是无效的
  696. <div style="display: none" id="text{$.id}viewFilterDateFormulaSelector2">-->
  697. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  698. <!-- <tr>-->
  699. <!-- <td class="editTableTitle"></td>-->
  700. <!-- <td class="editTableValue">-->
  701. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDatetimeInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula2" type="radio" value="@year" />当前年度-->
  702. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDatetimeInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula2" type="radio" value="@season" />当前季度-->
  703. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDatetimeInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula2" type="radio" value="@month" />当前月份<br/>-->
  704. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDatetimeInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula2" type="radio" value="@time" />当前时间-->
  705. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDatetimeInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula2" type="radio" value="@date" />当天-->
  706. <!-- </td>-->
  707. <!-- </tr>-->
  708. <!-- </table>-->
  709. <!-- </div>-->
  710. <!-- <div style="display: none" id="text{$.id}viewFilterDateOnlyFormulaSelector2">-->
  711. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  712. <!-- <tr>-->
  713. <!-- <td class="editTableTitle"></td>-->
  714. <!-- <td class="editTableValue">-->
  715. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDateInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@year" />当前年度-->
  716. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDateInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@season" />当前季度-->
  717. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDateInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@month" />当前月份<br/>-->
  718. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueDateInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@date" />当天-->
  719. <!-- </td>-->
  720. <!-- </tr>-->
  721. <!-- </table>-->
  722. <!-- </div>-->
  723. <!-- <div style="display: none" id="text{$.id}viewFilterTimeOnlyFormulaSelector2">-->
  724. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  725. <!-- <tr>-->
  726. <!-- <td class="editTableTitle"></td>-->
  727. <!-- <td class="editTableValue">-->
  728. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueTimeInput2_vf').set('value', this.value)" name="text{$.id}viewFilterDateFormula" type="radio" value="@time" />当前时间-->
  729. <!-- </td>-->
  730. <!-- </tr>-->
  731. <!-- </table>-->
  732. <!-- </div>-->
  733. <!-- <div style="display: block" id="text{$.id}viewFilterTextFormulaSelector2">-->
  734. <!-- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  735. <!-- <tr>-->
  736. <!-- <td class="editTableTitle"></td>-->
  737. <!-- <td class="editTableValue">-->
  738. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueTextInput2_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula2" onclick="" type="radio" value="@person" />当前人-->
  739. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueTextInput2_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula2" type="radio" value="@identityList" />当前身份<br/>-->
  740. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueTextInput2_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula2" type="radio" value="@unitList" />当前人所在直接组织<br/>-->
  741. <!-- <input onclick="$('text{$.id}viewFilterValueArea2').getElement('.valueTextInput2_vf').set('value', this.value)" name="text{$.id}viewFilterTextFormula2" type="radio" value="@unitAllList" />当前人所在所有组织-->
  742. <!-- </td>-->
  743. <!-- </tr>-->
  744. <!-- </table>-->
  745. <!-- </div>-->
  746. </div>
  747. </div>
  748. <div id="text{$.id}viewCustomFilterRestrict" style="display: block">
  749. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  750. <tr>
  751. <td class="editTableTitle">{{$.lp.value}}:</td>
  752. <td class="editTableValue">
  753. <input class="editTableRadio" onclick="
  754. if (this.checked){
  755. $('text{$.id}viewCustomFilterValueScriptDiv').setStyle('display', 'none');
  756. }" name="viewCustomFilterValueType" checked type="radio" value="input"/>{{$.lp.input}}
  757. <input class="editTableRadio" onclick="
  758. if (this.checked){
  759. $('text{$.id}viewCustomFilterValueScriptDiv').setStyle('display', 'block');
  760. }" name="viewCustomFilterValueType" type="radio" value="script"/>{{$.lp.selectable}}
  761. </td>
  762. </tr>
  763. </table>
  764. <div style="display:none" id="text{$.id}viewCustomFilterValueScriptDiv">
  765. <div style="padding: 5px">{{$.lp.selectOptionScriptNotice}}</div>
  766. <div name="text{$.id}viewCustomFilterValueScript" title="{{$.lp.selectOptionScript}}"></div>
  767. </div>
  768. </div>
  769. </div>
  770. <div class="actionAreaNode_vf"></div>
  771. <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">{{$.lp.defaultFilterCondition}}</div>
  772. <div class="listAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
  773. <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">{{$.lp.customFilterCondition}}</div>
  774. <div class="fieldListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
  775. </div>
  776. </div>
  777. <!-- <div title="样式" class="MWFTab">-->
  778. <!-- <div class="MWFMaplist" name="tableStyles" collapse="true" title="表格样式"></div>-->
  779. <!-- <div class="MWFMaplist" name="titleTdStyles" collapse="true" title="标题单元格样式"></div>-->
  780. <!-- <div class="MWFMaplist" name="contentTdStyles" collapse="true" title="内容单元格样式"></div>-->
  781. <!-- <div class="MWFMaplist" name="contentTdOverStyles" collapse="true" title="内容单元格鼠标over事件样式"></div>-->
  782. <!-- <div class="MWFMaplist" name="contentTdSelectedStyles" collapse="true" title="内容单元格选中样式"></div>-->
  783. <!-- </div>-->
  784. <div title="{{$.lp.style}}" class="MWFTab">
  785. <div class="MWFViewStylesArea" name="data.viewStyles"></div>
  786. </div>
  787. <div title="{{$.lp.event}}" class="MWFTab">
  788. <div class="MWFEventsArea" name="data.events"></div>
  789. </div>
  790. <div title="JSON" class="MWFTab">
  791. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  792. </div>
  793. </div>