BidCurrentstatus.jsp 8.0 KB

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