BidAmtPop.jsp 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.25
  4. - Description: 결격 사유 팝업
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  8. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  9. <%@ page import="com.udapsoft.waf.system.*" %>
  10. <%@ page import="com.udapsoft.waf.common.*" %>
  11. <%@ page import="kr.co.udapsoft.common.*" %>
  12. <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
  13. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  14. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  15. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  16. <%@ include file="/jsp/work/taglib.jsp" %>
  17. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  18. <%
  19. ctx.init(request, response);
  20. HandlerStorage storage = ctx.getHandlerStorage();
  21. ValueObject user = ctx.getUser();
  22. ValueObject params = storage.getParams();
  23. String event = storage.getEvent();
  24. ValueObject Order = storage.getValueObject("Order");
  25. String ROW = (String) storage.get("ROW");
  26. String VENDOR_CD = (String) storage.get("VENDOR_CD");
  27. String BID_NO = (String) storage.get("BID_NO");
  28. String BID_DEG = (String) storage.get("BID_DEG");
  29. String pop_win_id = (String) storage.get("pop_win_id");
  30. String FILE_GB = (String) storage.get("FILE_GB");
  31. String DEMANDED_ID = (String) storage.get("DEMANDED_ID");
  32. String SIGN_YN = (String) storage.get("SIGN_YN");
  33. String fevent = (String) storage.get("fevent");
  34. ValueObject file = storage.getValueObject(storage.get("FILE_GB"));
  35. if(Order.get("PointCount").isEmpty()){
  36. Order.set("PointCount", storage.get("PointCount"));
  37. }
  38. String PointCount = Order.get("PointCount");
  39. %>
  40. <SCRIPT language="JavaScript">
  41. var sheet1 = new ibsheetObject();
  42. var pageLastRowIndex = 1;
  43. var validationResult = false;
  44. var filterShow = false;
  45. function _onReady(){
  46. gridInit(sheet1);
  47. autoResize();
  48. var info = [{StdCol:"DEPTH1" , SumCols:"7|8|9|10|11",CaptionText:"[소 계]",CaptionCol:3}];
  49. sheet1.ShowSubSum (info);
  50. sheet1.SetSumValue(3,"총 공 사 비");
  51. doSearchSheet();
  52. }
  53. function doSearchSheet(){
  54. $("#fevent").val("VENDOR_SHEET_SELECT");
  55. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidAmtPop_sheet.screen";
  56. if("Y" == "<%=SIGN_YN%>"){
  57. url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/SignBidAmtPop_sheet.screen";
  58. }
  59. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  60. }
  61. function gridInit(sheetName){
  62. var init_sheet = {};
  63. init_sheet.Cfg = {SearchMode:0 , MergeSheet:msHeaderOnly+msPrevColumnMerge};
  64. init_sheet.Cols = [
  65. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  66. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center" , Hidden:"True"},
  67. {Header:'구분', Type:"Text", SaveName:"DEPTH1", Width:40, Align:"left", Edit:false},
  68. {Header:'구분', Type:"Text", SaveName:"ITEM_NAME", Width:140, Align:"left", Edit:false},
  69. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  70. {Header:'MATERIAL_CD', Type:"Text", SaveName:"MATERIAL_CD", Width:0, Align:"Center", Hidden:"True"},
  71. {Header:'PARENT_LEVEL', Type:"Text", SaveName:"PARENT_LEVEL", Width:0, Align:"left", Hidden:"True"},
  72. {Header:'수량/규격', Type:"Text", SaveName:"ITEMS", Width:0, Align:"Center", Hidden:"True"},
  73. {Header:'재료비', Type:"AutoSum", SaveName:"MAT_COST", Width:60, Align:"right", PointCount:<%=PointCount%>},
  74. {Header:'노무비', Type:"AutoSum", SaveName:"LAB_COST", Width:60, Align:"right", PointCount:<%=PointCount%>},
  75. {Header:'경비', Type:"AutoSum", SaveName:"UNIT_COST", Width:60, Align:"right", PointCount:<%=PointCount%>},
  76. {Header:'합계', Type:"AutoSum", SaveName:"COST_SUM", Width:60, Align:"right", CalcLogic:"|MAT_COST|+|LAB_COST|+|UNIT_COST|", PointCount:<%=PointCount%>},
  77. {Header:'산출근거', Type:"Text", SaveName:"BASIS_CALCU", Widtd:280, Align:"left", Edit:false},
  78. {Header:'비고', Type:"Text", SaveName:"NOTI", Width:100, Align:"left"},
  79. {Header:'수량', Type:"Text", SaveName:"QTY", Width:0, Align:"left", Hidden:"True"},
  80. {Header:'합계', Type:"Text", SaveName:"ROW_SUM_AMT", Width:0, Align:"left", Hidden:"True"}
  81. ];
  82. init_sheet.HeaderMode = {Sort:1};
  83. IBS_InitSheet(sheetName, init_sheet);
  84. sheetName.SetDataAutoTrim(0);
  85. sheetName.SetEditable(false);
  86. setGridSize();
  87. }
  88. function setGridSize() {
  89. sheet1.FitColWidth();
  90. }
  91. /**
  92. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  93. */
  94. function sheet1_OnSearchEnd(code, message) {
  95. if(code == 0) {
  96. var row = sheet1.RowCount();
  97. sheet1.RowDelete(row);
  98. sheet1.RowDelete(row-2);
  99. sheet1.RowDelete(row-4);
  100. sheet1.SetMergeCell(row-3,2,1,2);//타이틀 머지
  101. sheet1.SetMergeCell(row-4,2,1,2);
  102. sheet1.SetMergeCell(row-5,2,1,2);
  103. setGridSize();
  104. } else {
  105. //조회 에러 수행
  106. alert(message);
  107. }
  108. }
  109. function sheet1_OnSmartResize(Width, Height) {
  110. //sheet1.FitColWidth();
  111. autoResize();
  112. }
  113. function numberFormat(num) {
  114. var pattern = /(-?[0-9]+)([0-9]{3})/;
  115. while(pattern.test(num)) {
  116. num = num.replace(pattern,"$1,$2");
  117. }
  118. return num;
  119. }
  120. function doResult(Objresult){
  121. }
  122. function autoResize(){
  123. sheet1.SetSheetHeight(560);
  124. sheet1.SetSheetWidth(650);
  125. }
  126. /**
  127. * 첨부파일 예약 함수
  128. */
  129. function fileDown(file_id){
  130. var url="/common/file/FileDownloadServlet";
  131. url += "?file_id=" + file_id;
  132. window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new");
  133. }
  134. function doAttachFileDiv(obj) {
  135. var file_div = "bid/outside/"+"<%=BID_NO%>"+"/";
  136. if(obj==''){
  137. alert("저장을 한 후 파일을 첨부할 수 있습니다.");
  138. }
  139. else if(obj != ''){
  140. viewFileListNew('<%=FILE_GB%>', obj.value, document.form1.p_AttachFile, "N", file_div);
  141. }
  142. }
  143. document.onkeydown = closePopupWindow;
  144. //document.body.onload = _onReady;
  145. </SCRIPT>
  146. <modular:search id="form1">
  147. <modular:key id="fevent" />
  148. </modular:search>
  149. <FORM id="form1" name="form1" method="post" modular:type="search">
  150. <INPUT type="hidden" name="fevent" id="fevent" value="<%=fevent %>">
  151. <INPUT type="hidden" name="VENDOR_CD" value="<%=VENDOR_CD%>">
  152. <INPUT type="hidden" name="DEMANDED_ID" value="<%=DEMANDED_ID%>">
  153. <INPUT type="hidden" name="BID_NO" value="<%=BID_NO%>">
  154. <INPUT type="hidden" name="BID_DEG" value="<%=BID_DEG%>">
  155. <INPUT type="hidden" name="FILE_GB" value="<%=FILE_GB%>">
  156. <table cellspacing="1" cellpadding="0" width="100%">
  157. <colgroup>
  158. <col width="350" />
  159. <col />
  160. </colgroup>
  161. <tr height="100%">
  162. <td valign="top">
  163. <table class="form-table">
  164. <colgroup>
  165. <col width="140" />
  166. <col />
  167. </colgroup>
  168. <tr height="25">
  169. <th>사업자번호</th>
  170. <td><%=Order.get("VENDOR_NO")%></td>
  171. </tr>
  172. <tr height="25">
  173. <th>업체명</th>
  174. <td><%=Order.get("VENDOR_NAME")%></td>
  175. </tr>
  176. <tr height="25">
  177. <th>견적 총 금액</th>
  178. <td><%=Order.get("ESTI_TOT_AMT")%></td>
  179. </tr>
  180. <tr height="25">
  181. <th>견적 제출 일시</th>
  182. <td><%=Order.get("SIGN_DT")%></td>
  183. </tr>
  184. <tr height="100">
  185. <th>첨부파일</th>
  186. <td valign="top">
  187. <div id="attach_file_view" class="attach_file_view">
  188. <!-- 첨부 파일 화면에 바로보일때 사용 -->
  189. <%=FileManager.getFileListForDiv(FILE_GB, DEMANDED_ID) %>
  190. </div>
  191. </td>
  192. <!-- <IMG id='search_spot_button' onClick="doAttachFileDiv(document.form1.DEMANDED_ID);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'> -->
  193. </tr>
  194. </table>
  195. </td>
  196. <td>
  197. <div id="sheet1_div" style="padding-left:5px;height: auto; min-height: 300px; overflow: auto;">
  198. <script>createIBSheet('sheet1','99%', '99%');</script>
  199. </div></td>
  200. </td>
  201. </tr>
  202. </table>
  203. </form>