personfield.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <div style="background-color: #FFF; overflow: hidden">
  2. <div title="基本" class="MWFTab">
  3. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  4. <tr>
  5. <td class="editTableTitle">标识:</td>
  6. <td class="editTableValue"><input type="text" name="id" value="text{$.id}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">名称:</td>
  10. <td class="editTableValue"><input type="text" name="name" value="text{$.name}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">描述:</td>
  14. <td class="editTableValue"><input type="text" name="description" value="text{$.description}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">显示图标:</td>
  18. <td class="editTableValue">
  19. <input type="radio" name="showIcon" value="yes" text{($.showIcon!='no')?'checked':''}/>是
  20. <input type="radio" name="showIcon" value="no" text{($.showIcon=='no')?'checked':''}/>否
  21. </td>
  22. </tr>
  23. <tr>
  24. <td class="editTableTitle">是否只读:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="isReadonly" value="true" text{($.isReadonly)?'checked':''}/>是
  27. <input type="radio" name="isReadonly" value="false" text{(!$.isReadonly)?'checked':''}/>否
  28. </td>
  29. </tr>
  30. <tr>
  31. <td class="editTableTitle">显示卡片:</td>
  32. <td class="editTableValue">
  33. <input type="radio" name="showCard" value="yes" text{($.showCard!='no')?'checked':''}/>是
  34. <input type="radio" name="showCard" value="no" text{($.showCard=='no')?'checked':''}/>否
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="editTableTitle">允许输入:</td>
  39. <td class="editTableValue">
  40. <input type="radio" name="isInput" value="true" text{($.isInput)?'checked':''}/>是
  41. <input type="radio" name="isInput" value="false" text{(!$.isInput)?'checked':''}/>否
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="editTableTitle">分隔符:</td>
  46. <td class="editTableValue">
  47. <input type="text" name="splitShow" value="text{$.splitShow}" class="editTableInput"/>
  48. </td>
  49. </tr>
  50. </table>
  51. <br/>
  52. <div class="MWFMaplist" name="styles" title="样式"></div>
  53. <div class="MWFMaplist" name="inputStyles" title="Input样式"></div>
  54. <div class="MWFMaplist" name="properties" title="属性"></div>
  55. <div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">默认值:</div>
  56. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  57. <tr>
  58. <td class="editTableTitle">计算:</td>
  59. <td class="editTableValue">
  60. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>创建
  61. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>保存
  62. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>显示
  63. </td>
  64. </tr>
  65. </table>
  66. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  67. <tr>
  68. <td class="editTableTitle">用户标识:</td>
  69. <td class="editTableValue">
  70. <div class="MWFPersonIdentity" name="identityValue"></div>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="editTableTitle">组  织:</td>
  75. <td class="editTableValue">
  76. <div class="MWFPersonUnit" name="unitValue" type="unit"></div>
  77. </td>
  78. </tr>
  79. <!--<tr>-->
  80. <!--<td class="editTableTitle">部  门:</td>-->
  81. <!--<td class="editTableValue">-->
  82. <!--<div class="MWFPersonDepartment" name="departmentValue" type="department"></div>-->
  83. <!--</td>-->
  84. <!--</tr>-->
  85. <!--<tr>-->
  86. <!--<td class="editTableTitle">公  司:</td>-->
  87. <!--<td class="editTableValue">-->
  88. <!--<div class="MWFPersonCompany" name="companyValue" type="company"></div>-->
  89. <!--</td>-->
  90. <!--</tr>-->
  91. <tr>
  92. <td class="editTableTitle">职  位:</td>
  93. <td class="editTableValue">
  94. <div class="MWFDutySelector" name="dutyValue"></div>
  95. </td>
  96. </tr>
  97. </table>
  98. <div class="MWFFormulaArea" name="defaultValue" title="默认值脚本 (S)"></div>
  99. <div class="MWFValidation" name="validationConfig"></div>
  100. <div class="MWFScriptArea" name="validation" title="校验脚本 (S)"></div>
  101. </div>
  102. <div title="选择" class="MWFTab">
  103. <div style="height: 24px; line-height:24px; font-weight:bold;background-color: #DDD; border-top:1px solid #999; padding: 0px 6px">人员选择配置</div>
  104. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  105. <tr>
  106. <td class="editTableTitle">选择类型:</td>
  107. <td class="editTableValue">
  108. <input onclick="if (this.checked){ $('text{$.pid}unitTypeSelect').setStyle('display', 'none'); $('text{$.pid}dutyRangeSelectArea').setStyle('display', 'block');}" type="radio" name="selectType" value="identity" text{($.selectType.indexOf('unit')==-1)?'checked':''}/>个人
  109. <input onclick="if (this.checked){ $('text{$.pid}unitTypeSelect').setStyle('display', 'block'); $('text{$.pid}dutyRangeSelectArea').setStyle('display', 'none');}" type="radio" name="selectType" value="unit" text{($.selectType.indexOf('unit')!=-1)?'checked':''}/>组织
  110. <div id="text{$.pid}unitTypeSelect" style="display: text{($.selectType=='unit')?'block':'none'}; ">
  111. <div style="float: left">组织类型:</div><div class="MWFFormUnitTypeSelector" name="selectUnitType" style="float: left"></div>
  112. </div>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td class="editTableTitle">选择数量:</td>
  117. <td class="editTableValue"><input type="text" name="count" value="text{$.count}" class="editTableInput"/></td>
  118. </tr>
  119. </table>
  120. <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;">组织范围</div>
  121. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  122. <tr>
  123. <td class="editTableTitle">组织范围:</td>
  124. <td class="editTableValue">
  125. <input type="radio" onclick="if (this.checked) {$('text{$.pid}rangeNextArea').setStyle('display', 'none'); $('text{$.pid}rangeScriptValue').setStyle('display', 'none');}" name="range" value="all" text{(['unit', 'draftUnit', 'currentUnit'].indexOf($.range)==-1)?'checked':''}/>所有组织
  126. <input type="radio" onclick="if (this.checked) {$('text{$.pid}rangeNextArea').setStyle('display', 'none'); $('text{$.pid}rangeScriptValue').setStyle('display', 'block');}" name="range" value="unit" text{($.range.indexOf('unit')!=-1)?'checked':''}/>指定组织<br/>
  127. <input type="radio" onclick="if (this.checked) {$('text{$.pid}rangeNextArea').setStyle('display', 'block'); $('text{$.pid}rangeScriptValue').setStyle('display', 'none');}" name="range" value="draftUnit" text{($.range.indexOf('draftUnit')!=-1)?'checked':''}/>拟稿人所在的组织<br/>
  128. <input type="radio" onclick="if (this.checked) {$('text{$.pid}rangeNextArea').setStyle('display', 'block'); $('text{$.pid}rangeScriptValue').setStyle('display', 'none');}" name="range" value="currentUnit" text{($.range.indexOf('currentUnit')!=-1)?'checked':''}/>当前人所在的组织<br/>
  129. <div id="text{$.pid}rangeNextArea" style="border-top: 1px solid #999; display: text{($.range=='draftUnit' || $.range=='currentUnit')?'block':'none'}; ">
  130. <input type="radio" name="rangeNext" value="direct" text{(['level', 'type'].indexOf($.rangeNext)==-1)?'checked':''}/>直接所属组织<br/>
  131. <input type="radio" name="rangeNext" value="level" text{(($.rangeNext) && $.rangeNext.indexOf('level')!=-1)?'checked':''}/>第
  132. <div style="display: inline"><select name="rangeNextLevel">
  133. <option value="1" text{($.rangeNextLevel=='1')?'selected':''}>1</option>
  134. <option value="2" text{($.rangeNextLevel=='2')?'selected':''}>2</option>
  135. <option value="3" text{($.rangeNextLevel=='3')?'selected':''}>3</option>
  136. <option value="4" text{($.rangeNextLevel=='4')?'selected':''}>4</option>
  137. <option value="5" text{($.rangeNextLevel=='5')?'selected':''}>5</option>
  138. <option value="6" text{($.rangeNextLevel=='6')?'selected':''}>6</option>
  139. <option value="7" text{($.rangeNextLevel=='7')?'selected':''}>7</option>
  140. <option value="8" text{($.rangeNextLevel=='8')?'selected':''}>8</option>
  141. <option value="9" text{($.rangeNextLevel=='9')?'selected':''}>9</option>
  142. </select>层组织</div><br/>
  143. <input style="float: left" type="radio" name="rangeNext" value="type" text{(($.rangeNext) && $.rangeNext.indexOf('type')!=-1)?'checked':''}/>类型为
  144. <div class="MWFFormUnitTypeSelector" name="rangeNextUnitType" style="display: inline"></div>
  145. 的组织<br/>
  146. </div>
  147. </td>
  148. </tr>
  149. </table>
  150. <div id="text{$.pid}expandSubEnable" style="border-bottom: 1px solid #999; ">
  151. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>-->
  152. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  153. <tr>
  154. <td class="editTableTitle">展开下级:</td>
  155. <td class="editTableValue">
  156. <input type="radio" name="expandSubEnable" value="yes" text{($.expandSubEnable!='no')?'checked':''}/>是
  157. <input type="radio" name="expandSubEnable" value="no" text{($.expandSubEnable=='no')?'checked':''}/>否
  158. </td>
  159. </tr>
  160. </table>
  161. </div>
  162. <div id="text{$.pid}rangeScriptValue" style="border-bottom: 1px solid #999; display: text{($.range=='unit')?'block':'none'}; ">
  163. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>-->
  164. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  165. <tr>
  166. <td class="editTableTitle">选择组织:</td>
  167. <td class="editTableValue"><div class="MWFPersonUnit" name="rangeUnit" type="rangeUnit"></div></td>
  168. </tr>
  169. <tr>
  170. <td class="editTableTitle">表单数据:</td>
  171. <td class="editTableValue"><div class="MWFFormFieldPerson" name="rangeField" type="formField"></div></td>
  172. </tr>
  173. </table>
  174. <!--<div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过编写脚本指定选择范围</div>-->
  175. <div class="MWFFormulaArea" name="rangeKey" title="脚本 (S)"></div>
  176. </div>
  177. <div id="text{$.pid}dutyRangeSelectArea" style="border-bottom: 1px solid #999; display: text{($.selectType=='identity')?'block':'none'}; ">
  178. <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;">职务范围</div>
  179. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  180. <tr>
  181. <td class="editTableTitle">职务范围:</td>
  182. <td class="editTableValue">
  183. <input type="radio" onclick="if (this.checked) {$('text{$.pid}dutyRangeScriptValue').setStyle('display', 'none');}" name="dutyRange" value="all" text{(['duty'].indexOf($.dutyRange)==-1)?'checked':''}/>所有
  184. <input type="radio" onclick="if (this.checked) {$('text{$.pid}dutyRangeScriptValue').setStyle('display', 'block');}" name="dutyRange" value="duty" text{($.dutyRange && ($.dutyRange.indexOf('duty')!=-1))?'checked':''}/>指定职务<br/>
  185. </td>
  186. </tr>
  187. </table>
  188. <div id="text{$.pid}dutyRangeScriptValue" style="border-bottom: 1px solid #999; display: text{($.dutyRange=='duty')?'block':'none'}; ">
  189. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  190. <tr>
  191. <td class="editTableTitle">分类:</td>
  192. <td class="editTableValue">
  193. <input type="radio" name="categoryType" value="unit" text{(['duty'].indexOf($.categoryType)==-1)?'checked':''}/>按组织
  194. <input type="radio" name="categoryType" value="duty" text{($.categoryType && ($.categoryType.indexOf('duty')!=-1))?'checked':''}/>按职务<br/>
  195. </td>
  196. </tr>
  197. <tr>
  198. <td class="editTableTitle">选择职务:</td>
  199. <td class="editTableValue"><div class="MWFPersonDuty" name="rangeDuty" type="rangeDuty"></div></td>
  200. </tr>
  201. <tr>
  202. <td class="editTableTitle">表单数据:</td>
  203. <td class="editTableValue"><div class="MWFFormFieldPerson" name="rangeDutyField" type="formField"></div></td>
  204. </tr>
  205. </table>
  206. <div class="MWFFormulaArea" name="rangeDutyKey" title="脚本 (S)"></div>
  207. </div>
  208. </div>
  209. <div id="text{$.pid}exclude" style="border-bottom: 1px solid #999; ">
  210. <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;">排除</div>
  211. <div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过编写脚本排除组织或个人的选择范围</div>
  212. <div class="MWFFormulaArea" name="exclude" title="脚本 (S)"></div>
  213. </div>
  214. <div>
  215. <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;">数据保存</div>
  216. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  217. <tr>
  218. <td class="editTableTitle">数据保存:</td>
  219. <td class="editTableValue">
  220. <input type="radio" name="storeRange" value="full" text{($.storeRange!='simple')?'checked':''}/>完整
  221. <input type="radio" name="storeRange" value="simple" text{($.storeRange=='simple')?'checked':''}/>精简
  222. </td>
  223. </tr>
  224. </table>
  225. </div>
  226. </div>
  227. <div title="区段" class="MWFTab">
  228. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  229. <tr>
  230. <td class="editTableTitle">启用区段:</td>
  231. <td class="editTableValue">
  232. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>是
  233. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>否
  234. </td>
  235. </tr>
  236. </table>
  237. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  238. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  239. <tr>
  240. <td class="editTableTitle">区段依据:</td>
  241. <td class="editTableValue">
  242. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='unit' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>处理人<br/>
  243. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='unit')?'checked':''} type="radio" value="unit"/>处理人所在组织<br/>
  244. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>活动ID<br/>
  245. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='splitValue')?'checked':''} type="radio" value="splitValue"/>拆分值<br/>
  246. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>脚本<br/>
  247. </td>
  248. </tr>
  249. </table>
  250. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  251. <div class="MWFScriptArea" name="sectionByScript" title="区段依据 (S)"></div>
  252. </div>
  253. </div>
  254. </div>
  255. <div title="事件" class="MWFTab">
  256. <div class="MWFEventsArea" name="events"></div>
  257. </div>
  258. <!--<div title="HTML" class="MWFTab">-->
  259. <!--<div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>-->
  260. <!--</div>-->
  261. <div title="JSON" class="MWFTab">
  262. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  263. </div>
  264. </div>