BidAmtPop.jsp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.25
  4. - Description: 결격 사유 팝업
  5. --%>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  8. <%@ page contentType="text/html; charset=UTF-8" %>
  9. <%@ include file="/jsp/work/taglib.jsp" %>
  10. <%@ page import="kr.co.hsnc.common.sql.RowSet" %>
  11. <%@ page import="kr.co.hsnc.common.util.ValueObject" %>
  12. <%@ page import="com.udapsoft.waf.system.*" %>
  13. <%@ page import="com.udapsoft.waf.common.*" %>
  14. <%@ page import="kr.co.udapsoft.common.*" %>
  15. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  16. <%@ page import="com.udapsoft.waf.common.ui.HTMLMaker" %>
  17. <%@ page import="com.udapsoft.waf.common.util.StringUtils"%>
  18. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  19. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  20. <%@ page import="java.net.URLEncoder"%>
  21. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  22. <%
  23. ctx.init(request, response);
  24. HandlerStorage storage = ctx.getHandlerStorage();
  25. ValueObject user = ctx.getUser();
  26. ValueObject params = storage.getParams();
  27. String event = storage.getEvent();
  28. ValueObject Order = storage.getValueObject("Order");
  29. String VENDOR_CD = (String) storage.get("VENDOR_CD");
  30. String BID_NO = (String) storage.get("BID_NO");
  31. String BID_DEG = (String) storage.get("BID_DEG");
  32. String pop_win_id = (String) storage.get("pop_win_id");
  33. String FILE_GB = (String) storage.get("FILE_GB");
  34. String DEMANDED_ID = (String) storage.get("DEMANDED_ID");
  35. String DIV_PO_YN = (String) storage.get("DIV_PO_YN");
  36. ValueObject file = storage.getValueObject(storage.get("FILE_GB"));
  37. %>
  38. <SCRIPT language="JavaScript">
  39. var sheet1;
  40. var sheet1Row;
  41. var sheet1PageNo = 1;
  42. var pageLastRowIndex = 1;
  43. var validationResult = false;
  44. var filterShow = false;
  45. function _onReady(){
  46. gridInit(sheet1);
  47. autoResize();
  48. sheet1.SetSumValue(5,"합 계");
  49. doSearchSheet();
  50. $("#btnExcelDown").click(function(){
  51. var params = { FileName : "견적내역상세.xls", SheetName : "견적내역상세", SheetDesign:1 ,DownSum:false, DownCols:"MATERIAL_NAME|MATERIAL_SPEC|UNIT_KIND|QTY|UNIT_COST|ROW_SUM_AMT"
  52. , TitleText : "<%=Order.get("BID_MASTER_NM")%> 견적서"
  53. , UserMerge : "0,0,1,6"
  54. };
  55. sheet1.Down2Excel(params);
  56. });
  57. }
  58. function doSearchSheet(){
  59. $("#fevent").val("VENDOR_SHEET_SELECT");
  60. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SignBidAmtPop_sheet.screen";
  61. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  62. }
  63. function gridInit(sheetName){
  64. var init_sheet = {};
  65. init_sheet.Cfg = {SearchMode:2, Page:30};
  66. init_sheet.Cols = [
  67. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  68. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  69. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  70. {Header:'자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:100, Align:"Left", Hidden:"True"},
  71. {Header:'자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:100, Align:"Left", Edit:false},
  72. {Header:'규격', Type:"Text", SaveName:"MATERIAL_SPEC", Width:120, Align:"Left", Edit:false},
  73. {Header:'단위', Type:"Text", SaveName:"UNIT_KIND", Width:50, Align:"Center", Edit:false},
  74. {Header:'수량', Type:"Float", SaveName:"QTY", Width:80, Align:"Right", Edit:false},
  75. {Header:'단가', Type:"Float", SaveName:"UNIT_COST", Width:80, Align:"Right", PointCount:<%=Order.get("PointCount")%>},
  76. {Header:'금액', Type:"AutoSum", SaveName:"ROW_SUM_AMT", Width:80, Align:"Right", Edit:false, PointCount:<%=Order.get("PointCount")%>}
  77. ];
  78. init_sheet.HeaderMode = {Sort:1};
  79. IBS_InitSheet(sheetName, init_sheet);
  80. sheetName.SetDataAutoTrim(0);
  81. sheetName.SetEditable(false);
  82. setGridSize();
  83. }
  84. function setGridSize() {
  85. sheet1.FitColWidth();
  86. }
  87. /**
  88. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  89. */
  90. function sheet1_OnSearchEnd(code, message) {
  91. if(code == 0) {
  92. setGridSize();
  93. var GrowCount = sheet1.LastRow();
  94. //var amt = sheet1.GetCellValue(GrowCount,"ROW_SUM_AMT");
  95. var amt = sheet1.GetCellText(GrowCount,"ROW_SUM_AMT");
  96. if(amt != ""){
  97. $("#TOT_AMT").val(amt);
  98. //$("#TOT_AMT").val(formatComma(amt,"<%=Order.get("PointCount")%>"));
  99. //$("#TOT_AMT").val($("#TOT_AMT").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  100. }
  101. } else {
  102. //조회 에러 수행
  103. alert(message);
  104. }
  105. }
  106. function sheet1_OnSmartResize(Width, Height) {
  107. sheet1.FitColWidth();
  108. autoResize();
  109. }
  110. function numberFormat(num) {
  111. var pattern = /(-?[0-9]+)([0-9]{3})/;
  112. while(pattern.test(num)) {
  113. num = num.replace(pattern,"$1,$2");
  114. }
  115. return num;
  116. }
  117. function autoResize(){
  118. var setheight = $("#table_a").height() - $("#table_b").height() -50;
  119. if(setheight < 110){
  120. setheight = 200;
  121. sheet1.SetSheetHeight(setheight);
  122. }
  123. //alert($("#sheettable").width());
  124. //sheet1.SetSheetWidth($("#sheettable").width());
  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. //첨부파일
  135. function doAttachFile(obj,No) {
  136. var file_div = "bid/purchase/<%=Order.get("BID_NO")%>/";
  137. if(obj==''){
  138. alert("After you have saved, you can attach a file.");
  139. }
  140. else if(obj != ''){
  141. viewFileListNew('<%=FILE_GB%>', obj.value, document.form1.p_AttachFile, "N", file_div);
  142. }
  143. }
  144. function doAttachFileDiv(obj) {
  145. if(obj==''){
  146. alert("저장을 한 후 파일을 첨부할 수 있습니다.");
  147. }
  148. else if(obj != ''){
  149. viewFileListNew('<%=FILE_GB%>', obj.value, document.form1.p_AttachFile, "N", file_div);
  150. }
  151. }
  152. document.onkeydown = closePopupWindow;
  153. //document.body.onload = _onReady;
  154. </SCRIPT>
  155. <modular:search id="form1">
  156. <modular:key id="fevent" />
  157. </modular:search>
  158. <form id="form1" name="form1" method="post" modular:type="search">
  159. <INPUT type='hidden' name="fevent" id="fevent" value="">
  160. <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
  161. <INPUT type='hidden' name="BID_NO" value="<%=Order.get("BID_NO")%>">
  162. <INPUT type='hidden' name="BID_DEG" value="<%=Order.get("BID_DEG")%>">
  163. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  164. <INPUT type="hidden" name="VENDOR_CD" value="<%=VENDOR_CD%>">
  165. <INPUT type="hidden" name="FILE_GB" value="<%=FILE_GB%>">
  166. <TABLE class="form-table" style="margin-top:3px">
  167. <colgroup>
  168. <col width="160">
  169. <col/>
  170. </colgroup>
  171. <TR height="25">
  172. <TH>사업자번호</TH>
  173. <TD><%=StringUtils.getBizNo(Order.get("CORP_REG_NO")) %></TD>
  174. </TR>
  175. <TR height="25">
  176. <TH> 업체명</TH>
  177. <TD><%=Order.get("CORP_KOR")%></TD>
  178. </TR>
  179. <TR height="25">
  180. <TH> 견적합계금액</TH>
  181. <TD><%= InputText.get("TOT_AMT", "", 50, 300, "class=input_blank,desc=견적합계금액,readOnly=white") %></TD>
  182. </TR>
  183. </table>
  184. <TABLE class="form-table" width="100%">
  185. <colgroup>
  186. <col width="43%">
  187. <col width="57%"/>
  188. </colgroup>
  189. <tr rowspan="2"><td valign="top" rowspan="2" >
  190. <div align="left" id="title">
  191. <ul>
  192. <li>견적조건</li>
  193. </ul>
  194. </div>
  195. <TABLE class="form-table" id=table_a>
  196. <colgroup>
  197. <col width="156">
  198. <col/>
  199. </colgroup>
  200. <TR height="25">
  201. <TH>견적통화</TH>
  202. <TD colspan="2">
  203. <%=Order.get("CURRENCY_GB_NM")%>
  204. </TD>
  205. </TR>
  206. <% if("Y".equals(Order.get("PBC_INSTALL_YN"))){ %>
  207. <TR height="25">
  208. <TH>Installation</TH>
  209. <TD colspan="2" >
  210. <%=Order.get("INSTALL_YN").equals("Y") ? "included" : "not included" %>
  211. </TD>
  212. </TR>
  213. <%} if("Y".equals(Order.get("PBC_COMMISS_YN"))){ %>
  214. <TR height="25">
  215. <TH>Spare parts for<br>Commissioning</TH>
  216. <TD colspan="2">
  217. <%=Order.get("COMMISS_YN").equals("Y") ? "included" : "not included" %>
  218. </TD>
  219. </TR>
  220. <%} if("Y".equals(Order.get("PBC_SPETOOL_YN"))){ %>
  221. <TR height="25">
  222. <TH>Special Tool</TH>
  223. <TD colspan="2">
  224. <%=Order.get("SPETOOL_YN").equals("Y") ? "included" : "not included" %>
  225. </TD>
  226. </TR>
  227. <%} if("Y".equals(Order.get("PBC_TEST_YN"))){ %>
  228. <TR height="25">
  229. <TH>Test & Inspection<br/>at Fabrication shop</TH>
  230. <TD colspan="2">
  231. <%=Order.get("TEST_YN").equals("Y") ? "included" : "not included" %>
  232. </TD>
  233. </TR>
  234. <%} if("Y".equals(Order.get("PBC_DOC_YN"))){ %>
  235. <TR height="25">
  236. <TH>Documentation</TH>
  237. <TD colspan="2">
  238. <%=Order.get("DOC_YN").equals("Y") ? "included" : "not included" %>
  239. </TD>
  240. </TR>
  241. <%} if("Y".equals(Order.get("PBC_PACK_YN"))){ %>
  242. <TR height="25">
  243. <TH>Packing cost</TH>
  244. <TD colspan="2">
  245. <%=Order.get("PACK_YN").equals("Y") ? "included" : "not included" %>
  246. </TD>
  247. </TR>
  248. <%} if("Y".equals(Order.get("PBC_LANDTRAN_YN"))){ %>
  249. <TR height="25">
  250. <TH>Inland<br>Transportaion</TH>
  251. <TD colspan="2">
  252. <%=Order.get("LANDTRAN_YN").equals("Y") ? "included" : "not included" %>
  253. </TD>
  254. </TR>
  255. <%} if("Y".equals(Order.get("DELIVERY_CONDITION_YN"))){ %>
  256. <TR height="25">
  257. <TH>Delivery Condition</TH>
  258. <TD colspan="2">
  259. <%=Order.get("DELIVERY_CONDITION_NM")%>
  260. </TD>
  261. </TR>
  262. <%} if("Y".equals(Order.get("PBC_FEE_YN"))){ %>
  263. <TR height="25">
  264. <TH>Supervision fee</TH>
  265. <TD colspan="2">
  266. <%= Order.get("FEE_NOTI") %>
  267. </TD>
  268. </TR>
  269. <%} if("Y".equals(Order.get("PBC_OPTION_YN"))){ %>
  270. <TR height="25">
  271. <TH><%=Order.get("PBC_OPTION_COMMENT")%></TH>
  272. <TD colspan="2">
  273. <%= Order.get("OPTION_NOTI")%>
  274. </TD>
  275. </TR>
  276. <%} %>
  277. <TR height="25">
  278. <TH>Quotation No</TH>
  279. <TD colspan="2"><%= Order.get("QUOT_NO") %>
  280. </TD>
  281. </TR>
  282. <TR height="25">
  283. <TH rowspan="2">payment Condition</TH>
  284. <TD class="search_table_data">
  285. <%=Order.get("PAYCONDI_YN").equals("Y") ? "accept" : "not accept" %>
  286. <%if(!Order.get("CBC_FIRST_RATE").isEmpty()){%><br>선급금 : <%=Order.get("CBC_FIRST_RATE") %>% <%=Order.get("PBC_FIRST_CONDI") %> (계약금액 기준)<%} %>
  287. <%if(!Order.get("CPC_MID_RATE").isEmpty()){%><br>중도금 : <%=Order.get("CPC_MID_RATE") %>% <%=Order.get("PBC_MID_CONDI") %> (계약금액 기준)<%} %>
  288. <%if(!Order.get("PBC_REST_RATE").isEmpty()){%><br>잔 금 : <%=Order.get("PBC_REST_RATE") %>% <%=Order.get("PBC_REST_CONDI") %> (계약금액 기준)<%} %>
  289. </TD>
  290. </tr>
  291. <tr>
  292. <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("PAYCONDI_NOT_NOTI")) %></TD>
  293. </TR>
  294. <TR height="25">
  295. <TH>Performance Bond</TH>
  296. <TD colspan="2" style="vertical-align: top"><%=Order.get("CONTFUL_RATE") %>%(계약금액 기준)
  297. <%=Order.get("CONTFUL_YN").equals("Y") ? "accept" : "not accept" %>
  298. &nbsp&nbsp<%=StringUtils.cvtHTML(Order.get("CONTFUL_NOT_NOTI")) %>
  299. </TD>
  300. </TR>
  301. <TR height="25">
  302. <TH>First Payment Bond</TH>
  303. <TD colspan="2" style="vertical-align: top">
  304. <%=Order.get("PBC_FRSTGUAR_RATE") %>%(계약금액 기준)
  305. <%=Order.get("FRSTGUAR_YN").equals("Y") ? "accept" : "not accept" %>
  306. &nbsp<%=StringUtils.cvtHTML(Order.get("FRSTGUAR_NOT_NOTI")) %>
  307. </TD>
  308. </TR>
  309. <TR height="25">
  310. <TH>Guarantee Bond</TH>
  311. <TD colspan="2"><%=Order.get("WARR_RATE") %>%(계약금액 기준)
  312. <%=Order.get("WARR_YN").equals("Y") ? "accept" : "not accept" %>
  313. &nbsp&nbsp<%=StringUtils.cvtHTML(Order.get("WARR_NOT_NOTI")) %>
  314. </TD>
  315. </TR>
  316. <TR height="25">
  317. <TH>Guarantee Period</TH>
  318. <TD colspan="2"><%=Order.get("PBC_DEFECT_CONDI") %> <%=Order.get("CBC_DEFECT_DAY") %><%=Order.get("CBC_DERECT_TERM_NM") %>간<br>
  319. <%=Order.get("DEFECT_YN").equals("Y") ? "accept" : "not accept" %>
  320. &nbsp<%=StringUtils.cvtHTML(Order.get("DEFECT_NOT_NOTI")) %>
  321. </TD>
  322. </TR>
  323. <TR height="50">
  324. <TH>OTHERS TO BE<br>CONFIRMED</TH>
  325. <TD colspan="2">
  326. <%=StringUtils.cvtHTML(Order.get("BID_CONDI_NOTI")) %>
  327. </TD>
  328. </TR>
  329. </TABLE>
  330. </TD>
  331. <TD style="padding-left:5px;" valign="top">
  332. <table style="width:100%;height:25px;margin-top:-6px">
  333. <colgroup>
  334. <col width="*" />
  335. <col width="200" />
  336. </colgroup>
  337. <tr heigth="25">
  338. <TD>
  339. <div align="left" id="title">
  340. <ul>
  341. <li>견적내역(부가세별도)</li>
  342. </ul>
  343. </div>
  344. </TD>
  345. <td style="text-align: right">
  346. <span class="btnSearch center" id="btnExcelDown"><a href="javascript:void(0);">Excel Down</a></span>
  347. </td>
  348. </tr>
  349. </table>
  350. <div id="sheet1_div" style="height: auto; min-height:100px;width:100%; overflow: auto;height:100%">
  351. <script>createIBSheet('sheet1','100%', '250px');</script>
  352. </div>
  353. </TD>
  354. </TR>
  355. <TR>
  356. <TD style="padding-left:5px;" valign="top" id=table_b>
  357. <table style="width:100%;height:25px;margin-top:-6px">
  358. <colgroup>
  359. <col width="*" />
  360. <col width="200" />
  361. </colgroup>
  362. <tr heigth="25">
  363. <TD>
  364. <div align="left" id="title">
  365. <ul>
  366. <li>첨부파일</li>
  367. </ul>
  368. </div>
  369. </TD>
  370. <td style="text-align: right;">
  371. <span class="btnSearch center"><a href="/common/file/FileDownloadServlet?mode=zipDown&fileName=<%=URLEncoder.encode((Order.get("DEMANDED_TITLE") + "(" + Order.get("DEMANDED_NO") + ")" + "_" + Order.get("CORP_KOR")) , "UTF-8")%>&fileGB=<%=FILE_GB%>&ID=<%=DEMANDED_ID%>">모두저장(ZIP)</a></span>
  372. </td>
  373. </tr>
  374. </table>
  375. <TABLE class="form-table" style="margin-top:5px">
  376. <colgroup>
  377. <col width="160"/>
  378. <col/>
  379. </colgroup>
  380. <tr height="100">
  381. <th class="required">첨부파일</th>
  382. <td>
  383. <div id="attach_file_view" class="attach_file_view">
  384. <!-- 첨부 파일 화면에 바로보일때 사용 -->
  385. <%=FileManager.getFileListForDiv(FILE_GB, DEMANDED_ID) %>
  386. </div>
  387. </td>
  388. </tr>
  389. </TABLE>
  390. </TD>
  391. </TR>
  392. </TABLE>
  393. </form>