PreRequestSign.jsp 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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("PREPAYMENTS_GIVEUP", payVo.get("PREPAY_ID"));
  40. RowSet rowSet2 = FileManager.getFileList("TAX_BILL", payVo.get("PREPAY_ID")); //세금계산서
  41. RowSet rowSet3 = FileManager.getFileList("PREPAYMENTS_INVOICE", payVo.get("PREPAY_ID")); //invoice
  42. RowSet rowSet1 = FileManager.getFileList("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="100%" 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="20%">
  63. <COL width="20%">
  64. <COL width="40%">
  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>선급금
  93. <input type="checkbox" name="mid">중도금(&nbsp;차)
  94. <input type="checkbox" name="mid1">잔금(&nbsp;차)
  95. </td>
  96. <td class="list_title4" nowrap>신청구분</td>
  97. <td class="list_data" nowrap align="left" colspan="1">&nbsp;<%=payVo.get("REQ_DIV_CD") %>&nbsp;</td>
  98. </tr>
  99. <tr height="23" align="center">
  100. <td class="list_title5" nowrap>총계약금액</td>
  101. <td class="list_data" nowrap align="right"><%=payVo.get("CON_AMT") %> &nbsp;(100.0)&nbsp;</td>
  102. <td class="list_title5" nowrap>계약선급금</td>
  103. <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_AMT") %> &nbsp;(<%=payVo.get("PREPAY_AMT_PERCENT") %>%)&nbsp;</td>
  104. </tr>
  105. <tr height="23" align="center">
  106. <td class="list_title" nowrap align="center">계약 공급가 과세</td>
  107. <td class="list_data" nowrap align="right"><%=payVo.get("CON_SUPPLY_AMT") %> &nbsp;</td>
  108. <td class="list_title" nowrap align="center">계약 선급금 과세</td>
  109. <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_SUPPLY_AMT") %> &nbsp;</td>
  110. </tr>
  111. <tr height="23" align="center">
  112. <td class="list_title" nowrap align="center">계약 부가세 </td>
  113. <td class="list_data" nowrap align="right"><%=payVo.get("CON_SURTAX_AMT") %> &nbsp;</td>
  114. <td class="list_title" nowrap align="center">선급 부가세</td>
  115. <td class="list_data" nowrap align="right"><%=payVo.get("PREPAY_SURTAX_AMT") %> &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"><%=payVo.get("REQ_PREPAY_AMT") %> &nbsp;(<%=payVo.get("REQ_PREPAY_PERCENT") %>%)&nbsp;</td>
  120. <td class="list_title" nowrap align="center">포기 선급금 합계</td>
  121. <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_AMT") %> &nbsp;(<%=payVo.get("GIVE_PERCENT") %>%)&nbsp;</td>
  122. </tr>
  123. <tr height="23" align="center">
  124. <td class="list_title" nowrap align="center">신청 선급금 공급가</td>
  125. <td class="list_data" nowrap align="right"><%=payVo.get("REQ_PREPAY_SUPPLY_AMT") %> &nbsp;</td>
  126. <td class="list_title" nowrap align="center">포기 선급금 공급가</td>
  127. <td class="list_data" nowrap align="right"><%=payVo.get("GIVE_SUPPLY_AMT") %> &nbsp;</td>
  128. </tr>
  129. <tr height="23" align="center">
  130. <td class="list_title" nowrap align="center">신청 선급금 부가세</td>
  131. <td class="list_data" nowrap align="right" colspan="1"><%=payVo.get("REQ_PREPAY_SURTAX_AMT") %> &nbsp;</td>
  132. <td class="list_title" nowrap align="center">포기 선급금 부가세</td>
  133. <td class="list_data" nowrap align="right" colspan="1"><%=payVo.get("GIVE_SURTAX_AMT") %> &nbsp;</td>
  134. </tr>
  135. <tr height="23" align="center">
  136. <td class="list_title" nowrap align="center">외국환거래 신고대상</td>
  137. <td class="list_data" nowrap align="left" colspan="3">&nbsp;<%=payVo.get("FOREIGN_NM")%>
  138. <%if(!payVo.get("FOREIGN_CHK").equals("A")){%>
  139. &nbsp;<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">
  140. <%} %></td>
  141. </tr>
  142. </TABLE>
  143. <BR/>
  144. <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  145. <COLGROUP>
  146. <COL width="20%">
  147. <COL width="20%">
  148. <COL width="20%">
  149. <COL width="40%">
  150. </COLGROUP>
  151. <tr height="23" align="center">
  152. <td class="list_title" nowrap align="center" colspan="4">첨부파일</td>
  153. </tr>
  154. <tr height="30" align="left">
  155. <%
  156. if(rowSet.size() > 0){
  157. %>
  158. <td class="list_title1" nowrap align="left">&nbsp;선급금포기각서</td>
  159. <%
  160. }else{
  161. %>
  162. <td class="list_title1" nowrap align="left">&nbsp;선급금포기각서(해당없음)</td>
  163. <%
  164. }
  165. %>
  166. <td class="list_data" nowrap align="left" colspan="3">
  167. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  168. <tr>
  169. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  170. <%
  171. if(rowSet.size() > 0){
  172. for(int i = 0; rowSet.size() > i; i++){
  173. if(rowSet.getRow(i).get("FILE_NAME").length() > 35){
  174. %>
  175. <%= rowSet.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  176. <%= rowSet.getRow(i).get("FILE_EXT")%>
  177. <%
  178. }else{
  179. %>
  180. <%= rowSet.getRow(i).get("FILE_NAME")%>
  181. <%
  182. }
  183. %>
  184. ( <%=rowSet.getRow(i).get("FILE_SIZE") %> )
  185. <br>
  186. <%
  187. }
  188. }
  189. %>&nbsp;
  190. </td>
  191. <td class="list_data" nowrap>
  192. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('PREPAYMENTS_GIVEUP', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  193. </td>
  194. </tr>
  195. </table>
  196. </td>
  197. </tr>
  198. <%
  199. if(rowSet2.size() > 0){
  200. %>
  201. <tr height="30" align="center">
  202. <td class="list_title1" nowrap align="left">&nbsp;세금계산서</td>
  203. <td class="list_data" nowrap align="left" colspan="3">
  204. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  205. <tr>
  206. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  207. <%
  208. if(rowSet2.size() > 0){
  209. for(int i = 0; rowSet2.size() > i; i++){
  210. if(rowSet2.getRow(i).get("FILE_NAME").length() > 35){
  211. %>
  212. <%= rowSet2.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  213. <%= rowSet2.getRow(i).get("FILE_EXT")%>
  214. <%
  215. }else{
  216. %>
  217. <%= rowSet2.getRow(i).get("FILE_NAME")%>
  218. <%
  219. }
  220. %>
  221. ( <%=rowSet2.getRow(i).get("FILE_SIZE") %> )
  222. <br>
  223. <%
  224. }
  225. }
  226. %>&nbsp;
  227. </td>
  228. <td class="list_data" nowrap>
  229. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('TAX_BILL', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  230. </td>
  231. </tr>
  232. </table>
  233. </td>
  234. </tr>
  235. <%
  236. }
  237. %>
  238. <%
  239. if(rowSet3.size() > 0){
  240. %>
  241. <tr height="30" align="center">
  242. <td class="list_title1" nowrap align="left">&nbsp;Invoice</td>
  243. <td class="list_data" nowrap align="left" colspan="3">
  244. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  245. <tr>
  246. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  247. <%
  248. if(rowSet3.size() > 0){
  249. for(int i = 0; rowSet3.size() > i; i++){
  250. if(rowSet3.getRow(i).get("FILE_NAME").length() > 35){
  251. %>
  252. <%= rowSet3.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  253. <%= rowSet3.getRow(i).get("FILE_EXT")%>
  254. <%
  255. }else{
  256. %>
  257. <%= rowSet3.getRow(i).get("FILE_NAME")%>
  258. <%
  259. }
  260. %>
  261. ( <%=rowSet3.getRow(i).get("FILE_SIZE") %> )
  262. <br>
  263. <%
  264. }
  265. }
  266. %>&nbsp;
  267. </td>
  268. <td class="list_data" nowrap>
  269. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('PREPAYMENTS_INVOICE', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  270. </td>
  271. </tr>
  272. </table>
  273. </td>
  274. </tr>
  275. <%
  276. }
  277. %>
  278. <tr height="30" align="center">
  279. <td class="list_title1" nowrap align="left">&nbsp;대금청구</td>
  280. <td class="list_data" nowrap align="left" colspan="3">
  281. <table width="100%" height="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  282. <tr>
  283. <td class="list_data" width="470px" align="top" valign="top" nowrap>
  284. <%
  285. if(rowSet1.size() > 0){
  286. for(int i = 0; rowSet1.size() > i; i++){
  287. if(rowSet1.getRow(i).get("FILE_NAME").length() > 35){
  288. %>
  289. <%= rowSet1.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%>
  290. <%= rowSet1.getRow(i).get("FILE_EXT")%>
  291. <%
  292. }else{
  293. %>
  294. <%= rowSet1.getRow(i).get("FILE_NAME")%>
  295. <%
  296. }
  297. %>
  298. ( <%=rowSet1.getRow(i).get("FILE_SIZE") %> )
  299. <br>
  300. <%
  301. }
  302. }
  303. %>&nbsp;
  304. </td>
  305. <td class="list_data" nowrap>
  306. <IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="bt_attach_file" alt="첨부파일 관리" align="top" valign="top" onClick="open_apppend_file('PREPAYMENTS_BILLING', '<%=payVo.get("PREPAY_ID") %>');" class="button">
  307. </td>
  308. </tr>
  309. </table>
  310. </td>
  311. </tr>
  312. </TABLE>
  313. <br/>
  314. <TABLE width="100%" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF" bordercolorlight="#AEAFAF" border="1">
  315. <COLGROUP>
  316. <COL width="20%">
  317. <COL width="80%">
  318. </COLGROUP>
  319. <td class="list_title1" nowrap align="left" >&nbsp;대시보드</td>
  320. <td class="list_data" nowrap align="left">
  321. &nbsp;<IMG src="<%=link %>/img/buyer/button/bt_change.gif" id="dashBoard" alt="대시보드" align="top" valign="top" onClick="openDash('<%=payVo.get("SUB_CONT_ID")%>')" class="button">
  322. </td>
  323. </TABLE>
  324. </TD>
  325. </TR>
  326. </tbody>
  327. </TABLE>
  328. <table><tr><td style="display:none;" id=doctitle_1 class=FIELD><%=params.get("docTitle") %></td></tr></table>
  329. <br>