listFilialeCost.jsp 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>分公司管理费列表</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  12. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerDateEditor.js" type="text/javascript"></script>
  13. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/yongfu/common.js"></script>
  17. <script type="text/javascript">
  18. var grid = null;
  19. function deleteRow(obj)
  20. {
  21. if(confirm("确定要删除该分公司费用吗?")){
  22. window.parent.f_addTab(new Date().getTime(), '删除分公司费用', '${pageContext.request.contextPath }/CostAction.do?task=delFilialeCost&filialectcost_id='+obj+'&tabid=' + getCurrentTabId());
  23. }
  24. }
  25. $(function () {
  26. grid = $("#maingrid4").ligerGrid({
  27. columns: [
  28. { display: '分公司', name: 'filialectcost_name', width: 150},
  29. { display: '责任人', name: 'filialectcost_duty_man', width: 70},
  30. { display: '累计收到工程款', name: 'cost_hand_project_funds_count', width: 150},
  31. {display: '应交金额(万元)', columns:[
  32. { display: '管理费', name: 'cost_hand_mgr_price_count', width: 100 },
  33. { display: '企业所得税', name: 'cost_hand_hand_price_count', width: 150},
  34. { display: '项目经理补贴费', name: 'cost_hand_subsidy_price_count', width: 170},
  35. { display: '安全员补贴费', name: 'cost_hand_safer_price_count', width: 150},
  36. { display: '其他', name: 'cost_hand_other_price_count', width: 100},
  37. { display: '小计', name: 'cost_hand_cost_count_count', width: 100}
  38. ]},
  39. {display: '已交金额(万元)', columns:[
  40. { display: '管理费', name: 'cost_stay_mgr_price_count', width: 100 },
  41. { display: '企业所得税', name: 'cost_stay_tax_ratio_count', width: 150},
  42. { display: '项目经理补贴费', name: 'cost_stay_pm_price_count', width: 170},
  43. { display: '安全员补贴费', name: 'cost_stay_safer_price_count', width: 150},
  44. { display: '其他', name: 'cost_stay_other_price_count', width: 100},
  45. { display: '小计', name: 'cost_stay_sum_price_count', width: 100}
  46. ]},
  47. { display: '累计差额(万元)', name: 'cost_balance', width: 150},
  48. { display: '备注', name: 'filialectcost_remark', width: 100},
  49. {
  50. display: '操作', isAllowHide: false,width: 200,
  51. render: function (row)
  52. {
  53. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/CostAction.do?task=infoFilialeCost&cost_id='
  54. + row.filialectcost_id + '&type=1&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;';
  55. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/CostAction.do?task=toEditFilialeCost&filialectcost_id='
  56. + row.filialectcost_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  57. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'明细管理\', \'${pageContext.request.contextPath }/CostAction.do?task=toCostDetailMgr&cost_id='
  58. + row.filialectcost_id + '&type=1&tabid=' + getCurrentTabId()+'\');\">明细管理</a>&nbsp;';
  59. html += '<a href=\"#\" onclick=\"deleteRow('+row.filialectcost_id+')\">删除</a>&nbsp;';
  60. return html;
  61. }
  62. }
  63. ],
  64. fixedCellHeight: false, //是否固定单元格的高度
  65. pageSize:20,
  66. url: 'CostAction.do?task=listFilialeCost&time=' + new Date().getTime(),
  67. pageParmName: 'p', //页索引参数名,(提交给服务器)
  68. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  69. enabledSort: true, //是否允许排序
  70. width: '99.8%',
  71. height: '99%'
  72. });
  73. $("#pageloading").hide();
  74. });
  75. function searchByKword(){
  76. var filialectcost_name = document.getElementById("filialectcost_name");
  77. var s = "";
  78. if(filialectcost_name.value != "" && typeof(filialectcost_name.value) != "undefined" ){
  79. s += "&filialectcost_name=" + encodeURI(encodeURI(filialectcost_name.value));
  80. }
  81. grid.set("newPage", "1");
  82. grid = $("#maingrid4").ligerGrid({
  83. columns: [
  84. { display: '分公司', name: 'filialectcost_name', width: 150},
  85. { display: '责任人', name: 'filialectcost_duty_man', width: 70},
  86. { display: '累计收到工程款', name: 'cost_hand_project_funds_count', width: 150},
  87. {display: '应交金额(万元)', columns:[
  88. { display: '管理费', name: 'cost_hand_mgr_price_count', width: 100 },
  89. { display: '企业所得税', name: 'cost_hand_hand_price_count', width: 150},
  90. { display: '项目经理补贴费', name: 'cost_hand_subsidy_price_count', width: 170},
  91. { display: '安全员补贴费', name: 'cost_hand_safer_price_count', width: 150},
  92. { display: '其他', name: 'cost_hand_other_price_count', width: 100},
  93. { display: '小计', name: 'cost_hand_cost_count_count', width: 100}
  94. ]},
  95. {display: '已交金额(万元)', columns:[
  96. { display: '管理费', name: 'cost_stay_mgr_price_count', width: 100 },
  97. { display: '企业所得税', name: 'cost_stay_tax_ratio_count', width: 150},
  98. { display: '项目经理补贴费', name: 'cost_stay_pm_price_count', width: 170},
  99. { display: '安全员补贴费', name: 'cost_stay_safer_price_count', width: 150},
  100. { display: '其他', name: 'cost_stay_other_price_count', width: 100},
  101. { display: '小计', name: 'cost_stay_sum_price_count', width: 100}
  102. ]},
  103. { display: '累计差额(万元)', name: 'cost_balance', width: 150},
  104. { display: '备注', name: 'filialectcost_remark', width: 100},
  105. {
  106. display: '操作', isAllowHide: false,width: 200,
  107. render: function (row)
  108. {
  109. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看\', \'${pageContext.request.contextPath }/CostAction.do?task=infoFilialeCost&cost_id='
  110. + row.filialectcost_id + '&type=1&tabid=' + getCurrentTabId()+'\');\">查看</a>&nbsp;';
  111. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'修改\', \'${pageContext.request.contextPath }/CostAction.do?task=toEditFilialeCost&filialectcost_id='
  112. + row.filialectcost_id + '&tabid=' + getCurrentTabId()+'\');\">修改</a>&nbsp;';
  113. html += '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'明细管理\', \'${pageContext.request.contextPath }/CostAction.do?task=toCostDetailMgr&cost_id='
  114. + row.filialectcost_id + '&type=1&tabid=' + getCurrentTabId()+'\');\">明细管理</a>&nbsp;';
  115. html += '<a href=\"#\" onclick=\"deleteRow('+row.filialectcost_id+')\">删除</a>&nbsp;';
  116. return html;
  117. }
  118. }
  119. ],
  120. fixedCellHeight: false, //是否固定单元格的高度
  121. pageSize:20,
  122. url: 'CostAction.do?task=listFilialeCost&time=' + new Date().getTime()+s,
  123. pageParmName: 'p', //页索引参数名,(提交给服务器)
  124. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  125. enabledSort: true, //是否允许排序
  126. width: '99.8%',
  127. height: '99%'
  128. });
  129. }
  130. function searchAll() {
  131. $("#filialectcost_name").val("");
  132. searchByKword();
  133. }
  134. </script>
  135. </head>
  136. <body >
  137. <div class="container-layout">
  138. <div id="title" class="form-button">
  139. <input type="button" class="l-button" style="width: 100px;" value="新增分公司费用" onclick="window.parent.f_addTab(new Date().getTime(), '新增分公司费用', '${pageContext.request.contextPath }/CostAction.do?task=toCreateFilialeCost&tabid=' + getCurrentTabId());"/>
  140. </div>
  141. <div class="default_search" >
  142. <ul class="list_search">
  143. <li class="title">分公司名称:</li>
  144. <li class="text">
  145. <input type="text" name="filialectcost_name" id="filialectcost_name" >
  146. </li>
  147. </ul>
  148. <ul>
  149. <li class="search-button" >
  150. <input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询"/>
  151. <input type="button" class='l-button' name="search" onclick="searchAll()" value="查询全部"/>
  152. </li>
  153. </ul>
  154. </div>
  155. <div style="clear: both;">
  156. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  157. </div>
  158. </div>
  159. </body>
  160. </html>