BidCurrentstatus.jsp 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.11.11
  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_STATUS_CD"), "NAME", "CODE");
  24. String BID_STATUS_CD = initCombo.getCode();
  25. String BID_STATUS_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/BidCurrentstatus_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_BID_MASTER_NM").keydown(function (event){var keycode = (event.keyCode ? event.keyCode : event.which);if(keycode == 13)$("#btnSearch").click();});
  59. $("#btnSearch").click();
  60. }
  61. /**
  62. * IBSheet object initialize
  63. */
  64. function gridInit(sheetName){
  65. var init_sheet = {};
  66. init_sheet.Cfg = {SearchMode:2, Page:30};
  67. init_sheet.Cols = [
  68. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center", Hidden:"True"},
  69. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  70. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  71. {Header:'입찰번호', Type:"Text", SaveName:"BID_NO", Width:120, Align:"Center"},
  72. {Header:'차수', Type:"Text", SaveName:"BID_DEG", Width:30, Align:"Center"},
  73. {Header:'현장명', Type:"Text", SaveName:"DEPT_NM", Width:200, Align:"Left"},
  74. {Header:'입찰공고명', Type:"Text", SaveName:"BID_MASTER_NM", Width:200, Align:"Left"},
  75. {Header:'견적설명', Type:"Text", SaveName:"SITEDESCDATE", Width:80, Align:"Center"},
  76. {Header:'견적마감', Type:"Text", SaveName:"BID_TO_DT", Width:80, Align:"Center"},
  77. {Header:'기술검토', Type:"Text", SaveName:"TBE_FIN_DT", Width:80, Align:"Center"},
  78. {Header:'견적서개찰', Type:"Text", SaveName:"OPEN_DT", Width:80, Align:"Center"},
  79. {Header:'시행결의', Type:"Text", SaveName:"CONT_APP_DATE", Width:80, Align:"Center"},
  80. {Header:'외주담당자', Type:"Text", SaveName:"PUREMPNM", Width:80, Align:"Center"},
  81. {Header:'개찰자', Type:"Text", SaveName:"OPEN_EMPNM", Width:80, Align:"Center"},
  82. {Header:'TBE담당자', Type:"Text", SaveName:"EVAL_EMPNM", Width:80, Align:"Center"},
  83. {Header:'진행상태', Type:"Text", SaveName:"STATUS_NM", Width:90, Align:"Center"},
  84. {Header:'DEMANDED_ID', Type:"Text", SaveName:"DEMANDED_ID", Width:80, Align:"Center", Hidden:"True"}
  85. ];
  86. init_sheet.HeaderMode = {Sort:1};
  87. IBS_InitSheet(sheetName, init_sheet);
  88. sheetName.SetDataAutoTrim(0);
  89. sheetName.SetEditable(false);
  90. sheetName.SetActionMenu("ExcelDown");
  91. setGridSize();
  92. }
  93. function sheet1_OnSelectMenu(Text, Code) {
  94. // text 또는 code값으로 Action수행
  95. switch(Text) {
  96. case "ExcelDown":
  97. sheetExcelDown(sheet1,$('li').html());
  98. break;
  99. }
  100. }
  101. /**
  102. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  103. */
  104. function sheet1_OnSearchEnd(code, message) {
  105. if(code == 0) {
  106. setGridSize();
  107. //sheet1.SetColFontColor("BID_MASTER_NM", "#0000ff");
  108. } else {
  109. //조회 에러 수행
  110. alert(message);
  111. }
  112. }
  113. /**
  114. * IBSheet Event: Click
  115. */
  116. function sheet1_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  117. }
  118. /**
  119. * IBSheet size setting
  120. */
  121. function setGridSize() {sheet1.FitColWidth();}
  122. /**
  123. * IBSheet Event: DBLCLICK
  124. */
  125. function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  126. if(Row == 0)return;
  127. if (Col == 6) {
  128. }
  129. }
  130. function sheet1_OnSmartResize(Width, Height) {
  131. sheet1.FitColWidth();
  132. autoResize();
  133. }
  134. function autoResize(){
  135. var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
  136. var iframeHeight= document.body.scrollHeight - t1_height;
  137. var iframeWidth= document.body.scrollWidth;
  138. sheet1.SetSheetHeight(iframeHeight);
  139. }
  140. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  141. </SCRIPT>
  142. <modular:search id="form1">
  143. <modular:key id="fevent" />
  144. </modular:search>
  145. <form id="form1" name="form1" method="post" modular:type="search">
  146. <TABLE id="t1" border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
  147. <INPUT type="hidden" name="fevent" id="fevent" value="">
  148. <INPUT type="hidden" name="DEMANDED_ID" value="">
  149. <INPUT type="hidden" name="BID_NO" value="">
  150. <INPUT type="hidden" name="BID_DEG" value="">
  151. <INPUT type='hidden' name="acct_id" value="<%= params.get("acct_id") %>">
  152. <div align="left" id="title" >
  153. <ul><li>외주_입찰현황</li></ul>
  154. </div>
  155. <!-- 검색조건 영역 : 시작 -->
  156. <TR><TD height="1">
  157. <!-- 검색조건 시작 -->
  158. <table id="search-table" class="search-form-table" >
  159. <colgroup>
  160. <col width="100" />
  161. <col/>
  162. <col width="100" />
  163. <col/>
  164. <col width="150" />
  165. </colgroup>
  166. <tr>
  167. <th>현장</th>
  168. <td colspan="3">
  169. <%=InputText.getSiteCodeNew("p_dept_cd", "p_dept_nm", "", user, params.get("p_dept_cd"), params.get("p_dept_nm"))%>
  170. </td>
  171. <td class="button" rowspan="2">
  172. <span class="btnSearch center" id="btnSearch"><a href="javascript:void(0);">검색</a></span>
  173. <span class="btnSearch center" id="btnExcel"><a href="javascript:sheetExcelDown(sheet1,$('li').html());">ExcelDown</a></span>
  174. </td>
  175. </tr>
  176. <tr>
  177. <th>입찰공고명</th>
  178. <td>
  179. <INPUT type="text" name="P_BID_MASTER_NM" class="input" value="<%=params.get("P_BID_MASTER_NM") %>" style="width:90%">
  180. </td>
  181. <th>상태</th>
  182. <td><%=CommCodeManager.getSelectCodeSearchList("BID_STATUS_CD","P_DEMANDED_STATUS","height=18;width:80px;","<option value=''>--전체--</option>",params.get("P_DEMANDED_STATUS"),"AND DETAILCD NOT IN ('10','91','92','93')","DETAILCD") %>
  183. </td>
  184. </tr>
  185. </table>
  186. </TD></TR>
  187. </TABLE>
  188. <div id="sheet1_div" style=" padding-top:5px; height: auto; min-height: 350px; overflow: auto;">
  189. <script>createIBSheet('sheet1','100%', '350px');</script>
  190. </div>
  191. </FORM>