statement.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. </table>
  17. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  18. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  19. <div class="MWFMaplist" name="titleStyles" title="{{$.lp.titleStyle}}"></div>
  20. <div class="MWFMaplist" name="itemStyles" title="{{$.lp.dataStyle}}"></div>
  21. </div>
  22. <div title="{{$.lp.query}}" class="MWFTab">
  23. <div>
  24. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  25. <tr>
  26. <td class="editTableTitle">{{$.lp.query}}:</td>
  27. <td class="editTableValue"><div class="MWFQueryStatementSelect" name="queryStatement"></div></td>
  28. </tr>
  29. </table>
  30. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  31. <tr>
  32. <td class="editTableTitle">{{$.lp.loadNow}}:</td>
  33. <td class="editTableValue">
  34. <input type="radio" name="loadView" value="yes" text{($.loadView!='no')?'checked':''}/>{{$.lp.yes}}
  35. <input type="radio" name="loadView" value="no" text{($.loadView=='no')?'checked':''}/>{{$.lp.no}}
  36. </td>
  37. </tr>
  38. </table>
  39. </div>
  40. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  41. <!--<tr>-->
  42. <!--<td class="editTableTitle">视图:</td>-->
  43. <!--<td class="editTableValue">-->
  44. <!--<div class="MWFViewSelect" name="view"></div>-->
  45. <!--</td>-->
  46. <!--</tr>-->
  47. <tr>
  48. <td class="editTableTitle">{{$.lp.showTitle}}</td>
  49. <td class="editTableValue">
  50. <input class="editTableRadio" name="isTitle" text{($.isTitle!='no')?'checked':''} type="radio" value="yes"/>{{$.lp.show}}
  51. <input class="editTableRadio" name="isTitle" text{($.isTitle=='no')?'checked':''} type="radio" value="no"/>{{$.lp.hide}}
  52. </td>
  53. </tr>
  54. <tr>
  55. <td class="editTableTitle">{{$.lp.allowSelect}}</td>
  56. <td class="editTableValue">
  57. <select name="select" onchange="$('text{$.pid}selectedAbleScript').setStyle('display', this.options[this.selectedIndex].value === 'no' ? 'none' : 'block');">
  58. <option text{($.select!='single' && $.select!='multi')?'selected':''} value="no">{{$.lp.notAllow}}</option>
  59. <option text{($.select=='single')?'selected':''} value="single">{{$.lp.singleChoice}}</option>
  60. <option text{($.select=='multi')?'selected':''} value="multi">{{$.lp.multipleChoice}}</option>
  61. </select>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="editTableTitle">{{$.lp.actionBar}}</td>
  66. <td class="editTableValue">
  67. <input class="editTableRadio" name="actionbar" text{($.actionbar=='show')?'checked':''} type="radio" value="show"/>{{$.lp.show}}
  68. <input class="editTableRadio" name="actionbar" text{($.actionbar!='show')?'checked':''} type="radio" value="hidden"/>{{$.lp.hide}}
  69. </td>
  70. </tr>
  71. </table>
  72. <div style="background-color: #eeeeee; border-top:1px solid #999999; height: 24px; line-height: 24px; text-align: center; cursor:pointer">{{$.lp.filter}}</div>
  73. <div class="MWFStatementFilter">
  74. <div class="inputAreaNode_vf">
  75. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable restrictViewFilterTable_vf" style="table-layout: fixed;">
  76. <tr class="parameterInputTr" style="display: none">
  77. <td class="editTableTitle">{{$.lp.parameter}}:</td>
  78. <td class="editTableValue">
  79. <input type="text" class="editTableInput parameterInput_vf"/>
  80. <div style="line-height: 20px;color:#999;">{{$.lp.parameterNote}}</div>
  81. </td>
  82. </tr>
  83. <tr class="filterListInputTr" id="text{$.id}pathInputSelectTr">
  84. <td class="editTableTitle">{{$.lp.select}}:</td>
  85. <td class="editTableValue">
  86. <select class="pathInputSelect_vf"></select>
  87. <!-- <div style="line-height: 20px;color:#999;">注:选择路径后,需在选择的值前面加上"表别名.",如:o.</div>-->
  88. </td>
  89. </tr>
  90. <tr class="filterListInputTr" >
  91. <td class="editTableTitle">{{$.lp.path}}:</td>
  92. <td class="editTableValue">
  93. <input type="text" class="editTableInput pathInput_vf"/>
  94. <div style="color: #999" class="pathNote_vf">{{$.lp.pathInfo}}</div>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td class="editTableTitle">{{$.lp.dataType}}:</td>
  99. <td class="editTableValue"><select class="datatypeInput_vf">
  100. <option value="textValue" selected>{{$.lp.text}}</option>
  101. <option value="numberValue">{{$.lp.number}}</option>
  102. <option value="dateValue">{{$.lp.date}}</option>
  103. <option value="dateTimeValue">{{$.lp.dateTime2}}</option>
  104. <option value="booleanValue">{{$.lp.boolean}}</option>
  105. </select></td>
  106. </tr>
  107. <tr class="filterListInputTr">
  108. <td class="editTableTitle">{{$.lp.compare}}:</td>
  109. <td class="editTableValue"><select class="comparisonInput_vf">
  110. <option value="equals" selected>{{$.lp.equals}}(==)</option>
  111. <option value="notEquals">{{$.lp.notEquals}}(!=)</option>
  112. <option value="greaterThan">{{$.lp.greaterThan}}(>)</option>
  113. <option value="greaterThanOrEqualTo">{{$.lp.greaterThanOrEqualTo}}(>=)</option>
  114. <option value="lessThan">{{$.lp.lessThan}}(<)</option>
  115. <option value="lessThanOrEqualTo">{{$.lp.lessThanOrEqualTo}}(<=)</option>
  116. <option value="like">{{$.lp.like}}(like)</option>
  117. <option value="notLike">{{$.lp.notLike}}(not-like)</option>
  118. <option value="range">{{$.lp.range}}(range)</option>
  119. </select></td>
  120. </tr>
  121. <tr style="display:none">
  122. <td class="editTableTitle">{{$.lp.subject}}:</td>
  123. <td class="editTableValue"><input type="text" class="editTableInput titleInput_vf"/></td>
  124. </tr>
  125. <tr style="display:none;">
  126. <td class="editTableTitle">{{$.lp.logic}}:</td>
  127. <td class="editTableValue"><select class="logicInput_vf">
  128. <option selected value="and">{{$.lp.and}}</option>
  129. <option value="or">{{$.lp.or}}</option>
  130. </select></td>
  131. </tr>
  132. <tr style="display:none">
  133. <td class="editTableTitle">{{$.lp.value}}:</td>
  134. <td class="editTableValue">
  135. <input type="text" class="editTableInput valueTextInput_vf" style="display: block"/>
  136. <input type="number" class="editTableInput valueNumberInput_vf" style="display: none"/>
  137. <input type="text" class="editTableInput valueDatetimeInput_vf" style="display: none" readonly/>
  138. <input type="text" class="editTableInput valueDateInput_vf" style="display: none" readonly/>
  139. <input type="text" class="editTableInput valueTimeInput_vf" style="display: none" readonly/>
  140. <select class="valueBooleanInput_vf" style="display: none">
  141. <option value="true" selected>{{$.lp.true}}(True)</option>
  142. <option value="false">{{$.lp.false}}(False)</option>
  143. </select>
  144. </td>
  145. </tr>
  146. </table>
  147. <table id="text{$.pid}viewFilterRestrict" width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  148. <tr>
  149. <td class="editTableTitle"></td>
  150. <td class="editTableValue">
  151. <input type="radio" class="restrictFilterInput_vf" value="restrict" name="text{$.id}viewFilterType" checked data-notAutoHistory onclick="if (this.checked){
  152. debugger;
  153. this.getParent('.inputAreaNode_vf').getElements('tr.parameterInputTr').hide();
  154. this.getParent('.inputAreaNode_vf').getElements('tr.filterListInputTr').setStyle('display','');
  155. }"/>{{$.lp.addDefaultConditionByPath}}<br>
  156. <input type="radio" class="restrictParameterInput_form_vf" value="custom" name="text{$.id}viewFilterType" data-notAutoHistory onclick="if (this.checked){
  157. debugger;
  158. this.getParent('.inputAreaNode_vf').getElements('tr.parameterInputTr').setStyle('display','');
  159. this.getParent('.inputAreaNode_vf').getElements('tr.filterListInputTr').hide();
  160. }"/>{{$.lp.addDefaultConditionByParameter}}
  161. </td>
  162. </tr>
  163. </table>
  164. <div title="{{$.lp.value}}" class="MWFFilterFormulaArea"></div>
  165. </div>
  166. <div class="actionAreaNode_vf"></div>
  167. <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">{{$.lp.pathConditions}}</div>
  168. <div class="filterListAreaNode_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
  169. <div style="height: 20px; line-height: 20px; text-align:center; background-color: #eeeeee">{{$.lp.parameterConditions}}}</div>
  170. <div class="parameterListAreaNode_form_vf" style="min-height: 56px; border-bottom:1px solid #CCCCCC; overflow: hidden;"></div>
  171. </div>
  172. <div class="MWFScriptArea" name="defaultSelectedScript" title="{{$.lp.defaultSelectedLineScript}}"></div>
  173. <div class="MWFScriptArea" name="selectedAbleScript" title="{{$.lp.allowSelectiLineScript}}" id="text{$.pid}selectedAbleScript"
  174. style="display: text{($.select=='single' || $.select=='multi')?'':'none'}"></div>
  175. </div>
  176. <div title="{{$.lp.event}}" class="MWFTab">
  177. <div class="MWFEventsArea" name="events"></div>
  178. </div>
  179. <div title="HTML" class="MWFTab">
  180. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  181. </div>
  182. <div title="JSON" class="MWFTab">
  183. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  184. </div>
  185. </div>