budgetFinanceWriteBack-add.jsp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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,autocomplete"></t:base>
  31. <script src="${webBasePath}/webpage/cn/com/lzt/useractiviti/detail_tools.js"></script>
  32. <script src="webpage/cn/com/lzt/budget/data/js/budget_tools.js?v=1" type="text/javascript"></script>
  33. <script type="text/javascript">
  34. $(document).ready(function(){
  35. $('#tt').tabs({
  36. onSelect:function(title){
  37. changeTabHeight();
  38. }
  39. });
  40. $(".tabs-wrap").css('width','100%');
  41. if($.Datatype) {
  42. $.Datatype.fix2 = function (val, obj, frm) {
  43. $(obj).val(parseFloat(val).toFixed(2));
  44. return true;
  45. }
  46. }
  47. $('input[name$="measureName"]').live('click',function () {
  48. var t=$(this);
  49. var index =getIndex(t.attr('name'));
  50. selectMeasure4finalcewriteback(function(selectedRows){
  51. var one = selectedRows[0];
  52. var id = one.id;
  53. var name = one.name;
  54. setValue(index,"measureId",id);
  55. setValue(index,"measureName",name);
  56. });
  57. });
  58. $('input[name$="money"]').live('change',function () {
  59. changeTotalMoney();
  60. });
  61. });
  62. function changeTotalMoney(){
  63. var totalMoney = 0;
  64. $('input[name$="money"]').each(function(){
  65. var money = $(this).val();
  66. if(money && !isNaN(money)) {
  67. totalMoney += parseFloat(money);
  68. }
  69. });
  70. totalMoney=totalMoney.toFixed(2);
  71. $('#totalMoney').val(totalMoney);
  72. }
  73. function changeTabHeight(){
  74. var height =window.top.document.body.offsetHeight;
  75. height = height -181.3 - 36 - 100 -4;//去掉底部输入框table高度、title高度、弹出框小于后台页面高度、文本格式高度
  76. $('#tt .panel-body').css('width','auto').css('height',height+'px');
  77. }
  78. </script>
  79. </head>
  80. <body style="overflow-x: hidden;">
  81. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" tipSweep="true"
  82. action="budgetFinanceWriteBackController.do?doAdd" >
  83. <input id="id" name="id" type="hidden" value="${entity.id }"/>
  84. <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
  85. <t:tab href="budgetFinanceWriteBackController.do?budgetFinanceWriteBackDetailList&id=${entity.id}" icon="icon-search" title="财务回写详情" id="budgetFinanceWriteBackDetail"></t:tab>
  86. </t:tabs>
  87. <table cellpadding="0" cellspacing="1" class="formtable" style="width:928px;">
  88. <tr>
  89. <td align="right">
  90. <label class="Validform_label">计入月度:</label>
  91. </td>
  92. <td class="value">
  93. <input id="budgetMonth" name="budgetMonth" type="text" style="width: 150px" class="inputxt" datatype="*" value="${entity.budgetMonth}"
  94. readonly="readonly" onClick="WdatePicker({dateFmt:'yyyy-MM'})"/>
  95. <span class="Validform_checktip"></span>
  96. <label class="Validform_label" style="display: none;">计入月度</label>
  97. </td>
  98. <td align="right">
  99. <label class="Validform_label">总金额:</label>
  100. </td>
  101. <td class="value">
  102. <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.totalMoney}"/>
  103. <span class="Validform_checktip"></span>
  104. <label class="Validform_label" style="display: none;">总金额</label>
  105. </td>
  106. </tr>
  107. <tr>
  108. <td align="right">
  109. <label class="Validform_label">附件:</label>
  110. </td>
  111. <td class="value">
  112. <t:webUploader auto="true" busiId="${entity.id}" readOnly="${param.load=='detail' || in_process}"
  113. busiTable="t_b_budget_finance_write_back"
  114. bizType="attachment"
  115. extensions="png,jpg,jpeg,bmp"
  116. name="attachment" duplicate="true"
  117. nullMsg="附件不可为空"></t:webUploader>
  118. <span class="Validform_checktip"></span>
  119. <label class="Validform_label" style="display: none;">附件</label>
  120. </td>
  121. </tr>
  122. <tr>
  123. <td align="right">
  124. <label class="Validform_label">备注:</label>
  125. </td>
  126. <td class="value">
  127. <textarea id="remark" name="remark" style="width: 300px;height:100px;" class="inputxt">${entity.remark}</textarea>
  128. <span class="Validform_checktip"></span>
  129. <label class="Validform_label" style="display: none;">备注</label>
  130. </td>
  131. </tr>
  132. </table>
  133. </t:formvalid>
  134. <!-- 添加 附表明细 模版 -->
  135. <table style="display:none">
  136. <tbody id="add_budgetFinanceWriteBackDetail_table_template">
  137. <tr>
  138. <td align="center">
  139. <div style="width: 25px;" name="xh"></div>
  140. </td>
  141. <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
  142. <td align="left">
  143. <input name="budgetFinanceWriteBackDetailList[#index#].entityId" type="hidden" datatype="*"/>
  144. <input name="budgetFinanceWriteBackDetailList[#index#].entityName" type="text" class="inputxt" style="width:120px;" />
  145. <label class="Validform_label" style="display: none;">预算主体</label>
  146. </td>
  147. <td align="left">
  148. <input name="budgetFinanceWriteBackDetailList[#index#].measureId" type="hidden" />
  149. <input name="budgetFinanceWriteBackDetailList[#index#].measureName" type="text" class="inputxt" style="width:120px;" datatype="*"/>
  150. <label class="Validform_label" style="display: none;">预算指标</label>
  151. </td>
  152. <td align="left">
  153. <input name="budgetFinanceWriteBackDetailList[#index#].money" maxlength="16" type="text" class="inputxt" style="width:120px;" datatype="d,fix2" />
  154. <label class="Validform_label" style="display: none;">金额</label>
  155. </td>
  156. <td align="left">
  157. <input name="budgetFinanceWriteBackDetailList[#index#].remark" maxlength="500" type="text" class="inputxt" style="width:500px;" />
  158. <label class="Validform_label" style="display: none;">明细</label>
  159. </td>
  160. </tr>
  161. </tbody>
  162. </table>
  163. </body>
  164. <script src = "webpage/cn/com/lzt/budget/financewriteback/budgetFinanceWriteBack.js"></script>