readerfield.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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="valueType" value="string" text{($.valueType=='string')?'checked':''}/>字符串
  41. <input type="radio" name="valueType" value="object" text{($.valueType!=='string')?'checked':''}/>对象
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="editTableTitle">允许输入:</td>
  46. <td class="editTableValue">
  47. <input type="radio" name="isInput" value="true" text{($.isInput)?'checked':''}/>是
  48. <input type="radio" name="isInput" value="false" text{(!$.isInput)?'checked':''}/>否
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="editTableTitle">分隔符:</td>
  53. <td class="editTableValue">
  54. <input type="text" name="splitShow" value="text{$.splitShow}" class="editTableInput"/>
  55. </td>
  56. </tr>
  57. </table>
  58. <br/>
  59. <div class="MWFMaplist" name="styles" title="样式"></div>
  60. <div class="MWFMaplist" name="inputStyles" title="Input样式"></div>
  61. <div class="MWFMaplist" name="properties" title="属性"></div>
  62. <div style="height: 28px; font-weight: bold; line-height:28px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">默认值:</div>
  63. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  64. <tr>
  65. <td class="editTableTitle">计算:</td>
  66. <td class="editTableValue">
  67. <input type="radio" name="compute" value="create" text{($.compute.indexOf('create')!=-1)?'checked':''}/>创建
  68. <input type="radio" name="compute" value="save" text{($.compute.indexOf('save')!=-1)?'checked':''}/>保存
  69. <input type="radio" name="compute" value="show" text{($.compute.indexOf('show')!=-1)?'checked':''}/>显示
  70. </td>
  71. </tr>
  72. </table>
  73. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  74. <tr>
  75. <td class="editTableTitle">用户标识:</td>
  76. <td class="editTableValue">
  77. <div class="MWFPersonIdentity" name="identityValue"></div>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class="editTableTitle">组  织:</td>
  82. <td class="editTableValue">
  83. <div class="MWFPersonUnit" name="unitValue" type="unit"></div>
  84. </td>
  85. </tr>
  86. <!--<tr>-->
  87. <!--<td class="editTableTitle">部  门:</td>-->
  88. <!--<td class="editTableValue">-->
  89. <!--<div class="MWFPersonDepartment" name="departmentValue" type="department"></div>-->
  90. <!--</td>-->
  91. <!--</tr>-->
  92. <!--<tr>-->
  93. <!--<td class="editTableTitle">公  司:</td>-->
  94. <!--<td class="editTableValue">-->
  95. <!--<div class="MWFPersonCompany" name="companyValue" type="company"></div>-->
  96. <!--</td>-->
  97. <!--</tr>-->
  98. <!--<tr>-->
  99. <!--<td class="editTableTitle">职  位:</td>-->
  100. <!--<td class="editTableValue">-->
  101. <!--<div class="MWFDutySelector" name="dutyValue"></div>-->
  102. <!--</td>-->
  103. <!--</tr>-->
  104. </table>
  105. <div class="MWFFormulaArea" name="defaultValue" title="默认值脚本 (S)"></div>
  106. <div class="MWFValidation" name="validationConfig"></div>
  107. <div class="MWFScriptArea" name="validation" title="校验脚本 (S)"></div>
  108. </div>
  109. <div title="选择" class="MWFTab">
  110. <div style="height: 24px; line-height:24px; font-weight:bold;background-color: #DDD; border-top:1px solid #999; padding: 0px 6px">人员选择配置</div>
  111. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  112. <tr>
  113. <td class="editTableTitle">选择类型:</td>
  114. <td class="editTableValue">
  115. <input type="checkbox" name="selectType" value="person" text{($.selectType.indexOf('person')!=-1)?'checked':''}/>个人
  116. <input type="checkbox" name="selectType" value="identity" text{($.selectType.indexOf('identity')!=-1)?'checked':''}/>身份
  117. <input onchange="$('text{$.pid}unitTypeSelect').setStyle('display', this.checked ? 'block':'none');"
  118. type="checkbox" name="selectType" value="unit" text{($.selectType.indexOf('unit')!=-1)?'checked':''}/>组织
  119. <input type="checkbox" name="selectType" value="group" text{($.selectType.indexOf('group')!=-1)?'checked':''}/>群组
  120. <div id="text{$.pid}unitTypeSelect" style="display: text{($.selectType.indexOf('unit')!=-1)?'block':'none'};">
  121. <div style="float: left">组织类型:</div><div class="MWFFormUnitTypeSelector" name="selectUnitType" style="float: left"></div>
  122. </div>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td class="editTableTitle">选择数量:</td>
  127. <td class="editTableValue"><input type="text" name="count" value="text{$.count}" class="editTableInput"/></td>
  128. </tr>
  129. <tr id="text{$.pid}selectRange">
  130. <td class="editTableTitle">组织选择范围:</td>
  131. <td class="editTableValue">
  132. <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/>
  133. <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/>
  134. <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/>
  135. <div id="text{$.pid}rangeNextArea" style="border-top: 1px solid #999; display: text{($.range=='draftUnit' || $.range=='currentUnit')?'block':'none'}; ">
  136. <input type="radio" name="rangeNext" value="direct" text{(['level', 'type'].indexOf($.rangeNext)==-1)?'checked':''}/>直接所属组织<br/>
  137. <input type="radio" name="rangeNext" value="level" text{(($.rangeNext) && $.rangeNext.indexOf('level')!=-1)?'checked':''}/>第
  138. <div style="display: inline"><select name="rangeNextLevel">
  139. <option value="1" text{($.rangeDraftLevel=='1')?'selected':''}>1</option>
  140. <option value="2" text{($.rangeDraftLevel=='2')?'selected':''}>2</option>
  141. <option value="3" text{($.rangeDraftLevel=='3')?'selected':''}>3</option>
  142. <option value="4" text{($.rangeDraftLevel=='4')?'selected':''}>4</option>
  143. <option value="5" text{($.rangeDraftLevel=='5')?'selected':''}>5</option>
  144. <option value="6" text{($.rangeDraftLevel=='6')?'selected':''}>6</option>
  145. <option value="7" text{($.rangeDraftLevel=='7')?'selected':''}>7</option>
  146. <option value="8" text{($.rangeDraftLevel=='8')?'selected':''}>8</option>
  147. <option value="9" text{($.rangeDraftLevel=='9')?'selected':''}>9</option>
  148. </select>层组织</div><br/>
  149. <input style="float: left" type="radio" name="rangeNext" value="type" text{(($.rangeNext) && $.rangeNext.indexOf('type')!=-1)?'checked':''}/>类型为
  150. <div class="MWFFormUnitTypeSelector" name="rangeNextUnitType" style="display: inline"></div>
  151. 的组织<br/>
  152. </div>
  153. </td>
  154. </tr>
  155. </table>
  156. <div id="text{$.pid}rangeScriptValue" style="border-bottom: 1px solid #999; ">
  157. <div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过选择表单数据指定组织的选择范围</div>
  158. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  159. <tr>
  160. <td class="editTableTitle">表单数据:</td>
  161. <td class="editTableValue"><div class="MWFFormFieldPerson" name="rangeField" type="formField"></div></td>
  162. </tr>
  163. </table>
  164. <div style="height: 24px; line-height:24px; background-color: #EEE; padding: 0px 6px; border-top: 1px solid #999">通过编写脚本指定组织的选择范围</div>
  165. <div class="MWFScriptArea" name="rangeKey" title="脚本 (S)"></div>
  166. </div>
  167. <div>
  168. <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>
  169. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  170. <tr>
  171. <td class="editTableTitle">数据保存:</td>
  172. <td class="editTableValue">
  173. <input type="radio" name="storeRange" value="full" text{($.storeRange!='simple')?'checked':''}/>完整
  174. <input type="radio" name="storeRange" value="simple" text{($.storeRange=='simple')?'checked':''}/>精简
  175. </td>
  176. </tr>
  177. </table>
  178. </div>
  179. </div>
  180. <!--<div title="区段" class="MWFTab">-->
  181. <!--<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  182. <!--<tr>-->
  183. <!--<td class="editTableTitle">启用区段:</td>-->
  184. <!--<td class="editTableValue">-->
  185. <!--<input onclick="if (this.checked){ $('text{$.id}sectionByEditArea').setStyle('display', 'block')}" type="radio" name="section" value="yes" text{($.section=='yes')?'checked':''}/>是-->
  186. <!--<input onclick="if (this.checked){ $('text{$.id}sectionByEditArea').setStyle('display', 'none')}" type="radio" name="section" value="no" text{($.section!='yes')?'checked':''}/>否-->
  187. <!--</td>-->
  188. <!--</tr>-->
  189. <!--</table>-->
  190. <!--<div id="text{$.id}sectionByEditArea" style="display: text{($.section=='yes')?'block':'none'};">-->
  191. <!--<table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">-->
  192. <!--<tr>-->
  193. <!--<td class="editTableTitle">区段依据:</td>-->
  194. <!--<td class="editTableValue">-->
  195. <!--<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{(($.sectionBy=='person') || ($.sectionBy!='department' && $.sectionBy!='activity' && $.sectionBy!='script'))?'checked':''} type="radio" value="person"/>处理人<br/>-->
  196. <!--<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='department')?'checked':''} type="radio" value="department"/>处理部门<br/>-->
  197. <!--<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}sectionByScriptEditArea').setStyle('display', 'none');}" name="sectionBy" text{($.sectionBy=='activity')?'checked':''} type="radio" value="activity"/>活动ID<br/>-->
  198. <!--<input class="editTableRadio" onclick="if (this.checked){ $('text{$.id}sectionByScriptEditArea').setStyle('display', 'block');}" name="sectionBy" text{($.sectionBy=='script')?'checked':''} type="radio" value="script"/>脚本<br/>-->
  199. <!--</td>-->
  200. <!--</tr>-->
  201. <!--</table>-->
  202. <!--<div id="text{$.id}sectionByScriptEditArea" style="display: text{($.sectionBy=='script')?'block':'none'};">-->
  203. <!--<div class="MWFScriptArea" name="sectionByScript" title="区段依据 (S)"></div>-->
  204. <!--</div>-->
  205. <!--</div>-->
  206. <!--</div>-->
  207. <div title="事件" class="MWFTab">
  208. <div class="MWFEventsArea" name="events"></div>
  209. </div>
  210. <div title="HTML" class="MWFTab">
  211. <div class="MWFHTMLArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  212. </div>
  213. </div>