budgetControl-add.jsp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. <style>
  8. .ui-button {
  9. display: inline-block;
  10. padding: 2px 2px;
  11. margin-bottom: 0;
  12. font-size: 8px;
  13. font-weight: normal;
  14. line-height: 1.42857143;
  15. text-align: center;
  16. white-space: nowrap;
  17. vertical-align: middle;
  18. -ms-touch-action: manipulation;
  19. touch-action: manipulation;
  20. cursor: pointer;
  21. -webkit-user-select: none;
  22. -moz-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. background-image: none;
  26. border: 1px solid transparent;
  27. border-radius: 4px;
  28. }
  29. </style>
  30. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  31. <script src="${webBasePath}/webpage/cn/com/lzt/useractiviti/detail_tools.js"></script>
  32. <script type="text/javascript">
  33. $(document).ready(function(){
  34. $('#tt').tabs({
  35. onSelect:function(title){
  36. $('#tt .panel-body').css('width','auto');
  37. }
  38. });
  39. $(".tabs-wrap").css('width','100%');
  40. });
  41. </script>
  42. </head>
  43. <body style="overflow-x: hidden;">
  44. <c:set var="type">${empty entity.type?param.type:entity.type }</c:set>
  45. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="budgetControlController.do?doAdd" >
  46. <input id="id" name="id" type="hidden" value="${entity.id }"/>
  47. <input id="type" name="type" type="hidden" value="${type}"/>
  48. <table cellpadding="0" cellspacing="1" class="formtable">
  49. <tr>
  50. <td align="right">
  51. <label class="Validform_label">名称:</label>
  52. </td>
  53. <td class="value">
  54. <input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" value="${entity.name}"/>
  55. <span class="Validform_checktip"></span>
  56. <label class="Validform_label" style="display: none;">名称</label>
  57. </td>
  58. </tr>
  59. </table>
  60. <div style="width: auto;height: 200px;">
  61. <%-- 增加一个div,用于调节页面大小,否则默认太小 --%>
  62. <div style="width:800px;height:1px;"></div>
  63. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  64. <t:tab href="budgetControlController.do?budgetControlDetailList&id=${entity.id}&type=${type}" icon="icon-search" title="预算控制详情" id="budgetControlDetail"></t:tab>
  65. </t:tabs>
  66. </div>
  67. </t:formvalid>
  68. <!-- 添加 附表明细 模版 -->
  69. <table style="display:none">
  70. <tbody id="add_budgetControlDetail_table_template">
  71. <tr>
  72. <td align="center"><div style="width: 25px;" name="xh"></div></td>
  73. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  74. <td align="left">
  75. <input name="budgetControlDetailList[#index#].measureId" type="hidden" />
  76. <input name="budgetControlDetailList[#index#].measureName" maxlength="255" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
  77. <label class="Validform_label" style="display: none;">预算指标</label>
  78. </td>
  79. <td align="left">
  80. <t:dictSelect field="budgetControlDetailList[#index#].controlPeriod" type="select" typeGroupCode="budget_control_period" defaultVal="" hasLabel="false" title="控制周期"></t:dictSelect>
  81. <label class="Validform_label" style="display: none;">控制周期</label>
  82. </td>
  83. <td align="left">
  84. <t:dictSelect field="budgetControlDetailList[#index#].controlNature" type="select" typeGroupCode="budget_control_nature" defaultVal="" hasLabel="false" title="控制性质"></t:dictSelect>
  85. <label class="Validform_label" style="display: none;">控制性质</label>
  86. </td>
  87. <td align="left">
  88. <input name="budgetControlDetailList[#index#].controlPer" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="/^(-?\d+)(\.\d+)?$/" ignore="ignore" />
  89. <label class="Validform_label" style="display: none;">弹性系数</label>
  90. </td>
  91. <td align="left">
  92. <t:dictSelect field="budgetControlDetailList[#index#].controlWay" type="select" typeGroupCode="budget_control_way" defaultVal="" hasLabel="false" title="控制种属"></t:dictSelect>
  93. <label class="Validform_label" style="display: none;">控制种属</label>
  94. </td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. </body>
  99. <script src = "webpage/cn/com/lzt/budget/control/budgetControl.js"></script>