PurResultTargetList.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <%--
  2. - FileName : ResultTargetList.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. %>
  23. <script type="text/javascript">
  24. <!--
  25. /*예약함수*/
  26. var sheet1 = new ibsheetObject();
  27. var sheet1Row;
  28. var sheet1PageNo = 1;
  29. var pageLastRowIndex = 1;
  30. var validationResult = false;
  31. var filterShow = false;
  32. $.gridInit = function(sheetName)
  33. {
  34. var init_sheet = {};
  35. init_sheet.Cfg = {SearchMode:2, Page:30, MergeSheet:msHeaderOnly};
  36. init_sheet.Cols = [
  37. {Header:"Status", Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Edit:"False", Hidden:"True"},
  38. {Header:"현장명", Type:"Text", SaveName:"DEPT_NAME", Width:80, Align:"Left", Edit:"False",},
  39. {Header:"계약명", Type:"Text", SaveName:"CONT_NM", Width:80, Align:"Left", Edit:"False",},
  40. {Header:"기성년도", Type:"Text", SaveName:"ACMP_YYYY", Width:80, Align:"Center", Edit:"False",},
  41. {Header:"착공연월일", Type:"Text", SaveName:"CONT_SDATE", Width:80, Align:"Center", Edit:"False", Format:"Ymd"},
  42. {Header:"준공연월일", Type:"Text", SaveName:"CONT_EDATE", Width:80, Align:"Center", Edit:"False", Format:"Ymd"},
  43. {Header:"총계약금액", Type:"Int", SaveName:"CONT_TAMT", Width:80, Align:"Right", Format:"#,##0", Edit:"False",},
  44. {Header:"당년도기성액", Type:"Int", SaveName:"CUR_PAY_AMT", Width:80, Align:"Right", Format:"#,##0", Edit:"False",},
  45. {Header:"제출협회", Type:"Combo", SaveName:"SOC_CD", Width:80, Align:"Center", ComboText:"<%=soc_nm_combo%>", ComboCode:"<%=soc_code_combo%>"},
  46. {Header:"☞작성", Type:"Text", SaveName:"REG", Width:80, Align:"Center", Cursor:"Pointer", Edit:"False",},
  47. {Header:"외주계약변경ID", Type:"Text", SaveName:"PUR_CONT_MOD_ID", Width:80, Align:"Center", Cursor:"Pointer", Edit:"False", Hidden:"True"},
  48. {Header:"CORP_ID", Type:"Text", SaveName:"CORP_ID", Width:80, Align:"Center", Cursor:"Pointer", Edit:"False", Hidden:"True"}
  49. ];
  50. init_sheet.HeaderMode = {Sort:1};
  51. IBS_InitSheet(sheetName, init_sheet);
  52. sheetName.SetDataAutoTrim(0);
  53. // sheetName.SetEditable(false);
  54. // sheetName.SetCountPosition(0);
  55. // sheetName.SetDataLinkMouse("USER_NAME", 1);
  56. // sheetName.SetColFontColor("USER_NAME", "#0000ff");
  57. sheetName.FitColWidth();
  58. }
  59. $.searchList = function()
  60. {
  61. $("#fevent").val("GET_TARGET_LIST");
  62. var url = Modular.model.PageContext.CONTEXT_ROOT + "/result/purchase/PurResultTargetList_sheet.screen";
  63. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  64. }
  65. $(document).ready(function(){
  66. $.gridInit(sheet1);
  67. $.searchList();
  68. autoResize();
  69. });
  70. $(function(){
  71. $("#btnSearch").click(function(){
  72. $.searchList();
  73. });
  74. });
  75. function sheet1_OnChange(Row, Col, Value, OldValue, RaiseFlag) {
  76. var comboValue = sheet1.GetCellValue(Row,"SOC_CD");
  77. if(comboValue != "" ){
  78. sheet1.SetCellImage(Row ,"REG", "/img/buyer/button/bt_save_item.gif");
  79. return;
  80. }
  81. }
  82. function sheet1_OnClick(Row, Col)
  83. {
  84. var comboValue = sheet1.GetCellValue(Row,"SOC_CD");
  85. if (sheet1.ColSaveName(Col) == "REG")
  86. {
  87. $("#p_corp_id").val(sheet1.GetCellValue(Row,"CORP_ID"));
  88. $("#p_acmp_yyyy").val(sheet1.GetCellValue(Row,"ACMP_YYYY"));
  89. $("#p_pur_cont_mod_id").val(sheet1.GetCellValue(Row,"PUR_CONT_MOD_ID"));
  90. $("#p_soc_cd").val(sheet1.GetCellValue(Row,"SOC_CD"));
  91. if(comboValue == "01")
  92. {
  93. $("#fevent").val("GET_DETAIL_01");
  94. $("#form1").attr("action", "/result/purchase/PurResultDetail01.screen");
  95. }
  96. else if(comboValue == "02")
  97. {
  98. $("#fevent").val("GET_DETAIL_02");
  99. $("#form1").attr("action", "/result/purchase/PurResultDetail02.screen");
  100. }
  101. else if(comboValue == "03")
  102. {
  103. $("#fevent").val("GET_DETAIL_03");
  104. $("#form1").attr("action", "/result/purchase/PurResultDetail03.screen");
  105. }
  106. else if(comboValue == "04")
  107. {
  108. $("#fevent").val("GET_DETAIL_04");
  109. $("#form1").attr("action", "/result/purchase/PurResultDetail04.screen");
  110. }
  111. else if(comboValue == "05")
  112. {
  113. $("#fevent").val("GET_DETAIL_05");
  114. $("#form1").attr("action", "/result/purchase/PurResultDetail05.screen");
  115. }
  116. $("#form1").attr("target", "_self");
  117. $("#form1").attr("method", "post");
  118. $("#form1").submit();
  119. }
  120. }
  121. function autoResize(){
  122. var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
  123. var iframeHeight= document.body.scrollHeight - t1_height;
  124. var iframeWidth= document.body.scrollWidth;
  125. sheet1.SetSheetHeight(iframeHeight);
  126. }
  127. //-->
  128. </script>
  129. <modular:search id="form1">
  130. <modular:key id="fevent" />
  131. </modular:search>
  132. <form id="form1" name="form1" method="post" modular:type="search">
  133. <INPUT type="hidden" name="fevent" id="fevent" value="" />
  134. <input type="hidden" name="p_corp_id" id="p_corp_id" value="" />
  135. <input type="hidden" name="p_acmp_yyyy" id="p_acmp_yyyy" value="" />
  136. <input type="hidden" name="p_pur_cont_mod_id" id="p_pur_cont_mod_id" value="" />
  137. <input type="hidden" name="p_page_gubun" id="p_page_gubun" value="target" />
  138. <input type="hidden" name="p_soc_cd" id="p_soc_cd" value="" />
  139. <div align="left" id="title">
  140. <ul>
  141. <li>실적증명 발급대상</li>
  142. </ul>
  143. </div>
  144. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" id="search-table" class="search-form-table">
  145. <colgroup>
  146. <col width="15%" />
  147. <col width="30%" />
  148. <col width="15%" />
  149. <col width="30%" />
  150. <col width="10%" />
  151. </colgroup>
  152. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  153. <tr>
  154. <th>기성년도</th>
  155. <td>
  156. <input type="text" name="p_yyyy" id="p_yyyy" value="<%=params.get("p_yyyy") %>" />
  157. </td>
  158. <th>현장명</th>
  159. <td>
  160. <input type="text" name="p_dept_nm" id="p_dept_nm" value="<%=params.get("p_dept_nm") %>" />
  161. </td>
  162. <td class="button" rowspan="2">
  163. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch">검색</a></span>
  164. </td>
  165. </tr>
  166. <tr>
  167. <th>계약명</th>
  168. <td colspan="3">
  169. <input type="text" name="p_cont_nm" id="p_cont_nm" value="<%=params.get("p_cont_nm") %>" />
  170. </td>
  171. </tr>
  172. </table>
  173. <!-- 시트 -->
  174. <div id="sheet1_div" style="padding-top:5px; height: 500px">
  175. <script>createIBSheet("sheet1","100%", "100%");</script>
  176. </div>
  177. </form>