PayRequestSign.jsp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="com.udapsoft.waf.system.*"%>
  3. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  4. <%@ page import="com.udapsoft.waf.common.web.*" %>
  5. <%@ page import="kr.co.hsnc.common.sql.*"%>
  6. <%@ page import="kr.co.hsnc.common.util.*"%>
  7. <%@ page import="kr.co.hsnc.common.sql.util.*"%>
  8. <%@ page import="com.udapsoft.waf.system.HandlerStorage"%>
  9. <%@ page import="kr.co.hsnc.common.util.ValueObject"%>
  10. <%@ page import="kr.co.hsnc.common.message.WAFMessage"%>
  11. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  12. <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
  13. <%@ page import="kr.co.udapsoft.common.util.PCMSUtil" %>
  14. <%@ page import="kr.co.hsnc.common.util.Formatter"%>
  15. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  16. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  17. <%
  18. ctx.init(request, response);
  19. String link = ctx.getServerDomain();
  20. HandlerStorage storage = ctx.getHandlerStorage();
  21. ValueObject params = storage.getParams();
  22. WAFMessage wafMessage = WAFMessage.getInstance();
  23. ValueObject payVo = storage.getValueObject("payList");
  24. RowSet listRowSet = null;
  25. listRowSet = storage.getRowSet("listRowSet");
  26. RowSet purchaseFileRow = null;
  27. purchaseFileRow = storage.getRowSet("purchaseFileRow");
  28. //지급구분
  29. String prepay_chk = "";
  30. String mid_chk = "";
  31. String rmdr_chk = "";
  32. if(payVo.get("deposit_cd").equals("1")){
  33. prepay_chk = "checked";
  34. }else if(payVo.get("deposit_cd").equals("2")){
  35. mid_chk = "checked";
  36. }else if(payVo.get("deposit_cd").equals("3")){
  37. rmdr_chk = "checked";
  38. }
  39. //RowSet rowSet = FileManager.getFileList("PUR1100T", payVo.get("payreq_id"));
  40. String success_text = "";
  41. if(payVo.get("CUR_PAYED_AMT").replaceAll(",", "").equals(payVo.get("ORD_AMT").replaceAll(",", ""))){
  42. // success_text = "-<font color='red'>완료</font>";
  43. success_text = "-<font color='red'>최종</font>";
  44. }
  45. //if(payVo.get("REMAINDER_AMT").replaceAll(",", "").equals("0")){
  46. // success_text = "-<font color='red'>완료</font>";
  47. //success_text = "-<font color='red'>최종</font>";
  48. //}
  49. //int intDigit = 0;
  50. %>
  51. <br>
  52. <TABLE width="700" border="0" cellspacing="0" cellpadding="0">
  53. <tbody>
  54. <TR>
  55. <TD align="center">
  56. <TABLE width="700" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  57. <COLGROUP>
  58. <COL width="18%">
  59. <COL width="31%">
  60. <COL width="18%">
  61. <COL width="31%">
  62. </COLGROUP>
  63. <tr height="23" align="center">
  64. <td class="list_title4" nowrap>계약번호</td>
  65. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("ord_doc_no") %>
  66. <IMG src="<%=link %>/img/supplier/button/bt_attach_file.gif" id="dashBoard" alt="대시보드" align="top" onClick="openDash('<%=payVo.get("PUR_CONT_ID")%>')" class="button">
  67. </td>
  68. <td class="list_title4" nowrap>작성일자</td>
  69. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("req_date") %></td>
  70. </tr>
  71. <tr height="23" align="center">
  72. <td class="list_title3" nowrap>작성자</td>
  73. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("REQ_CHARGE_NAME") %></td>
  74. <td class="list_title4" nowrap>협조부서</td>
  75. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("SUB_DEPT_NM") %></td>
  76. </tr>
  77. <tr height="23" align="center">
  78. <td class="list_title4" nowrap>현장코드</td>
  79. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("DEPT_CD") %>&nbsp;</td>
  80. <td class="list_title_2" nowrap>통&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;화</td>
  81. <td class="list_data" nowrap align="left">&nbsp;<%= payVo.get("CURRENCY_GB")%></td>
  82. </tr>
  83. <tr height="23" align="center">
  84. <td class="list_title3" nowrap>현장명</td>
  85. <td class="list_data" nowrap align="left" colspan="3"><input type="text" class="input" id="DEPT_NAME" style="width:95%;" value='<%=payVo.get("DEPT_NAME") %>'></td>
  86. </tr>
  87. <tr height="23" align="center">
  88. <td class="list_title3" nowrap>계약명</td>
  89. <td class="list_data" nowrap align="left" colspan="3"><input type="text" class="input" id="CST_DOC_NAME" style="width:95%;" value='<%= StringUtils.cvtHTML3(payVo.get("CST_DOC_NAME"))%>'></td>
  90. </tr>
  91. <tr height="23" align="center">
  92. <td class="list_title5" nowrap>계약업체명</td>
  93. <td class="list_data" nowrap align="left"><input type="text" class="input" id="CORP_KOR" style="width:95%;" value='<%=payVo.get("CORP_KOR") %>'></td>
  94. <td class="list_title4" nowrap>대표이사</td>
  95. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("BOSS_NAME") %></td>
  96. </tr>
  97. <tr height="23" align="center">
  98. <td class="list_title5" nowrap>총계약금액</td>
  99. <td class="list_data" nowrap align="right"><%=payVo.get("ORD_AMT") %> &nbsp;</td>
  100. <td class="list_title4" nowrap>선급금액</td>
  101. <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_AMT") %> &nbsp;</td>
  102. </tr>
  103. <tr height="23" align="center">
  104. <td class="list_title4" nowrap>지급구분</td>
  105. <td class="list_data" nowrap align="center">
  106. <input type="checkbox" name="prepay" <%=prepay_chk %>>선급금
  107. <%
  108. if(payVo.get("DEPOSIT_CD").equals("2")){
  109. %>
  110. <input type="checkbox" name="mid" <%=mid_chk %>>중도금(<%=payVo.getInt("DEPOSIT_SEQ") %>차)
  111. <%
  112. }else{
  113. %>
  114. <input type="checkbox" name="mid" <%=mid_chk %>>중도금
  115. <%
  116. }
  117. %>
  118. <%
  119. if(payVo.get("DEPOSIT_CD").equals("3")){
  120. %>
  121. <input type="checkbox" name="rmdr" <%=rmdr_chk %>>잔금(<%=payVo.getInt("DEPOSIT_SEQ") %>차<%=success_text %>)
  122. <%
  123. }else{
  124. %>
  125. <input type="checkbox" name="rmdr" <%=rmdr_chk %>>잔금<%=success_text %>
  126. <%
  127. }
  128. %>
  129. </td>
  130. <td class="list_title6" nowrap>기선급공제액</td>
  131. <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_SUPPLY_AMT") %> &nbsp;</td>
  132. </tr>
  133. <tr height="23" align="center">
  134. <td class="list_title" nowrap>금회선급공제액</td>
  135. <td class="list_data" nowrap align="right"><%=payVo.get("CUR_BEF_PREPAY_SUPPLYAMT") %> &nbsp;</td>
  136. <td class="list_title4" nowrap>선급잔액</td>
  137. <td class="list_data" nowrap align="right"><%=payVo.get("REMAINDER_PREPAY_AMT") %> &nbsp;</td>
  138. </tr>
  139. <tr height="23" align="center">
  140. <td class="list_title4" nowrap>기지불액</td>
  141. <td class="list_data" nowrap align="right"><%=payVo.get("PAYED_AMT") %> &nbsp;<%-- (<%=payVo.get("PAYED_PERCENT") %>%)&nbsp; --%></td>
  142. <td class="list_title4" nowrap>전기성고</td>
  143. <td class="list_data" nowrap align="right"><%=payVo.get("BEF_ACMP_AMT") %> &nbsp;(<%=payVo.get("BEF_ACMP_PERCENT")%>%)&nbsp;</td>
  144. </tr>
  145. <tr height="23" align="center">
  146. <td class="list_title5" nowrap>금회청구액</td>
  147. <%-- <td class="list_data" nowrap align="right"><%=payVo.get("CUR_REQ_AMT") %> &nbsp;(<%=payVo.get("CUR_REQ_PERCENT") %>%)&nbsp;</td> --%>
  148. <td class="list_data" nowrap align="right"><%=payVo.get("CUR_REQ_AMT") %> &nbsp;</td>
  149. <td class="list_title5" nowrap>금회기성고</td>
  150. <td class="list_data" nowrap align="right"><%=payVo.get("CUR_ACMP_AMT") %> &nbsp;(<%=payVo.get("CUR_ACMP_PERCENT") %>%)&nbsp;</td>
  151. </tr>
  152. <tr height="23" align="center">
  153. <td class="list_title" nowrap align="center">금회포함지불액</td>
  154. <%-- <td class="list_data" nowrap align="right"><%=payVo.get("CUR_PAYED_AMT") %> &nbsp;(<%=payVo.get("CUR_PAYED_PERCENT") %>%)&nbsp;</td> --%>
  155. <td class="list_data" nowrap align="right"><%=payVo.get("CUR_PAYED_AMT") %> &nbsp;</td>
  156. <td class="list_title" nowrap align="center">금회포함기성고</td>
  157. <td class="list_data" nowrap align="right"><%=payVo.get("CUR_BEF_ACMP_AMT") %> &nbsp;(<%=payVo.get("CUR_BEF_ACMP_PERCENT") %>%)&nbsp;</td>
  158. </tr>
  159. <tr height="23" align="center">
  160. <td class="list_title_2" nowrap align="center">잔&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;액</td>
  161. <%-- <td class="list_data" nowrap align="right"><%=payVo.get("REMAINDER_AMT") %> &nbsp;(<%=payVo.get("REMAINDER_ACMP_PERCENT") %>%)&nbsp;</td> --%>
  162. <td class="list_data" nowrap align="right"><%=payVo.get("REMAINDER_AMT") %> &nbsp;</td>
  163. <td class="list_title4" nowrap>미기성고</td>
  164. <td class="list_data" nowrap align="right"><%=payVo.get("REMAINDER_ACMP_AMT") %> &nbsp;(<%=payVo.get("REMAINDER_ACMP_PERCENT") %>%)&nbsp;</td>
  165. </tr>
  166. <tr height="23" align="center">
  167. <td class="list_title6" nowrap align="Center" >외국환거래<BR>신고대상</td>
  168. <td class="list_data" nowrap align="left" colspan="3">
  169. &nbsp;<%=payVo.get("FOREIGN_NM")%>
  170. <%if(!payVo.get("FOREIGN_CHK").equals("A")){%>&nbsp;
  171. <IMG src="<%=link %>/img/buyer/button/bt_attach_file.gif" id="bt_foreign" alt="외국환거래" align="top" valign="top" onClick="open_foreign('<%=payVo.get("PUR_CONT_ID")%>', '<%=payVo.get("PAYREQ_ID") %>', '<%=payVo.get("CORP_ID") %>');" class="button">
  172. <%} %>
  173. </td>
  174. </tr>
  175. <tr height="23" align="center">
  176. <td class="list_title4" nowrap>지급사유</td>
  177. <td class="list_data" nowrap align="left" colspan="3"><input type="text" class="input" id="DEPOSIT_RESN" style="width:95%;" value='<%=payVo.get("DEPOSIT_RESN") %>'></td>
  178. </tr>
  179. <tr height="112" align="center">
  180. <td class="list_title4" nowrap>특기사항</td>
  181. <td class="list_data" nowrap align="left" valign="middle" colspan="3">
  182. <%=payVo.get("RE_MARKS").replaceAll("\n", "<br//>")%>
  183. </td>
  184. </tr>
  185. <tr align="center">
  186. <td class="list_title4" nowrap>첨부서류</td>
  187. <td class="list_data" nowrap align="left" valign="top" colspan="3">&nbsp;
  188. <table>
  189. <TR>
  190. <%
  191. if(purchaseFileRow.size() > 0){
  192. int i_mod = 0;
  193. for(int i = 0; purchaseFileRow.size() > i; i++){
  194. i_mod = i%3;
  195. if(i_mod == 0){ %>
  196. <TR>
  197. <% } %>
  198. <td class="list_data" width="2%">
  199. <input type="checkbox" name="doc_cd" value="<%=purchaseFileRow.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" <%if(!purchaseFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %>>
  200. </td>
  201. <td class="list_data" width="20%">
  202. <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
  203. <%=purchaseFileRow.getRow(i).get("DETAILNM") %>
  204. </td>
  205. <td class="list_data" width="7%" height="24">
  206. <IMG src="<%=link %>/img/supplier/button/bt_attach_file.gif" id="<%=purchaseFileRow.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!purchaseFileRow.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="open_apppend_file('<%=payVo.get("payreq_id") %>', '<%=purchaseFileRow.getRow(i).get("DETAILCD") %>');" class="button">
  207. </td>
  208. <% if(i_mod == 2) { %>
  209. </TR>
  210. <% } %>
  211. <%
  212. }
  213. for(int i=i_mod+1; i<3; i++){ %>
  214. <td></td>
  215. <% }
  216. if(i_mod == 0 || i_mod == 1){ %>
  217. </TR>
  218. <% }
  219. }
  220. %>
  221. </table>
  222. </td>
  223. </tr>
  224. </TABLE>
  225. </TD>
  226. </TR>
  227. <%-- <TR>
  228. <TD>
  229. <TABLE width="700" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  230. <COLGROUP>
  231. <COL width="100px">
  232. <COL width="100px">
  233. <COL width="100px">
  234. <COL width="109px">
  235. <COL width="50px">
  236. <COL width="50px">
  237. <COL width="50px">
  238. <COL width="100px">
  239. <COL width="100px">
  240. </COLGROUP>
  241. <tr height="23" align="center">
  242. <td class="list_title" nowrap align="center">입고번호</td>
  243. <td class="list_title" nowrap align="center">자재코드</td>
  244. <td class="list_title" nowrap align="center">자재명</td>
  245. <td class="list_title" nowrap align="center">규격</td>
  246. <td class="list_title" nowrap align="center">단위</td>
  247. <td class="list_title" nowrap align="center">입고수량</td>
  248. <td class="list_title" nowrap align="center">입고단가</td>
  249. <td class="list_title" nowrap align="center">입고금액</td>
  250. </tr>
  251. <%if (listRowSet.size() > 0){
  252. for(int i = 0; i < listRowSet.size(); i++){
  253. %>
  254. <tr height="23" align="center">
  255. <td class="list_data" nowrap align="center">&nbsp;<%=listRowSet.getRow(i).get("STOCK_NO") %></td>
  256. <td class="list_data" nowrap align="center">&nbsp;<%=listRowSet.getRow(i).get("MATERIAL_CD") %></td>
  257. <td class="list_data" nowrap align="left">&nbsp;<%=listRowSet.getRow(i).get("MATERIAL_NAME") %></td>
  258. <td class="list_data" nowrap align="center">&nbsp;<%=listRowSet.getRow(i).get("MATERIAL_SPEC") %></td>
  259. <td class="list_data" nowrap align="center">&nbsp;<%=listRowSet.getRow(i).get("UNIT_KIND") %></td>
  260. <td class="list_data" nowrap align="right">&nbsp;<%=PCMSUtil.strPoint(Formatter.formatCurrency(listRowSet.getRow(i).get("ITEM_QTY")),0) %></td>
  261. <td class="list_data" nowrap align="right">&nbsp;<%=PCMSUtil.strPoint(Formatter.formatCurrency(listRowSet.getRow(i).get("ITEM_PRI")),0) %></td>
  262. <td class="list_data" nowrap align="right">&nbsp;<%=PCMSUtil.strPoint(Formatter.formatCurrency(listRowSet.getRow(i).get("ITEM_AMT")),0) %></td>
  263. </tr>
  264. <%
  265. }
  266. }else{
  267. }
  268. %>
  269. </table>
  270. </TD>
  271. </TR> --%>
  272. </tbody>
  273. </TABLE>
  274. <table><tr><td style="display:none;" id=doctitle_1 class=FIELD><%=params.get("docTitle") %></td></tr></table>
  275. <br>