ContSign.jsp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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. <%@page import="java.net.URLEncoder"%>
  18. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  19. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  20. <%
  21. ctx.init(request, response);
  22. String link = ctx.getServerDomain();
  23. HandlerStorage storage = ctx.getHandlerStorage();
  24. ValueObject params = storage.getParams();
  25. WAFMessage wafMessage = WAFMessage.getInstance();
  26. ValueObject ContInfo = storage.getValueObject("ContInfo");
  27. /*계약서식 FILE */
  28. RowSet autofile_list = storage.getRowSet("AUTOFILE_LIST");
  29. ValueObject sign_info = storage.getValueObject("SIGN_INFO");
  30. RowSet getFileListRowSet = storage.getRowSet("getFileListRowSet");
  31. ValueObject suppinfo = storage.getValueObject("suppinfo");
  32. %>
  33. <br>
  34. <TABLE width="709" border="0" cellspacing="0" cellpadding="0">
  35. <tbody>
  36. <TR>
  37. <TD>
  38. <TABLE width="709" cellspacing="0" cellpadding="1" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  39. <COLGROUP>
  40. <COL width="100px">
  41. <COL width="254px">
  42. <COL width="100px">
  43. <COL width="255px">
  44. <COL/>
  45. </COLGROUP>
  46. <tr height="23" align="center">
  47. <td class="list_title4" nowrap align="Center">요청부서</td>
  48. <td class="list_data" nowrap align="Left" >&nbsp;<%=ContInfo.get("DEPART_DEPT_NM")%></td>
  49. <td class="list_title3" nowrap align="Center">작성일</td>
  50. <td class="list_data" nowrap align="Left">&nbsp;<%=ContInfo.get("CRE_DATE")%></td>
  51. </tr>
  52. <tr height="23" align="center">
  53. <td class="list_title3" nowrap align="Center">작성자</td>
  54. <td class="list_data" nowrap align="Left">&nbsp;<%=ContInfo.get("USER_NAME")%></td>
  55. <td class="list_title4" nowrap align="Center">사업주명</td>
  56. <td class="list_data" nowrap align="Left">&nbsp;<%=ContInfo.get("M_MEMBER_NAME")%></td>
  57. </tr>
  58. <tr height="23" align="center">
  59. <td class="list_title6" nowrap align="Center">PROJECT명</td>
  60. <td class="list_data" nowrap align="Left">&nbsp;<%=ContInfo.get("DEPT_NM")%></td>
  61. <td class="list_title4" nowrap align="Center">현장위치</td>
  62. <td class="list_data" nowrap align="Left">&nbsp;<%=ContInfo.get("LEAD_PLACE")%></td>
  63. </tr>
  64. <tr height="23" align="center">
  65. <td class="list_title6" nowrap align="Center"><font color='yellow'><b>구매발주진행율누계</b></font></td>
  66. <td class="list_data" nowrap align="Left"><font color='red' size ='4px'><b>&nbsp;<%=ContInfo.get("PO_PRC")%>%</b></font></td>
  67. <td class="list_title6" nowrap align="Center"><font color='yellow'><b>구매발주실적율누계</b></font></td>
  68. <td class="list_data" nowrap align="Left"><font color='red' size ='4px'><b>&nbsp;<%=ContInfo.get("RES_PRC")%>%</b></font></td>
  69. </tr>
  70. <tr height="23" align="center">
  71. <td class="list_title4" nowrap align="Center">계약번호</td>
  72. <td class="list_data" nowrap align="Left" colspan="3">&nbsp;<%=ContInfo.get("ORD_DOC_NO")%></td>
  73. </tr>
  74. <tr height="23" align="center">
  75. <td class="list_title3" nowrap align="Center">계약명</td>
  76. <td class="list_data" nowrap align="Left" colspan="3">&nbsp;<%=ContInfo.get("CST_DOC_NAME")%></td>
  77. </tr>
  78. <tr height="23" align="center">
  79. <td class="list_title3" align="Center">계약자</td>
  80. <td class="list_data" nowrap align="Left" colspan="3" >&nbsp;<%=ContInfo.get("S_MEMBER_NAME")%></td>
  81. </tr>
  82. <tr height="100px" align="center">
  83. <td class="list_title" align="Center">계약변경</br>내역</br>(부가세</br>별도)</td>
  84. <td class="list_data" nowrap align="Center" colspan="3" >
  85. <table width="99%" height="100%" cellspacing="0" cellpadding="1" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  86. <COLGROUP>
  87. <COL width="90px">
  88. <COL width="110px">
  89. <COL width="110px">
  90. <COL width="110px">
  91. <COL width="80px">
  92. </COLGROUP>
  93. <tr height="23" align="center">
  94. <td class="list_title" nowrap align="Center">변경 후 계약금액</td>
  95. <td class="list_data" nowrap align="right" style="border-right-width: 0px;">&nbsp;<%=ContInfo.get("BEF_HAN")%></td>
  96. <td class="list_data" nowrap align="right" colspan="2" style="border-left-width: 0px; border-right-width: 0px;">&nbsp;<%=ContInfo.get("CHG_ORD_SUPPLY_AMT_HAN")%></td>
  97. <td class="list_data" nowrap align="left" style="border-left-width: 0px;">&nbsp;<%=ContInfo.get("ATF_HAN")%></td>
  98. </tr>
  99. <tr height="23" align="center">
  100. <td class="list_title" nowrap align="Center">구 분</td>
  101. <%if(ContInfo.getInt("MOD_NO") >= 2 ){ %>
  102. <td class="list_title" nowrap align="Center">기존 계약</td>
  103. <%}else{ %>
  104. <td class="list_title" nowrap align="Center">기존 계약</td>
  105. <%} %>
  106. <td class="list_title" nowrap align="Center">변경 계약</td>
  107. <td class="list_title" nowrap align="Center">증감(▲ ▼)</td>
  108. <td class="list_title" nowrap align="Center">비고</td>
  109. </tr>
  110. <tr height="23" align="center">
  111. <td class="list_title" nowrap align="Center">도 급 금 액(원화)</td>
  112. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("FRST_CON_AMT"), 0)%>&nbsp;</td>
  113. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("CHG_CON_AMT"), 0)%>&nbsp;</td>
  114. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("CON_AMT_NM")%></td>
  115. <td class="list_data" nowrap align="Center">&nbsp;</td>
  116. </tr>
  117. <tr height="23" align="center">
  118. <td class="list_title" nowrap align="Center">예 산 금 액(원화)</td>
  119. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("FRST_EXE_AMT"), 0)%>&nbsp;</td>
  120. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("CHG_EXE_AMT"), 0)%>&nbsp;</td>
  121. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("EXE__NM")%></td>
  122. <td class="list_data" nowrap align="Center">&nbsp;</td>
  123. </tr>
  124. <tr height="23" align="center">
  125. <td class="list_title" nowrap align="Center">계 약 금 액(<%=ContInfo.get("ATF_HAN")%>)</td>
  126. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("FRST_ORD_SUPPLY_AMT"),ContInfo.getInt("DIGIT"))%>&nbsp;</td>
  127. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("CHG_ORD_SUPPLY_AMT"),ContInfo.getInt("DIGIT"))%>&nbsp;</td>
  128. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("ORD_SUPPLY_NM")%></td>
  129. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("ORD_SUPPLY_BIGO")%></td>
  130. </tr>
  131. <tr height="23" align="center">
  132. <td class="list_title" nowrap align="Center">계 약 금 액(원화)</td>
  133. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("FRST_ORD_SUPPLY_AMT_KRW"),0)%>&nbsp;</td>
  134. <td class="list_data" nowrap align="right">&nbsp;<%=Formatter2.currency(ContInfo.get("CHG_ORD_SUPPLY_AMT_KRW"),0)%>&nbsp;</td>
  135. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("ORD_SUPPLY_NM_KRW")%></td>
  136. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("ORD_SUPPLY_BIGO")%></td>
  137. </tr>
  138. <tr height="23" align="center">
  139. <td class="list_title" nowrap align="Center">납 품 일 자</td>
  140. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("FRST_ORD_END_DATE")%></td>
  141. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("CHG_ORD_END_DATE")%></td>
  142. <td class="list_data" nowrap align="Center">&nbsp;<%=ContInfo.get("ORD_DATE_NM")%></td>
  143. <td class="list_data" nowrap align="Center">&nbsp;</td>
  144. </tr>
  145. </table>
  146. </td>
  147. </tr>
  148. <tr height="50" align="center">
  149. <td class="list_title4" nowrap align="Center">변경내용</td>
  150. <td class="list_data" nowrap align="Left" colspan="3" ><%=StringUtils.cvtHTML(ContInfo.get("IN_CHG_INFO"))%>&nbsp;</td>
  151. </tr>
  152. <tr height="50" align="center">
  153. <td class="list_title4" nowrap align="Center">특기사항</td>
  154. <td class="list_data" nowrap align="Left" colspan="3" ><%=StringUtils.cvtHTML(ContInfo.get("IN_SPE_INFO"))%>&nbsp;</td>
  155. </tr>
  156. <tr height="60" align="center">
  157. <td class="list_title4" nowrap align="Center">첨부서류</td>
  158. <td class="list_data" nowrap align="Left" colspan="3">
  159. <table style="height: 100%" width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  160. <%
  161. if(getFileListRowSet.size() > 0){
  162. int i_mod = 0;
  163. for(int i = 0; getFileListRowSet.size() > i; i++){
  164. i_mod = i%4;
  165. if(i_mod == 0){ %>
  166. <TR>
  167. <% } %>
  168. <td width="27%">
  169. <% if(getFileListRowSet.getRow(i).get("DETAILCD").equals("100")) { %>
  170. <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){%>
  171. <input type="checkbox" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> disabled>&nbsp;
  172. <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_file2('<%=getFileListRowSet.getRow(i).get("FILE_GB") %>', '<%=getFileListRowSet.getRow(i).get("ID")%>');">
  173. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  174. </span>
  175. <%}else if(!sign_info.get("doc_id").equals("")){ %>
  176. <input type="checkbox" <%if(!sign_info.get("doc_id").equals("")){out.print("checked");} %> disabled>&nbsp;
  177. <span <%if(!sign_info.get("doc_id").equals("")){%>class="button list_data" style="color:#4b70fd;text-decoration:underline;" <%}else{%>class="list_data"<%}%> nowrap onClick="doSignFile('<%=sign_info.get("doc_id")%>', '<%=sign_info.get("year")%>');">
  178. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  179. </span>
  180. <%} else {%>
  181. <input type="checkbox" disabled>&nbsp;
  182. <span <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){%>class="button list_data" style="color:#4b70fd;text-decoration:underline;" <%}else{%>class="list_data"<%}%> nowrap>
  183. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  184. </span>
  185. <%} %>
  186. <%}else{ %>
  187. <input type="checkbox" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> disabled>&nbsp;
  188. <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_file2('<%=getFileListRowSet.getRow(i).get("FILE_GB") %>', '<%=getFileListRowSet.getRow(i).get("ID")%>');">
  189. <%=getFileListRowSet.getRow(i).get("DETAILNM") %>
  190. </span>
  191. <%} %>
  192. </td>
  193. <% if(i_mod == 4) { %>
  194. </TR>
  195. <% } %>
  196. <%
  197. }
  198. for(int i=i_mod+1; i<4; i++){ %>
  199. <td>&nbsp;</td>
  200. <% }
  201. if(i_mod < 4){ %>
  202. </TR>
  203. <% }
  204. }
  205. %>
  206. </table>
  207. </td>
  208. </tr>
  209. </TABLE>
  210. </TD>
  211. </TR>
  212. </tbody>
  213. </TABLE>
  214. <br>
  215. <table><tr><td style="display:none;" id=doctitle_1 class=FIELD><%=ContInfo.get("doctitle")%></td></tr></table>
  216. <br>