<%@ 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 = ""; 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("PUR1100T", payVo.get("payreq_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("ord_doc_no") %> 대시보드')" class="button"> 작성일자  <%=payVo.get("req_date") %>
작성자  <%=payVo.get("REQ_CHARGE_NAME") %> 협조부서  <%=payVo.get("SUB_DEPT_NM") %>
현장코드  <%=payVo.get("DEPT_CD") %>  통              화  <%= payVo.get("CURRENCY_GB")%>
현장명
계약명
계약업체명 대표이사  <%=payVo.get("BOSS_NAME") %>
총계약금액 <%=payVo.get("ORD_AMT") %>   선급금액 <%=payVo.get("PREPAY_AMT") %>  
지급구분 >선급금 <% if(payVo.get("DEPOSIT_CD").equals("2")){ %> >중도금(<%=payVo.getInt("DEPOSIT_SEQ") %>차) <% }else{ %> >중도금 <% } %> <% if(payVo.get("DEPOSIT_CD").equals("3")){ %> >잔금(<%=payVo.getInt("DEPOSIT_SEQ") %>차<%=success_text %>) <% }else{ %> >잔금<%=success_text %> <% } %> 기선급공제액 <%=payVo.get("PREPAY_SUPPLY_AMT") %>  
금회선급공제액 <%=payVo.get("CUR_BEF_PREPAY_SUPPLYAMT") %>   선급잔액 <%=payVo.get("REMAINDER_PREPAY_AMT") %>  
기지불액 <%=payVo.get("PAYED_AMT") %>  <%-- (<%=payVo.get("PAYED_PERCENT") %>%)  --%> 전기성고 <%=payVo.get("BEF_ACMP_AMT") %>  (<%=payVo.get("BEF_ACMP_PERCENT")%>%) 
금회청구액<%=payVo.get("CUR_REQ_AMT") %>  (<%=payVo.get("CUR_REQ_PERCENT") %>%) <%=payVo.get("CUR_REQ_AMT") %>   금회기성고 <%=payVo.get("CUR_ACMP_AMT") %>  (<%=payVo.get("CUR_ACMP_PERCENT") %>%) 
금회포함지불액<%=payVo.get("CUR_PAYED_AMT") %>  (<%=payVo.get("CUR_PAYED_PERCENT") %>%) <%=payVo.get("CUR_PAYED_AMT") %>   금회포함기성고 <%=payVo.get("CUR_BEF_ACMP_AMT") %>  (<%=payVo.get("CUR_BEF_ACMP_PERCENT") %>%) 
잔             액<%=payVo.get("REMAINDER_AMT") %>  (<%=payVo.get("REMAINDER_ACMP_PERCENT") %>%) <%=payVo.get("REMAINDER_AMT") %>   미기성고 <%=payVo.get("REMAINDER_ACMP_AMT") %>  (<%=payVo.get("REMAINDER_ACMP_PERCENT") %>%) 
외국환거래
신고대상
 <%=payVo.get("FOREIGN_NM")%> <%if(!payVo.get("FOREIGN_CHK").equals("A")){%>  외국환거래', '<%=payVo.get("PAYREQ_ID") %>', '<%=payVo.get("CORP_ID") %>');" class="button"> <%} %>
지급사유
특기사항 <%=payVo.get("RE_MARKS").replaceAll("\n", "
")%>
첨부서류   <% if(purchaseFileRow.size() > 0){ int i_mod = 0; for(int i = 0; purchaseFileRow.size() > i; i++){ i_mod = i%3; if(i_mod == 0){ %> <% } %> <% if(i_mod == 2) { %> <% } %> <% } for(int i=i_mod+1; i<3; i++){ %> <% } if(i_mod == 0 || i_mod == 1){ %> <% } } %>
" style="cursor:pointer;" <%if(!purchaseFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %>> <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "
") %> --%> <%=purchaseFileRow.getRow(i).get("DETAILNM") %>
" 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">
<%if (listRowSet.size() > 0){ for(int i = 0; i < listRowSet.size(); i++){ %> <% } }else{ } %>
입고번호 자재코드 자재명 규격 단위 입고수량 입고단가 입고금액
 <%=listRowSet.getRow(i).get("STOCK_NO") %>  <%=listRowSet.getRow(i).get("MATERIAL_CD") %>  <%=listRowSet.getRow(i).get("MATERIAL_NAME") %>  <%=listRowSet.getRow(i).get("MATERIAL_SPEC") %>  <%=listRowSet.getRow(i).get("UNIT_KIND") %>  <%=PCMSUtil.strPoint(Formatter.formatCurrency(listRowSet.getRow(i).get("ITEM_QTY")),0) %>  <%=PCMSUtil.strPoint(Formatter.formatCurrency(listRowSet.getRow(i).get("ITEM_PRI")),0) %>  <%=PCMSUtil.strPoint(Formatter.formatCurrency(listRowSet.getRow(i).get("ITEM_AMT")),0) %>