budgetTempSheet-add.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>预算样表</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script type="text/javascript">
  9. <c:set var="actual" value="${empty param.actual?entity.actual:param.actual }"/>
  10. var actual='${actual}';
  11. $(function(){
  12. if(actual==1) {
  13. $("#officeId").removeAttr("datatype");
  14. $("#officeRed").hide();
  15. $("#finalGroupId").removeAttr("datatype");
  16. $("#finalGroupRed").hide();
  17. }
  18. })
  19. //编写自定义JS代码
  20. </script>
  21. </head>
  22. <body>
  23. <c:set var="type">${empty param.type?entity.type:param.type }</c:set>
  24. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="budgetTempSheetController.do?doAdd" >
  25. <input id="id" name="id" type="hidden" value="${entity.id }"/>
  26. <input id="actual" name="actual" type="hidden" value="${actual}"/>
  27. <input id="type" name="type" type="hidden" value="${type}"/>
  28. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  29. <tr>
  30. <td align="right">
  31. <label class="Validform_label">
  32. <span color="red" class="requiredIcon">*</span>
  33. 预算年份:
  34. </label>
  35. </td>
  36. <td class="value">
  37. <input id="periodYear" name="periodYear" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy'})" datatype="*"
  38. value="${entity.periodYear}"/>
  39. <span class="Validform_checktip"></span>
  40. <label class="Validform_label" style="display: none;">预算年份</label>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td align="right">
  45. <label class="Validform_label">
  46. <span color="red" class="requiredIcon">*</span>
  47. 样表名称:
  48. </label>
  49. </td>
  50. <td class="value">
  51. <input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" value="${entity.name}" />
  52. <span class="Validform_checktip"></span>
  53. <label class="Validform_label" style="display: none;">样表名称</label>
  54. </td>
  55. </tr>
  56. <c:if test="${actual==1}">
  57. <c:if test="${type=='normal_special'}">
  58. <tr>
  59. <td align="right">
  60. <label class="Validform_label">
  61. 专项预算类型:
  62. </label>
  63. </td>
  64. <td class="value">
  65. <t:dictSelect field="budgetSpecialType" type="list" typeGroupCode="budget_special_type" defaultVal="${entity.budgetSpecialType}" hasLabel="false" title="预算专项类型" ></t:dictSelect>
  66. </td>
  67. </tr>
  68. </c:if>
  69. </c:if>
  70. <tr>
  71. <td align="right">
  72. <label class="Validform_label">
  73. <span color="red" class="requiredIcon">*</span>
  74. ${actual==1?'能否回写':'预算调整回写'}:
  75. </label>
  76. </td>
  77. <td class="value">
  78. <t:dictSelect field="writeBack" type="list"
  79. typeGroupCode="shifou_01" defaultVal="${entity.writeBack}" hasLabel="false" title="能否回写" datatype="*"></t:dictSelect>
  80. <span class="Validform_checktip"></span>
  81. <label class="Validform_label" style="display: none;">能否回写</label>
  82. </td>
  83. </tr>
  84. <c:if test="${actual==1}">
  85. <c:if test="${type=='actual_sta'}">
  86. <tr>
  87. <td align="right">
  88. <label class="Validform_label">
  89. <span color="red" class="requiredIcon">*</span>
  90. 执行表统计类型:
  91. </label>
  92. </td>
  93. <td class="value">
  94. <t:dictSelect field="actualStaKind" type="list" readonly="${empty entity.id?'':'readonly'}"
  95. typeGroupCode="budget_actual_sta_kind" defaultVal="${entity.actualStaKind}" hasLabel="false" title="执行表统计类型" datatype="*"></t:dictSelect>
  96. </td>
  97. </tr>
  98. </c:if>
  99. </c:if>
  100. <tr>
  101. <td align="right">
  102. <label class="Validform_label">
  103. <span color="red" class="requiredIcon">*</span>
  104. 是否总表
  105. </label>
  106. </td>
  107. <td class="value">
  108. <t:dictSelect field="isTotal" type="list"
  109. typeGroupCode="shifou_01" defaultVal="${entity.isTotal}" hasLabel="false" title="能否回写" datatype="*"></t:dictSelect>
  110. <span class="Validform_checktip"></span>
  111. <label class="Validform_label" style="display: none;">是否总表</label>
  112. </td>
  113. </tr>
  114. <c:if test="${actual==0}"><%--实际表没有--%>
  115. <tr>
  116. <td align="right">
  117. <label class="Validform_label">
  118. <span color="red" class="requiredIcon">*</span>
  119. 编制方向:
  120. </label>
  121. </td>
  122. <td class="value">
  123. <t:dictSelect field="direction" type="list"
  124. typeGroupCode="budget_tempsheet_direction" defaultVal="${entity.direction}" hasLabel="false" title="编制方向" datatype="*"></t:dictSelect>
  125. <span class="Validform_checktip"></span>
  126. <label class="Validform_label" style="display: none;">编制方向</label>
  127. </td>
  128. </tr>
  129. </c:if>
  130. <tr>
  131. <td align="right">
  132. <label class="Validform_label">
  133. <font color="red" id="officeRed" class="requiredIcon">*</font>
  134. 归口部门:
  135. </label>
  136. </td>
  137. <td class="value">
  138. <input id="officeId" name="officeId" type="hidden" style="width: 150px" class="inputxt" datatype="*" nullmsg="请选择归口部门" value="${entity.officeId}" />
  139. <input id="officeName" name="officeName" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.officeName}" />
  140. <c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
  141. <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openOffice()">选择</a>
  142. </c:if>
  143. <span class="Validform_checktip"></span>
  144. <label class="Validform_label" style="display: none;">归口部门</label>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td align="right">
  149. <label class="Validform_label">
  150. 会审组:
  151. </label>
  152. </td>
  153. <td class="value">
  154. <input id="jointGroupId" name="jointGroupId" type="hidden" style="width: 150px" class="inputxt" nullmsg="请选择会审组" value="${entity.jointGroupId}" />
  155. <input id="jointGroupName" name="jointGroupName" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.jointGroupName}" />
  156. <c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
  157. <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openJointGroup()">选择</a>
  158. <a href="javascript:void(0);" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="clearJointGroup()">清空</a>
  159. </c:if>
  160. <span class="Validform_checktip"></span>
  161. <label class="Validform_label" style="display: none;">会审组</label>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td align="right">
  166. <label class="Validform_label">
  167. <font color="red" id="finalGroupRed" class="requiredIcon">*</font>
  168. 终审组:
  169. </label>
  170. </td>
  171. <td class="value">
  172. <input id="finalGroupId" name="finalGroupId" type="hidden" style="width: 150px" class="inputxt" datatype="*" nullmsg="请选择终审组" value="${entity.finalGroupId}" />
  173. <input id="finalGroupName" name="finalGroupName" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.finalGroupName}" />
  174. <c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
  175. <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openFinalGroup()">选择</a>
  176. </c:if>
  177. <span class="Validform_checktip"></span>
  178. <label class="Validform_label" style="display: none;">终审组</label>
  179. </td>
  180. </tr>
  181. <c:if test="${param.type=='orders' || entity.type=='orders'}">
  182. <tr>
  183. <td align="right">
  184. <label class="Validform_label">
  185. <span color="red" class="requiredIcon">*</span>
  186. 物料类别:
  187. </label>
  188. </td>
  189. <td class="value">
  190. <t:dictSelect field="ordersKind" type="list"
  191. typeGroupCode="budget_orders_kind" defaultVal="${entity.ordersKind}" hasLabel="false" title="物料类别" datatype="*"></t:dictSelect>
  192. </td>
  193. </tr>
  194. <tr>
  195. <td align="right">
  196. <label class="Validform_label">
  197. <span color="red" class="requiredIcon">*</span>
  198. 参考年份:
  199. </label>
  200. </td>
  201. <td class="value">
  202. <input id="refYear" name="refYear" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy'})" datatype="*"
  203. value="${entity.refYear}"/>
  204. </td>
  205. </tr>
  206. </c:if>
  207. </table>
  208. </t:formvalid>
  209. </body>
  210. <script src = "webpage/cn/com/lzt/budget/tempsheet/budgetTempSheet.js"></script>
  211. <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
  212. <script>
  213. function openOffice(){
  214. var url ='budgetOfficeController.do?select';
  215. _openDialog(url,'归口部门',function(iframe){
  216. var selectedRows = iframe.getSelectedRow();
  217. if(selectedRows.length==0){
  218. iframe.tip('请选择归口部门');
  219. return false;
  220. }
  221. var one = selectedRows[0];
  222. var id = one.id;
  223. var name = one.name;
  224. $('#officeId').val(id);
  225. $('#officeName').val(name);
  226. },'800px','600px');
  227. }
  228. function openJointGroup(){
  229. openVerifyGroup('joint');
  230. }
  231. function openFinalGroup() {
  232. openVerifyGroup('final');
  233. }
  234. function openVerifyGroup(groupType){
  235. var title ='请选择'+(groupType=='joint'?'会审组':'终审组');
  236. var url ='budgetVerifyGroupController.do?select&groupType='+groupType;
  237. _openDialog(url,title,function(iframe){
  238. var selectedRows = iframe.getSelectedRow();
  239. if(selectedRows.length==0){
  240. iframe.tip(title);
  241. return false;
  242. }
  243. var one = selectedRows[0];
  244. var id = one.id;
  245. var name = one.name;
  246. if(groupType=='joint'){
  247. $('#jointGroupId').val(id);
  248. $('#jointGroupName').val(name);
  249. }else{
  250. $('#finalGroupId').val(id);
  251. $('#finalGroupName').val(name);
  252. }
  253. },'800px','600px');
  254. }
  255. function clearJointGroup() {
  256. $('#jointGroupId').val('');
  257. $('#jointGroupName').val('');
  258. }
  259. </script>