costDetailMgr.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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/yw/yongfu/costDetailMgr.js"></script>
  17. <script type="text/javascript" src="/shares/js/file.js"></script>
  18. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  19. <script type="text/javascript" src="/shares/js/constant.js"></script>
  20. <script type="text/javascript" src="/shares/js/common.js"></script>
  21. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  22. <script type="text/javascript">
  23. function getCostHand(){
  24. var grid = null;
  25. grid = $("#maingrid1").ligerGrid({
  26. columns: [
  27. { display: '序号', name: 'cost_hand_num', width: 100},
  28. { display: '工程名称', name: 'cost_hand_project_name', width: 100},
  29. { display: '合同造价(万元)', name: 'cost_hand_contract_price', width: 150},
  30. { display: '合计收到工程款(万元)', name: 'cost_hand_project_funds', width: 170},
  31. {display: '管理费', columns:[
  32. { display: '费率', name: 'cost_hand_mar_rate', width: 100},
  33. { display: '金额(万元)', name: 'cost_hand_mgr_price', width: 150}
  34. ]},
  35. {display: '企业所得税', columns:[
  36. { display: '税率', name: 'cost_hand_tax_ratio', width: 100},
  37. { display: '金额(万元)', name: 'cost_hand_hand_price', width: 150}
  38. ]},
  39. {display: '项目经理补贴费', columns:[
  40. { display: '每月金额(万元)', name: 'cost_hand_promagr_subsidy', width: 150},
  41. { display: '月数', name: 'cost_hand_subsidy_count', width: 100},
  42. { display: '金额(万元)', name: 'cost_hand_subsidy_price', width: 150}
  43. ]},
  44. {display: '安全员补贴费', columns:[
  45. { display: '每月金额(万元)', name: 'cost_hand_safer_subsidy', width: 150},
  46. { display: '月数', name: 'cost_hand_safer_count', width: 100},
  47. { display: '金额(万元)', name: 'cost_hand_safer_price', width: 150}
  48. ]},
  49. {display: '其他', columns:[
  50. { display: '名称', name: 'cost_hand_other_name', width: 100},
  51. { display: '金额(万元)', name: 'cost_hand_other_price', width: 150}
  52. ]},
  53. { display: '小计(万元)', name: 'cost_hand_cost_count', width: 150},
  54. { display: '备注1', name: 'cost_hand_remark_1', width: 150},
  55. { display: '备注2', name: 'cost_hand_remark_2', width: 150},
  56. { display: '附件', name: 'cost_hand_affix', width: 300
  57. ,render: function (row) {
  58. return getListDoc(row.cost_hand_affix);
  59. }
  60. },
  61. {
  62. display: '操作', isAllowHide: false,width: 150,
  63. render: function (row)
  64. {
  65. var html = '<a href=\"#\" onclick=\"toEditCostHand('+row.cost_hand_id+')\">修改</a>&nbsp&nbsp;';
  66. html += '<a href=\"#\" onclick=\"delCostHand('+row.cost_hand_id+')\">删除</a>&nbsp;';
  67. return html;
  68. }
  69. }
  70. ],
  71. fixedCellHeight: false, //是否固定单元格的高度
  72. pageSize:50,
  73. url: 'CostAction.do?task=listCostHand&cost_id=${cost_id}&time=' + new Date().getTime(),
  74. pageParmName: 'p', //页索引参数名,(提交给服务器)
  75. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  76. width: '99.8%',
  77. height: '99%'
  78. });
  79. $("#pageloading").hide();
  80. }
  81. function getCostStay(){
  82. var grid = null;
  83. grid = $("#maingrid2").ligerGrid({
  84. columns: [
  85. { display: '序号', name: 'cost_stay_num', width: 100 },
  86. { display: '日期', name: 'cost_stay_date', width: 100
  87. ,render: function (row) {
  88. var html = subDate(row.cost_stay_date);
  89. return html;
  90. }
  91. },
  92. { display: '金额(万元)', name: 'cost_stay_sum_price', width: 150 },
  93. { display: '其中管理费(万元)', name: 'cost_stay_mgr_price', width: 170},
  94. { display: '其中企业所得税(万元)', name: 'cost_stay_tax_ratio', width: 170},
  95. { display: '其中项目经理补贴费(万元)', name: 'cost_stay_pm_price', width: 200},
  96. { display: '其中安全元补贴费(万元)', name: 'cost_stay_safer_price', width: 170},
  97. { display: '其他(万元)', name: 'cost_stay_other_price', width: 150},
  98. { display: '收款账户', name: 'cost_stay_account_name', width: 150},
  99. { display: '备注1', name: 'cost_stay_remark_1', width: 100},
  100. { display: '备注2', name: 'cost_stay_remark_2', width: 100},
  101. { display: '附件', name: 'cost_stay_affix', width: 200
  102. ,render: function (row) {
  103. return getListDoc(row.cost_stay_affix);
  104. }
  105. },
  106. {
  107. display: '操作', isAllowHide: false,width: 150,
  108. render: function (row)
  109. {
  110. var html = '<a href=\"#\" onclick=\"toEditCostStay('+row.cost_stay_id+')\">修改</a>&nbsp&nbsp;';
  111. html += '<a href=\"#\" onclick=\"delCostStay('+row.cost_stay_id+')\">删除</a>&nbsp;';
  112. return html;
  113. }
  114. }
  115. ],
  116. fixedCellHeight: false, //是否固定单元格的高度
  117. pageSize:50,
  118. url: 'CostAction.do?task=listCostStay&cost_id=${cost_id}&time=' + new Date().getTime(),
  119. pageParmName: 'p', //页索引参数名,(提交给服务器)
  120. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  121. width: '99.8%',
  122. height: '99%'
  123. });
  124. $("#pageloading").hide();
  125. }
  126. </script>
  127. <style type="text/css">
  128. .file-style {
  129. width: 300px;
  130. }
  131. .file-style input[type='file'] {
  132. width: 260px;
  133. height: 24px;
  134. line-height: 22px;
  135. vertical-align: bottom;
  136. background-color: #fff;
  137. border: 1px solid #cccccc;
  138. margin-top: 2px;
  139. margin-bottom: 2px;
  140. }
  141. </style>
  142. </head>
  143. <body>
  144. <input type="hidden" id="type" name="type" value="${type }">
  145. <input type="hidden" id="cost_id" name="cost_id" value="${cost_id }">
  146. <div id="title" class="form-button">
  147. <input type="button" onclick="window.parent.tab.removeSelectedTabItem();" class="l-button" value="关闭" />
  148. </div>
  149. <div class="container-layout">
  150. <div class="forum-container">
  151. <table style="width:99.8%">
  152. <tr>
  153. <td>
  154. <c:if test="${type == 2}">
  155. 工程名称:
  156. </c:if>
  157. <c:if test="${type == 1}">
  158. 分公司名称:
  159. </c:if>
  160. </td>
  161. <td><label id="sname"></label></td>
  162. <td>责任人:</td>
  163. <td><label id="sman"></label></td>
  164. </tr>
  165. <tr>
  166. <td>合计收到工程款(万元):</td>
  167. <td><label id="cost_hand_project_funds_count"></label></td>
  168. <td>合计应交金额(万元):</td>
  169. <td><label id="cost_hand_cost_count_count"></label></td>
  170. </tr>
  171. <tr>
  172. <td>合计已交金额(万元):</td>
  173. <td><label id="cost_stay_sum_price_count"></label></td>
  174. <td>合计差额(万元):</td>
  175. <td><label id="cost_balance"></label></td>
  176. </tr>
  177. </table>
  178. <div id="tab1"
  179. style="width: 99.8%; overflow: hidden; border: 1px solid #A3C0E8;">
  180. <div title="应交金额明细">
  181. <div class="forum-container temp-form" >
  182. <div style="margin: 5px auto; text-align: left">
  183. &nbsp;<input type="button" value="新增" id="resetBtn"
  184. class="l-button" onclick="submitSaveCostHand();"/>
  185. </div>
  186. </div>
  187. <div id="maingrid1" style="margin: 0; padding: 0"></div>
  188. </div>
  189. <div title="已交金额明细">
  190. <div class="forum-container temp-form" >
  191. <div style="margin: 5px auto; text-align: left;">
  192. &nbsp;<input type="button" value="新增" id="resetBtn"
  193. class="l-button" onclick="submitSaveCostStay();" />
  194. </div>
  195. </div>
  196. <div id="maingrid2" style="margin: 0; padding: 0"></div>
  197. </div>
  198. </div>
  199. </div>
  200. </div>
  201. <div id="costHand" class="forum-container2" style="display: none">
  202. <form name="costHandForm" action="" method='post'>
  203. <table style="width:99.8%;height: 99%;">
  204. <tr>
  205. <td height="30" class="left-text" >序号:</td>
  206. <td colspan="2">
  207. <input type="hidden" id="cost_hand_id" name="cost_hand_id" value="">
  208. <input type="text" name="cost_hand_num" id="cost_hand_num" class="default-text"/>
  209. </td>
  210. <td height="30" class="left-text" >工程名称<FONT COLOR="red">*</FONT>:</td>
  211. <td colspan="2">
  212. <input type="text" name="cost_hand_project_name" id="cost_hand_project_name" class="default-text"/>
  213. </td>
  214. </tr>
  215. <tr>
  216. <td height="30" class="left-text" >合同造价(万元):</td>
  217. <td colspan="2">
  218. <input type="text" name="cost_hand_contract_price" id="cost_hand_contract_price" class="default-text" maxlength="16"/>
  219. </td>
  220. <td height="30" class="left-text" >合计收到工程款(万元):</td>
  221. <td colspan="2">
  222. <input type="text" name="cost_hand_project_funds" id="cost_hand_project_funds" class="default-text" maxlength="16"/>
  223. </td>
  224. </tr>
  225. <tr>
  226. <td height="30" class="left-text" >管理费费率:</td>
  227. <td colspan="2">
  228. <input type="text" name="cost_hand_mar_rate" id="cost_hand_mar_rate" class="default-text"/>
  229. </td>
  230. <td height="30" class="left-text" >管理费金额(万元):</td>
  231. <td colspan="2">
  232. <input type="text" name="cost_hand_mgr_price" id="cost_hand_mgr_price" class="default-text" maxlength="16"/>
  233. </td>
  234. </tr>
  235. <tr>
  236. <td height="30" class="left-text" >企业所得税税率:</td>
  237. <td colspan="2">
  238. <input type="text" name="cost_hand_tax_ratio" id="cost_hand_tax_ratio" class="default-text"/>
  239. </td>
  240. <td height="30" class="left-text" >企业所得税金额(万元):</td>
  241. <td colspan="2">
  242. <input type="text" name="cost_hand_hand_price" id="cost_hand_hand_price" class="default-text" maxlength="16"/>
  243. </td>
  244. </tr>
  245. <tr>
  246. <td height="30" class="left-text" >项目经理补贴费每月金额(万元):</td>
  247. <td>
  248. <input type="text" name="cost_hand_promagr_subsidy" id="cost_hand_promagr_subsidy" class="default-text" maxlength="16"/>
  249. </td>
  250. <td height="30" class="left-text" >项目经理补贴费月数:</td>
  251. <td>
  252. <input type="text" name="cost_hand_subsidy_count" id="cost_hand_subsidy_count" class="default-text"/>
  253. </td>
  254. <td height="30" class="left-text" >项目经理补贴费金额(万元):</td>
  255. <td>
  256. <input type="text" name="cost_hand_subsidy_price" id="cost_hand_subsidy_price" class="default-text" maxlength="16"/>
  257. </td>
  258. </tr>
  259. <tr>
  260. <td height="30" class="left-text" >安全员补贴费每月金额(万元):</td>
  261. <td>
  262. <input type="text" name="cost_hand_safer_subsidy" id="cost_hand_safer_subsidy" class="default-text" maxlength="16"/>
  263. </td>
  264. <td height="30" class="left-text" >安全员补贴费月数:</td>
  265. <td>
  266. <input type="text" name="cost_hand_safer_count" id="cost_hand_safer_count" class="default-text"/>
  267. </td>
  268. <td height="30" class="left-text" >安全员补贴费金额(万元):</td>
  269. <td>
  270. <input type="text" name="cost_hand_safer_price" id="cost_hand_safer_price" class="default-text" maxlength="16"/>
  271. </td>
  272. </tr>
  273. <tr>
  274. <td height="30" class="left-text" >其他名称:</td>
  275. <td colspan="2">
  276. <input type="text" name="cost_hand_other_name" id="cost_hand_other_name" class="default-text"/>
  277. </td>
  278. <td height="30" class="left-text" >其他金额(万元):</td>
  279. <td colspan="2">
  280. <input type="text" name="cost_hand_other_price" id="cost_hand_other_price" class="default-text" maxlength="16"/>
  281. </td>
  282. </tr>
  283. <tr>
  284. <td height="30" class="left-text" >备注1:</td>
  285. <td colspan="2">
  286. <input type="text" name="cost_hand_remark_1" id="cost_hand_remark_1" class="default-text"/>
  287. </td>
  288. <td height="30" class="left-text" >备注2:</td>
  289. <td colspan="2">
  290. <input type="text" name="cost_hand_remark_2" id="cost_hand_remark_2" class="default-text"/>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td height="30" class="left-text" >附件:</td>
  295. <td colspan="5">
  296. <jsp:include page="/include/file.jsp">
  297. <jsp:param name="fieldName" value="cost_hand_affix" />
  298. <jsp:param name="folder" value="yongfu/cost" />
  299. <jsp:param name="documentId" value="" />
  300. <jsp:param name="size" value="10" />
  301. <jsp:param name="isView" value="1" />
  302. <jsp:param name="isDelFile" value="1" />
  303. <jsp:param name="definedCss" value="file-style" />
  304. </jsp:include>
  305. </td>
  306. </tr>
  307. </table>
  308. </form>
  309. </div>
  310. <div id="costStay" class="forum-container2" style="display: none">
  311. <form name="costStayForm" action="" method='post'>
  312. <table style="width:99.8%;height: 99%;">
  313. <tr>
  314. <td height="30" class="left-text" >序号:</td>
  315. <td>
  316. <input type="hidden" id="cost_stay_id" name="cost_stay_id" value="">
  317. <input type="text" name="cost_stay_num" id="cost_stay_num" class="default-text"/>
  318. </td>
  319. <td height="30" class="left-text" >日期<FONT COLOR="red">*</FONT>:</td>
  320. <td>
  321. <input type="text" name="cost_stay_date" id="cost_stay_date" class="default-text"/>
  322. </td>
  323. </tr>
  324. <tr>
  325. <td height="30" class="left-text" >其中管理费(万元):</td>
  326. <td>
  327. <input type="text" name="cost_stay_mgr_price" id="cost_stay_mgr_price" class="default-text" maxlength="16"/>
  328. </td>
  329. <td height="30" class="left-text" >其中企业所得税(万元):</td>
  330. <td>
  331. <input type="text" name="cost_stay_tax_ratio" id="cost_stay_tax_ratio" class="default-text" maxlength="16"/>
  332. </td>
  333. </tr>
  334. <tr>
  335. <td height="30" class="left-text" >其中项目经理补贴费(万元):</td>
  336. <td>
  337. <input type="text" name="cost_stay_pm_price" id="cost_stay_pm_price" class="default-text" maxlength="16"/>
  338. </td>
  339. <td height="30" class="left-text" >其中安全员补贴费(万元):</td>
  340. <td>
  341. <input type="text" name="cost_stay_safer_price" id="cost_stay_safer_price" class="default-text" maxlength="16"/>
  342. </td>
  343. </tr>
  344. <tr>
  345. <td height="30" class="left-text" >其他(万元):</td>
  346. <td>
  347. <input type="text" name="cost_stay_other_price" id="cost_stay_other_price" class="default-text" maxlength="16"/>
  348. </td>
  349. <td height="30" class="left-text" >收款账户:</td>
  350. <td>
  351. <input type="text" name="cost_stay_account_name" id="cost_stay_account_name" class="default-text"/>
  352. </td>
  353. </tr>
  354. <tr>
  355. <td height="30" class="left-text" >备注1:</td>
  356. <td>
  357. <input type="text" name="cost_stay_remark_1" id="cost_stay_remark_1" class="default-text"/>
  358. </td>
  359. <td height="30" class="left-text" >备注2:</td>
  360. <td>
  361. <input type="text" name="cost_stay_remark_2" id="cost_stay_remark_2" class="default-text"/>
  362. </td>
  363. </tr>
  364. <tr>
  365. <td height="30" class="left-text" >附件:</td>
  366. <td colspan="3">
  367. <jsp:include page="/include/file.jsp">
  368. <jsp:param name="fieldName" value="cost_stay_affix" />
  369. <jsp:param name="folder" value="yongfu/cost" />
  370. <jsp:param name="documentId" value="" />
  371. <jsp:param name="size" value="10" />
  372. <jsp:param name="isView" value="1" />
  373. <jsp:param name="isDelFile" value="1" />
  374. <jsp:param name="definedCss" value="file-style" />
  375. </jsp:include>
  376. </td>
  377. </tr>
  378. </table>
  379. </form>
  380. </div>
  381. <%@ include file="/include/message.jsp"%>
  382. </body>
  383. </html>