SuccessBidList.jsp 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.22
  4. - Description: 낙찰업체 선정 리스트
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  8. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  9. <%@ page import="kr.co.hsnc.common.util.*"%>
  10. <%@ page import="kr.co.hsnc.common.sql.*" %>
  11. <%@ page import="com.udapsoft.waf.common.ui.InitCombo" %>
  12. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  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. //공통코드
  21. CommCodeManager commCodeManager = new CommCodeManager();
  22. InitCombo initCombo = new InitCombo();
  23. initCombo.makeComboData(commCodeManager.getCodeRowSet("BID_SUCCESS_CD"), "NAME", "CODE");
  24. String BID_SUCCESS_CD = initCombo.getCode();
  25. String BID_SUCCESS_NM = initCombo.getCodeName();
  26. %>
  27. <script language="javascript" src="/js/popup.js"></script>
  28. <SCRIPT language="JavaScript">
  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. function _onReady(){
  38. /**
  39. * IBSheet object initialize
  40. */
  41. gridInit(sheet1);
  42. autoResize();
  43. /**
  44. * Application Initialize
  45. */
  46. $("#btnSearch").click(function() {
  47. jQuery("#fevent").val("SHEET_SELECT");
  48. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/SuccessBidList_sheet.screen";
  49. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  50. });
  51. /*
  52. 현장 팝업
  53. */
  54. $("#btn_dept").click(function() {
  55. PopsearchSite("");
  56. });
  57. $("#p_dept_nm").keydown(function (event){var keycode = (event.keyCode ? event.keyCode : event.which); if(keycode == 8||keycode == 46){$("#p_dept_cd").val("");$("#p_dept_nm").val("");}});
  58. // $("#p_demanded_status").change(function(){$("#btnSearch").click();});
  59. $("#P_BID_MASTER_NM").keydown(function (event){var keycode = (event.keyCode ? event.keyCode : event.which);if(keycode == 13)$("#btnSearch").click();});
  60. $("#btnSearch").click();
  61. }
  62. /**
  63. * IBSheet object initialize
  64. */
  65. function gridInit(sheetName){
  66. var init_sheet = {};
  67. init_sheet.Cfg = {SearchMode:2, Page:30};
  68. init_sheet.Cols = [
  69. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center", Hidden:"True"},
  70. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  71. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  72. {Header:'입찰번호', Type:"Text", SaveName:"BID_NO", Width:120, Align:"Center"},
  73. {Header:'차수', Type:"Text", SaveName:"BID_DEG", Width:30, Align:"Center"},
  74. {Header:'현장', Type:"Text", SaveName:"DEPT_NM", Width:200, Align:"Left"},
  75. {Header:'☞입찰공고명', Type:"Text", SaveName:"BID_MASTER_NM", Width:200, Align:"Left", Cursor:"pointer"},
  76. {Header:'개찰일시', Type:"Text", SaveName:"OPEN_DT", Width:80, Align:"Center"},
  77. {Header:'TBE', Type:"Text", SaveName:"TBE_FIN_DT", Width:80, Align:"Center"},
  78. {Header:'개찰자', Type:"Text", SaveName:"OPEN_EMPNM", Width:80, Align:"Center"},
  79. {Header:'개찰자ID', Type:"Text", SaveName:"OPEN_EMPID", Width:80, Align:"Center", Hidden:"True"},
  80. {Header:'상태', Type:"Combo", SaveName:"STATUS_CD", Width:80, Align:"Center", ComboText:"<%=BID_SUCCESS_NM%>", ComboCode:"<%=BID_SUCCESS_CD%>"},
  81. {Header:'발주번호', Type:"Text", SaveName:"DEMANDED_ID", Width:80, Align:"Center", Hidden:"True"},
  82. {Header:'입찰방법', Type:"Combo", SaveName:"ONBID_YN", Width:80, Align:"Center", ComboText:"온라인|오프라인", ComboCode:"Y|N"}
  83. ];
  84. init_sheet.HeaderMode = {Sort:1};
  85. IBS_InitSheet(sheetName, init_sheet);
  86. sheetName.SetDataAutoTrim(0);
  87. sheetName.SetEditable(false);
  88. sheetName.SetActionMenu("ExcelDown");
  89. setGridSize();
  90. }
  91. function sheet1_OnSelectMenu(Text, Code) {
  92. // text 또는 code값으로 Action수행
  93. switch(Text) {
  94. case "ExcelDown":
  95. sheetExcelDown(sheet1,$('li').html());
  96. break;
  97. }
  98. }
  99. function searchSiteClose(result) {
  100. if( result == null ){
  101. $("#p_dept_nm").val("");
  102. $("#p_dept_cd").val("");
  103. }else{
  104. $("#p_dept_nm").val(result[1]);
  105. $("#p_dept_cd").val(result[0]);
  106. }
  107. setTimeout(function(){fLayerPopClose('_searchSite');},100);
  108. }
  109. /**
  110. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  111. */
  112. function sheet1_OnSearchEnd(code, message) {
  113. if(code == 0) {
  114. setGridSize();
  115. sheet1.SetColFontColor("BID_MASTER_NM", "#0000ff");
  116. } else {
  117. //조회 에러 수행
  118. alert(message);
  119. }
  120. }
  121. /**
  122. * IBSheet Event: Click
  123. */
  124. function sheet1_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  125. }
  126. /**
  127. * IBSheet size setting
  128. */
  129. function setGridSize() {sheet1.FitColWidth();}
  130. /**
  131. * IBSheet Event: DBLCLICK
  132. */
  133. function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  134. if(Row == 0)return;
  135. if (Col == 6) {
  136. var status = sheet1.GetCellValue(Row,"STATUS_CD");
  137. $("#DEMANDED_ID").val(sheet1.GetCellValue(Row, "DEMANDED_ID"));
  138. $("#BID_NO").val(sheet1.GetCellValue(Row, "BID_NO"));
  139. $("#BID_DEG").val(sheet1.GetCellValue(Row, "BID_DEG"));
  140. $("#fevent").val("FORM_SELECT");
  141. $("#form1").attr("action", "/bid/outside/SuccessBid.screen");
  142. $("#form1").attr("target", "_self");
  143. $("#form1").attr("method", "post");
  144. $("#form1").submit();
  145. }
  146. }
  147. function sheet1_OnSmartResize(Width, Height) {
  148. sheet1.FitColWidth();
  149. autoResize();
  150. }
  151. function autoResize(){
  152. var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
  153. var iframeHeight= document.body.scrollHeight - t1_height;
  154. var iframeWidth= document.body.scrollWidth;
  155. sheet1.SetSheetHeight(iframeHeight);
  156. }
  157. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  158. </SCRIPT>
  159. <modular:search id="form1">
  160. <modular:key id="fevent" />
  161. </modular:search>
  162. <form id="form1" name="form1" method="post" modular:type="search">
  163. <TABLE id="t1" border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  164. <INPUT type="hidden" name="fevent" id="fevent" value="">
  165. <INPUT type="hidden" name="DEMANDED_ID" value="">
  166. <INPUT type="hidden" name="BID_NO" value="">
  167. <INPUT type="hidden" name="BID_DEG" value="">
  168. <INPUT type='hidden' name="acct_id" value="<%= params.get("acct_id") %>">
  169. <div align="left" id="title" >
  170. <ul><li>외주_낙찰업체선정</li></ul>
  171. </div>
  172. <!-- 검색조건 영역 : 시작 -->
  173. <TR><TD height="1">
  174. <!-- 검색조건 시작 -->
  175. <table id="search-table" class="search-form-table" >
  176. <colgroup>
  177. <col width="100" />
  178. <col/>
  179. <col width="100" />
  180. <col/>
  181. <col width="150" />
  182. </colgroup>
  183. <tr>
  184. <th>현장</th>
  185. <td colspan="3">
  186. <%=InputText.getSiteCodeNew("p_dept_cd", "p_dept_nm", "", user, params.get("p_dept_cd"), params.get("p_dept_nm"))%>
  187. </td>
  188. <td class="button" rowspan="2">
  189. <span class="btnSearch center" id="btnSearch"><a href="javascript:void(0);">검색</a></span>
  190. <span class="btnSearch center" id="btnExcel"><a href="javascript:sheetExcelDown(sheet1,$('li').html());">ExcelDown</a></span>
  191. </td>
  192. </tr>
  193. <tr>
  194. <th>입찰공고명</th>
  195. <td>
  196. <INPUT type="text" name="P_BID_MASTER_NM" class="input" value="<%=params.get("P_BID_MASTER_NM") %>" style="width:90%">
  197. </td>
  198. <th>상태</th>
  199. <td><%=CommCodeManager.getSelectCodeSearchList("BID_SUCCESS_CD","P_DEMANDED_STATUS","height=18;width:80px;","<option value=''>--전체--</option>",params.get("P_DEMANDED_STATUS"),"","DETAILCD") %>
  200. <!-- <SELECT class='input_select' id='p_demanded_status' name='p_demanded_status' style='width:100px' >
  201. <option value=''>--전체--</option><OPTION value='04'>기술검토대상</OPTION><OPTION value='05'>기술검토의뢰</OPTION><OPTION value='06'>업체선정대상</OPTION>
  202. </SELECT> -->
  203. </td>
  204. </tr>
  205. </table>
  206. </TD></TR>
  207. </TABLE>
  208. <div id="sheet1_div" style=" padding-top:5px; height: auto; min-height: 350px; overflow: auto;">
  209. <script>createIBSheet('sheet1','100%', '350px');</script>
  210. </div>
  211. </FORM>