<%@ page contentType="text/html; charset=utf-8" %> <%@ page import="com.udapsoft.waf.system.*"%> <%@ page import="com.udapsoft.waf.common.ui.*" %> <%@ page import="com.udapsoft.waf.common.web.*" %> <%@ page import="kr.co.hsnc.common.sql.*"%> <%@ page import="kr.co.hsnc.common.util.*"%> <%@ page import="kr.co.hsnc.common.sql.util.*"%> <%@ page import="com.udapsoft.waf.system.HandlerStorage"%> <%@ page import="kr.co.hsnc.common.util.ValueObject"%> <%@ page import="kr.co.hsnc.common.message.WAFMessage"%> <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%> <%@ page import="com.udapsoft.waf.common.util.StringUtils" %> <%@ page import="kr.co.udapsoft.common.util.PCMSUtil" %> <%@ page import="kr.co.hsnc.common.util.Formatter"%> <%@ page import="com.udapsoft.waf.common.util.Formatter2"%> <% ctx.init(request, response); String link = ctx.getServerDomain(); HandlerStorage storage = ctx.getHandlerStorage(); ValueObject params = storage.getParams(); WAFMessage wafMessage = WAFMessage.getInstance(); ValueObject payVo = storage.getValueObject("payList"); RowSet listRowSet = null; listRowSet = storage.getRowSet("listRowSet"); RowSet purchaseFileRow = null; purchaseFileRow = storage.getRowSet("purchaseFileRow"); //지급구분 String prepay_chk = "checked"; String mid_chk = ""; String rmdr_chk = ""; /* if(payVo.get("deposit_cd").equals("1")){ prepay_chk = "checked"; }else if(payVo.get("deposit_cd").equals("2")){ mid_chk = "checked"; }else if(payVo.get("deposit_cd").equals("3")){ rmdr_chk = "checked"; } */ RowSet rowSet = FileManager.getFileList("PREPAYMENTS_GIVEUP", payVo.get("PREPAY_ID")); RowSet rowSet2 = FileManager.getFileList("TAX_BILL", payVo.get("PREPAY_ID")); //세금계산서 RowSet rowSet3 = FileManager.getFileList("PREPAYMENTS_INVOICE", payVo.get("PREPAY_ID")); //invoice RowSet rowSet1 = FileManager.getFileList("PREPAYMENTS_BILLING", payVo.get("PREPAY_ID")); String success_text = ""; // if(payVo.get("CUR_PAYED_AMT").replaceAll(",", "").equals(payVo.get("ORD_AMT").replaceAll(",", ""))){ // success_text = "-완료"; //success_text = "-최종"; // } //if(payVo.get("REMAINDER_AMT").replaceAll(",", "").equals("0")){ // success_text = "-완료"; //success_text = "-최종"; //} //int intDigit = 0; %>
현장명 작성일자  <%=payVo.get("TAX_DY") %>
계약번호  <%=payVo.get("CON_DOC_NO") %> 작성자  <%=payVo.get("USER_NAME") %>
계약명 "> 통              화  <%= payVo.get("CON_CUR_CD")%>
계약업체명  <%=payVo.get("CORP_KOR") %>  대표이사  <%= StringUtils.cvtHTML3(payVo.get("BOSS_NAME"))%>
지급구분 선급금 중도금( 차) 잔금( 차) 신청구분  <%=payVo.get("REQ_DIV_CD") %> 
총계약금액 <%=payVo.get("CON_AMT") %>  (100.0)  계약선급금 <%=payVo.get("PREPAY_AMT") %>  (<%=payVo.get("PREPAY_AMT_PERCENT") %>%) 
계약 공급가 과세 <%=payVo.get("CON_SUPPLY_AMT") %>   계약 선급금 과세 <%=payVo.get("PREPAY_SUPPLY_AMT") %>  
계약 부가세 <%=payVo.get("CON_SURTAX_AMT") %>   선급 부가세 <%=payVo.get("PREPAY_SURTAX_AMT") %>  
신청 선급금 합계 <%=payVo.get("REQ_PREPAY_AMT") %>  (<%=payVo.get("REQ_PREPAY_PERCENT") %>%)  포기 선급금 합계 <%=payVo.get("GIVE_AMT") %>  (<%=payVo.get("GIVE_PERCENT") %>%) 
신청 선급금 공급가 <%=payVo.get("REQ_PREPAY_SUPPLY_AMT") %>   포기 선급금 공급가 <%=payVo.get("GIVE_SUPPLY_AMT") %>  
신청 선급금 부가세 <%=payVo.get("REQ_PREPAY_SURTAX_AMT") %>   포기 선급금 부가세 <%=payVo.get("GIVE_SURTAX_AMT") %>  
외국환거래 신고대상  <%=payVo.get("FOREIGN_NM")%> <%if(!payVo.get("FOREIGN_CHK").equals("A")){%>  외국환거래', '<%=payVo.get("PREPAY_ID") %>', '<%=payVo.get("CON_CORP_ID") %>');" class="button"> <%} %>

<% if(rowSet.size() > 0){ %> <% }else{ %> <% } %> <% if(rowSet2.size() > 0){ %> <% } %> <% if(rowSet3.size() > 0){ %> <% } %>
첨부파일
 선급금포기각서 선급금포기각서(해당없음)
<% if(rowSet.size() > 0){ for(int i = 0; rowSet.size() > i; i++){ if(rowSet.getRow(i).get("FILE_NAME").length() > 35){ %> <%= rowSet.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%> <%= rowSet.getRow(i).get("FILE_EXT")%> <% }else{ %> <%= rowSet.getRow(i).get("FILE_NAME")%> <% } %> ( <%=rowSet.getRow(i).get("FILE_SIZE") %> )
<% } } %> 
첨부파일 관리');" class="button">
 세금계산서
<% if(rowSet2.size() > 0){ for(int i = 0; rowSet2.size() > i; i++){ if(rowSet2.getRow(i).get("FILE_NAME").length() > 35){ %> <%= rowSet2.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%> <%= rowSet2.getRow(i).get("FILE_EXT")%> <% }else{ %> <%= rowSet2.getRow(i).get("FILE_NAME")%> <% } %> ( <%=rowSet2.getRow(i).get("FILE_SIZE") %> )
<% } } %> 
첨부파일 관리');" class="button">
 Invoice
<% if(rowSet3.size() > 0){ for(int i = 0; rowSet3.size() > i; i++){ if(rowSet3.getRow(i).get("FILE_NAME").length() > 35){ %> <%= rowSet3.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%> <%= rowSet3.getRow(i).get("FILE_EXT")%> <% }else{ %> <%= rowSet3.getRow(i).get("FILE_NAME")%> <% } %> ( <%=rowSet3.getRow(i).get("FILE_SIZE") %> )
<% } } %> 
첨부파일 관리');" class="button">
 대금청구
<% if(rowSet1.size() > 0){ for(int i = 0; rowSet1.size() > i; i++){ if(rowSet1.getRow(i).get("FILE_NAME").length() > 35){ %> <%= rowSet1.getRow(i).get("FILE_NAME").substring(0, 35)+"..."%> <%= rowSet1.getRow(i).get("FILE_EXT")%> <% }else{ %> <%= rowSet1.getRow(i).get("FILE_NAME")%> <% } %> ( <%=rowSet1.getRow(i).get("FILE_SIZE") %> )
<% } } %> 
첨부파일 관리');" class="button">

 대시보드  대시보드')" class="button">