OOOrg.html 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  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.showIcon}}:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="showIcon" value="yes" text{($.showIcon!='no')?'checked':''}/>{{$.lp.yes}}
  20. <input type="radio" name="showIcon" value="no" text{($.showIcon=='no')?'checked':''}/>{{$.lp.no}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">{{$.lp.showMode}}:</td>
  25. <td class="editTableValue">
  26. <label><input type="radio" name="showMode" value="editable" text{($.showMode!=='readonlyMode' && $.showMode!=='disabled' && $.showMode!=='read')?'checked':''}/>{{$.lp.editable}}</label>
  27. <label><input type="radio" name="showMode" value="readonlyMode" text{($.showMode==='readonlyMode')?'checked':''}/>{{$.lp.readonlyMode}}</label>
  28. <label><input type="radio" name="showMode" value="disabled" text{($.showMode==='disabled')?'checked':''}/>{{$.lp.disabled}}</label>
  29. <label><input type="radio" name="showMode" value="read" text{($.showMode==='read')?'checked':''}/>{{$.lp.read}}</label>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td class="editTableTitle">{{$.lp.required}}:</td>
  34. <td class="editTableValue">
  35. <input type="radio" name="required" value="true" text{($.required==true)?'checked':''}/>{{$.lp.yes}}
  36. <input type="radio" name="required" value="false" text{($.required!=true)?'checked':''}/>{{$.lp.no}}
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2"><b>{{$.lp.readModeEvents}}:</b>
  41. <input type="radio" name="readModeEvents" value="yes" text{($.readModeEvents=='yes')?'checked':''}/>{{$.lp.yes}}
  42. <input type="radio" name="readModeEvents" value="no" text{($.readModeEvents!=='yes')?'checked':''}/>{{$.lp.no}}
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="editTableTitle">{{$.lp.title}}:</td>
  47. <td class="editTableValue" id="text{$.pid}isTitleArea">
  48. <input type="text" name="label" value="text{$.label}" class="editTableInput"/>
  49. </td>
  50. </tr>
  51. </table>
  52. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  53. <tr>
  54. <td class="editTableTitle">{{$.lp.showCard}}:</td>
  55. <td class="editTableValue">
  56. <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>{{$.lp.yes}}
  57. <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>{{$.lp.no}}
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class="editTableTitle">{{$.lp.dataStructure}}:</td>
  62. <td class="editTableValue">
  63. <input type="radio" name="storeRange" value="full" text{($.storeRange=='full')?'checked':''}/>{{$.lp.complete}}
  64. <input type="radio" name="storeRange" value="simple" text{($.storeRange!=='full')?'checked':''}/>{{$.lp.simple}}
  65. </td>
  66. </tr>
  67. </table>
  68. <br/>
  69. <div class="MWFMaplist" name="styles" title="{{$.lp.style}}"></div>
  70. <!-- <div class="MWFMaplist" name="inputStyles" title="{{$.lp.inputStyle}}"></div>-->
  71. <!-- <div class="MWFMaplist" name="itemStyles" title="{{$.lp.itemStyle}}"></div>-->
  72. <div class="MWFMaplist" name="properties" title="{{$.lp.attribute}}"></div>
  73. <div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">{{$.lp.defaultValue}}:</div>
  74. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  75. <tr>
  76. <td class="editTableTitle">{{$.lp.compute}}:</td>
  77. <td class="editTableValue">
  78. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>{{$.lp.create}}
  79. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>{{$.lp.save}}
  80. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>{{$.lp.show}}
  81. </td>
  82. </tr>
  83. </table>
  84. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  85. <tr>
  86. <td class="editTableTitle">{{$.lp.identity}}:</td>
  87. <td class="editTableValue">
  88. <div class="MWFPersonIdentity" name="identityValue"></div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td class="editTableTitle">{{$.lp.unit}}:</td>
  93. <td class="editTableValue">
  94. <div class="MWFPersonUnit" name="unitValue" type="unit"></div>
  95. </td>
  96. </tr>
  97. <tr>
  98. <td class="editTableTitle">{{$.lp.duty}}:</td>
  99. <td class="editTableValue">
  100. <div class="MWFDutySelector" name="dutyValue"></div>
  101. </td>
  102. </tr>
  103. <!--<tr>-->
  104. <!--<td class="editTableTitle">群  组:</td>-->
  105. <!--<td class="editTableValue">-->
  106. <!--<div class="MWFPersonGroup" name="groupValue" type="group"></div>-->
  107. <!--</td>-->
  108. <!--</tr>-->
  109. <!--<tr>-->
  110. <!--<td class="editTableTitle">部  门:</td>-->
  111. <!--<td class="editTableValue">-->
  112. <!--<div class="MWFPersonDepartment" name="departmentValue" type="department"></div>-->
  113. <!--</td>-->
  114. <!--</tr>-->
  115. <!--<tr>-->
  116. <!--<td class="editTableTitle">公  司:</td>-->
  117. <!--<td class="editTableValue">-->
  118. <!--<div class="MWFPersonCompany" name="companyValue" type="company"></div>-->
  119. <!--</td>-->
  120. <!--</tr>-->
  121. <!--<tr>-->
  122. <!--<td class="editTableTitle">职  位:</td>-->
  123. <!--<td class="editTableValue">-->
  124. <!--<div class="MWFDutySelector" name="dutyValue"></div>-->
  125. <!--</td>-->
  126. <!--</tr>-->
  127. </table>
  128. <div class="MWFFormulaArea" name="defaultValue" title="{{$.lp.defaultValueScript}} (S)"></div>
  129. <div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">{{$.lp.showText}}:</div>
  130. <div class="MWFFormulaArea" name="displayTextScript" title="{{$.lp.showTextScript}} (S)"></div>
  131. <div class="MWFValidation" name="validationConfig"></div>
  132. <div class="MWFScriptArea" name="validation" title="{{$.lp.verificationScript}} (S)"></div>
  133. </div>
  134. <div title="{{$.lp.select}}" class="MWFTab">
  135. <div style="height: 24px; line-height:24px; font-weight:bold;background-color: #DDD; border-top:1px solid #999; padding: 0px 6px">{{$.lp.unitSelectConfig}}</div>
  136. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  137. <tr>
  138. <td class="editTableTitle">{{$.lp.selectType}}:</td>
  139. <td class="editTableValue">
  140. <input type="checkbox" name="selectType" value="identity" text{($.selectType.indexOf('identity')!=-1)?'checked':''}
  141. onchange="var tab = $('text{$.pid}identityProperties').retrieve('tab'); this.checked ? tab.enableTab() : tab.disableTab();;"/>{{$.lp.identity}}
  142. <input type="checkbox" name="selectType" value="unit" text{($.selectType.indexOf('unit')!=-1)?'checked':''}
  143. onchange="var tab = $('text{$.pid}unitProperties').retrieve('tab'); this.checked ? tab.enableTab() : tab.disableTab();"/>{{$.lp.unit}}
  144. <input type="checkbox" name="selectType" value="group" text{($.selectType.indexOf('group')!=-1)?'checked':''}
  145. onchange="var tab = $('text{$.pid}groupProperty').retrieve('tab'); this.checked ? tab.enableTab() : tab.disableTab();"/>{{$.lp.group}}
  146. </td>
  147. </tr>
  148. </table>
  149. <div style="padding:0px 5px;">
  150. <div id="text{$.pid}identityProperties" title="{{$.lp.identity}}" class="MWFTab" data-style="formPropertyListLevel2" data-group="selectType" style="display: text{($.selectType.indexOf('identity')!=-1)?'block':'none'};">
  151. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  152. <tr>
  153. <td class="editTableTitle">{{$.lp.selectCount}}:</td>
  154. <td class="editTableValue"><input type="text" name="identityCount" value="text{$.identityCount}" class="editTableInput"/></td>
  155. </tr>
  156. <tr>
  157. <td class="editTableTitle">{{$.lp.returnValue}}:</td>
  158. <td class="editTableValue">
  159. <input type="radio" name="identityResultType" value="identity" text{($.identityResultType.indexOf('person')==-1)?'checked':''}
  160. onchange="if (this.checked){
  161. $('text{$.pid}isCheckEmpowerTd').setStyle('display', '');
  162. $('text{$.pid}identityDesciption').setStyle('display', '');
  163. $('text{$.pid}personDesciption').setStyle('display', 'none');
  164. }
  165. "/>{{$.lp.identity}}
  166. <input type="radio" name="identityResultType" value="person" text{($.identityResultType.indexOf('person')!=-1)?'checked':''}
  167. onchange="if (this.checked){
  168. $('text{$.pid}isCheckEmpowerTd').setStyle('display', 'none');
  169. $('text{$.pid}identityDesciption').setStyle('display', 'none');
  170. $('text{$.pid}personDesciption').setStyle('display', '');
  171. }
  172. "/>{{$.lp.person}}
  173. <div id="text{$.pid}identityDesciption" style="display: text{($.identityResultType.indexOf('person')==-1)?'':'none'}">{{$.lp.selectTypeInfo}}</div>
  174. <div id="text{$.pid}personDesciption" style="display: text{($.identityResultType.indexOf('person')!=-1)?'':'none'}">{{$.lp.selectTypeInfo2}}</div>
  175. </td>
  176. </tr>
  177. <tr id="text{$.pid}isCheckEmpowerTd" style="display: text{$.identityResultType==='person'?'none':''};">
  178. <td class="editTableTitle">{{$.lp.checkEmpower}}:</td>
  179. <td class="editTableValue">
  180. <input type="radio" name="isCheckEmpower" value="true" text{$.isCheckEmpower?'checked':''}/>{{$.lp.yes}}
  181. <input type="radio" name="isCheckEmpower" value="false" text{$.isCheckEmpower?'':'checked'}/>{{$.lp.no}}
  182. </td>
  183. </tr>
  184. <tr>
  185. <td class="editTableTitle">{{$.lp.onlyCustom}}:</td>
  186. <td class="editTableValue">
  187. <input type="radio" name="identityOnlyUseInclude" value="true" text{$.identityOnlyUseInclude?'checked':''}
  188. onchange="if (this.checked){
  189. $('text{$.pid}identityUnitRangeArea').setStyle('display', 'none');
  190. $('text{$.pid}dutyRangeSelectArea').setStyle('display', 'none');
  191. }" />{{$.lp.yes}}
  192. <input type="radio" name="identityOnlyUseInclude" value="false" text{$.identityOnlyUseInclude?'':'checked'}
  193. onchange="if (this.checked){
  194. $('text{$.pid}identityUnitRangeArea').setStyle('display', '');
  195. $('text{$.pid}dutyRangeSelectArea').setStyle('display', '');
  196. }" />{{$.lp.no}}
  197. </td>
  198. </tr>
  199. </table>
  200. <div id="text{$.pid}identityUnitRangeArea" style="display: text{($.identityOnlyUseInclude)?'none':''};">
  201. <div style="text-align: center; height: 24px; background-color: #F1F1F1; line-height: 24px; border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc; font-weight: bold;">{{$.lp.unitRange}}</div>
  202. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  203. <tr>
  204. <td class="editTableTitle">{{$.lp.unitRange}}:</td>
  205. <td class="editTableValue">
  206. <input type="radio" onclick="
  207. if (this.checked) {
  208. $('text{$.pid}identityRangeNextArea').setStyle('display', 'none');
  209. $('text{$.pid}identityRangeScriptValue').setStyle('display', 'none');
  210. }
  211. " name="identityRange" value="all" text{(['unit', 'draftUnit', 'currentUnit'].indexOf($.identityRange)==-1)?'checked':''}/>{{$.lp.allUnit}}
  212. <input type="radio" onclick="
  213. if (this.checked) {
  214. $('text{$.pid}identityRangeNextArea').setStyle('display', 'none');
  215. $('text{$.pid}identityRangeScriptValue').setStyle('display', 'block');
  216. }" name="identityRange" value="unit" text{($.identityRange.indexOf('unit')!=-1)?'checked':''}/>{{$.lp.specifyUnit}}<br/>
  217. <input type="radio" onclick="
  218. if (this.checked) {
  219. $('text{$.pid}identityRangeNextArea').setStyle('display', 'block');
  220. $('text{$.pid}identityRangeScriptValue').setStyle('display', 'none');
  221. }" name="identityRange" value="draftUnit" text{($.identityRange.indexOf('draftUnit')!=-1)?'checked':''}/>{{$.lp.draftUnit}}<br/>
  222. <input type="radio" onclick="
  223. if (this.checked) {
  224. $('text{$.pid}identityRangeNextArea').setStyle('display', 'block');
  225. $('text{$.pid}identityRangeScriptValue').setStyle('display', 'none');}
  226. " name="identityRange" value="currentUnit" text{($.identityRange.indexOf('currentUnit')!=-1)?'checked':''}/>{{$.lp.currentUnit}}<br/>
  227. <div id="text{$.pid}identityRangeNextArea" style="border-top: 1px solid #999; display: text{($.identityRange=='draftUnit' || $.identityRange=='currentUnit')?'block':'none'}; ">
  228. <input type="radio" name="identityRangeNext" value="direct" text{(['level', 'type'].indexOf($.identityRangeNext)==-1)?'checked':''}/>{{$.lp.inUnit}}<br/>
  229. <input type="radio" name="identityRangeNext" value="level" text{(($.identityRangeNext) && $.identityRangeNext.indexOf('level')!=-1)?'checked':''}/>{{$.lp.levelIs}}
  230. <div style="display: inline"><select name="identityRangeNextLevel">
  231. <option value="1" text{($.identityRangeNextLevel=='1')?'selected':''}>1</option>
  232. <option value="2" text{($.identityRangeNextLevel=='2')?'selected':''}>2</option>
  233. <option value="3" text{($.identityRangeNextLevel=='3')?'selected':''}>3</option>
  234. <option value="4" text{($.identityRangeNextLevel=='4')?'selected':''}>4</option>
  235. <option value="5" text{($.identityRangeNextLevel=='5')?'selected':''}>5</option>
  236. <option value="6" text{($.identityRangeNextLevel=='6')?'selected':''}>6</option>
  237. <option value="7" text{($.identityRangeNextLevel=='7')?'selected':''}>7</option>
  238. <option value="8" text{($.identityRangeNextLevel=='8')?'selected':''}>8</option>
  239. <option value="9" text{($.identityRangeNextLevel=='9')?'selected':''}>9</option>
  240. </select>{{$.lp.levelUnit}}</div><br/>
  241. <input style="float: left" type="radio" name="identityRangeNext" value="type" text{(($.identityRangeNext) && $.identityRangeNext.indexOf('type')!=-1)?'checked':''}/>{{$.lp.unitTypeIs}}
  242. <div class="MWFFormUnitTypeSelector" name="identityRangeNextUnitType" style="display: inline"></div>
  243. {{$.lp.deUnit}}<br/>
  244. </div>
  245. </td>
  246. </tr>
  247. </table>
  248. <div id="text{$.pid}identityExpandSubEnable" style="border-bottom: 1px solid #999; ">
  249. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>-->
  250. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  251. <tr>
  252. <td class="editTableTitle">{{$.lp.expandNext}}:</td>
  253. <td class="editTableValue">
  254. <input type="radio" name="identityExpandSubEnable" value="yes" text{($.identityExpandSubEnable!='no')?'checked':''}/>{{$.lp.yes}}
  255. <input type="radio" name="identityExpandSubEnable" value="no" text{($.identityExpandSubEnable=='no')?'checked':''}/>{{$.lp.no}}
  256. </td>
  257. </tr>
  258. </table>
  259. </div>
  260. <div id="text{$.pid}identityRangeScriptValue" style="border-bottom: 1px solid #999; display: text{($.identityRange=='unit')?'block':'none'}; ">
  261. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>-->
  262. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  263. <tr>
  264. <td class="editTableTitle">{{$.lp.selectUnit}}:</td>
  265. <td class="editTableValue"><div class="MWFPersonUnit" name="identityRangeUnit" type="rangeUnit"></div></td>
  266. </tr>
  267. <tr>
  268. <td class="editTableTitle">{{$.lp.formData}}:</td>
  269. <td class="editTableValue"><div class="MWFFormFieldPerson" name="identityRangeField" type="formField"></div></td>
  270. </tr>
  271. </table>
  272. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过编写脚本指定选择范围</div>-->
  273. <div class="MWFFormulaArea" name="identityRangeKey" title="{{$.lp.script}} (S)"></div>
  274. </div>
  275. </div>
  276. <div id="text{$.pid}dutyRangeSelectArea" style="border-bottom: 1px solid #999; display: text{($.identityOnlyUseInclude)?'none':''}; ">
  277. <div style="text-align: center; height: 24px; background-color: #F1F1F1; line-height: 24px; border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc;font-weight: bold;">{{$.lp.dutyRange}}</div>
  278. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  279. <tr>
  280. <td class="editTableTitle">{{$.lp.dutyRange}}:</td>
  281. <td class="editTableValue">
  282. <input type="radio" onclick="if (this.checked) {$('text{$.pid}dutyRangeScriptValue').setStyle('display', 'none');}" name="dutyRange" value="all" text{(['duty'].indexOf($.dutyRange)==-1)?'checked':''}/>{{$.lp.all}}
  283. <input type="radio" onclick="if (this.checked) {$('text{$.pid}dutyRangeScriptValue').setStyle('display', 'block');}" name="dutyRange" value="duty" text{($.dutyRange && ($.dutyRange.indexOf('duty')!=-1))?'checked':''}/>{{$.lp.specifyDuty}}<br/>
  284. </td>
  285. </tr>
  286. </table>
  287. <div id="text{$.pid}dutyRangeScriptValue" style="border-bottom: 1px solid #999; display: text{($.dutyRange=='duty')?'block':'none'}; ">
  288. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  289. <tr>
  290. <td class="editTableTitle">{{$.lp.category}}:</td>
  291. <td class="editTableValue">
  292. <input type="radio" name="categoryType" value="unit" text{(['duty'].indexOf($.categoryType)==-1)?'checked':''}
  293. onclick="if (this.checked) {$('text{$.pid}dutyUnitLevelByTr').setStyle('display', '');}" />{{$.lp.byUnit}}
  294. <input type="radio" name="categoryType" value="duty" text{($.categoryType && ($.categoryType.indexOf('duty')!=-1))?'checked':''}
  295. onclick="if (this.checked) {$('text{$.pid}dutyUnitLevelByTr').setStyle('display', 'none');}"/>{{$.lp.byDuty}}<br/>
  296. </td>
  297. </tr>
  298. <tr id="text{$.pid}dutyUnitLevelByTr" style="display: text{($.categoryType=='duty')?'none':''}; ">
  299. <td class="editTableTitle">{{$.lp.showLevel}}:</td>
  300. <td class="editTableValue">
  301. <input type="radio" name="dutyUnitLevelBy" value="duty" text{(['identity'].indexOf($.dutyUnitLevelBy)==-1)?'checked':''}/>{{$.lp.byDutyUnit}}<br/>
  302. <input type="radio" name="dutyUnitLevelBy" value="identity" text{($.dutyUnitLevelBy && ($.dutyUnitLevelBy.indexOf('identity')!=-1))?'checked':''}/>{{$.lp.byIdentityUnit}}
  303. </td>
  304. </tr>
  305. <tr>
  306. <td class="editTableTitle">{{$.lp.selectDuty}}:</td>
  307. <td class="editTableValue"><div class="MWFPersonDuty" name="rangeDuty" type="rangeDuty"></div></td>
  308. </tr>
  309. <tr>
  310. <td class="editTableTitle">{{$.lp.formData}}:</td>
  311. <td class="editTableValue"><div class="MWFFormFieldPerson" name="rangeDutyField" type="formField"></div></td>
  312. </tr>
  313. </table>
  314. <div class="MWFFormulaArea" name="rangeDutyKey" title="{{$.lp.script}} (S)"></div>
  315. </div>
  316. </div>
  317. <div id="text{$.pid}identityIncludeArea" style="border-bottom: 1px solid #999; ">
  318. <div style="text-align: center; height: 24px; background-color: #F1F1F1; line-height: 24px; border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc;font-weight: bold;">{{$.lp.customOption}}</div>
  319. <div style="height: 24px; line-height:24px; padding: 0px 6px; border-top: 1px solid #999">
  320. {{$.lp.useScriptAddIdOrPerson}}
  321. </div>
  322. <div class="MWFFormulaArea" name="identityIncludeKey" title="{{$.lp.script}} (S)"></div>
  323. </div>
  324. </div>
  325. <div id="text{$.pid}unitProperties" title="{{$.lp.unit}}" class="MWFTab" data-group="selectType" style="display: text{($.selectType.indexOf('unit')!=-1)?'block':'none'};">
  326. <!--<div style="float: left">组织类型:</div><div class="MWFFormUnitTypeSelector" name="selectUnitType" style="float: left"></div>-->
  327. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  328. <tr>
  329. <td class="editTableTitle">{{$.lp.selectCount}}:</td>
  330. <td class="editTableValue"><input type="text" name="unitCount" value="text{$.unitCount}" class="editTableInput"/></td>
  331. </tr>
  332. <tr>
  333. <td class="editTableTitle">{{$.lp.unitType}}:</td>
  334. <td class="editTableValue"><div class="MWFFormUnitTypeSelector" name="selectUnitType"></div></td>
  335. </tr>
  336. </table>
  337. <div style="text-align: center; height: 24px; background-color: #F1F1F1; line-height: 24px; border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc; font-weight: bold;">{{$.lp.unitRange}}</div>
  338. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  339. <tr>
  340. <td class="editTableTitle">{{$.lp.unitRange}}:</td>
  341. <td class="editTableValue">
  342. <input type="radio" onclick="
  343. if (this.checked) {
  344. $('text{$.pid}unitRangeNextArea').setStyle('display', 'none');
  345. $('text{$.pid}unitRangeScriptValue').setStyle('display', 'none');
  346. $('text{$.pid}firstLevelSelectable1').setStyle('display', 'none');
  347. }" name="unitRange" value="all" text{(['unit', 'draftUnit', 'currentUnit'].indexOf($.unitRange)==-1)?'checked':''}/>{{$.lp.allUnit}}
  348. <input type="radio" onclick="
  349. if (this.checked) {
  350. $('text{$.pid}unitRangeNextArea').setStyle('display', 'none');
  351. $('text{$.pid}unitRangeScriptValue').setStyle('display', 'block');
  352. $('text{$.pid}firstLevelSelectable1').setStyle('display', 'block');
  353. }" name="unitRange" value="unit" text{($.unitRange.indexOf('unit')!=-1)?'checked':''}/>{{$.lp.specifyUnit}}<br/>
  354. <input type="radio" onclick="
  355. if (this.checked) {
  356. $('text{$.pid}unitRangeNextArea').setStyle('display', 'block');
  357. $('text{$.pid}unitRangeScriptValue').setStyle('display', 'none');
  358. $('text{$.pid}firstLevelSelectable1').setStyle('display', 'block');
  359. }" name="unitRange" value="draftUnit" text{($.unitRange.indexOf('draftUnit')!=-1)?'checked':''}/>{{$.lp.draftUnit}}<br/>
  360. <input type="radio" onclick="
  361. if (this.checked) {
  362. $('text{$.pid}unitRangeNextArea').setStyle('display', 'block');
  363. $('text{$.pid}unitRangeScriptValue').setStyle('display', 'none');
  364. $('text{$.pid}firstLevelSelectable1').setStyle('display', 'block');
  365. }" name="unitRange" value="currentUnit" text{($.unitRange.indexOf('currentUnit')!=-1)?'checked':''}/>{{$.lp.currentUnit}}<br/>
  366. <div id="text{$.pid}unitRangeNextArea" style="border-top: 1px solid #999; display: text{($.unitRange=='draftUnit' || $.unitRange=='currentUnit')?'block':'none'}; ">
  367. <input type="radio" name="unitRangeNext" value="direct" text{(['level', 'type'].indexOf($.unitRangeNext)==-1)?'checked':''}/>{{$.lp.inUnit}}<br/>
  368. <input type="radio" name="unitRangeNext" value="level" text{(($.unitRangeNext) && $.unitRangeNext.indexOf('level')!=-1)?'checked':''}/>{{$.lp.levelIs}}
  369. <div style="display: inline"><select name="unitRangeNextLevel">
  370. <option value="1" text{($.unitRangeNextLevel=='1')?'selected':''}>1</option>
  371. <option value="2" text{($.unitRangeNextLevel=='2')?'selected':''}>2</option>
  372. <option value="3" text{($.unitRangeNextLevel=='3')?'selected':''}>3</option>
  373. <option value="4" text{($.unitRangeNextLevel=='4')?'selected':''}>4</option>
  374. <option value="5" text{($.unitRangeNextLevel=='5')?'selected':''}>5</option>
  375. <option value="6" text{($.unitRangeNextLevel=='6')?'selected':''}>6</option>
  376. <option value="7" text{($.unitRangeNextLevel=='7')?'selected':''}>7</option>
  377. <option value="8" text{($.unitRangeNextLevel=='8')?'selected':''}>8</option>
  378. <option value="9" text{($.unitRangeNextLevel=='9')?'selected':''}>9</option>
  379. </select>{{$.lp.levelUnit}}</div><br/>
  380. <input style="float: left" type="radio" name="unitRangeNext" value="type" text{(($.unitRangeNext) && $.unitRangeNext.indexOf('type')!=-1)?'checked':''}/>{{$.lp.unitTypeIs}}
  381. <div class="MWFFormUnitTypeSelector" name="unitRangeNextUnitType" style="display: inline"></div>
  382. {{$.lp.deUnit}}<br/>
  383. </div>
  384. </td>
  385. </tr>
  386. </table>
  387. <div id="text{$.pid}unitExpandSubEnable">
  388. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>-->
  389. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  390. <tr>
  391. <td class="editTableTitle">{{$.lp.expandNext}}:</td>
  392. <td class="editTableValue">
  393. <input type="radio" name="unitExpandSubEnable" value="yes" onclick="
  394. if (this.checked) {
  395. $('text{$.pid}firstLevelSelectable2').setStyle('display', 'block');
  396. }" text{($.unitExpandSubEnable!='no')?'checked':''}/>{{$.lp.yes}}
  397. <input type="radio" name="unitExpandSubEnable" value="no" onclick="
  398. if (this.checked) {
  399. $('text{$.pid}firstLevelSelectable2').setStyle('display', 'none');
  400. }" text{($.unitExpandSubEnable=='no')?'checked':''}/>{{$.lp.no}}
  401. </td>
  402. </tr>
  403. </table>
  404. </div>
  405. <div id="text{$.pid}firstLevelSelectable1" style="display: text{(['unit','draftUnit','currentUnit'].contains($.unitRange))?'block':'none'};">
  406. <div id="text{$.pid}firstLevelSelectable2" style="display: text{($.unitExpandSubEnable!='no')?'block':'none'};">
  407. <table>
  408. <tr>
  409. <td class="editTableTitle">{{$.lp.firstLevelSelectable}}:</td>
  410. <td class="editTableValue">
  411. <input type="radio" name="firstLevelSelectable" value="yes" text{($.firstLevelSelectable=='yes')?'checked':''}/>{{$.lp.yes}}
  412. <input type="radio" name="firstLevelSelectable" value="no" text{($.firstLevelSelectable!='yes')?'checked':''}/>{{$.lp.no}}
  413. </td>
  414. </tr>
  415. </table>
  416. </div>
  417. </div>
  418. <div style="border-bottom: 1px solid #999;"></div>
  419. <div id="text{$.pid}unitRangeScriptValue" style="border-bottom: 1px solid #999; display: text{($.unitRange=='unit')?'block':'none'}; ">
  420. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>-->
  421. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  422. <tr>
  423. <td class="editTableTitle">{{$.lp.selectUnit}}:</td>
  424. <td class="editTableValue"><div class="MWFPersonUnit" name="unitRangeUnit" type="rangeUnit"></div></td>
  425. </tr>
  426. <tr>
  427. <td class="editTableTitle">{{$.lp.formData}}:</td>
  428. <td class="editTableValue"><div class="MWFFormFieldPerson" name="unitRangeField" type="formField"></div></td>
  429. </tr>
  430. </table>
  431. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过编写脚本指定选择范围</div>-->
  432. <div class="MWFFormulaArea" name="unitRangeKey" title="{{$.lp.script}} (S)"></div>
  433. </div>
  434. </div>
  435. <div id="text{$.pid}groupProperty" title="{{$.lp.group}}" class="MWFTab" data-group="selectType" style="display: text{($.selectType.indexOf('group')!=-1)?'block':'none'};">
  436. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  437. <tr>
  438. <td class="editTableTitle">{{$.lp.selectCount}}:</td>
  439. <td class="editTableValue"><input type="text" name="groupCount" value="text{$.groupCount}" class="editTableInput"/></td>
  440. </tr>
  441. <tr>
  442. <td class="editTableTitle">{{$.lp.selectRange}}:</td>
  443. <td class="editTableValue">
  444. <input type="radio" name="groupRange" value="all" text{($.groupRange!=='group')?'checked':''}
  445. onchange="if (this.checked)$('text{$.pid}groupScript').setStyle('display', 'none');"/>{{$.lp.all2}}
  446. <input type="radio" name="groupRange" value="group" text{($.groupRange==='group')?'checked':''}
  447. onchange="if (this.checked)$('text{$.pid}groupScript').setStyle('display', '');"/>{{$.lp.specifyGroup}}
  448. </td>
  449. </tr>
  450. </table>
  451. <div id="text{$.pid}groupScript" style="border-bottom: 1px solid #999; display: text{($.groupRange=='group')?'block':'none'}; ">
  452. <div class="MWFFormulaArea" name="groupRangeKey" title="{{$.lp.script}} (S)"></div>
  453. </div>
  454. </div>
  455. </div>
  456. <div id="text{$.pid}exclude" style="border-bottom: 1px solid #999; ">
  457. <div style="text-align: center; height: 24px; background-color: #F1F1F1; line-height: 24px; border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc;font-weight: bold;">{{$.lp.exclude}}</div>
  458. <div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">{{$.lp.excludeInfo}}</div>
  459. <div class="MWFFormulaArea" name="exclude" title="{{$.lp.script}} (S)"></div>
  460. </div>
  461. </div>
  462. <div title="{{$.lp.section}}" class="MWFTab">
  463. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  464. <tr>
  465. <td class="editTableTitle">{{$.lp.enableSection}}:</td>
  466. <td class="editTableValue">
  467. <input onclick="if (this.checked){
  468. $('text{$.pid}sectionByEditArea').setStyle('display', 'block');
  469. $('text{$.pid}sectionMergeArea').setStyle('display', 'none')
  470. }" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>{{$.lp.yes}}
  471. <input onclick="if (this.checked){
  472. $('text{$.pid}sectionByEditArea').setStyle('display', 'none');
  473. $('text{$.pid}sectionMergeArea').setStyle('display', 'block')
  474. }" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>{{$.lp.no}}
  475. </td>
  476. </tr>
  477. </table>
  478. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  479. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  480. <tr>
  481. <td class="editTableTitle">{{$.lp.sectionBy}}:</td>
  482. <td class="editTableValue">
  483. <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/>
  484. <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/>
  485. <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/>
  486. <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/>
  487. <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/>
  488. </td>
  489. </tr>
  490. </table>
  491. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  492. <div class="MWFScriptArea" name="sectionByScript" title="{{$.lp.sectionBy}} (S)"></div>
  493. </div>
  494. </div>
  495. <div id="text{$.pid}sectionMergeArea" class="MWFSectionMergeArea" style="display: text{($.section=='yes')?'none':''};"></div>
  496. </div>
  497. <div title="{{$.lp.event}}" class="MWFTab">
  498. <div class="MWFEventsArea" name="events"></div>
  499. </div>
  500. <!--<div title="HTML" class="MWFTab">-->
  501. <!--<div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>-->
  502. <!--</div>-->
  503. <div title="JSON" class="MWFTab">
  504. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  505. </div>
  506. </div>