<%-- - FileName : prepayments.jsp - Author(s) : ok - Date : 2014.08.20 - Copyright : Copyright (c) 2013 www.udapsoft.co.kr, Inc. - Description: 전자조달 선급금현황 상세(구매) --%> <%@ page contentType="text/html; charset=utf-8"%> <%@ page import="com.udapsoft.waf.system.HandlerStorage"%> <%@ page import="com.udapsoft.waf.common.ui.*"%> <%@ page import="kr.co.hsnc.common.util.*"%> <%@ page import="kr.co.hsnc.common.sql.*"%> <%@ page import="kr.co.hsnc.common.util.Formatter"%> <%@ page import="com.udapsoft.waf.common.util.Formatter2"%> <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%> <%@ page import="kr.co.udapsoft.common.code.*" %> <%@ include file="/jsp/work/taglib.jsp"%> <% ctx.init(request, response); HandlerStorage storage = ctx.getHandlerStorage(); ValueObject params = storage.getParams(); ValueObject user = storage.getUser(); String event = storage.getEvent(); RowSet perpayReqDivComboList = storage.getRowSet("perpayReqDivComboList"); //신청구분 ComboList Data ValueObject prePayment = storage.getValueObject("prePayment"); //기본정보, 세금계산서정보, 선급금정보 ValueObject ContInfo = storage.getValueObject("ContInfo"); //분계유형 RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보 ValueObject file_giveup = storage.getValueObject("PREPAYMENTS_GIVEUP"); ValueObject file_taxbill = storage.getValueObject("TAX_BILL"); String check1 = ""; String check2 = ""; String check3 = ""; if("3".equals(prePayment.get("TAX_METHOD_CD"))){ check3 = "checked"; }else if("2".equals(prePayment.get("TAX_METHOD_CD"))){ check2 = "checked"; }else{ check1 = "checked"; } String taxChargNm = ""; String taxChargHp = ""; String taxChargEmail = ""; taxChargNm = prePayment.get("USER_NAME"); taxChargHp = prePayment.get("HP"); taxChargEmail = prePayment.get("EMAIL"); String digit = (String)prePayment.get("digit"); int intDigit = Integer.parseInt(digit); String creby = user.get("ACCT_ID"); String updby = user.get("ACCT_ID"); if(!"".equals(prePayment.get("CRE_BY")) && !"".equals(prePayment.get("UPD_BY"))){ creby = prePayment.get("CRE_BY"); updby = prePayment.get("UPD_BY"); } //베트남 환율정보 0원으로 표기되는 부분 수정(23.07.10) String CON_CUR_CD = (String)prePayment.get("CON_CUR_CD"); int currency_digit = intDigit; if(CON_CUR_CD.equals("VND")) currency_digit = 4; //통화가 vnd인 경우 소숫점 4자리까지 표기 %>
"> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> "> ">
  • 구매_선급금현황 상세(<%=prePayment.get("STATUS_NM")%>)
<% if(!prePayment.get("RTN_REASON").equals("")){ %>
반려정보
반려일 <%=prePayment.get("RTN_DATE")%>
반려사유 <%=prePayment.get("RTN_REASON")%>
<% }else if(!prePayment.get("TAX_RTN_REASON").equals("")){ %>
반려정보
반려일 <%=prePayment.get("TAX_RTN_DATE")%>
반려사유 <%=prePayment.get("TAX_RTN_REASON")%>
<% } %>
기본정보
현장명 <%= InputText.get("deptName", prePayment.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 계약명 <%= InputText.get("buildName", prePayment.get("BUILD_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 통화 <%= InputText.get("conCurCd", prePayment.get("CON_CUR_CD"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
사업자번호 <%= InputText.get("vendCd", prePayment.get("CORP_REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 계약업체명 <%= InputText.get("memberName", prePayment.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 대표이사 <%= InputText.get("bossName", prePayment.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
공사기간 <%= InputText.get("startEndWorkDate", prePayment.get("START_END_WORK_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 계약금액 <%= InputText.get("conConAmt", Formatter2.currency(prePayment.get("CON_SUPPLY_AMT"), intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 선급금액 <%= InputText.get("conPrepayAmt", Formatter2.currency(prePayment.get("ORG_SUPPLY_AMT"), intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
외국환거래 신고대상 <%if (prePayment.get("CON_CUR_CD").equals("KRW")) { %> 비대상 <%}else{ %> <%= InputText.get("FOREIGN_NM", prePayment.get("FOREIGN_NM"), 10, 10, "readOnly") %> 검토 <%} %> 선급금액 변경사유 <%= InputText.get("chgReason", prePayment.get("CHG_REASON"), 99, 1000, "string, left, perSize ", "string") %>
<% // PayGroup_PaymentTerms Mapping Object 구하기 ContCodeManager payGroupMappingUtil = new ContCodeManager(); storage.addObject("category", payGroupMappingUtil.getJSONNotation()); String category = (String)storage.getObject("category"); //System.out.println(category); %>
분개유형
<%-- --%> ">
분개유형<%= ContCodeManager.getCcsifSelectCodeList("SUB_ACCT_GB", "acct_gb", "width:100%;", "", ContInfo.get("acct_gb")) %> <%= ContCodeManager.getCcsifSelectCodeList("PUR-ACCT_GB", "acct_gb", "width:100%;", "", ContInfo.get("acct_gb"), ContInfo.get("dept_cd"), ContInfo.get("pay_div")) %> 증빙종류 <%= ContCodeManager.getProofCdSelectTag("proof_cd", "width:100%;", "onchange=chProofCd(this);", "", ContInfo.get("GUA_GB"), "Y") %> PAY GROUP <%= ContCodeManager.getPayGroupSelectTag("pay_group", "width:100%;", "onchange=changePaymentTerms(this);", "", ContInfo.get("pay_group"), ContInfo.get("ac_unit_cd")) %>
PAYMENT TERMS
세금계산서 정보
세금계산서 발행방법 > 역발행(SGC이앤씨 발행)  > 순발행(업체직접 발행)  > Invoice 작성일자(증빙일자) <%= InputText.get("date1", Formatter.formatDate(prePayment.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %> 달력
담당자명 <%= InputText.get("userName", taxChargNm, 98, 6, "string, left, perSize", "string") %> 담당자 핸드폰번호  ex)010-0000-0000 담당자 이메일 <%= InputText.get("eMail", taxChargEmail, 98, 40, "string, left, perSize", "string") %>
환율 <%-- <%= InputText.get("rateEx", Formatter2.currency(prePayment.get("rateEx"), intDigit), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> --%> <%= InputText.get("rateEx", Formatter2.currency(prePayment.get("rateEx"), currency_digit), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> 환율연산금액 공급가:<%= InputText.get("rateAmt", Formatter2.currency(prePayment.get("rateAmt"), 0), 20, 30, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>, 부가세:<%= InputText.get("rateVamt", Formatter2.currency(prePayment.get("rateVamt"), 0), 20, 30, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>
선급금정보
<%-- --%>
신청구분 <%= HTMLMaker.getSelectTag(perpayReqDivComboList, "DETAILCD", "DETAILNM", "perpayReqDiv", "width:80%;height=18;' onChange='inputDataSet();", "", prePayment.get("REQ_DIV_CD")) %>하도급직불여부  >예  >아니오 신청(서명)일시 <%= InputText.get("custSignDate", prePayment.get("CUST_SIGN_DATE"), 100, 50, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
구분 합계 공급가액 부가세 요율
계약 계약금액 <%= InputText.get("conAmt", Formatter2.currency(prePayment.get("CON_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("conSupplyAmt", Formatter2.currency(prePayment.get("CON_SUPPLY_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("conSurtaxAmt", Formatter2.currency(prePayment.get("CON_SURTAX_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("conAmtPercent", "100.0", 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>
선급금액 <%= InputText.get("perpayAmt", Formatter2.currency(prePayment.get("PREPAY_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("subPrepaySupplyAmt", Formatter2.currency(prePayment.get("PREPAY_SUPPLY_AMT"), intDigit), 98, 16, " float, right, perSize ", "float") %> <%= InputText.get("subPrepaySurtaxAmt", Formatter2.currency(prePayment.get("PREPAY_SURTAX_AMT"), intDigit), 98, 16, " float, right, perSize ", "float") %> <%= InputText.get("prepayAmtPercent", prePayment.get("PREPAY_AMT_PERCENT"), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>
선급 신청금액 <%= InputText.get("reqPrepayAmt", Formatter2.currency(prePayment.get("REQ_PREPAY_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("reqPrepaySupplyAmt", Formatter2.currency(prePayment.get("REQ_PREPAY_SUPPLY_AMT"), intDigit), 98, 16, "class=input byteChk ,float, right, perSize", "float") %> <%= InputText.get("reqPrepaySurtaxAmt", Formatter2.currency(prePayment.get("REQ_PREPAY_SURTAX_AMT"), intDigit), 98, 16, "class=input byteChk ,float, right, perSize", "float") %> <%= InputText.get("reqPrepayPercent", prePayment.get("REQ_PREPAY_PERCENT"), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>
포기금액 <%= InputText.get("giveAmt", Formatter2.currency(prePayment.get("GIVE_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("giveSupplyAmt", Formatter2.currency(prePayment.get("GIVE_SUPPLY_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("giveSurtaxAmt", Formatter2.currency(prePayment.get("GIVE_SURTAX_AMT"), intDigit), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %> <%= InputText.get("givePercent", prePayment.get("GIVE_PERCENT"), 98, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>
첨부파일
<%-- --%> <%-- --%>
구분 첨부파일명 첨부파일
선급금 포기각서(해당없음)
<%=FileManager.getFileListForDiv("PREPAYMENTS_GIVEUP", prePayment.get("PREPAY_ID")) %>
[Attach File]
세금계산서
<%=FileManager.getFileListForDiv("TAX_BILL", prePayment.get("PREPAY_ID")) %>
[Attach File]
Invoice
<%=FileManager.getFileListForDiv("PREPAYMENTS_INVOICE", prePayment.get("PREPAY_ID")) %>
[Attach File]
대금청구
<%=FileManager.getFileListForDiv("PREPAYMENTS_BILLING", prePayment.get("PREPAY_ID")) %>
[Attach File]
<%if(warrList.size()>0){%> <% /* 보증 목록을 include 시킴 (2014-10-16) 김명호 */ %> <%@ include file="/jsp/ko_KR/buyer/cont/purchase/guarList.jsp" %> <% } %>