personfield.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. </table>
  17. <br/>
  18. <div class="MWFMaplist" name="styles" title="样式"></div>
  19. <div class="MWFMaplist" name="inputStyles" title="Input样式"></div>
  20. <div class="MWFMaplist" name="properties" title="属性"></div>
  21. <div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">默认值:</div>
  22. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  23. <tr>
  24. <td class="editTableTitle">计算:</td>
  25. <td class="editTableValue">
  26. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>创建
  27. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>保存
  28. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>显示
  29. </td>
  30. </tr>
  31. </table>
  32. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  33. <tr>
  34. <td class="editTableTitle">用户标识:</td>
  35. <td class="editTableValue">
  36. <div class="MWFPersonIdentity" name="identityValue"></div>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="editTableTitle">组  织:</td>
  41. <td class="editTableValue">
  42. <div class="MWFPersonUnit" name="unitValue" type="unit"></div>
  43. </td>
  44. </tr>
  45. <!--<tr>-->
  46. <!--<td class="editTableTitle">部  门:</td>-->
  47. <!--<td class="editTableValue">-->
  48. <!--<div class="MWFPersonDepartment" name="departmentValue" type="department"></div>-->
  49. <!--</td>-->
  50. <!--</tr>-->
  51. <!--<tr>-->
  52. <!--<td class="editTableTitle">公  司:</td>-->
  53. <!--<td class="editTableValue">-->
  54. <!--<div class="MWFPersonCompany" name="companyValue" type="company"></div>-->
  55. <!--</td>-->
  56. <!--</tr>-->
  57. <tr>
  58. <td class="editTableTitle">职  位:</td>
  59. <td class="editTableValue">
  60. <div class="MWFDutySelector" name="dutyValue"></div>
  61. </td>
  62. </tr>
  63. </table>
  64. <div class="MWFFormulaArea" name="defaultValue" title="默认值脚本 (S)"></div>
  65. <div class="MWFValidation" name="validationConfig"></div>
  66. <div class="MWFScriptArea" name="validation" title="校验脚本 (S)"></div>
  67. </div>
  68. <div title="选择" class="MWFTab">
  69. <div style="height: 24px; line-height:24px; font-weight:bold;background-color: #DDD; border-top:1px solid #999; padding: 0px 6px">人员选择配置</div>
  70. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  71. <tr>
  72. <td class="editTableTitle">选择范围:</td>
  73. <td class="editTableValue">
  74. <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':''}/>所有<br/>
  75. <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/>
  76. <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/>
  77. <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/>
  78. <div id="text{$.pid}rangeNextArea" style="border-top: 1px solid #999; display: text{($.range=='draftUnit' || $.range=='currentUnit')?'block':'none'}; ">
  79. <input type="radio" name="rangeNext" value="direct" text{(['level', 'type'].indexOf($.rangeNext)==-1)?'checked':''}/>直接所属组织<br/>
  80. <input type="radio" name="rangeNext" value="level" text{(($.rangeNext) && $.rangeNext.indexOf('level')!=-1)?'checked':''}/>第
  81. <div style="display: inline"><select name="rangeNextLevel">
  82. <option value="1" text{($.rangeDraftLevel=='1')?'selected':''}>1</option>
  83. <option value="2" text{($.rangeDraftLevel=='2')?'selected':''}>2</option>
  84. <option value="3" text{($.rangeDraftLevel=='3')?'selected':''}>3</option>
  85. <option value="4" text{($.rangeDraftLevel=='4')?'selected':''}>4</option>
  86. <option value="5" text{($.rangeDraftLevel=='5')?'selected':''}>5</option>
  87. <option value="6" text{($.rangeDraftLevel=='6')?'selected':''}>6</option>
  88. <option value="7" text{($.rangeDraftLevel=='7')?'selected':''}>7</option>
  89. <option value="8" text{($.rangeDraftLevel=='8')?'selected':''}>8</option>
  90. <option value="9" text{($.rangeDraftLevel=='9')?'selected':''}>9</option>
  91. </select>层组织</div><br/>
  92. <input style="float: left" type="radio" name="rangeNext" value="type" text{(($.rangeNext) && $.rangeNext.indexOf('type')!=-1)?'checked':''}/>类型为
  93. <div class="MWFFormUnitTypeSelector" name="rangeNextUnitType" style="display: inline"></div>
  94. 的组织<br/>
  95. </div>
  96. </td>
  97. </tr>
  98. <tr>
  99. <td class="editTableTitle">选择数量:</td>
  100. <td class="editTableValue"><input type="text" name="count" value="text{$.count}" class="editTableInput"/></td>
  101. </tr>
  102. <tr>
  103. <td class="editTableTitle">选择类型:</td>
  104. <td class="editTableValue">
  105. <input onclick="if (this.checked) $('text{$.pid}unitTypeSelect').setStyle('display', 'none');" type="radio" name="selectType" value="identity" text{($.selectType.indexOf('unit')==-1)?'checked':''}/>个人
  106. <input onclick="if (this.checked) $('text{$.pid}unitTypeSelect').setStyle('display', 'block');" type="radio" name="selectType" value="unit" text{($.selectType.indexOf('unit')!=-1)?'checked':''}/>组织
  107. <div id="text{$.pid}unitTypeSelect" style="display: text{($.selectType=='unit')?'block':'none'}; ">
  108. <div style="float: left">组织类型:</div><div class="MWFFormUnitTypeSelector" name="selectUnitType" style="float: left"></div>
  109. </div>
  110. </td>
  111. </tr>
  112. </table>
  113. <div id="text{$.pid}rangeScriptValue" style="border-bottom: 1px solid #999; display: text{($.range=='depart' || $.range=='company')?'block':'none'}; ">
  114. <div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定选择范围</div>
  115. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  116. <tr>
  117. <td class="editTableTitle">表单数据:</td>
  118. <td class="editTableValue"><div class="MWFFormFieldPerson" name="rangeField" type="formField"></div></td>
  119. </tr>
  120. </table>
  121. <div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过编写脚本指定选择范围</div>
  122. <div class="MWFScriptArea" name="rangeKey" title="脚本 (S)"></div>
  123. </div>
  124. </div>
  125. <div title="区段" class="MWFTab">
  126. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  127. <tr>
  128. <td class="editTableTitle">启用区段:</td>
  129. <td class="editTableValue">
  130. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>是
  131. <input onclick="if (this.checked){ $('text{$.pid}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>否
  132. </td>
  133. </tr>
  134. </table>
  135. <div id="text{$.pid}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">
  136. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  137. <tr>
  138. <td class="editTableTitle">区段依据:</td>
  139. <td class="editTableValue">
  140. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='department' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>处理人<br/>
  141. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='department')?'checked':''} type="radio" value="department"/>处理部门<br/>
  142. <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/>
  143. <input class="editTableRadio" onclick="if (this.checked){ $('text{$.pid}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>脚本<br/>
  144. </td>
  145. </tr>
  146. </table>
  147. <div id="text{$.pid}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">
  148. <div class="MWFScriptArea" name="sectionByScript" title="区段依据 (S)"></div>
  149. </div>
  150. </div>
  151. </div>
  152. <div title="事件" class="MWFTab">
  153. <div class="MWFEventsArea" name="events"></div>
  154. </div>
  155. <div title="HTML" class="MWFTab">
  156. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  157. </div>
  158. <div title="JSON" class="MWFTab">
  159. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  160. </div>
  161. </div>