infoCost.jsp 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>查看</title>
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript">
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  14. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  15. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  16. <script type="text/javascript" src="/shares/js/file.js"></script>
  17. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  18. <script type="text/javascript" src="/shares/js/constant.js"></script>
  19. <script type="text/javascript" src="/shares/js/common.js"></script>
  20. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  21. <script type="text/javascript">
  22. $(function() {
  23. $("#tab1").ligerTab({
  24. onBeforeSelectTabItem : function(tabid) {
  25. },
  26. onAfterSelectTabItem : function(tabid) {
  27. showBorrow(tabid);
  28. }
  29. });
  30. getCostHand();
  31. });
  32. function showBorrow(obj) {
  33. if (obj == 'tabitem2') {
  34. getCostStay();
  35. }
  36. }
  37. function getCostHand(){
  38. var grid = null;
  39. grid = $("#maingrid1").ligerGrid({
  40. columns: [
  41. { display: '序号', name: 'cost_hand_num', width: 100},
  42. { display: '工程名称', name: 'cost_hand_project_name', width: 100},
  43. { display: '合同造价(万元)', name: 'cost_hand_contract_price', width: 150},
  44. { display: '合计收到工程款(万元)', name: 'cost_hand_project_funds', width: 170},
  45. {display: '管理费', columns:[
  46. { display: '费率', name: 'cost_hand_mar_rate', width: 100},
  47. { display: '金额(万元)', name: 'cost_hand_mgr_price', width: 150}
  48. ]},
  49. {display: '企业所得税', columns:[
  50. { display: '税率', name: 'cost_hand_tax_ratio', width: 100},
  51. { display: '金额(万元)', name: 'cost_hand_hand_price', width: 150}
  52. ]},
  53. {display: '项目经理补贴费', columns:[
  54. { display: '每月金额(万元)', name: 'cost_hand_promagr_subsidy', width: 150},
  55. { display: '月数', name: 'cost_hand_subsidy_count', width: 100},
  56. { display: '金额(万元)', name: 'cost_hand_subsidy_price', width: 150}
  57. ]},
  58. {display: '安全员补贴费', columns:[
  59. { display: '每月金额(万元)', name: 'cost_hand_safer_subsidy', width: 150},
  60. { display: '月数', name: 'cost_hand_safer_count', width: 100},
  61. { display: '金额(万元)', name: 'cost_hand_safer_price', width: 150}
  62. ]},
  63. {display: '其他', columns:[
  64. { display: '名称', name: 'cost_hand_other_name', width: 100},
  65. { display: '金额(万元)', name: 'cost_hand_other_price', width: 150}
  66. ]},
  67. { display: '小计(万元)', name: 'cost_hand_cost_count', width: 150},
  68. { display: '备注1', name: 'cost_hand_remark_1', width: 150},
  69. { display: '备注2', name: 'cost_hand_remark_2', width: 150},
  70. { display: '附件', name: 'cost_hand_affix', width: 300
  71. ,render: function (row) {
  72. return getListDoc(row.cost_hand_affix);
  73. }
  74. }
  75. ],
  76. fixedCellHeight: false, //是否固定单元格的高度
  77. pageSize:50,
  78. url: 'CostAction.do?task=listCostHand&cost_id=${requestScope.costInfo.cost_id}&time=' + new Date().getTime(),
  79. pageParmName: 'p', //页索引参数名,(提交给服务器)
  80. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  81. width: '99.8%',
  82. height: '99%'
  83. });
  84. $("#pageloading").hide();
  85. }
  86. function getCostStay(){
  87. var grid = null;
  88. grid = $("#maingrid2").ligerGrid({
  89. columns: [
  90. { display: '序号', name: 'cost_stay_num', width: 100 },
  91. { display: '日期', name: 'cost_stay_date', width: 100
  92. ,render: function (row) {
  93. var html = subDate(row.cost_stay_date);
  94. return html;
  95. }
  96. },
  97. { display: '金额(万元)', name: 'cost_stay_sum_price', width: 150 },
  98. { display: '其中管理费(万元)', name: 'cost_stay_mgr_price', width: 170},
  99. { display: '其中企业所得税(万元)', name: 'cost_stay_tax_ratio', width: 170},
  100. { display: '其中项目经理补贴费(万元)', name: 'cost_stay_pm_price', width: 200},
  101. { display: '其中安全元补贴费(万元)', name: 'cost_stay_safer_price', width: 170},
  102. { display: '其他(万元)', name: 'cost_stay_other_price', width: 150},
  103. { display: '收款账户', name: 'cost_stay_account_name', width: 150},
  104. { display: '备注1', name: 'cost_stay_remark_1', width: 100},
  105. { display: '备注2', name: 'cost_stay_remark_2', width: 100},
  106. { display: '附件', name: 'cost_stay_affix', width: 200
  107. ,render: function (row) {
  108. return getListDoc(row.cost_stay_affix);
  109. }
  110. }
  111. ],
  112. fixedCellHeight: false, //是否固定单元格的高度
  113. pageSize:50,
  114. url: 'CostAction.do?task=listCostStay&cost_id=${requestScope.costInfo.cost_id}&time=' + new Date().getTime(),
  115. pageParmName: 'p', //页索引参数名,(提交给服务器)
  116. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  117. width: '99.8%',
  118. height: '99%'
  119. });
  120. $("#pageloading").hide();
  121. }
  122. </script>
  123. </head>
  124. <body>
  125. <div id="title" class="form-button">
  126. <input type="button" onclick="window.parent.tab.removeSelectedTabItem();" class="l-button" value="关闭" />
  127. </div>
  128. <div class="container-layout">
  129. <div class="forum-container">
  130. <table style="width:99.8%">
  131. <c:if test="${requestScope.costInfo.type == 2}">
  132. <tr>
  133. <td>工程名称:</td>
  134. <td>${requestScope.costInfo.projectcost_name }</td>
  135. <td>合同造价(万元):</td>
  136. <td>${requestScope.costInfo.projectcost_price }</td>
  137. <td>责任人:</td>
  138. <td>${requestScope.costInfo.projectcost_duty_man }</td>
  139. </tr>
  140. <tr>
  141. <td>联系电话:</td>
  142. <td>${requestScope.costInfo.projectcost_duty_tel }</td>
  143. <td>备注:</td>
  144. <td colspan="3">${requestScope.costInfo.projectcost_remark }</td>
  145. </tr>
  146. </c:if>
  147. <c:if test="${requestScope.costInfo.type == 1}">
  148. <tr>
  149. <td>分公司名称:</td>
  150. <td>${requestScope.costInfo.filialectcost_name }</td>
  151. <td>成立时间:</td>
  152. <td>${requestScope.costInfo.filialectcost_date }</td>
  153. <td>责任人:</td>
  154. <td>${requestScope.costInfo.filialectcost_duty_man }</td>
  155. </tr>
  156. <tr>
  157. <td>联系电话:</td>
  158. <td>${requestScope.costInfo.filialectcost_duty_tel }</td>
  159. <td>备注:</td>
  160. <td colspan="3">${requestScope.costInfo.filialectcost_remark }</td>
  161. </tr>
  162. </c:if>
  163. <tr>
  164. <td>合计收到工程款(万元):</td>
  165. <td>${requestScope.costInfo.cost_hand_project_funds_count}</td>
  166. <td>合计应交金额(万元):</td>
  167. <td colspan="3">${requestScope.costInfo.cost_hand_cost_count_count}</td>
  168. </tr>
  169. <tr>
  170. <td>合计已交金额(万元):</td>
  171. <td>${requestScope.costInfo.cost_stay_sum_price_count}</td>
  172. <td>合计差额(万元):</td>
  173. <td colspan="3">${requestScope.costInfo.cost_balance}</td>
  174. </tr>
  175. </table>
  176. <div id="tab1"
  177. style="width: 99.8%; overflow: hidden; border: 1px solid #A3C0E8;">
  178. <div title="应交金额明细">
  179. <div id="maingrid1" style="margin: 0; padding: 0"></div>
  180. </div>
  181. <div title="已交金额明细">
  182. <div id="maingrid2" style="margin: 0; padding: 0"></div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <%@ include file="/include/message.jsp"%>
  188. </body>
  189. </html>