RebidList.jsp 8.1 KB

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