PurResultIngList.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <%--
  2. - FileName : OutSupplierApprList.jsp
  3. - Author(s) : Sung Min Lee
  4. - Date : 2014.06.17
  5. -
  6. - Description: 협력업체평가현황
  7. --%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="kr.co.hsnc.common.util.*"%>
  12. <%@ page import="kr.co.hsnc.common.sql.*" %>
  13. <%@ include file="/jsp/work/taglib.jsp" %>
  14. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  15. <%
  16. ctx.init(request, response);
  17. HandlerStorage storage = ctx.getHandlerStorage();
  18. ValueObject params = storage.getParams();
  19. ValueObject user = storage.getUser();
  20. String soc_nm_combo = "선택|대한전문건설협회|대한기계설비공사협회|한국소방시설협회|한국정보통신공사협회|한국전기공사협회";
  21. String soc_code_combo = "|01|02|03|04|05";
  22. java.util.Calendar curDate = java.util.Calendar.getInstance();
  23. curDate.add ( curDate.YEAR, -1 );
  24. java.text.SimpleDateFormat fmtDay = new java.text.SimpleDateFormat("yyyy");
  25. String p_yyyy = fmtDay.format(curDate.getTime()); // 오늘
  26. %>
  27. <script type="text/javascript">
  28. <!--
  29. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  30. /*예약함수*/
  31. var sheet1 = new ibsheetObject();
  32. var sheet1Row;
  33. var sheet1PageNo = 1;
  34. var pageLastRowIndex = 1;
  35. var validationResult = false;
  36. var filterShow = false;
  37. $(document).on("keyup", "input:text", function(e) {
  38. if (e.keyCode == 13)
  39. {
  40. $.searchList();
  41. }
  42. });
  43. $.gridInit = function(sheetName)
  44. {
  45. var init_sheet = {};
  46. init_sheet.Cfg = {SearchMode:2, Page:30};
  47. init_sheet.Cols = [
  48. {Header:"Status", Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Edit:"False", Hidden:"True"},
  49. {Header:"상호", Type:"Text", SaveName:"ISU_VENDNM", Width:80, Align:"Left", Edit:"False",},
  50. {Header:"현장명", Type:"Text", SaveName:"DEPT_NAME", Width:80, Align:"Left", Edit:"False",},
  51. {Header:"☞계약명", Type:"Text", SaveName:"CONT_NM", Width:80, Align:"Left", Edit:"False",},
  52. {Header:"기성년도", Type:"Text", SaveName:"ACMP_YYYY", Width:80, Align:"Center", Edit:"False",},
  53. {Header:"착공연월일", Type:"Text", SaveName:"CONT_SDATE", Width:80, Align:"Center", Edit:"False", Format:"Ymd"},
  54. {Header:"준공연월일", Type:"Text", SaveName:"CONT_EDATE", Width:80, Align:"Center", Edit:"False", Format:"Ymd"},
  55. {Header:"총계약금액", Type:"Int", SaveName:"CONT_TAMT", Width:80, Align:"Right", Format:"#,##0", Edit:"False",},
  56. {Header:"당년도기성액", Type:"Int", SaveName:"CUR_PAY_AMT", Width:80, Align:"Right", Format:"#,##0", Edit:"False",},
  57. {Header:"제출협회코드", Type:"Text", SaveName:"SOC_CD", Width:0, Align:"Center", Hidden:"True"},
  58. {Header:"제출협회", Type:"Text", SaveName:"SOC_NM", Width:80, Align:"Center"},
  59. {Header:"진행상태코드", Type:"Text", SaveName:"PROG_STAT_CD", Width:0, Align:"Center", Hidden:"True"},
  60. {Header:"진행상태", Type:"Text", SaveName:"PROG_STAT_NM", Width:80, Align:"Center"},
  61. {Header:"외주계약변경ID", Type:"Text", SaveName:"PUR_CONT_MOD_ID", Width:80, Align:"Center", Cursor:"Pointer", Edit:"False", Hidden:"True"},
  62. {Header:"CORP_ID", Type:"Text", SaveName:"CORP_ID", Width:80, Align:"Center", Cursor:"Pointer", Edit:"False", Hidden:"True"},
  63. {Header:"총계약금액", Type:"Int", SaveName:"CONT_TAMT_O", Width:80, Align:"Right", Format:"#,##0", Edit:"False", Hidden:"True"},
  64. {Header:"당년도기성액", Type:"Int", SaveName:"CUR_PAY_AMT_O", Width:80, Align:"Right", Format:"#,##0", Edit:"False", Hidden:"True"}
  65. ];
  66. init_sheet.HeaderMode = {Sort:1};
  67. IBS_InitSheet(sheetName, init_sheet);
  68. sheetName.SetDataAutoTrim(0);
  69. sheetName.SetEditable(false);
  70. //sheetName.SetCountPosition(0);
  71. sheetName.SetDataLinkMouse("CONT_NM", 1);
  72. sheetName.SetColFontColor("CONT_NM", "#0000ff");
  73. //sheetName.SetDataLinkMouse("ISU_VENDNM", 1);
  74. //sheetName.SetColFontColor("ISU_VENDNM", "#0000ff");
  75. sheetName.FitColWidth();
  76. }
  77. $.searchList = function()
  78. {
  79. $("#fevent").val("GET_LIST");
  80. var url = Modular.model.PageContext.CONTEXT_ROOT + "/result/purchase/PurResultIngList_sheet.screen";
  81. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  82. }
  83. $(document).ready(function(){
  84. $.gridInit(sheet1);
  85. $.searchList();
  86. autoResize();
  87. });
  88. $(function(){
  89. $("#btnSearch").click(function(){
  90. $.searchList();
  91. });
  92. $("#btnChkList").click(function(){
  93. var popUrl = "/result/purchase/PurResultChkList.screen?p_yyyy=" + $("#p_yyyy").val() + "&p_supp_nm=" + $("#p_supp_nm").val();
  94. var popOption = "width=1240, height=600, resizable=yes, scrollbars=yes, status=no;";
  95. window.open(popUrl,"",popOption);
  96. });
  97. });
  98. function sheet1_OnChange(Row, Col, Value, OldValue, RaiseFlag) {
  99. var comboValue = sheet1.GetCellValue(Row,"SOC_CD");
  100. if(comboValue != "" ){
  101. sheet1.SetCellImage(Row ,"REG", "/img/buyer/button/bt_save_item.gif");
  102. return;
  103. }
  104. }
  105. function sheet1_OnDblClick(Row, Col)
  106. {
  107. var comboValue = sheet1.GetCellValue(Row,"SOC_CD");
  108. if (sheet1.ColSaveName(Col) == "CONT_NM")
  109. {
  110. $("#p_corp_id").val(sheet1.GetCellValue(Row,"CORP_ID"));
  111. $("#p_acmp_yyyy").val(sheet1.GetCellValue(Row,"ACMP_YYYY"));
  112. $("#p_pur_cont_mod_id").val(sheet1.GetCellValue(Row,"PUR_CONT_MOD_ID"));
  113. $("#p_soc_cd").val(sheet1.GetCellValue(Row,"SOC_CD"));
  114. $("#p_List").val("/result/purchase/PurResultIngList.screen");
  115. if(comboValue == "01")
  116. {
  117. $("#fevent").val("GET_DETAIL_01");
  118. $("#form1").attr("action", "/result/purchase/PurResultDetail01.screen");
  119. }
  120. else if(comboValue == "02")
  121. {
  122. $("#fevent").val("GET_DETAIL_02");
  123. $("#form1").attr("action", "/result/purchase/PurResultDetail02.screen");
  124. }
  125. else if(comboValue == "03")
  126. {
  127. $("#fevent").val("GET_DETAIL_03");
  128. $("#form1").attr("action", "/result/purchase/PurResultDetail03.screen");
  129. }
  130. else if(comboValue == "04")
  131. {
  132. $("#fevent").val("GET_DETAIL_04");
  133. $("#form1").attr("action", "/result/purchase/PurResultDetail04.screen");
  134. }
  135. else if(comboValue == "05")
  136. {
  137. $("#fevent").val("GET_DETAIL_05");
  138. $("#form1").attr("action", "/result/purchase/PurResultDetail05.screen");
  139. }
  140. $("#form1").attr("target", "_self");
  141. $("#form1").attr("method", "post");
  142. $("#form1").submit();
  143. }
  144. else if(sheet1.ColSaveName(Col) == "ISU_VENDNM"){
  145. //var popUrl = "/result/purchase/PurResultChkList.screen?p_yyyy="+sheet1.GetCellValue(Row, "ACMP_YYYY")+"&p_supp_nm="+sheet1.GetCellValue(Row, "ISU_VENDNM");
  146. //var popOption = "width=1240, height=600, resizable=yes, scrollbars=yes, status=no;";
  147. //window.open(popUrl,"",popOption);
  148. }
  149. }
  150. function sheet1_OnSearchEnd(code, message) {
  151. if(code == 0) {
  152. sheet1.FitColWidth();
  153. var rowcnt = sheet1.RowCount();
  154. if(rowcnt > 0){
  155. for(var r=1; r < rowcnt+1; r++)
  156. {
  157. if(sheet1.GetCellValue(r,"CONT_TAMT") != sheet1.GetCellValue(r,"CONT_TAMT_O") ){
  158. sheet1.SetCellFontColor(r, "CONT_TAMT" , "#EF0B0B");
  159. }
  160. if(sheet1.GetCellValue(r,"CUR_PAY_AMT") != sheet1.GetCellValue(r,"CUR_PAY_AMT_O") ){
  161. sheet1.SetCellFontColor(r, "CUR_PAY_AMT" , "#EF0B0B");
  162. }
  163. }
  164. }
  165. } else {
  166. //조회 에러 수행
  167. alert(message);
  168. }
  169. }
  170. function sheet1_OnSmartResize(Width, Height) {
  171. sheet1.FitColWidth();
  172. autoResize();
  173. }
  174. function autoResize(){
  175. var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
  176. var iframeHeight= document.body.scrollHeight - t1_height;
  177. var iframeWidth= document.body.scrollWidth;
  178. sheet1.SetSheetHeight(iframeHeight);
  179. }
  180. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  181. //-->
  182. </script>
  183. <modular:search id="form1">
  184. <modular:key id="fevent" />
  185. </modular:search>
  186. <form id="form1" name="form1" method="post" modular:type="search">
  187. <INPUT type="hidden" name="fevent" id="fevent" value="" />
  188. <input type="hidden" name="p_corp_id" id="p_corp_id" value="" />
  189. <input type="hidden" name="p_acmp_yyyy" id="p_acmp_yyyy" value="" />
  190. <input type="hidden" name="p_pur_cont_mod_id" id="p_pur_cont_mod_id" value="" />
  191. <input type="hidden" name="p_page_gubun" id="p_page_gubun" value="info" />
  192. <input type="hidden" name="p_soc_cd" id="p_soc_cd" value="" />
  193. <input type="hidden" name="p_List" id="p_List" value="" />
  194. <div align="left" id="title">
  195. <ul>
  196. <li>실적증명 발급현황</li>
  197. </ul>
  198. </div>
  199. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" id="search-table" class="search-form-table">
  200. <colgroup>
  201. <col width="15%" />
  202. <col width="15%" />
  203. <col width="15%" />
  204. <col width="15%" />
  205. <col width="15%" />
  206. <col width="15%" />
  207. <col width="10%" />
  208. </colgroup>
  209. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  210. <tr>
  211. <th>기성년도</th>
  212. <td>
  213. <%= InputText.get("p_yyyy", p_yyyy, 10, 4, "center, desc=기성년도,") %>
  214. </td>
  215. <th>업체명</th>
  216. <td>
  217. <input type="text" name="p_supp_nm" id="p_supp_nm" value="<%=params.get("p_supp_nm") %>" />
  218. </td>
  219. <th>진행상태</th>
  220. <td>
  221. <SELECT class='input_select' id='P_STATUS' name='P_STATUS' style="width:100px;">
  222. <option value='%' <%=params.get("p_status").equals("%") ? "selected=selected":""%>>--전체--</option>
  223. <OPTION value='10' <%=params.get("p_status").equals("10") ? "selected=selected":""%>>작성중</OPTION>
  224. <OPTION value='20' <%=params.get("p_status").equals("20") || params.get("p_status").equals("") ? "selected=selected":""%>>발급요청</OPTION>
  225. <OPTION value='30' <%=params.get("p_status").equals("30") ? "selected=selected":""%>>발급완료</OPTION>
  226. <OPTION value='91' <%=params.get("p_status").equals("91") ? "selected=selected":""%>>반려</OPTION>
  227. </SELECT>
  228. </td>
  229. <td class="button" >
  230. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch">검색</a></span>
  231. </td>
  232. </tr>
  233. </table>
  234. <!-- 시트 -->
  235. <div id="sheet1_div" style="padding-top:5px; height: 400px">
  236. <script>createIBSheet("sheet1","100%", "400px");</script>
  237. </div>
  238. </form>