BidSuccessSign.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <%@page import="monfox.toolkit.snmp.agent.modules.SnmpV2Mib.SysOREntry"%>
  2. <%@ page contentType="text/html; charset=utf-8" %>
  3. <%@ page import="com.udapsoft.waf.system.*"%>
  4. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  5. <%@ page import="com.udapsoft.waf.common.web.*" %>
  6. <%@ page import="kr.co.hsnc.common.sql.*"%>
  7. <%@ page import="kr.co.hsnc.common.util.*"%>
  8. <%@ page import="kr.co.hsnc.common.sql.util.*"%>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage"%>
  10. <%@ page import="kr.co.hsnc.common.util.ValueObject"%>
  11. <%@ page import="kr.co.hsnc.common.message.WAFMessage"%>
  12. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  13. <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
  14. <%@ page import="kr.co.udapsoft.common.util.PCMSUtil" %>
  15. <%@ page import="kr.co.hsnc.common.util.Formatter"%>
  16. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  17. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  18. <%
  19. ctx.init(request, response);
  20. String link = ctx.getServerDomain();
  21. HandlerStorage storage = ctx.getHandlerStorage();
  22. ValueObject params = storage.getParams();
  23. WAFMessage wafMessage = WAFMessage.getInstance();
  24. ValueObject BidMaster = storage.getValueObject("bidmaster");
  25. //RowSet suppinfo = null;
  26. //suppinfo = storage.getRowSet("suppinfo");
  27. ValueObject File_in = storage.getValueObject(BidMaster.get("DOC_ETC_IN"));
  28. ValueObject File_out = storage.getValueObject(BidMaster.get("DOC_ETC_OUT"));
  29. ValueObject File_tbe = storage.getValueObject(BidMaster.get("TOT_FILE_GB"));
  30. ValueObject sign_info = storage.getValueObject("SIGN_INFO");
  31. RowSet getFileListRowSet = storage.getRowSet("getFileListRowSet");
  32. ValueObject suppinfo = storage.getValueObject("suppinfo");
  33. String gwurl = "http://gw.sgcenc.co.kr/";//WAFConfig.get("gw.url.address2");
  34. %>
  35. <br>
  36. <TABLE width="709" border="0" cellspacing="0" cellpadding="0">
  37. <tbody>
  38. <TR>
  39. <TD align="center">
  40. <TABLE width="709" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  41. <COLGROUP>
  42. <COL width="110"/>
  43. <COL width="100"/>
  44. <COL width="200"/>
  45. <COL width="110"/>
  46. <COL width="200"/>
  47. </COLGROUP>
  48. <tr height="23" align="center">
  49. <td class="list_title4" nowrap align="Center">요청부서</td>
  50. <td class="list_data" nowrap align="Left" colspan="2">&nbsp;<%=BidMaster.get("DEPART_DEPT_NM")%></td>
  51. <td class="list_title3" nowrap align="Center">작성일</td>
  52. <td class="list_data" nowrap align="Left">&nbsp;<%=BidMaster.get("CRE_DT")%></td>
  53. </tr>
  54. <tr height="23" align="center">
  55. <td class="list_title3" nowrap align="Center">작성자</td>
  56. <td class="list_data" nowrap align="Left" colspan="2" >&nbsp;<%=BidMaster.get("CRE_NAME")%></td>
  57. <td class="list_title4" nowrap align="Center">사업주명</td>
  58. <td class="list_data" nowrap align="Left">&nbsp;<%=BidMaster.get("DEALER_NM")%></td>
  59. </tr>
  60. <tr height="23" align="center">
  61. <td class="list_title7" nowrap align="Center">PROJECT명</td>
  62. <td class="list_data" nowrap align="Left" colspan="2" >&nbsp;<%=BidMaster.get("DEPT_NM")%></td>
  63. <td class="list_title4" nowrap align="Center">현장위치</td>
  64. <td class="list_data" nowrap align="Left">&nbsp;<%=BidMaster.get("DELIVERY_PLACE")%></td>
  65. </tr>
  66. <tr height="23" align="center">
  67. <td class="list_title4" nowrap align="Center">계약번호</td>
  68. <td class="list_data" nowrap align="Left" colspan="2" >&nbsp;<%=BidMaster.get("CONF_NO")%></td>
  69. <td class="list_title6" nowrap align="Center">발주의뢰번호</td>
  70. <td class="list_data" nowrap align="Left" >&nbsp;
  71. <span onclick="doSignFile('<%=sign_info.get("doc_id") %>', '<%=sign_info.get("year") %>');" class="button" style="color:#4b70fd;text-decoration:underline;"><%=BidMaster.get("BID_NO")%></span>
  72. <%-- <IMG src="<%=link %>/img/buyer/button/bt_attach_file.gif" id="bt_attach_file" alt="발주의뢰문서" align="top" valign="top" onClick="doSignFile('<%=sign_info.get("doc_id") %>','<%=sign_info.get("year") %>');" class="button"> --%>
  73. </td>
  74. </tr>
  75. <tr height="23" align="center">
  76. <td class="list_title3" nowrap align="Center">계약명</td>
  77. <td class="list_data" nowrap align="Left" colspan="2" >&nbsp;<%=BidMaster.get("BID_MASTER_NM")%></td>
  78. <td class="list_title7" nowrap align="Center">시행결의요청일</td>
  79. <td class="list_data" nowrap align="Left" >&nbsp;<%=BidMaster.get("CONT_APP_REQ_DATE")%></td>
  80. </tr>
  81. <tr height="23" align="center">
  82. <td class="list_title3" nowrap align="Center">계약자</td>
  83. <td class="list_data" nowrap align="Left" colspan="4">&nbsp;<%=BidMaster.get("VENDOR_NAME")%>&nbsp;</td>
  84. </tr>
  85. <tr height="23" align="center">
  86. <%if(!BidMaster.get("CURRENCY_GB").equals("KRW")){ %>
  87. <td class="list_title" nowrap align="Center" rowspan="5">예산집행<br>개요<br>(부가세별도)</td>
  88. <%}else{ %>
  89. <td class="list_title" nowrap align="Center" rowspan="4">예산집행<br>개요<br>(부가세별도)</td>
  90. <%}%>
  91. <td class="list_title4" nowrap align="Center">도급금액</td>
  92. <td class="list_data" nowrap align="left" colspan="3" ><table style="width: 99%"><tr><td align="left" class="list_data"><%if(!BidMaster.get("CONT_AMT_NM").isEmpty()){%>일금 <%=BidMaster.get("CONT_AMT_NM")%> 원정<%} %></td><td align="right" class="list_data">(<%=Formatter2.currency(BidMaster.get("CONT_AMT"),0)%>)</td></tr></table></td>
  93. </tr>
  94. <tr height="23" align="center">
  95. <td class="list_title4" nowrap align="Center">예산금액</td>
  96. <td class="list_data" nowrap align="left" colspan="3" ><table style="width: 99%"><tr><td align="left" class="list_data"><%if(!BidMaster.get("ACT_AMT_NM").isEmpty()){%>일금 <%=BidMaster.get("ACT_AMT_NM")%> 원정<%} %></td><td align="right" class="list_data">(<%=Formatter2.currency(BidMaster.get("ACT_AMT"),0)%>)</td></tr></table></td>
  97. </tr>
  98. <tr height="23" align="center">
  99. <td class="list_title4" nowrap align="Center">결의금액</td>
  100. <td class="list_data" nowrap align="left" colspan="3" >
  101. <%if(BidMaster.get("AMT_HIDDEN").equals("Y")){ %>
  102. <table style="width: 99%"><tr><td align="left" class="list_data">단가계약</td></tr></table>
  103. <%}else{ %>
  104. <table style="width: 99%"><tr><td align="left" class="list_data"><%if(!BidMaster.get("WON_ESTI_AMT_NM").isEmpty()){%>일금 <%=BidMaster.get("WON_ESTI_AMT_NM")%> 원정<%} %><td align="right" class="list_data"><%if(!BidMaster.get("WON_ESTI_TOT_AMT").isEmpty()){ %>(<%=Formatter2.currency(BidMaster.get("WON_ESTI_TOT_AMT"),0)%>)<%} %></td></tr></table>
  105. <%}%>
  106. </td>
  107. </tr>
  108. <%if(!BidMaster.get("CURRENCY_GB").equals("KRW") && !BidMaster.get("AMT_HIDDEN").equals("Y")){ %>
  109. <tr height="23" align="center">
  110. <td class="list_title" nowrap align="Center">결의금액(외화)</td>
  111. <td class="list_data" nowrap align="left" colspan="3" >
  112. <table style="width: 99%"><tr><td align="left" class="list_data"><%if(!BidMaster.get("ESTI_TOT_AMT_NM").isEmpty()){%><%if("KRW".equals(BidMaster.get("CONT_AMT_NM"))){%>일금 <%} %><%=BidMaster.get("ESTI_TOT_AMT_NM")%> <%if("KRW".equals(BidMaster.get("CONT_AMT_NM"))){%>원정<%}else{ %><%=BidMaster.get("CHG_CODE06") %><%} %><%} %></td><td align="right" class="list_data"><%if(!BidMaster.get("ESTI_TOT_AMT").isEmpty()){ %>(<%=Formatter2.currency(BidMaster.get("ESTI_TOT_AMT"),0)%>)<%} %></td></tr></table>
  113. </td>
  114. </tr>
  115. <%} %>
  116. <tr height="23" align="center">
  117. <td class="list_title" nowrap align="Center">실행예산대비(%)</td>
  118. <td class="list_data" nowrap align="Center">&nbsp;<%=BidMaster.get("ACT_RATE")%>%</td>
  119. <td class="list_title" nowrap align="Center">실행예산대비절감액</td>
  120. <td class="list_data" nowrap align="right">(<%=Formatter2.currency(BidMaster.get("ACT_SAVINGS"),0)%>)&nbsp;&nbsp;</td>
  121. </tr>
  122. <tr height="23" align="center">
  123. <td class="list_title4" nowrap align="Center" >납품일자</td>
  124. <td class="list_data" nowrap align="Left" colspan="2">&nbsp;<%=BidMaster.get("DELI_TO_DY")%></td>
  125. <td class="list_title4" nowrap align="Center">인도조건</td>
  126. <td class="list_data" nowrap align="Left">&nbsp;<%=BidMaster.get("DELIVERY_CONDITION")%></td>
  127. </tr>
  128. <!--<tr height="23" align="center"> 2015.3.9 계약범위 납품설치 : 구매팀 수정요청 : 삭제
  129. <td class="list_title4" nowrap align="Center">계약범위</td>
  130. <td class="list_data" nowrap align="Left" colspan="2">&nbsp;<%=BidMaster.get("PAY_DIV")%></td>
  131. <td class="list_title4" nowrap align="Center">인도조건</td>
  132. <td class="list_data" nowrap align="Left">&nbsp;<%=BidMaster.get("DELIVERY_CONDITION")%></td>
  133. </tr>-->
  134. <tr height="23" align="center">
  135. <td class="list_title4" nowrap align="Center">지불조건</td>
  136. <%
  137. String sPamentCondition = "";
  138. if(BidMaster.get("FIRST_AMT") != null && BidMaster.get("FIRST_AMT").length() > 0)
  139. {
  140. sPamentCondition += "&nbsp;" + BidMaster.get("FIRST_AMT")+"<br/>";
  141. }
  142. if(BidMaster.get("MID_AMT") != null && BidMaster.get("MID_AMT").length() > 0)
  143. {
  144. sPamentCondition += "&nbsp;" + BidMaster.get("MID_AMT")+"<br/>";
  145. }
  146. if(BidMaster.get("REST_AMT") != null && BidMaster.get("REST_AMT").length() > 0)
  147. {
  148. sPamentCondition += "&nbsp;" + BidMaster.get("REST_AMT");
  149. }
  150. if(sPamentCondition.length() > 0)
  151. {
  152. sPamentCondition = sPamentCondition+"<br/>";
  153. }
  154. %>
  155. <td class="list_data" nowrap align="Left" colspan="4"><%=sPamentCondition %></td>
  156. </tr>
  157. <tr height="23" align="center">
  158. <td class="list_title5" nowrap align="Center">하자보증율</td>
  159. <td class="list_data" nowrap align="Left" colspan="2">&nbsp;<%=BidMaster.get("WARR_CONDI")%> <%if(!BidMaster.get("WARR_RATE").isEmpty()){%><%=BidMaster.get("WARR_RATE")%>%<%} %></td>
  160. <%-- <td class="list_title6" nowrap align="Center">외국환거래<BR>신고대상</td>
  161. <td class="list_data" nowrap align="Left" >&nbsp;<%=BidMaster.get("FOREIGN_NM")%>
  162. <%if(!BidMaster.get("FOREIGN_CHK").equals("A")){%>&nbsp;
  163. <IMG src="<%=link %>/img/buyer/button/bt_attach_file.gif" id="bt_foreign" alt="외국환거래" align="top" valign="top" onClick="open_foreign('<%=BidMaster.get("BID_NO")%>', '<%=BidMaster.get("BID_DEG") %>', '<%=BidMaster.get("VENDOR_CD") %>');" class="button">
  164. <%} %></td> --%>
  165. <td class="list_title6" nowrap align="Center">하자보증기간</td>
  166. <td class="list_data" nowrap align="Left">&nbsp;<%=BidMaster.get("PBC_DEFECT_CONDI")%> <%=BidMaster.get("CBC_DEFECT_DAY")%><%=BidMaster.get("CBC_DERECT_TERM_NM")%>
  167. <%if(BidMaster.get("PBC_DEFECT_CONDI2") != ""){ %>&nbsp;OR<br>&nbsp;<%=BidMaster.get("PBC_DEFECT_CONDI2")%> <%=BidMaster.get("CBC_DEFECT_DAY2")%><%=BidMaster.get("CBC_DERECT_TERM_NM2")%> 중 선도래일<%} %></td>
  168. </tr>
  169. <tr height="23" align="center">
  170. <td class="list_title" nowrap align="Center"><font color='yellow'><b>구매 발주진행율 누계</b></font></td>
  171. <td class="list_data" nowrap align="Left" colspan="2"><font color='red' size ='4px'><b>&nbsp;<%=BidMaster.get("PO_PRC")%>%</b></font></td>
  172. <td class="list_title" nowrap align="Center"><font color='yellow'><b>구매 발주실적율 누계</b></font></td>
  173. <td class="list_data" nowrap align="Left"><font color='red' size ='4px'><b>&nbsp;<%=BidMaster.get("RES_PRC")%>%</b></font></td>
  174. </tr>
  175. <tr height="23" align="center">
  176. <td class="list_title6" nowrap align="Center">주요발주내용</td>
  177. <td class="list_data" nowrap align="Left" colspan="4"><%=StringUtils.cvtHTML(BidMaster.get("MAIN_PR_CONTENTS"))%>&nbsp;</td>
  178. </tr>
  179. <tr height="23" align="center">
  180. <td class="list_title6" nowrap align="Center">특기사항</td>
  181. <td class="list_data" nowrap align="Left" colspan="4"><%=StringUtils.cvtHTML(BidMaster.get("CON_REMARK"))%>&nbsp;</td>
  182. </tr>
  183. <tr height="60" align="center">
  184. <td class="list_title4" nowrap align="Center">첨부서류</td>
  185. <td class="list_data" nowrap align="Left" colspan="4">
  186. <table style="height: 100%" width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  187. <%
  188. if(getFileListRowSet.size() > 0){
  189. int i_mod = 0;
  190. for(int i = 0; getFileListRowSet.size() > i; i++){
  191. i_mod = i%4;
  192. if(i_mod == 0){ %>
  193. <TR>
  194. <% } %>
  195. <td width="27%">
  196. <% if(getFileListRowSet.getRow(i).get("DETAILCD").equals("100")) { %>
  197. <input type="checkbox" checked disabled>&nbsp;
  198. <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){%>
  199. <span class="button list_data" style="color:#4b70fd;text-decoration:underline;" nowrap onclick="open_apppend_file('<%=getFileListRowSet.getRow(i).get("FILE_GB") %>', '<%=getFileListRowSet.getRow(i).get("ID")%>');">
  200. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  201. </span>
  202. <%}else{ %>
  203. <span class="button list_data" style="color:#4b70fd;text-decoration:underline;" nowrap onClick="detailRdProc('<%=BidMaster.get("BID_NO")%>', '<%=BidMaster.get("BID_DEG") %>', '<%=BidMaster.get("PBC_CBE_TYPE_CD")%>');">
  204. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  205. </span>
  206. <%} %>
  207. <%}else if(getFileListRowSet.getRow(i).get("DETAILCD").equals("130")) { %>
  208. <input type="checkbox" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> disabled>&nbsp;
  209. <span <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){%>class="button list_data" style="color:#4b70fd;text-decoration:underline;" <%}else{%>class="list_data"<%}%> nowrap onClick="open_bidamtpop('<%=suppinfo.get("BID_NO")%>','<%=suppinfo.get("BID_DEG")%>','<%=suppinfo.get("VENDOR_CD")%>','<%=suppinfo.get("VENDOR_NAME")%>','<%=suppinfo.get("ESTI_TOT_AMT")%>','<%=suppinfo.get("FILE_GB")%>','<%=suppinfo.get("DIV_PO_YN")%>','<%=suppinfo.get("DEMANDED_ID")%>');">
  210. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  211. </span>
  212. <%}else{ %>
  213. <input type="checkbox" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> disabled>&nbsp;
  214. <span <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){%>class="button list_data" style="color:#4b70fd;text-decoration:underline;" <%}else{%>class="list_data"<%}%> nowrap onclick="open_apppend_file('<%=getFileListRowSet.getRow(i).get("FILE_GB") %>', '<%=getFileListRowSet.getRow(i).get("ID")%>');">
  215. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  216. </span>
  217. <%} %>
  218. </td>
  219. <% if(i_mod == 4) { %>
  220. </TR>
  221. <% } %>
  222. <%
  223. }
  224. for(int i=i_mod+1; i<4; i++){ %>
  225. <td>&nbsp;</td>
  226. <% }
  227. if(i_mod < 4){ %>
  228. </TR>
  229. <% }
  230. }
  231. %>
  232. </table>
  233. </td>
  234. </tr>
  235. </TABLE>
  236. </TD>
  237. </TR>
  238. </tbody>
  239. </TABLE>
  240. <br>
  241. <table><tr><td style="display:none;" id=doctitle_1 class=FIELD><%=BidMaster.get("doctitle")%></td></tr></table>
  242. <br>