column.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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">{{$.lp.columnTitle}}:</td>
  6. <td class="editTableValue"><input type="text" name="displayName" value="text{$.displayName}" class="editTableInput"/></td>
  7. </tr>
  8. <tr>
  9. <td class="editTableTitle">{{$.lp.columnName}}:</td>
  10. <td class="editTableValue"><input type="text" name="column" value="text{$.column}" class="editTableInput"/></td>
  11. </tr>
  12. <tr>
  13. <td class="editTableTitle">{{$.lp.defaultValue}}:</td>
  14. <td class="editTableValue"><input type="text" name="defaultValue" value="text{$.defaultValue}" class="editTableInput"/></td>
  15. </tr>
  16. <tr>
  17. <td class="editTableTitle">{{$.lp.openDocument}}:</td>
  18. <td class="editTableValue">
  19. <input class="editTableRadio" name="allowOpen" text{($.allowOpen===true)?'checked':''} type="radio" value="true"
  20. onclick="if(this.checked){ $('text{$.pid}clickCodeTr').setStyle('display', '');}"/>{{$.lp.yes}}
  21. <input class="editTableRadio" name="allowOpen" text{($.allowOpen!==true)?'checked':''} type="radio" value="false"
  22. onclick="if(this.checked){ $('text{$.pid}clickCodeTr').setStyle('display', 'none');}"/>{{$.lp.no}}
  23. </td>
  24. </tr>
  25. <tr id="text{$.pid}clickCodeTr" style="display:text{($.allowOpen===true)?'':'none'}">
  26. <td class="editTableValue" colspan="2">
  27. <div class="MWFFormulaArea" name="clickCode" title="{{$.lp.openDocumentScript}}(S)"></div>
  28. </td>
  29. </tr>
  30. </table>
  31. <div style="border-top: 1px solid #999; margin-top:10px">
  32. <div style="background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold">{{$.lp.data}}</div>
  33. <div class="MWFDataData" id="text{$.pid}dataDataEditor">
  34. <div style="display:text{($.vtype=='process')?'block':'none'}" id="text{$.pid}dataPathSelectedProcessArea" class="text{$.vid}dataPathSelectedProcessArea">
  35. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  36. <tr>
  37. <td class="editTableTitle">{{$.lp.selectData}}:</td>
  38. <td class="editTableValue"><select id="text{$.pid}dataPathSelected" onchange=" var v=this.options[this.selectedIndex].value; if (v){var n = $('text{$.pid}viewColumnPathInput'); n.set('value', v); n.focus();} ">
  39. <option value="" selected>{{$.lp.selectTitle}}</option>
  40. <option value="$work.title">{{$.lp.title}}</option>
  41. <option value="$work.startTime">{{$.lp.startTime}}</option>
  42. <option value="$work.startTimeMonth">{{$.lp.startTimeMonth}}</option>
  43. <option value="$work.completedTime">{{$.lp.completedTime}}</option>
  44. <option value="$work.completedTimeMonth">{{$.lp.completedTimeMonth}}</option>
  45. <option value="$work.creatorPerson">{{$.lp.creatorPerson}}</option>
  46. <option value="$work.creatorIdentity">{{$.lp.creatorIdentity}}</option>
  47. <option value="$work.creatorUnit">{{$.lp.creatorUnit}}</option>
  48. <option value="$work.creatorUnitLevelName">{{$.lp.creatorUnitLevelName}}</option>
  49. <option value="$work.application">{{$.lp.application}}</option>
  50. <option value="$work.applicationName">{{$.lp.applicationName}}</option>
  51. <option value="$work.applicationAlias">{{$.lp.applicationAlias}}</option>
  52. <option value="$work.process">{{$.lp.process}}</option>
  53. <option value="$work.processName">{{$.lp.processName}}</option>
  54. <option value="$work.processAlias">{{$.lp.processAlias}}</option>
  55. <option value="$work.serial">{{$.lp.serial}}</option>
  56. <option value="$work.activityType">{{$.lp.activityType}}</option>
  57. <option value="$work.activityName">{{$.lp.activityName}}</option>
  58. <option value="$work.activityArrivedTime">{{$.lp.activityArrivedTime}}</option>
  59. <option value="$work.workId">{{$.lp.workId}}</option>
  60. <option value="$work.workCompletedId">{{$.lp.workCompletedId}}</option>
  61. <option value="$work.job">{{$.lp.job}}</option>
  62. <option value="$work.completed">{{$.lp.completed}}</option>
  63. </select></td>
  64. </tr>
  65. </table>
  66. </div>
  67. <div style="display:text{($.vtype=='cms')?'block':'none'}" id="text{$.pid}dataPathSelectedCMSArea" class="text{$.vid}dataPathSelectedCMSArea">
  68. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  69. <tr>
  70. <td class="editTableTitle">{{$.lp.selectData}}:</td>
  71. <td class="editTableValue"><select id="text{$.pid}dataPathSelectedCMS" onchange="var v=this.options[this.selectedIndex].value; if (v){var n = $('text{$.pid}viewColumnPathInput'); n.set('value', v); n.focus();} ">
  72. <option value="" selected>{{$.lp.selectTitle}}</option>
  73. <option value="$document.title">{{$.lp.title}}</option>
  74. <option value="$document.publishTime">{{$.lp.publishTime}}</option>
  75. <option value="$document.creatorPerson">{{$.lp.creatorPerson}}</option>
  76. <option value="$document.creatorIdentity">{{$.lp.creatorIdentity}}</option>
  77. <option value="$document.creatorUnitName">{{$.lp.creatorUnitName}}</option>
  78. <option value="$document.creatorTopUnitName">{{$.lp.creatorTopUnitName}}</option>
  79. <option value="$document.appId">{{$.lp.appId}}</option>
  80. <option value="$document.appName">{{$.lp.appName}}</option>
  81. <option value="$document.categoryId">{{$.lp.categoryId}}</option>
  82. <option value="$document.categoryName">{{$.lp.categoryName}}</option>
  83. <option value="$document.categoryAlias">{{$.lp.categoryAlias}}</option>
  84. <option value="$document.id">{{$.lp.documentId}}</option>
  85. </select></td>
  86. </tr>
  87. </table>
  88. </div>
  89. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  90. <tr>
  91. <td class="editTableTitle">{{$.lp.dataPath}}:</td>
  92. <td class="editTableValue"><input onkeypress="$('text{$.pid}dataPathSelected').getElement('option').set('selected', true); $('text{$.pid}dataPathSelectedCMS').getElement('option').set('selected', true)" id="text{$.pid}viewColumnPathInput" type="text" name="path" value="text{$.path}" class="editTableInput"/></td>
  93. </tr>
  94. </table>
  95. </div>
  96. </div>
  97. <div style="border-top: 1px solid #999; margin-top:10px">
  98. <div class="MWFColumnExport" id="text{$.pid}columnExportEditor">
  99. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  100. <tr>
  101. <td class="editTableTitle">{{$.lp.order}}:</td>
  102. <td class="editTableValue"><select name="orderType" onchange="
  103. var node = $(this).getParent('table').getElement('.MWFColumnExportNumberOrder');
  104. if(this.options[this.selectedIndex].value==='none'){
  105. node.hide();
  106. node.getElements('input')[1].click();
  107. }else{
  108. node.setStyle('display','table-row');
  109. }
  110. ">
  111. <option value="none" text{(($.orderType)!='asc' && ($.orderType)!='desc') ?'selected':''}>{{$.lp.none}}</option>
  112. <option value="asc" text{($.orderType)=='asc' ?'selected':''}>{{$.lp.asc}}</option>
  113. <option value="desc" text{($.orderType)=='desc' ?'selected':''}>{{$.lp.desc}}</option>
  114. </select></td>
  115. </tr>
  116. <tr class="MWFColumnExportNumberOrder" style="display: text{(($.orderType)!='asc' && ($.orderType)!='desc') ?'none':'table-row'}">
  117. <td class="editTableTitle">{{$.lp.orderToNumber}}:</td>
  118. <td class="editTableValue">
  119. <input class="MWFWorkDataCheck" name="numberOrder" type="radio" value="true" text{($.numberOrder)===true?'checked':''}/>{{$.lp.yes}}
  120. <input class="MWFWorkDataCheck" name="numberOrder" type="radio" value="false" text{($.numberOrder)!==true?'checked':''}/>{{$.lp.no}}
  121. </td>
  122. </tr>
  123. <tr class="MWFColumnExportGroup">
  124. <td class="editTableTitle">{{$.lp.category}}:</td>
  125. <td class="editTableValue">
  126. <input class="MWFWorkDataCheck" name="groupEntry" type="radio" value="true" text{($.groupEntry)===true?'checked':''}/>{{$.lp.yes}}
  127. <input class="MWFWorkDataCheck" name="groupEntry" type="radio" value="false" text{($.groupEntry)!==true?'checked':''}/>{{$.lp.no}}
  128. </td>
  129. </tr>
  130. </table>
  131. </div>
  132. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable">
  133. <tr class="MWFColumnExportHide">
  134. <td class="editTableTitle">{{$.lp.hidden}}:</td>
  135. <td class="editTableValue">
  136. <input class="MWFWorkDataCheck" name="hideColumn" type="radio" value="true" text{($.hideColumn)===true?'checked':''}/>{{$.lp.yes}}
  137. <input class="MWFWorkDataCheck" name="hideColumn" type="radio" value="false" text{($.hideColumn)!==true?'checked':''}/>{{$.lp.no}}
  138. </td>
  139. </tr>
  140. <tr class="MWFColumnExportGroup">
  141. <td class="editTableTitle">{{$.lp.org}}:</td>
  142. <td class="editTableValue">
  143. <input class="MWFWorkDataCheck" name="isName" type="radio" value="true" text{($.isName)===true?'checked':''}/>{{$.lp.yes}}
  144. <input class="MWFWorkDataCheck" name="isName" type="radio" value="false" text{($.isName)!==true?'checked':''}/>{{$.lp.no}}
  145. </td>
  146. </tr>
  147. <tr class="MWFColumnExportGroup">
  148. <td class="editTableTitle">{{$.lp.htmlValue}}:</td>
  149. <td class="editTableValue">
  150. <input class="MWFWorkDataCheck" name="isHtml" type="radio" value="true" text{($.isHtml)===true?'checked':''}/>{{$.lp.yes}}
  151. <input class="MWFWorkDataCheck" name="isHtml" type="radio" value="false" text{($.isHtml)!==true?'checked':''}/>{{$.lp.no}}
  152. </td>
  153. </tr>
  154. </table>
  155. </div>
  156. <div class="MWFFormulaArea" name="code" title="{{$.lp.showScript}}(S)" data-type="service"></div>
  157. <div style="border-top: 1px solid #999; margin-top:10px">
  158. <div style="background-color: #EEE; height:24px; line-height: 24px; text-align: center; font-weight: bold">{{$.lp.export}}</div>
  159. <div style="height:24px; line-height: 24px; text-align: left; font-size: 14px; color:#999;">{{$.lp.exportNotice}}</div>
  160. <div class="MWFDataData" id="text{$.pid}dataExportEditor">
  161. <table width="100%" border="0" cellpadding="5" cellspacing="0" class="editTable" style="table-layout: fixed;">
  162. <tr>
  163. <td class="editTableTitle">{{$.lp.exportEnable}}:</td>
  164. <td class="editTableValue">
  165. <input name="exportEnable" type="radio" value="true" text{($.exportEnable)!==false?'checked':''}/>{{$.lp.yes}}
  166. <input name="exportEnable" type="radio" value="false" text{($.exportEnable)===false?'checked':''}/>{{$.lp.no}}
  167. </td>
  168. </tr>
  169. <tr>
  170. <td class="editTableTitle">{{$.lp.exportWidth}}:</td>
  171. <td class="editTableValue">
  172. <input type="text" name="exportWidth" value="text{$.exportWidth || 200}" class="editTableInputNoWidth"/>px
  173. </td>
  174. </tr>
  175. <tr>
  176. <td class="editTableTitle">{{$.lp.isTime}}:</td>
  177. <td class="editTableValue">
  178. <input class="MWFWorkDataCheck" name="isTime" type="radio" value="true" onclick="if(this.checked){
  179. $$('[name=text{$.mid}isNumber]').each(function( el ){ if(el.get('value') === 'false' ){ el.set('checked', true); el.fireEvent('change') }})
  180. }" text{($.isTime)===true?'checked':''}/>{{$.lp.yes}}
  181. <input class="MWFWorkDataCheck" name="isTime" type="radio" value="false" text{($.isTime)!==true?'checked':''}/>{{$.lp.no}}
  182. </td>
  183. </tr>
  184. <tr>
  185. <td class="editTableTitle">{{$.lp.isNumber}}:</td>
  186. <td class="editTableValue">
  187. <input class="MWFWorkDataCheck" name="isNumber" type="radio" value="true" onclick="if(this.checked){
  188. $$('[name=text{$.mid}isTime]').each(function( el ){ if(el.get('value') === 'false' ){el.set('checked', true); el.fireEvent('change') }})
  189. }" text{($.isNumber)===true?'checked':''}/>{{$.lp.yes}}
  190. <input class="MWFWorkDataCheck" name="isNumber" type="radio" value="false" text{($.isNumber)!==true?'checked':''}/>{{$.lp.no}}
  191. </td>
  192. </tr>
  193. <tr>
  194. <td class="editTableTitle">{{$.lp.total}}:</td>
  195. <td class="editTableValue">
  196. <input class="editTableRadio" name="total" text{!($.total) || ($.total=='no')?'checked':''} type="radio" value="no"/>{{$.lp.notNeeded}} <br/>
  197. <input class="editTableRadio" name="total" text{($.total=='number')?'checked':''} type="radio" value="number"/>{{$.lp.totalValue}} <br/>
  198. <input class="editTableRadio" name="total" text{($.total=='count')?'checked':''} type="radio" value="count"/>{{$.lp.totalCount}} <br/>
  199. </td>
  200. </tr>
  201. </table>
  202. </div>
  203. </div>
  204. </div>
  205. <div title="{{$.lp.style}}" class="MWFTab">
  206. <div class="MWFMaplist" name="titleStyles" title="{{$.lp.titleStyles}}"></div>
  207. <div class="MWFMaplist" name="titleProperties" title="{{$.lp.titleProperties}}"></div>
  208. <div class="MWFMaplist" name="contentStyles" title="{{$.lp.contentStyles}}"></div>
  209. <div class="MWFMaplist" name="contentProperties" title="{{$.lp.contentProperties}}"></div>
  210. </div>
  211. <div title="{{$.lp.event}}" class="MWFTab">
  212. <div class="MWFEventsArea" name="events"></div>
  213. </div>
  214. <div title="JSON" class="MWFTab">
  215. <div class="MWFJSONArea" style="font-family: Verdana, Geneva, sans-serif; font-size:14px"></div>
  216. </div>
  217. </div>