AdvPaymentSign.jsp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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 = "checked";
  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("SUPP_PREPAYMENTS_GIVEUP", payVo.get("PREPAY_ID")); //외주 선급금 - 선급금 포기각서
  40. RowSet rowSet2 = FileManager.getFileList("SUPP_TAX_BILL", payVo.get("PREPAY_ID")); //세금계산서
  41. RowSet rowSet3 = FileManager.getFileList("INVOICE", payVo.get("PREPAY_ID")); //invoice
  42. RowSet rowSet1 = FileManager.getFileList("SUPP_PREPAYMENTS_BILLING", payVo.get("PREPAY_ID")); //대금청구
  43. String success_text = "";
  44. // if(payVo.get("CUR_PAYED_AMT").replaceAll(",", "").equals(payVo.get("ORD_AMT").replaceAll(",", ""))){
  45. // success_text = "-<font color='red'>완료</font>";
  46. //success_text = "-<font color='red'>최종</font>";
  47. // }
  48. //if(payVo.get("REMAINDER_AMT").replaceAll(",", "").equals("0")){
  49. // success_text = "-<font color='red'>완료</font>";
  50. //success_text = "-<font color='red'>최종</font>";
  51. //}
  52. //int intDigit = 0;
  53. %>
  54. <br>
  55. <TABLE width="700" border="0" cellspacing="0" cellpadding="0">
  56. <tbody>
  57. <TR>
  58. <TD align="center">
  59. <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  60. <COLGROUP>
  61. <COL width="20%">
  62. <COL width="30%">
  63. <COL width="20%">
  64. <COL width="30%">
  65. </COLGROUP>
  66. <tr height="23">
  67. <td class="list_title3" nowrap>현장명</td>
  68. <td class="list_data" nowrap align="left"><input type="text" class="input" id="DEPT_NAME" style="width:95%;" value='<%=payVo.get("DEPT_NAME") %>(<%=payVo.get("DEPT_CD") %>)'></td>
  69. <td class="list_title4" nowrap>작성일자</td>
  70. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("TAX_DY") %></td>
  71. </tr>
  72. <tr height="23" align="center">
  73. <td class="list_title4" nowrap>계약번호</td>
  74. <td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("CON_DOC_NO") %></td>
  75. <td class="list_title3" nowrap>작성자</td>
  76. <td class="list_data" nowrap align="left">&nbsp;<%=payVo.get("USER_NAME") %></td>
  77. </tr>
  78. <tr height="23" align="center">
  79. <td class="list_title3" nowrap>계약명</td>
  80. <td class="list_data" nowrap align="left"><input type="text" class="input" id="BUILD_NAME" style="width:95%;" value="<%=payVo.get("BUILD_NAME") %>"></td>
  81. <td class="list_title_2" nowrap>통&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;화</td>
  82. <td class="list_data" nowrap align="left">&nbsp;<%= payVo.get("CON_CUR_CD")%></td>
  83. </tr>
  84. <tr height="23" align="center">
  85. <td class="list_title5" nowrap>계약업체명</td>
  86. <td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("CORP_KOR") %>&nbsp;</td>
  87. <td class="list_title4" nowrap>대표이사</td>
  88. <td class="list_data" nowrap align="left" colspan="1">&nbsp;<%= StringUtils.cvtHTML3(payVo.get("BOSS_NAME"))%></td>
  89. </tr>
  90. <tr height="23" align="center">
  91. <td class="list_title4" nowrap>지급구분</td>
  92. <td class="list_data" nowrap align="left"><input type="checkbox" name="prepay" checked>선급금<input type="checkbox" name="mid">중도금(&nbsp;차)<input type="checkbox" name="mid1">잔금(&nbsp;차)
  93. </td>
  94. <td class="list_title4" nowrap>신청구분</td>
  95. <td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("REQ_DIV_CD") %>&nbsp;</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("CON_AMT") %> &nbsp;(100.0)&nbsp;</td>
  100. <td class="list_title5" nowrap>계약선급금</td>
  101. <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_AMT") %> &nbsp;(<%=payVo.get("PREPAY_AMT_PERCENT") %>%)&nbsp;</td>
  102. </tr>
  103. <tr height="23" align="center">
  104. <td class="list_title" nowrap align="center">계약 공급가 과세</td>
  105. <td class="list_data" nowrap align="right"><%=payVo.get("CON_SUPPLY_TAMT") %> &nbsp;</td>
  106. <td class="list_title" nowrap align="center">계약 선급금 과세</td>
  107. <td class="list_data" nowrap align="right"><%=payVo.get("SUB_PREPAY_SUPPLY_TAMT") %> &nbsp;</td>
  108. </tr>
  109. <tr height="23" align="center">
  110. <td class="list_title" nowrap align="center">계약 공급가 면세</td>
  111. <td class="list_data" nowrap align="right">&nbsp;<%=payVo.get("CON_SUPPLY_NAMT") %> &nbsp;</td>
  112. <td class="list_title" nowrap align="center">계약 선급금 면세</td>
  113. <td class="list_data" nowrap align="right"><%=payVo.get("SUB_PREPAY_SUPPLY_NAMT") %> &nbsp;</td>
  114. </tr>
  115. <tr height="23" align="center">
  116. <td class="list_title" nowrap align="center">계약 부가세 </td>
  117. <td class="list_data" nowrap align="right"><%=payVo.get("CON_SURTAX_AMT") %> &nbsp;</td>
  118. <td class="list_title" nowrap align="center">선급 부가세</td>
  119. <td class="list_data" nowrap align="right"><%=payVo.get("SUB_PREPAY_SURTAX_AMT") %> &nbsp;</td>
  120. </tr>
  121. <tr height="23" align="center">
  122. <td class="list_title" nowrap align="center">외국환거래 신고대상</td>
  123. <td class="list_data" nowrap align="left" colspan="3">&nbsp;<%=payVo.get("FOREIGN_NM")%>
  124. <%if(!payVo.get("FOREIGN_CHK").equals("A")){%>&nbsp;
  125. <IMG src="<%=link %>/img/buyer/button/bt_attach_file.gif" id="bt_foreign" alt="외국환거래" align="top" valign="top" onClick="open_foreign('<%=payVo.get("SUB_CONT_ID")%>', '<%=payVo.get("PREPAY_ID") %>', '<%=payVo.get("CON_CORP_ID") %>');" class="button">
  126. <%} %></td>
  127. </tr>
  128. </table>
  129. <BR/>
  130. <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  131. <COLGROUP>
  132. <COL width="20%">
  133. <COL width="30%">
  134. <COL width="20%">
  135. <COL width="30%">
  136. </COLGROUP>
  137. <tr height="23" align="center">
  138. <td class="list_title" nowrap align="center">신청 선급금 합계</td>
  139. <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_AMT") %> &nbsp;(<%=payVo.get("REQ_PREPAY_PERCENT") %>%)&nbsp;</td>
  140. <td class="list_title" nowrap align="center">포기 선급금 합계</td>
  141. <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_AMT") %> &nbsp;(<%=payVo.get("GIVE_PERCENT") %>%)&nbsp;</td>
  142. </tr>
  143. <tr height="23" align="center">
  144. <td class="list_title" nowrap align="center">신청 선급금 과세</td>
  145. <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SUPPLY_TAMT") %> &nbsp;</td>
  146. <td class="list_title" nowrap align="center">포기 선급금 과세</td>
  147. <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SUPPLY_TAMT") %> &nbsp;</td>
  148. </tr>
  149. <tr height="23" align="center">
  150. <td class="list_title" nowrap align="center">신청 선급금 면세</td>
  151. <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SUPPLY_NAMT") %> &nbsp;</td>
  152. <td class="list_title" nowrap align="center">포기 선급금 면세</td>
  153. <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SUPPLY_NAMT") %> &nbsp;</td>
  154. </tr>
  155. <tr height="23" align="center">
  156. <td class="list_title" nowrap align="center">신청 선급금 부가세</td>
  157. <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SURTAX_AMT") %> &nbsp;</td>
  158. <td class="list_title" nowrap align="center">포기 선급금 부가세</td>
  159. <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SURTAX_AMT") %> &nbsp;</td>
  160. </tr>
  161. </TABLE>
  162. <BR/>
  163. <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  164. <COLGROUP>
  165. <COL width="20%">
  166. <COL width="30%">
  167. <COL width="20%">
  168. <COL width="30%">
  169. </COLGROUP>
  170. <tr height="23" align="center">
  171. <td class="list_title" nowrap align="center" colspan="4">첨부파일</td>
  172. </tr>
  173. <tr height="30" align="center">
  174. <%
  175. if(rowSet.size() > 0){
  176. %>
  177. <td class="list_title1" nowrap align="center">&nbsp;선급금포기각서</td>
  178. <%
  179. }else{
  180. %>
  181. <td class="list_title1" nowrap align="center">&nbsp;선급금포기각서(해당없음)</td>
  182. <%
  183. }
  184. %>
  185. <td class="list_data" nowrap align="left" colspan="3">
  186. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  187. <tr>
  188. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  189. <%
  190. if(rowSet.size() > 0){
  191. for(int i = 0; rowSet.size() > i; i++){
  192. if(rowSet.getRow(i).get("FILE_NAME").length() > 35){
  193. %>
  194. <%= rowSet.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  195. <%= rowSet.getRow(i).get("FILE_EXT")%>
  196. <%
  197. }else{
  198. %>
  199. <%= rowSet.getRow(i).get("FILE_NAME")%>
  200. <%
  201. }
  202. %>
  203. ( <%=rowSet.getRow(i).get("FILE_SIZE") %> )
  204. <br>
  205. <%
  206. }
  207. }
  208. %>&nbsp;
  209. </td>
  210. <td class="list_data" nowrap>
  211. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('SUPP_PREPAYMENTS_GIVEUP', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  212. </td>
  213. </tr>
  214. </table>
  215. </td>
  216. </tr>
  217. <%
  218. if(rowSet2.size() > 0){
  219. %>
  220. <tr height="30" align="center">
  221. <td class="list_title1" nowrap align="left">&nbsp;세금계산서</td>
  222. <td class="list_data" nowrap align="left" colspan="3">
  223. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  224. <tr>
  225. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  226. <%
  227. if(rowSet2.size() > 0){
  228. for(int i = 0; rowSet2.size() > i; i++){
  229. if(rowSet2.getRow(i).get("FILE_NAME").length() > 35){
  230. %>
  231. <%= rowSet2.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  232. <%= rowSet2.getRow(i).get("FILE_EXT")%>
  233. <%
  234. }else{
  235. %>
  236. <%= rowSet2.getRow(i).get("FILE_NAME")%>
  237. <%
  238. }
  239. %>
  240. ( <%=rowSet2.getRow(i).get("FILE_SIZE") %> )
  241. <br>
  242. <%
  243. }
  244. }
  245. %>&nbsp;
  246. </td>
  247. <td class="list_data" nowrap>
  248. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('SUPP_TAX_BILL', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  249. </td>
  250. </tr>
  251. </table>
  252. </td>
  253. </tr>
  254. <%
  255. }
  256. %>
  257. <%
  258. if(rowSet3.size() > 0){
  259. %>
  260. <tr height="30" align="center">
  261. <td class="list_title1" nowrap align="left">&nbsp;Invoice</td>
  262. <td class="list_data" nowrap align="left" colspan="3">
  263. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  264. <tr>
  265. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  266. <%
  267. if(rowSet3.size() > 0){
  268. for(int i = 0; rowSet3.size() > i; i++){
  269. if(rowSet3.getRow(i).get("FILE_NAME").length() > 35){
  270. %>
  271. <%= rowSet3.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  272. <%= rowSet3.getRow(i).get("FILE_EXT")%>
  273. <%
  274. }else{
  275. %>
  276. <%= rowSet3.getRow(i).get("FILE_NAME")%>
  277. <%
  278. }
  279. %>
  280. ( <%=rowSet3.getRow(i).get("FILE_SIZE") %> )
  281. <br>
  282. <%
  283. }
  284. }
  285. %>&nbsp;
  286. </td>
  287. <td class="list_data" nowrap>
  288. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('INVOICE', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  289. </td>
  290. </tr>
  291. </table>
  292. </td>
  293. </tr>
  294. <%
  295. }
  296. %>
  297. <tr height="30" align="center">
  298. <td class="list_title1" nowrap align="left">&nbsp;대금청구</td>
  299. <td class="list_data" nowrap align="left" colspan="3">
  300. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  301. <tr>
  302. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  303. <%
  304. if(rowSet1.size() > 0){
  305. for(int i = 0; rowSet1.size() > i; i++){
  306. if(rowSet1.getRow(i).get("FILE_NAME").length() > 35){
  307. %>
  308. <%= rowSet1.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  309. <%= rowSet1.getRow(i).get("FILE_EXT")%>
  310. <%
  311. }else{
  312. %>
  313. <%= rowSet1.getRow(i).get("FILE_NAME")%>
  314. <%
  315. }
  316. %>
  317. ( <%=rowSet1.getRow(i).get("FILE_SIZE") %> )
  318. <br>
  319. <%
  320. }
  321. }
  322. %>&nbsp;
  323. </td>
  324. <td class="list_data" nowrap>
  325. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('SUPP_PREPAYMENTS_BILLING', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  326. </td>
  327. </tr>
  328. </table>
  329. </td>
  330. </tr>
  331. <tr height="30" align="center">
  332. <td class="list_title1" nowrap align="left">&nbsp;보증정보</td>
  333. <td class="list_data" nowrap align="left" colspan="3">
  334. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  335. <tr>
  336. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  337. </td>
  338. <td class="list_data" nowrap >
  339. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="보증정보" align="top" valign="top" onClick="open_apppend_file1('<%=payVo.get("SUB_CONT_ID")%>');" class="button">
  340. </td>
  341. </tr>
  342. </table>
  343. </td>
  344. </tr>
  345. </TABLE>
  346. </TD>
  347. </TR>
  348. </tbody>
  349. </TABLE>
  350. <table><tr><td style="display:none;" id=doctitle_1 class=FIELD><%=params.get("docTitle") %></td></tr></table>
  351. <br>