1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008 |
- <%--
- - FileName : suppPayItemRequest.jsp
- - Author(s) : ok
- - Date : 2014.06.17
- - Copyright : Copyright (c) 2014 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"%>
- <%@ include file="/jsp/work/taglib.jsp"%>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- 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
- RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보
- /*
- ValueObject file_giveup = storage.getValueObject("PREPAYMENTS_GIVEUP");
- ValueObject file_taxbill = storage.getValueObject("TAX_BILL");
- */
- ValueObject prePayment = storage.getValueObject("prePayment"); //기본정보, 세금계산서정보, 선급금정보
- ValueObject vendorPrintInfo = storage.getValueObject("vendorPrintInfo");//Vendor Print
- RowSet prePaymentList = storage.getRowSet("prePaymentList"); //대금내역
-
- String check1 = "";
- String check2 = "";
- String check3 = "";
- String checkString = "";
- if("3".equals(prePayment.get("TAX_METHOD_CD"))){
- check3 = "checked";
- checkString = "Invoice";
- }else if("2".equals(prePayment.get("TAX_METHOD_CD"))){
- check2 = "checked";
- checkString = "순발행(업체직접 발행)";
- }else{
- check1 = "checked";
- checkString = "역발행(SGC이앤씨 발행)";
- }
- String digit = (String)prePayment.get("digit");
- int intDigit = Integer.parseInt(digit);
-
- //기타 첨부서류
- RowSet purchaseFileRow = storage.getRowSet("purchaseFileRow");
-
- %>
- <SCRIPT language="JavaScript">
- /*예약함수*/
- var sheet1;
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
-
- var g_digit = <%= intDigit %>; // 소숫점 이하 자릿수
-
- function _onReady(){
- //리스트 페이지 이동
- jQuery("#btnList").click(function() {
-
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/portal/payment/SuppPayRequestList.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
- });
-
- jQuery("#btnDelete").click(function() {
- var f = document.form1;
- //필수 입력항목 check
- if(jQuery("#prepayId").val() == ""){
- alert("삭제되었습니다.");
- return;
- }
- //입력데이터 저장
- if (confirm("삭제 하시겠습니까?")) {
- jQuery("#fevent").val("DELETE_DATA");
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "DELETE_DATA", f, "SUCCESS");
- }
- });
- jQuery("#btnSave").click(function() {
-
- var f = document.form1;
- jQuery("#fevent").val("SAVE_DATA");
- //필수 입력항목 check
- if(requiredItemsCheck() == false){
- return;
- }
- //입력데이터 저장
- if (confirm("저장 하시겠습니까?")) {
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
- }
- });
-
- jQuery("#btnAppReq").click(function() {
-
- //첨부파일Check
- ChkAttch();
- /*
- var f = document.form1;
- jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:대금신청요청
-
- jQuery("#fevent").val("SAVE_DATA");
- //필수 입력항목 check
- if(requiredItemsCheck() == false){
- return;
- }
-
- //입력데이터 저장
- if (confirm(jQuery("#btnText").text()+" 하시겠습니까?")) {
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
- }
- */
- });
-
- //반려
- jQuery("#btnRejection").click(function() {
-
- /* var param = "";
- var param = "?payreqId=" + jQuery("#payreqId").val();
- param = param + "&pageDiv=2"; //0:선급, 1:기성, 2:대금(납품,설치), 3:대금(선급금)
- var url = "/payment/outside/RejectionPopup.screen"+param;
- result = window.showModalDialog(url,'rejection','dialogWidth:600px;dialogHeight:250px;center:yes;help:no;status:no;scroll:no;resizable:no');
- if(result != null){
- if(result[0] == "1"){
- reDisplay();
- //goList();
- }
- }
- */
- });
-
- //결재
- jQuery("#btnApproval").click(function() {
- /* if (!dlgConfirm("기성결재를 진행하시겠습니까?")) {
- return;
- }
- alert("확인후 개발할것 일단 완료 상태로 변경함.");
- var f = document.form1;
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "APPROVAL", f, "SUCCESS");
- */
- });
-
-
- //jQuery("#curAcmpVat, #curPrepayApplyamt, #curPrepayVat").blur(function () {
- jQuery("#curPrepayApplyamt1").blur(function () {
-
- if(jQuery("#statusCd").val() == "10"){ //완료건에 대해서는 금액 계산을 하지않는다.
- return;
- }
-
- var conConAmtVal = jQuery("#conConAmt").val().replace(/(\,|\:)/g,""); //계약금
- var conConVatVal = conConAmtVal /100 * 10; //계약금 부가세
- var conPrepayAmtVal = jQuery("#conPrepayAmt").val().replace(/(\,|\:)/g,""); //선급금액
- var conPrepayVatVal = conPrepayAmtVal /100 * 10; //선급금액 부가세
-
- //전회 청구
- var befAcmpApplyAmtVal = jQuery("#befAcmpApplyAmt").val().replace(/(\,|\:)/g,""); //전회 청구 공급가액
- var befAcmpVatVal = jQuery("#befAcmpVat").val().replace(/(\,|\:)/g,""); //전회 청구 부가세
- var befAcmpAmtVal = jQuery("#befAcmpAmt").val().replace(/(\,|\:)/g,""); //전회 청구 합계
- var befAcmpPercentVal = jQuery("#befAcmpPercent").val().replace(/(\,|\:)/g,""); //전회 청구 지급율
-
- var curAcmpApplyamtVal = jQuery("#curAcmpApplyamt").val().replace(/(\,|\:)/g,""); //금회 청구 공급가액
- var befPrepayApplyAmtVal = jQuery("#befPrepayApplyAmt").val().replace(/(\,|\:)/g,""); //전회 선급 공급가액
- //금회 선급
- var curPrepayApplyamtVal = jQuery("#curPrepayApplyamt").val().replace(/(\,|\:)/g,""); //금회 선급 공급가액
- var curBefPrepaySupplyamtVal = parseFloat(befPrepayApplyAmtVal) + parseFloat(curPrepayApplyamtVal); //누계 선급 공급가액
-
- if(curPrepayApplyamtVal == ""){
- curPrepayApplyamtVal = 0;
- jQuery("#curPrepayApplyamt").val(0);
- }else{
-
- var reqPrepaySamtVal = jQuery("#reqPrepaySamt").val().replace(/(\,|\:)/g,""); //선급금 청구금액 공급가
- if(parseFloat(curBefPrepaySupplyamtVal) > parseFloat(reqPrepaySamtVal) ){
- alert("선급금 청구금액 공급가 보다 선급금공제액이 큽니다.");
- curPrepayApplyamtVal = jQuery("#orgCurPrepayApplyamt").val();
- jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal);
- jQuery("#curPrepayApplyamt").focus();
- }else{
-
- if(parseFloat(curPrepayApplyamtVal) > parseFloat(curAcmpApplyamtVal) ){ //입력한 선급금공제금액이 금회기성고공급가액보다 클수 없다.
- alert("선급금 공제액이 금회 기성고보다 큽니다.");
- curPrepayApplyamtVal = jQuery("#orgCurPrepayApplyamt").val();
- jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal);
- jQuery("#curPrepayApplyamt").focus();
- }else{
-
- jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal); //입력한 선급금공제 금회 공급가액 표시
-
- if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
- var bugaseVal = curAcmpApplyamtVal / 100 * 10;
- jQuery("#curAcmpVat").val(Math.floor(bugaseVal)); //기성고 금회 부가세
-
- var bugaseVatVal = curPrepayApplyamtVal / 100 * 10;
- jQuery("#curPrepayVat").val(Math.floor(bugaseVatVal)); //선급금공제 금회 부가세
-
- }else{
-
- jQuery("#curAcmpVat").val("0"); //기성고 금회 부가세
- jQuery("#curPrepayVat").val("0"); //선급금공제 금회 부가세
- }
- }
- }
- }
-
- //금회 청구
-
- var curAcmpVatVal = jQuery("#curAcmpVat").val().replace(/(\,|\:)/g,""); //금회 청구 부가세
- if(curAcmpVatVal == ""){
- curAcmpVatVal = 0;
- jQuery("#curAcmpVat").val(0);
- }else{
- jQuery("#curAcmpVat").val(curAcmpVatVal);
- }
-
- var curAcmpAmtVal = parseFloat(curAcmpApplyamtVal) + parseFloat(curAcmpVatVal); //금회 청구 합계
- jQuery("#curAcmpAmt").val(curAcmpAmtVal);
- jQuery("#curAcmpAmt, #curAcmpVat").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- var curAcmpPercentVal = parseFloat(curAcmpApplyamtVal) / parseFloat(conConAmtVal) * 100; //금회 청구 지급율
- jQuery("#curAcmpPercent").val(curAcmpPercentVal.toFixed(1));
- //누계 청구
- var curBefAcmpSupplyamtVal = parseFloat(befAcmpApplyAmtVal) + parseFloat(curAcmpApplyamtVal); //누계 청구 공급가액
- jQuery("#curBefAcmpSupplyamt").val(curBefAcmpSupplyamtVal);
- var curBefAcmpVatVal = parseFloat(befAcmpVatVal) + parseFloat(curAcmpVatVal); //누계 청구 부가세
- jQuery("#curBefAcmpVat").val(curBefAcmpVatVal);
- var curBefAcmpAmtVal = parseFloat(curBefAcmpSupplyamtVal) + parseFloat(curBefAcmpVatVal); //누계 청구 합계
- jQuery("#curBefAcmpAmt").val(curBefAcmpAmtVal);
- var curBefAcmpPercentVal = parseFloat(curBefAcmpSupplyamtVal) / parseFloat(conConAmtVal) * 100; //누계 청구 지급율
- jQuery("#curBefAcmpPercent").val(curBefAcmpPercentVal.toFixed(1));
- jQuery("#curBefAcmpSupplyamt, #curBefAcmpVat, #curBefAcmpAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- //잔여 청구
- var remainderAcmpSupplyamtVal = parseFloat(conConAmtVal) - parseFloat(curBefAcmpSupplyamtVal); //잔여 청구 공급가액
- jQuery("#remainderAcmpSupplyamt").val(remainderAcmpSupplyamtVal);
- var remainderAcmpVatVal = parseFloat(conConVatVal) - parseFloat(curBefAcmpVatVal); //잔여 청구 부가세
- jQuery("#remainderAcmpVat").val(remainderAcmpVatVal);
- var remainderAcmpAmtVal = parseFloat(remainderAcmpSupplyamtVal) + parseFloat(remainderAcmpVatVal); //잔여 청구 합계
- jQuery("#remainderAcmpAmt").val(remainderAcmpAmtVal);
- var remainderAcmpPercentVal = parseFloat(remainderAcmpSupplyamtVal) / parseFloat(conConAmtVal) * 100; //누계 청구 지급율
- jQuery("#remainderAcmpPercent").val(remainderAcmpPercentVal.toFixed(1));
- jQuery("#remainderAcmpSupplyamt, #remainderAcmpVat, #remainderAcmpAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- //전회 선급
- var befPrepayVatVal = jQuery("#befPrepayVat").val().replace(/(\,|\:)/g,""); //전회 선급 부가세
- var befPrepayAmtVal = jQuery("#befPrepayAmt").val().replace(/(\,|\:)/g,""); //전회 선급 합계
- var befPrepayPercentVal = jQuery("#befPrepayPercent").val().replace(/(\,|\:)/g,""); //전회 선급 지급율
-
- var curPrepayVatVal = jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,""); //금회 선급 부가세
- if(curPrepayVatVal == ""){
- curPrepayVatVal = 0;
- jQuery("#curPrepayVat").val(0);
- }else{
- jQuery("#curPrepayVat").val(curPrepayVatVal);
- }
- var curPrepayDeductamtVal = parseFloat(curPrepayApplyamtVal) + parseFloat(curPrepayVatVal); //금회 선급 합계
- jQuery("#curPrepayDeductamt").val(curPrepayDeductamtVal);
-
- if(parseFloat(curPrepayApplyamtVal) == "0"){
- var curPrepayPercentVal = 0.0; //금회 선급 지급율
- }else{
- var curPrepayPercentVal = parseFloat(curPrepayApplyamtVal) / parseFloat(conPrepayAmtVal) * 100; //금회 선급 지급율
- }
- jQuery("#curPrepayPercent").val(curPrepayPercentVal.toFixed(1));
-
- jQuery("#curPrepayApplyamt, #curPrepayVat, #curPrepayDeductamt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- //누계 선급
- jQuery("#curBefPrepaySupplyamt").val(curBefPrepaySupplyamtVal);
- var curBefPrepayVatVal = parseFloat(befPrepayVatVal) + parseFloat(curPrepayVatVal); //누계 선급 부가세
- jQuery("#curBefPrepayVat").val(curBefPrepayVatVal);
- var curBefPrepayAmtVal = parseFloat(befPrepayAmtVal) + parseFloat(curPrepayDeductamtVal); //누계 청구 합계
- jQuery("#curBefPrepayAmt").val(curBefPrepayAmtVal);
-
- if(parseFloat(curBefPrepaySupplyamtVal) == "0"){
- var curBefPrepayPercentVal = 0.0; //누계 선급 지급율
- }else{
- var curBefPrepayPercentVal = parseFloat(curBefPrepaySupplyamtVal) / parseFloat(conPrepayAmtVal) * 100; //누계 선급 지급율
- }
-
- jQuery("#curBefPrepayPercent").val(curBefPrepayPercentVal.toFixed(1));
- jQuery("#curBefPrepaySupplyamt, #curBefPrepayVat, #curBefPrepayAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- //잔여 선급
- var remainderPrepaySupplyamtVal = parseFloat(conPrepayAmtVal) - parseFloat(curBefPrepaySupplyamtVal); //잔여 선급 공급가액
- jQuery("#remainderPrepaySupplyamt").val(remainderPrepaySupplyamtVal);
- var remainderPrepayVatVal = parseFloat(conPrepayVatVal) - parseFloat(curBefPrepayVatVal); //잔여 선급 부가세
- jQuery("#remainderPrepayVat").val(remainderPrepayVatVal);
- var remainderPrepayAmtVal = parseFloat(remainderPrepaySupplyamtVal) + parseFloat(remainderPrepayVatVal); //잔여 선급 합계
- jQuery("#remainderPrepayAmt").val(remainderPrepayAmtVal);
- if(parseFloat(remainderPrepaySupplyamtVal) == "0"){
- var remainderPrepayPercentVal = 0.0; //잔여 선급 지급율
- }else{
- var remainderPrepayPercentVal = parseFloat(remainderPrepaySupplyamtVal) / parseFloat(conPrepayAmtVal) * 100; //잔여 선급 지급율
- }
- jQuery("#remainderPrepayPercent").val(remainderPrepayPercentVal.toFixed(1));
- jQuery("#remainderPrepaySupplyamt, #remainderPrepayVat, #remainderPrepayAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- //전회 실지급
- var payedApplyamtVal = parseFloat(befAcmpApplyAmtVal) - parseFloat(befPrepayApplyAmtVal); //전회 실지급 공급가액
- jQuery("#payedApplyamt").val(payedApplyamtVal);
- var payedVatVal = parseFloat(befAcmpVatVal) - parseFloat(befPrepayVatVal); //전회 실지급 부가세
- jQuery("#payedVat").val(payedVatVal);
- var payedAmtVal = parseFloat(payedApplyamtVal) + parseFloat(payedVatVal); //전회 실지급 합계
- jQuery("#payedAmt").val(payedAmtVal);
- var payedPercentVal = parseFloat(payedApplyamtVal) / parseFloat(conConAmtVal) * 100; //전회 실지급 지급율
- jQuery("#payedPercent").val(payedPercentVal.toFixed(1));
- jQuery("#payedApplyamt, #payedVat, #payedAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- //금회 실지급
- var curReqAmtVal = parseFloat(curAcmpApplyamtVal) - parseFloat(curPrepayApplyamtVal); //금회 실지급 공급가액
- jQuery("#curReqAmt").val(curReqAmtVal);
- //var curReqVatamtVal = parseFloat(curAcmpVatVal) - parseFloat(curPrepayVatVal); //금회 실지급 부가세
- if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
- var curReqVatamtVal = curReqAmtVal / 100 * 10; //금회 실지급 부가세
- }else{
- var curReqVatamtVal = 0; //금회 실지급 부가세
- }
- jQuery("#curReqVatamt").val(curReqVatamtVal);
- var curReqApplyamtVal = parseFloat(curReqAmtVal) + parseFloat(curReqVatamtVal); //금회 실지급 합계
- jQuery("#curReqApplyamt").val(curReqApplyamtVal);
- var curReqPercentVal = parseFloat(curReqAmtVal) / parseFloat(conConAmtVal) * 100; //금회 실지급 지급율
- jQuery("#curReqPercent").val(curReqPercentVal.toFixed(1));
- jQuery("#curReqAmt, #curReqVatamt, #curReqApplyamt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- //누계 실지급
- var curPayedSupplyamtVal = parseFloat(curBefAcmpSupplyamtVal) - parseFloat(curBefPrepaySupplyamtVal); //누계 실지급 공급가액
- jQuery("#curPayedSupplyamt").val(curPayedSupplyamtVal);
- var curPayedVatVal = parseFloat(curBefAcmpVatVal) - parseFloat(curBefPrepayVatVal); //누계 실지급 부가세
- jQuery("#curPayedVat").val(curPayedVatVal);
- var curPayedAmtVal = parseFloat(curPayedSupplyamtVal) + parseFloat(curPayedVatVal); //누계 실지급 합계
- jQuery("#curPayedAmt").val(curPayedAmtVal);
- var curPayedPercentVal = parseFloat(curPayedSupplyamtVal) / parseFloat(conConAmtVal) * 100; //누계 실지급 지급율
- jQuery("#curPayedPercent").val(curPayedPercentVal.toFixed(1));
- jQuery("#curPayedSupplyamt, #curPayedVat, #curPayedAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- //잔여 실지급
- var remainderSupplyamtVal = parseFloat(remainderAcmpSupplyamtVal) - parseFloat(remainderPrepaySupplyamtVal); //잔여 실지급 공급가액
- jQuery("#remainderSupplyamt").val(remainderSupplyamtVal);
- var remainderVatVal = parseFloat(remainderAcmpVatVal) - parseFloat(remainderPrepayVatVal); //잔여 실지급 부가세
- jQuery("#remainderVat").val(remainderVatVal);
- var remainderAmtVal = parseFloat(remainderSupplyamtVal) + parseFloat(remainderVatVal); //잔여 실지급 합계
- jQuery("#remainderAmt").val(remainderAmtVal);
- var remainderPercentVal = parseFloat(remainderSupplyamtVal) / parseFloat(conConAmtVal) * 100; //잔여 실지급 지급율
- jQuery("#remainderPercent").val(remainderPercentVal.toFixed(1));
- jQuery("#remainderSupplyamt, #remainderVat, #remainderAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
-
- //잔여가 0이면 잔급으로 설정
- setDepostiCd();
-
-
- });
-
- pageinit();
-
- }
-
- //페이지 초기처리
- function pageinit(){
-
- //대금신청(신청상태)
- //setAmountData();
-
- //작성일자(증빙일자)
- seTaxDate();
-
- //신청구분 선택불가
- //appDivSet();
-
- //입력항목 초기처리
- //inputDataSet();
-
- //발행방법에 따른 페이지 셋팅
- //taxDataSet();
-
- //버튼표시 셋팅
- btnCtr();
- //상태에 따른 입력항목 readOnly
- inputReadOnlyset();
-
- getFileListForTextarea();
-
- //하자이행보증정보 view유무
- setGuarOutList();
-
- //Vender Print 초기처리
- setVenderPrintInit();
-
- }
- function setGuarOutList(){
-
- var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
- var preFundRateValue = Number(jQuery("#befAcmpPercent").val()); //전회 누계기성율
- //var preFundRateValue = 90; //전회 누계기성율
- var checkRate1 = defEstGuarRateValue + preFundRateValue;
- var totFundRateValue = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
- var checkRate2 = defEstGuarRateValue + totFundRateValue;
- var acmpNoValue = jQuery("#depositSeq").val(); //지급차수
-
- if(Number(checkRate1) > 99){
- jQuery('#warr1').show();
- jQuery('#warr2').show();
- }else if(Number(checkRate2) > 99){
- jQuery('#warr1').show();
- jQuery('#warr2').show();
- }else{
- jQuery('#warr1').hide();
- jQuery('#warr2').hide();
- }
- }
-
- //신청대상일때 계약선급금액을 선급신청금액에 초기 입력한다.
- function setAmountData() {
- if(jQuery("#statusCd").val() == "00"){ //신청대상
- var subPrepaySupplyTamtValue = jQuery("#subPrepaySupplyTamt").val(); //계약 선급금액
- jQuery("#reqPrepaySupplyTamt").val(subPrepaySupplyTamtValue); //선급 신청금액
-
- var subPrepaySupplyNamtValue = jQuery("#subPrepaySupplyNamt").val(); //계약 면세금액
- jQuery("#reqPrepaySupplyNamt").val(subPrepaySupplyNamtValue); //선급 면세금액
- }
- }
-
- function appDivSet() {
- jQuery("#perpayReqDiv").attr("disabled", true);
-
- jQuery("#reqPrepaySupplyTamt, #reqPrepaySupplyNamt").blur();
- }
-
- function seTaxDate(){
-
- var newDay = new Date( get_year(), get_month(), "");
- var lastDay = newDay.getDate();
- var yyyymmdd = get_year() +'-'+ get_month() +"-"+ lastDay;
-
- //alert(jQuery('#date1').val());
- if(jQuery('#date1').val() == ""){
- jQuery('#date1').val(yyyymmdd);
- }
-
- }
-
- function btnCtr(){
-
- //alert(jQuery("#statusCd").val());
- if(jQuery("#statusCd").val() == "00"){ //01:신청대상는 목록, 삭제, 저장 표시
-
- jQuery("#spanBtnList").show();
- jQuery("#spanBtnDelete").show();
- jQuery("#spanBtnSave").show();
-
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- jQuery("#spanBtnAppReq").hide();
- }
- if(jQuery("#statusCd").val() == "01"){ //01:작성상태는 목록, 삭제, 저장, 대금신청 표시
- jQuery("#spanBtnList").show();
- jQuery("#spanBtnDelete").show();
- jQuery("#spanBtnSave").show();
- jQuery("#spanBtnAppReq").show();
-
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
-
- if(jQuery("#statusCd").val() == "02"){ //02:대금요청상태는 목록, 삭제, 저장, 대금신청 표시
-
- jQuery("#spanBtnList").show();
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").show();
- jQuery("#spanBtnAppReq").show();
-
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
-
- if(jQuery("#statusCd").val() == "03"){ //03:대금신청상태는 목록, 반려, 결재
- jQuery("#spanBtnList").show();
-
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").hide();
- jQuery("#spanBtnAppReq").hide();
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
- if(jQuery("#statusCd").val() == "04"){ //04:결재중상태는 목록
-
- jQuery("#spanBtnList").show();
-
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").hide();
- jQuery("#spanBtnAppReq").hide();
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
-
- if(jQuery("#statusCd").val() == "10"){ //10:결재완료상태는 목록
-
- jQuery("#spanBtnList").show();
-
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").hide();
- jQuery("#spanBtnAppReq").hide();
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
-
- if(jQuery("#statusCd").val() == "40"){ //40:VP심사중
- jQuery("#spanBtnList").show();
-
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").hide();
- jQuery("#spanBtnAppReq").hide();
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
- if(jQuery("#statusCd").val() == "50"){ //50:VP반려
- jQuery("#spanBtnList").show();
-
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").hide();
- jQuery("#spanBtnAppReq").hide();
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
- if(jQuery("#statusCd").val() == "60"){ //60:VP승인
- jQuery("#spanBtnList").show();
-
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").hide();
- jQuery("#spanBtnAppReq").hide();
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
-
- if(jQuery("#statusCd").val() == "99"){ //99:반려상태는 목록, 삭제, 저장, 대금신청요청 표시
- jQuery("#spanBtnList").show();
- jQuery("#spanBtnDelete").hide();
- jQuery("#spanBtnSave").show();
- jQuery("#spanBtnAppReq").show();
-
- jQuery("#spanBtnRejection").hide();
- jQuery("#spanBtnApproval").hide();
- }
- }
- function inputReadOnlyset() {
- if (jQuery("#statusCd").val() == "10" || jQuery("#statusCd").val() == "04" || jQuery("#statusCd").val() == "03") { //입력불가상태
-
- jQuery("#userName").attr("readonly", true);
- jQuery("#userName").css({'background-color' : '#F0F0F0'});
- jQuery("#userName").css({'border' : '1px solid #bcbcbc'});
-
- jQuery("#hp").attr("readonly", true);
- jQuery("#hp").css({'background-color' : '#F0F0F0'});
- jQuery("#hp").css({'border' : '1px solid #bcbcbc'});
-
- jQuery("#eMail").attr("readonly", true);
- jQuery("#eMail").css({'background-color' : '#F0F0F0'});
- jQuery("#eMail").css({'border' : '1px solid #bcbcbc'});
-
- jQuery("#curAcmpVat").attr("readonly", true);
- jQuery("#curAcmpVat").css({'background-color' : '#F0F0F0'});
- jQuery("#curAcmpVat").css({'border' : '1px solid #bcbcbc'});
- jQuery("#curPrepayApplyamt").attr("readonly", true);
- jQuery("#curPrepayApplyamt").css({'background-color' : '#F0F0F0'});
- jQuery("#curPrepayApplyamt").css({'border' : '1px solid #bcbcbc'});
-
- jQuery("#curPrepayVat").attr("readonly", true);
- jQuery("#curPrepayVat").css({'background-color' : '#F0F0F0'});
- jQuery("#curPrepayVat").css({'border' : '1px solid #bcbcbc'});
-
- jQuery("#selectDepositCd").attr("disabled", true);
-
- }
-
- WarrantyDiv();
-
- }
-
- function taxDataSet(){
-
- var radioCheck = jQuery(':radio[name="chk_info"]:checked').val(); //세금계산서 발행방법
- if(radioCheck == "1"){
- jQuery("#taxAttachments").hide();
- jQuery("#taxTrRow").hide();
- }else{
- jQuery("#taxAttachments").show();
- jQuery("#taxTrRow").show();
- }
- }
-
- //잔여/중도금 설정
- function setDepostiCd(){
- var remainderAcmpAmtValue = jQuery("#remainderAcmpAmt").val(); //기성고_잔여_합계
- if(Number(remainderAcmpAmtValue) == 0){
- jQuery("#selectDepositCd").val("3"); //잔금
- }else{
- jQuery("#selectDepositCd").val("2"); //중도금
- }
- }
-
-
- function inputDataSet(){
-
- jQuery("#perpayReqDiv").attr("disabled",true);
-
- if(jQuery("#perpayReqDiv option:selected").val() == "1"){
-
- jQuery("#giveAmt").val("0"); //선급_포기금액_합계
- jQuery("#reqPrepayAmt").attr("readonly",true);
- jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#reqPrepayAmt").val(jQuery("#perpayAmt").val());
-
- jQuery("#giveSupplyTamt").val("0"); //선급_포기금액_과세
- jQuery("#reqPrepaySupplyTamt").attr("readonly",true);
- jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#reqPrepaySupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
-
- jQuery("#giveSupplyNamt").val("0"); //선급_포기금액_면세
- jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
- jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#reqPrepaySupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
- jQuery("#giveSurtaxAmt").val("0"); //선급_포기금액_부가세
- jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
- jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#reqPrepaySurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
-
- jQuery("#givePercent").val("0.0");
- var reqPrepayAmt = jQuery("#reqPrepayAmt").val();
- reqPrepayAmt = reqPrepayAmt.replace(/(\,|\:)/g,"");
- var conAmt = jQuery("#conAmt").val();
- conAmt = conAmt.replace(/(\,|\:)/g,"");
- var givePercent = (reqPrepayAmt / conAmt) * 100;
-
- jQuery("#reqPrepayPercent").val(givePercent.toFixed(1));
-
- giveDataSet();
-
- warrCtr('S'); //S:보이기, H:숨기기
-
- }else if(jQuery("#perpayReqDiv option:selected").val() == "2"){
-
- jQuery("#reqPrepayAmt").attr("readonly",true);
- jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
-
- jQuery("#reqPrepaySupplyTamt").attr("readonly",false);
- jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#ffffff'});
- jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #595a5a'});
- if(jQuery("#conSupplyNamt").val() == "0"){
- jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
- jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
- }else{
- jQuery("#reqPrepaySupplyNamt").attr("readonly",false);
- jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#ffffff'});
- jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #595a5a'});
- }
- jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
- jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#reqPrepaySupplyTamt").val(jQuery("#orgReqPrepaySupplyTamt").val());
- jQuery("#reqPrepaySupplyNamt").val(jQuery("#orgReqPrepaySupplyNamt").val());
- jQuery("#reqPrepaySupplyTamt").blur();
-
- giveDataSet();
-
- warrCtr('S'); //S:보이기, H:숨기기
-
- }else if(jQuery("#perpayReqDiv option:selected").val() == "3"){
-
- jQuery("#reqPrepayAmt").val("0"); //선급_신청금액_합계
- jQuery("#reqPrepayAmt").attr("readonly",true);
- jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#giveAmt").val(jQuery("#perpayAmt").val());
-
- jQuery("#reqPrepaySupplyTamt").val("0"); //선급_신청금액_과세
- jQuery("#reqPrepaySupplyTamt").attr("readonly",true);
- jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#giveSupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
-
- jQuery("#reqPrepaySupplyNamt").val("0"); //선급_신청금액_면세
- jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
- jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#giveSupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
- jQuery("#reqPrepaySurtaxAmt").val("0"); //선급_신청금액_부가세
- jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
- jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
- jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
- jQuery("#giveSurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
- jQuery("#reqPrepayPercent").val("0.0");
-
- var giveAmt = jQuery("#giveAmt").val();
- giveAmt = giveAmt.replace(/(\,|\:)/g,"");
- var conAmt = jQuery("#conAmt").val();
- conAmt = conAmt.replace(/(\,|\:)/g,"");
- var givePercent = (giveAmt / conAmt) * 100;
-
- jQuery("#givePercent").val(givePercent.toFixed(1));
-
- giveDataSet();
-
- //포기일때 보증정보는 필요없으므로 숨김처ㅣ
- warrCtr('H'); //S:보이기, H:숨기기
-
- }
- }
-
- function warrCtr(gubun){
-
- if (gubun == "H") { //숨김
- var warrWamt = jQuery("#warrWamt").val().replace(/(\,|\:)/g, "");
- if(warrWamt == "0" || warrWamt == ""){
-
- jQuery('#warr1').slideUp();
- jQuery('#warr2').slideUp();
- }else{
-
- alert("보증정보가 존재합니다.");
- //jQuery("#reqPrepaySupplyTamt").val(jQuery("#warrWamt").val());
- }
-
- } else {
-
- jQuery('#warr1').show("slow");
- jQuery('#warr2').show("slow");
-
- }
- }
-
- function reDisplay() {
-
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/portal/payment/SuppPayInstallRequest.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
-
- }
-
- //저장 및 대금 신청시 필수항목 Check
- function requiredItemsCheck(){
-
- var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
- var userName = jQuery('#userName').val(); //담당자명
- var hp = jQuery('#hp').val(); //담당자 핸드폰번호
- var eMail = jQuery('#eMail').val(); //담당자 이메일
-
- if(date1 == "" ){
- alert("입력필수입니다.");
- jQuery('#date1').focus();
- return false;
- }
- if(userName == ""){
- alert("담당자명은 입력필수입니다.");
- jQuery('#userName').focus();
- return false;
- }
- if(hp == ""){
- alert("담당자 핸드폰 번호는 입력필수입니다.");
- jQuery('#hp').focus();
- return false;
- }else{
- var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
- var strValue = hp;
- var chkFlg = rgEx.test(strValue);
- if(!chkFlg){
- alert("올바른 휴대폰번호가 아닙니다.");
- jQuery('#hp').focus();
- return false;
- }
- }
- if(eMail == ""){
- alert("담당자 이메일은 입력필수입니다.");
- jQuery('#eMail').focus();
- return false;
- }else{
- var regEmail = /([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
- if(!regEmail.test(eMail)) {
- alert('올바른 이메일 주소가 아닙니다.');
- jQuery('#eMail').focus();
- return false;
- }
- }
- //금액Check처리
- var remainderAcmpAmtValue = jQuery("#remainderAcmpAmt").val(); //기성고_잔여_합게
- var remainderPrepayAmtValue = jQuery("#remainderPrepayAmt").val(); //선급금공제_잔여_합게
- var curReqVatamtValue = jQuery("#curReqVatamt").val(); //청구액_금회_부가세
- if(Number(remainderAcmpAmtValue) < 0 || Number(remainderPrepayAmtValue) < 0 || Number(curReqVatamtValue) < 0){
- alert("금액을 확인바랍니다.");
- return false;
- }
-
- if(jQuery("#btnAppReqSelect").val() == "1"){ //대신청요청시에는 해당하는 첨부파일이 모드 등록되어있어야함.
- var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
- var preFundRateValue = Number(jQuery("#befAcmpPercent").val()); //전회 누계기성율
- //var preFundRateValue = 90; //전회 누계기성율
- var checkRate1 = defEstGuarRateValue + preFundRateValue;
- var totFundRateValue = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
- var checkRate2 = defEstGuarRateValue + totFundRateValue;
- if(checkRate1 > 99 || checkRate2 > 99){
- //하자이행보증 정보가 존재하는지Check
- if(jQuery("#warrWgno").val() == ""){
- alert("하자이행보증 정보가 없습니다.");
- return false;
- }
- }
-
- //01:작성중, 02:대금요청, 03:대금신청, 04:결재, 10:결재완료, 99:반려
- /* if (jQuery("#perpayReqDiv").val() == "1") { //선급신청
- jQuery("#selectStatusCd").val("20");
- } else if (jQuery("#perpayReqDiv").val() == "2") { //부분신청
- jQuery("#selectStatusCd").val("20");
- } else if (jQuery("#perpayReqDiv").val() == "3") { //포기신청
- jQuery("#selectStatusCd").val("21");
- } else {
- alert("신청구분을 선택하세요");
- return;
- } */
- }
- }
-
- function doResult(resultObj) {
- try {
-
- if( resultObj.getRequestEvent() == "SAVE_DATA" ) {
- if( resultObj.getSuccess() ) {
-
- document.form1.isSubmit = false;
-
- if(jQuery("#btnAppReqSelect").val() == "0"){
- alert("저장되었습니다.");
- //jQuery("#btnList").click();
- reDisplay();
-
- }else{
-
- jQuery("#btnAppReqSelect").val("0");
- btnAppReqProcess();
-
- }
-
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
- if( resultObj.getRequestEvent() == "DELETE_DATA" ) {
- if( resultObj.getSuccess() ) {
- alert("삭제되었습니다.");
- jQuery("#btnList").click();
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
- if( resultObj.getRequestEvent() == "REQ_DATA" ) {
- if( resultObj.getSuccess() ) {
- alert("신청요청하였습니다.");
- jQuery("#btnList").click();
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
-
- if( resultObj.getRequestEvent() == "GET_ATTACHFILE" ) {
- if( resultObj.getSuccess() ) {
- document.form1.p_AttachFile.value = resultObj.getValueObject().get("AttachFile");
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
-
- if( resultObj.getRequestEvent() == "CHK_ATTCH" ) {
-
- var vo = resultObj.getValueObject();
- var check = vo.get('checkFlag');
- if(check == 0){ //가능
-
- document.form1.isSubmit = false;
- runAppReq();
-
- }else{
-
- document.form1.isSubmit = false;
- if(check == 1){
- alert("대금청구서 첨부파일이 없습니다.");
- }
- }
- }
-
- if( resultObj.getRequestEvent() == "GET_DATA" ) {
-
- if( resultObj.getSuccess() ) {
- var subContId = resultObj.getValueObject().get("SUB_CONT_ID");
- if(subContId != ""){
- jQuery("#subContId").val(subContId);
-
- var warrGubun = resultObj.getValueObject().get("WARR_GUBUN");
- jQuery("#warrGubun").val(warrGubun);
-
- var warrSeq = resultObj.getValueObject().get("WARR_SEQ");
- jQuery("#warrSeq").val(warrSeq);
-
- var causeCode = resultObj.getValueObject().get("CAUSECODE");
- jQuery("#causeCode").val("당초");
- var guarOnoffYn = resultObj.getValueObject().get("GUAR_ONOFF_YN");
- jQuery("#guarOnoffYn").val(guarOnoffYn);
- var warrGoffice = resultObj.getValueObject().get("WARR_GOFFICE");
- jQuery("#warrGoffice").val(warrGoffice);
- var guarStatus = resultObj.getValueObject().get("GUAR_STATUS");
- jQuery("#guarStatus").val(guarStatus);
-
- var paperDate = resultObj.getValueObject().get("PAPERDATE");
- jQuery("#paperDate").val(paperDate);
- var warrWgno = resultObj.getValueObject().get("WARR_WGNO");
- jQuery("#warrWgno").val(warrWgno);
- var warrWamt = resultObj.getValueObject().get("WARR_WAMT");
- jQuery("#warrWamt").val(warrWamt);
- jQuery("#warrWamt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- var warrSdateEdate = resultObj.getValueObject().get("WARR_SDATE_EDATE");
- jQuery("#warrSdateEdate").val(warrSdateEdate);
-
- }
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
-
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
- //저장 후 기성시청 처리
- function btnAppReqProcess(){
- fMakeItemInfo();
- // if (fMakeItemInfo()) { //서명데이터 처리
- // var f = document.form1;
- // jQuery("#fevent").val("REQ_DATA");
- // submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "REQ_DATA", f, "SUCCESS");
- // }
- }
- function doKeyPress() {
-
- if( event.keyCode == 13 ) {
- doSearch(document.all.sheet1)
- }
- }
- function calendar(thisDayObj){
- dlgCalendar(thisDayObj);
- }
- //첨부파일
- function doAttachFile(obj,No,fileName) {
-
- //alert(obj.value);
- if(obj.value == ''){
- //alert("After you have saved, you can attach a file.");
- alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
- }
- else if(obj.value != ''){
- //if(No == 1){
- // viewFileListNew('PURCHASE_'+obj.value, No, document.getElementById("fileMapIDDiv"), "Y", "payment/purchase/"+obj.value);
- //}else{
- var upLoadFlg = "N";
- if(jQuery("#statusCd").val() == "02"){ //상태값이 기성신청(03), 결재완료(10) 일때는 첨부파일 다운로드만 가능 2019.05.14 10->02로변경
- upLoadFlg = "Y";
- }
- viewFileListNew('PURCHASE_'+obj.value, No, document.getElementById("fileMapIDDiv"), upLoadFlg, "payment/purchase/"+obj.value, null, fileName);
- //}
- }
- //기성첨부파일 목록 조회
- //getFileListForTextarea();
-
- }
-
- //첨부목록 조회
- function getFileListForTextarea(){
-
- document.form1.p_AttachFile.value = "";
- var f = document.form1;
- jQuery("#fevent").val("GET_ATTACHFILE");
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
- }
-
- //보증정보 조회
- function callback_getContWarr(){
-
- //alert("보증정보 조회");
- fLayerPopClose('contOutWarrPop');
- var f = document.form1;
- jQuery("#fevent").val("GET_DATA");
- submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "GET_DATA", f, "VALUEOBJECT");
-
- }
-
- function fileCheck(checkObj, val){
- var f = document.form1;
-
- //alert(checkObj.value);
- //alert(checkObj.checked);
- //alert(val);
-
- var obj = eval("document.getElementById('" + val + "')");
-
- if(obj.style.display == "none"){
- obj.style.display = "inline";
- checkObj.checked = true;
- }else{
- obj.style.display = "none";
- checkObj.checked = false;
- }
- }
-
- //보증정보 조회
- function callback_getContWarr(){
-
- var f = document.form1;
- jQuery("#fevent").val("GET_DATA");
- submitXmlRequest("/payment/outside/AdvencePayment_form.screen", "GET_DATA", f, "VALUEOBJECT");
-
- }
- //첨부파일Check
- function ChkAttch(){
-
- var f = document.form1;
- jQuery("#fevent").val("CHK_ATTCH");
- submitXmlRequest("/portal/payment/SuppPayItemRequests_form.screen", "CHK_ATTCH", f, "VALUEOBJECT");
-
- }
- function runAppReq(){
- var f = document.form1;
- jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:대금신청요청
-
- jQuery("#fevent").val("SAVE_DATA");
- //필수 입력항목 check
- if(requiredItemsCheck() == false){
- return;
- }
-
- //입력데이터 저장
- if (confirm(jQuery("#btnText").text()+" 하시겠습니까?")) {
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
- }
- }
-
- function fMakeItemInfo() {
- var sColumDelimiter = "┃";
- var sRowDelimiter = "↕";
- var sSumDelimiter = "╂";
- var sEncDelimiter = "⇔";
- var sItemInfo = ""; //서명할 문자열 데이터
- var infoDeptName = "현장명:" + jQuery("#deptName").val(); //현장명
- var infoBuildName = "계약명:" + jQuery("#buildName").val(); //계약명
- var infoConCurNm = "계약통화:" + jQuery("#conCurCd").val(); //계약통화
- var infoCorpRegNo = "사업자번호:" + jQuery("#vendCd").val(); //사업자번호
- var CorpRegNoVal = jQuery("#vendCd").val().replace(/-/gi, "");
- //사업자번호
- //alert(CorpRegNoVal);
- var infoCorpKor = "계약업체명:" + jQuery("#memberName").val(); //계약업체명
- var infoBossName = "대표이사:" + jQuery("#bossName").val(); //업체대표이사
- var infoStartEndWorkDate = "계약기간:" + jQuery("#startEndWorkDate").val(); //계약기간
- var infoConAmt = "계약금액:" + jQuery("#conAmt").val(); //계약금액합계
- var infoPerpayAmt = "선급금액:" + jQuery("#perpayAmt").val(); //선급금액합계
- //var infoHowToPay = "대금지불방법:" + jQuery("#howToPay").val(); //대금지불방법
- var infoHowToPay = "지급사유:" + jQuery("#howToPay").val(); //지급사유
-
- var infoTaxMethod = ""; //세금계산서발행방법
- if (jQuery('input:checkbox[id="chk_1"]').is(":checked")) { //역발행
- infoTaxMethod = "세금계산서발행방법:역발행";
- } else {
- infoTaxMethod = "세금계산서발행방법:순발행";
- }
- var infoDate1 = "작성일자:" + jQuery("#date1").val(); //작성일자(증빙일자)
- var infoTaxChargNm = "담당자명:" + jQuery("#userName").val(); //담당자명
- var infoTaxChargHp = "핸드폰번호:" + jQuery("#hp").val(); //담당자 핸드폰번호
- var infoTaxChargEmail = "이메일주소:" + jQuery("#eMail").val(); //담당자 이메일
- var infoPayDiv = "대금구분:계획분할"; //대금구분:설치
- var infoDepositCd = "지급구분:" + jQuery("#selectDepositCd option:selected").val(); //지급구분:중도금
- var infoDepositSeq = "지급차수:" + jQuery("#depositSeq").val(); //지급차수:02
-
- var infoPrepayAmt = "선급_청구금액_합계:" + jQuery("#reqPrepayAmt").val();
- var infoPrepaySupplyTamt = "선급_청구금액_공급가:"+ jQuery("#reqPrepaySamt").val();
- var infoPrepaySurtaxAmt = "선급_청구금액_부가세:" + jQuery("#reqPrepaySamt").val();
- sItemInfo = sItemInfo + infoDeptName + sColumDelimiter;
- sItemInfo = sItemInfo + infoBuildName + sColumDelimiter;
- sItemInfo = sItemInfo + infoConCurNm + sColumDelimiter;
- sItemInfo = sItemInfo + infoCorpRegNo + sColumDelimiter;
- sItemInfo = sItemInfo + infoCorpKor + sColumDelimiter;
- sItemInfo = sItemInfo + infoBossName + sColumDelimiter;
- sItemInfo = sItemInfo + infoStartEndWorkDate + sColumDelimiter;
- sItemInfo = sItemInfo + infoConAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoPerpayAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoHowToPay + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxMethod + sColumDelimiter;
- sItemInfo = sItemInfo + infoDate1 + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxChargNm + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxChargHp + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxChargEmail + sColumDelimiter;
- sItemInfo = sItemInfo + infoPayDiv + sColumDelimiter;
- sItemInfo = sItemInfo + infoDepositCd + sColumDelimiter;
- sItemInfo = sItemInfo + infoDepositSeq + sColumDelimiter;
- sItemInfo = sItemInfo + infoPrepayAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoPrepaySupplyTamt + sColumDelimiter;
- //sItemInfo = sItemInfo + infoReqPrepaySupplyNamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoPrepaySurtaxAmt;
- //alert(sItemInfo);
- if (sItemInfo == null || sItemInfo == "") {
- alert("서명할 데이타를 넣어주십시요");
- return false;
- }
- unisign.SignDataNVerifyVID( sItemInfo, null, CorpRegNoVal, function( resultObject ) {
- if( !resultObject || resultObject.resultCode != 0 ){
- if( resultObject.resultCode == '14208'){
- alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
- } else if( resultObject.resultCode == '999'){
- alert("사용자 DN 선택이 취소 되었습니다.");
- } else {
- alert( resultObject.resultMessage);
- }
- return ;
- }
-
- var signeddata = resultObject.signedData;
- // var userdn = resultObject.certAttrs.subjectName;
-
- jQuery("#signeddata").val(signeddata);
-
- var f = document.form1;
- jQuery("#fevent").val("REQ_DATA");
- submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "REQ_DATA", f, "SUCCESS");
- });
- }
-
-
- //보증정보팝업 호출
- function popContWarr(wG, wSeq, wCauseCd) {
-
- var win_id = "contPurWarrPopup";
- var param = "";
- var param = "?purContModId=" + jQuery("#selectSubContModId").val();
- var param = param + "&warrGubun=" + wG;
- var param = param + "&warrSeq=" + wSeq;
- var param = param + "&causeCode=" + wCauseCd;
- if(wG=="3"){
- var param = param + "&viewDiv=PREPAY";
- var param = param + "&prepayId=" + jQuery("#payreqId").val();
- }else{
- var param = param + "&viewDiv=PAYREQ";
- }
- var param = param + "&pop_win_id=" + win_id;
-
- var url = "/portal/guar/contPurWarrPopup.screen"+param;
-
- fLayerPop(win_id, url, 560,500, '','', 'NO');
- }
- //보증정보팝업 종료후 액션
- function popContWarrClose(returnValue){
- if(returnValue == null){
- fLayerPopClose('contPurWarrPopup');
- }else{
- fLayerPopClose('contPurWarrPopup');
- location.reload();
- }
- }
- function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
- var editFile = "";
- if(obj==''){
- alert("After you have saved, you can attach a file.");
- }
- else if(obj != ''){
- if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
- viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contPurWarrPopup");
- }
- }
-
- function WarrantyDiv(){
-
- //alert(jQuery("#selectDepositCd option:selected").val());
- /* if(jQuery("#selectDepositCd option:selected").val() == "2"){ //중도금
- jQuery("#warr1").show();
- jQuery("#warr2").show();
- }else{
- jQuery("#warr1").show();
- jQuery("#warr2").show();
- } */
-
- }
- function setVenderPrintInit(){
-
- var vpYN = jQuery("#vpYN").val();
- if(vpYN != "Y"){
-
- jQuery("#vpDiv1").css("display", "none");
- jQuery("#vpDiv2").css("display", "none");
- }else{
-
- if(jQuery("#vpRtnReason").val() == ""){
- jQuery("#return_reson_area").css("display", "none");
- }
- }
- }
-
- </SCRIPT>
- <modular:search id="form1">
- <modular:key id="fevent" />
- </modular:search>
- <form id="form1" name="form1" method="post" modular:type="search">
- <div style="display:none;" id="fileMapIDDiv" class="attach_file_view" onPropertyChange="JavaScript:getFileListForTextarea();">
- </div>
- <INPUT type="hidden" name="fevent" id="fevent" value="">
- <INPUT type="hidden" name="payreqId" id="payreqId" value="<%=prePayment.get("PAYREQ_ID") %>"> <!-- 발주계약ID -->
- <INPUT type="hidden" name="purContId" id="purContId" value="<%=prePayment.get("PUR_CONT_ID") %>"> <!-- 발주계약ID -->
- <INPUT type="hidden" name="selectSubContModId" id="selectSubContModId" value="<%=prePayment.get("PUR_CONT_MOD_ID") %>">
-
- <!-- 리스트 검색조건 보존 시작-->
- <INPUT type='hidden' id="searchDeptCd" name="searchDeptCd" value="<%=params.get("searchDeptCd")%>"> <!-- 현장코드 -->
- <INPUT type='hidden' id="searchDeptNm" name="searchDeptNm" value="<%=params.get("searchDeptNm")%>"> <!-- 현장명 -->
- <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("searchBuildName")%>"> <!-- 계약명 -->
- <INPUT type='hidden' id="searchDateStart" name="searchDateStart" value="<%=params.get("searchDateStart")%>"> <!-- 작성 시작일 -->
- <INPUT type='hidden' id="searchDateEnd" name="searchDateEnd" value="<%=params.get("searchDateEnd")%>"> <!-- 작성 종료일 -->
- <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("searchStatusCd")%>"> <!-- 상태값 -->
- <!-- 리스트 검색조건 보존 종료-->
-
- <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0"> <!-- 결재 및 저장 구분 0:저장, 1:결재 -->
-
- <INPUT type='hidden' id="conConAmt" name="conConAmt" value="<%=prePayment.get("ORD_AMT")%>"> <!-- 계약금액 -->
- <INPUT type='hidden' id="conPrepayAmt" name="conPrepayAmt" value="<%=prePayment.get("PREPAY_SUPPLY_AMT")%>"> <!-- 선급금액 -->
-
- <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=prePayment.get("REQ_STATUS") %>"> <!-- 상태값 -->
-
- <INPUT type='hidden' id="vpYN" name="vpYN" value="<%=prePayment.get("VP_YN") %>">
-
- <!-- 임시 FILE MAP ID 값 -->
- <INPUT type="hidden" name="fileMapID" value="" onPropertyChange="JavaScript:getFileListForTextarea();">
- <INPUT type='hidden' name="signeddata" value=""> <!-- 서명데이터 -->
- <INPUT type="hidden" name="bugase" id="bugase" value="<%=prePayment.get("CHG_CODE10") %>">
- <INPUT type="hidden" name="orgCurPrepayApplyamt" id="orgCurPrepayApplyamt" value="<%=prePayment.get("CUR_PREPAY_APPLYAMT") %>">
-
- <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=prePayment.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
- <INPUT type='hidden' id="resHp" name="resHp" value="<%=prePayment.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
- <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=prePayment.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
- <INPUT type='hidden' id="resDivision" name="resDivision" value="<%=prePayment.get("RES_DIVISION") %>">
- <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=prePayment.get("ORD_DOC_NO") %>"> <!-- 발주계약번호 -->
-
- <INPUT type='hidden' id="defEstGuarRate" name="defEstGuarRate" value="<%=prePayment.get("DEF_GUAR_AMT_RATE") %>"> <!-- 하자보수보증금율 -->
-
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div align="left" id="title">
- <ul>
- <li>구매_대금신청 상세(<%=prePayment.get("STATUS_NM")%>)</li>
- </ul>
- </div>
- </th>
- <td align="right">
- <span id="spanBtnSave" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnSave">저장</a></span>
- <span id="spanBtnDelete" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
- <span id="spanBtnAppReq" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnAppReq"><span id="btnText">대금신청</span></a></span>
- <span id="spanBtnApproval" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnApproval">결재</a></span>
- <span id="spanBtnRejection" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnRejection">반려</a></span>
- <span id="spanBtnList" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnList">목록</a></span>
- </td>
- </tr>
- </table>
- <%
- if(!prePayment.get("RTN_REASON").equals("")){
- %>
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">반려정보</span>
- </div>
- <div class="application-location"></div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="13%" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <th style="text-align: left;">반려일</th>
- <TD><%=Formatter2.formatDate(prePayment.get("RTN_DATE"), "-")%></TD>
- </TR>
- <TR>
- <th style="text-align: left;">반려사유</th>
- <TD><%=prePayment.get("RTN_REASON")%></TD>
- </TR>
- </TABLE>
- <%
- }
- %>
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">계약정보</span>
- </div>
- <div class="application-location"></div>
- </div>
-
- <TABLE class="form-table">
- <colgroup>
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <th style="text-align: left;">현장명</th>
- <TD><%= InputText.get("deptName", prePayment.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">계약명</th>
- <TD><%= InputText.get("buildName", prePayment.get("CST_DOC_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">통화</th>
- <TD><%= InputText.get("conCurCd", prePayment.get("CURRENCY_GB"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th style="text-align: left;">사업자번호</th>
- <TD><%= InputText.get("vendCd", prePayment.get("REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">계약업체명</th>
- <TD><%= InputText.get("memberName", prePayment.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">대표이사</th>
- <TD><%= InputText.get("bossName", prePayment.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th style="text-align: left;">계약기간</th>
- <TD><%= InputText.get("startEndWorkDate", prePayment.get("ORD_START_END_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">계약금액</th>
- <TD><%= InputText.get("conConAmtNm", Formatter2.currency(prePayment.get("ORD_AMT"), intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">선급금액</th>
- <TD><%= InputText.get("conPrepayAmtNm", Formatter2.currency(prePayment.get("PREPAY_SUPPLY_AMT"), intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th style="text-align: left;">지급사유</th>
- <TD colspan="5">
- <INPUT type="text" name="howToPay" id="howToPay" maxlength="999" style="width:99%;" value="<%=prePayment.get("DDD") %>">
- </TD>
- </TR>
- </TABLE>
- <!-- 계약정보 : 끝 -->
- <!-- 세금계산서정보 : 시작 -->
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">세금계산서 정보</span>
- </div>
- <div class="application-location">
- </div>
- </div>
-
- <TABLE class="form-table">
- <colgroup>
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="*" />
- </colgroup>
- <TR>
- <th style="text-align: left;">세금계산서 발행방법</th>
- <TD colspan="3">
- <input type="radio" id="chk_1" name="chk_info" value="1" onclick="taxDataSet();" <%= check1 %> disabled='disabled' style="display: none;"/>
- <input type="radio" id="chk_2" name="chk_info" value="2" onclick="taxDataSet();" <%= check2 %> disabled='disabled' style="display: none;"/>
- <input type="radio" id="chk_3" name="chk_info" value="3" onclick="taxDataSet();" <%= check3 %> disabled='disabled' style="display: none;"/>
- <%= checkString %>
- </TD>
- <th style="text-align: left;">작성일자(증빙일자)</th>
- <TD><%= InputText.get("date1", Formatter2.formatDate(prePayment.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
- <A href="JavaScript:calendar('date1');"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
- </TD>
- </TR>
- <TR>
- <th class="required" style="text-align: left;">담당자명</th>
- <TD><%= InputText.get("userName", prePayment.get("TAX_CHARG_NM"), 98, 6, "string, left, perSize", "string") %></TD>
- <th class="required" style="text-align: left;">담당자 핸드폰번호</th>
- <TD><input type="text" id="hp" name="hp" value="<%=prePayment.get("TAX_CHARG_HP")%>" style="width: 44%" size="13" maxlength="13" alt="left"> ex)010-0000-0000</TD>
- <th class="required" style="text-align: left;">담당자 이메일</th>
- <TD><%= InputText.get("eMail", prePayment.get("TAX_CHARG_EMAIL"), 98, 40, "string, left, perSize", "string") %></TD>
- </TR>
- </TABLE>
- <!-- 세금계산서정보 : 끝 -->
-
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">대금정보</span>
- </div>
- <div class="application-location">
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <th style="text-align: left;">대금구분</th>
- <TD><%= InputText.get("payDiv", "계획분할", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">지급구분</th>
- <TD>
- <!-- <select name="selectDepositCd" id="selectDepositCd" onchange="" disabled>
- <option value="2">중도금</option>
- <option value="3">잔금</option>
- </select> -->
- <select name="selectDepositCd" id="selectDepositCd" onchange="WarrantyDiv()" style="background-color:#F0F0F0" disabled>
- <option value="2">중도금</option>
- <option value="3">잔금</option>
- </select>
- <script>
- setSelect(form1.selectDepositCd, '<%=prePayment.get("DEPOSIT_CD")%>');
- </script>
- </TD>
- <th style="text-align: left;">지급차수</th>
- <TD><%= InputText.get("depositSeq", prePayment.get("DEPOSIT_SEQ"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- </TABLE>
-
- <img src="/img/com/blank.gif" height="10px" />
-
- <TABLE class="form-table">
- <colgroup>
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="20%" />
- <col width="13%" />
- <col width="*" />
- </colgroup>
- <TR>
- <th style="text-align: left;">선급금 청구금액</th>
- <TD colspan="3">
- 합계금액:<%= InputText.get("reqPrepayAmt", Formatter2.currency(prePayment.get("PREPAY_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
- (청구금액:<%= InputText.get("reqPrepaySamt", Formatter2.currency(prePayment.get("PREPAY_SUPPLY_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
- ,부가세:<%= InputText.get("reqPrepaySamt", Formatter2.currency(prePayment.get("PREPAY_SURTAX_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
- )
- </TD>
- <th style="text-align: left;">업체신청일시</th>
- <TD><%= InputText.get("signDate", prePayment.get("CUST_SIGN_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- </TABLE>
-
- <%-- <img src="/img/com/blank.gif" height="10px" />
-
- <TABLE class="form-table">
- <colgroup>
- <col width="65" />
- <col/>
- <col/>
- <col/>
- <col width="40" />
- <col/>
- <col/>
- <col/>
- <col width="40" />
- <col/>
- <col/>
- <col/>
- </colgroup>
- <tr>
- <th rowspan="2"></th>
- <th colspan="4">기성고</th>
- <th colspan="4">선급금공제</th>
- <th colspan="3">청구액</th>
- </tr>
- <tr>
- <th>공급가액</th>
- <th>부가세</th>
- <th>합계</th>
- <th>요율</th>
- <th>공급가액</th>
- <th>부가세</th>
- <th>합계</th>
- <th>요율</th>
- <th>공급가액</th>
- <th>부가세</th>
- <th>합계</th>
- </tr>
- <tr>
- <th>전회까지</th>
- <td><%= InputText.get("befAcmpApplyAmt", Formatter2.currency(prePayment.get("BEF_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befAcmpVat", Formatter2.currency(prePayment.get("BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befAcmpAmt", Formatter2.currency(prePayment.get("BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befAcmpPercent", Formatter2.currency(prePayment.get("BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befPrepayApplyAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befPrepayVat", Formatter2.currency(prePayment.get("BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befPrepayAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befPrepayPercent", Formatter2.currency(prePayment.get("BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("payedApplyamt", Formatter2.currency(prePayment.get("PAYED_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("payedVat", Formatter2.currency(prePayment.get("PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("payedAmt", Formatter2.currency(prePayment.get("PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("payedPercent", Formatter2.currency(prePayment.get("PAYED_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </tr>
- <tr>
- <th>금회</th>
- <td><%= InputText.get("curAcmpApplyamt", Formatter2.currency(prePayment.get("CUR_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpVat", Formatter2.currency(prePayment.get("CUR_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpAmt", Formatter2.currency(prePayment.get("CUR_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpPercent", Formatter2.currency(prePayment.get("CUR_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input byteChk ,number, right, perSize", "number") %></td>
- <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayVat", Formatter2.currency(prePayment.get("CUR_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayDeductamt", Formatter2.currency(prePayment.get("CUR_PREPAY_DEDUCTAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayPercent", Formatter2.currency(prePayment.get("CUR_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqAmt", Formatter2.currency(prePayment.get("CUR_REQ_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqVatamt", Formatter2.currency(prePayment.get("CUR_REQ_VATAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqApplyamt", Formatter2.currency(prePayment.get("CUR_REQ_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqPercent", Formatter2.currency(prePayment.get("CUR_REQ_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </tr>
- <tr>
- <th>누계</th>
- <td><%= InputText.get("curBefAcmpSupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpVat", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpAmt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpPercent", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepaySupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepayVat", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepayAmt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepayPercent", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedSupplyamt", Formatter2.currency(prePayment.get("CUR_PAYED_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedVat", Formatter2.currency(prePayment.get("CUR_PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedAmt", Formatter2.currency(prePayment.get("CUR_PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedPercent", Formatter2.currency(prePayment.get("CUR_PAYED_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </tr>
- <tr>
- <th>잔여</th>
- <td><%= InputText.get("remainderAcmpSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpVat", Formatter2.currency(prePayment.get("REMAINDER_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpAmt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpPercent", Formatter2.currency(prePayment.get("REMAINDER_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepaySupplyamt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepayVat", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepayAmt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepayPercent", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_SUPPLYAMT"),intDigit), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderVat", Formatter2.currency(prePayment.get("REMAINDER_VAT"),intDigit), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAmt", Formatter2.currency(prePayment.get("REMAINDER_AMT"),intDigit), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPercent", Formatter2.currency(prePayment.get("REMAINDER_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td style="background-color: #e1e0e0"></td>
- <td style="background-color: #e1e0e0"></td>
- <td style="background-color: #e1e0e0"></td>
- </tr>
- </TABLE><br/><br/> --%>
- <!-- 대금정보 : 끝 -->
- <img src="/img/com/blank.gif" height="10px" />
-
- <TABLE class="form-table">
- <colgroup>
- <col width="3%" />
- <col width="3%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- <col width="5%" />
- </colgroup>
- <TR>
- <th style="text-align: center;" colspan="2" rowspan="2"></th>
- <th style="text-align: center;" colspan="3">전회누계</th>
- <th style="text-align: center;" colspan="3">금회</th>
- <th style="text-align: center;" colspan="3">금회누계</th>
- <th style="text-align: center;" colspan="3">잔여</th>
- </TR>
- <TR>
- <th style="text-align: center;padding-left:0px;">공급가액</th>
- <th style="text-align: center;padding-left:0px;">부가세</th>
- <th style="text-align: center;padding-left:0px;">합계</th>
- <th style="text-align: center;padding-left:0px;">공급가액</th>
- <th style="text-align: center;padding-left:0px;">부가세</th>
- <th style="text-align: center;padding-left:0px;">합계</th>
- <th style="text-align: center;padding-left:0px;">공급가액</th>
- <th style="text-align: center;padding-left:0px;">부가세</th>
- <th style="text-align: center;padding-left:0px;">합계</th>
- <th style="text-align: center;padding-left:0px;">공급가액</th>
- <th style="text-align: center;padding-left:0px;">부가세</th>
- <th style="text-align: center;padding-left:0px;">합계</th>
- </TR>
- <TR>
- <th style="text-align: left;padding-left:5px;" rowspan="2">기성</th>
- <th style="text-align: left;padding-left:5px;" rowspan="1">율</th>
- <td><%= InputText.get("befAcmpPercent", Formatter2.currency(prePayment.get("BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpPercent", Formatter2.currency(prePayment.get("CUR_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpPercent", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpPercent", Formatter2.currency(prePayment.get("REMAINDER_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </TR>
- <TR>
- <th style="text-align: left;padding-left:5px;" rowspan="1">금액</th>
- <td><%= InputText.get("befAcmpApplyAmt", Formatter2.currency(prePayment.get("BEF_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befAcmpVat", Formatter2.currency(prePayment.get("BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befAcmpAmt", Formatter2.currency(prePayment.get("BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpApplyamt", Formatter2.currency(prePayment.get("CUR_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpVat", Formatter2.currency(prePayment.get("CUR_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curAcmpAmt", Formatter2.currency(prePayment.get("CUR_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpSupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpVat", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefAcmpAmt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpVat", Formatter2.currency(prePayment.get("REMAINDER_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderAcmpAmt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </TR>
- <TR>
- <th style="text-align: left;padding-left:5px;" rowspan="2">선급<BR/>공제</th>
- <th style="text-align: left;padding-left:5px;" rowspan="1">율</th>
- <td><%= InputText.get("befPrepayPercent", Formatter2.currency(prePayment.get("BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayPercent", Formatter2.currency(prePayment.get("CUR_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepayPercent", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepayPercent", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </TR>
- <tr>
- <th style="text-align: left;padding-left:5px;">금액</th>
- <td><%= InputText.get("befPrepayApplyAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befPrepayVat", Formatter2.currency(prePayment.get("BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("befPrepayAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayVat", Formatter2.currency(prePayment.get("CUR_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPrepayDeductamt", Formatter2.currency(prePayment.get("CUR_PREPAY_DEDUCTAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepaySupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepayVat", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curBefPrepayAmt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepaySupplyamt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepayVat", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("remainderPrepayAmt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </tr>
- <tr>
- <th style="text-align: left;padding-left:5px;">청구액</th>
- <th style="text-align: left;padding-left:5px;">금액</th>
- <td><%= InputText.get("payedApplyamt", Formatter2.currency(prePayment.get("PAYED_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("payedVat", Formatter2.currency(prePayment.get("PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("payedAmt", Formatter2.currency(prePayment.get("PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqAmt", Formatter2.currency(prePayment.get("CUR_REQ_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqVatamt", Formatter2.currency(prePayment.get("CUR_REQ_VATAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curReqApplyamt", Formatter2.currency(prePayment.get("CUR_REQ_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedSupplyamt", Formatter2.currency(prePayment.get("CUR_PAYED_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedVat", Formatter2.currency(prePayment.get("CUR_PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("curPayedAmt", Formatter2.currency(prePayment.get("CUR_PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
- </tr>
- </TABLE>
- <!-- Vendor Print : 시작 -->
- <div class="application-info magT15" id="vpDiv1">
- <div class="application-sub-title">
- <span class="title">Vendor Print</span>
- </div>
- <div class="application-location">
- </div>
- </div>
-
- <TABLE class="form-table" id="vpDiv2">
- <colgroup>
- <col width="13%" />
- <col width="19%" />
- <col width="15%" />
- <col width="19%" />
- <col width="15%" />
- <col width="19%" />
- <col width="*" />
- </colgroup>
- <TR>
- <th style="text-align: left;">검토부서</th>
- <TD>
- <%= InputText.get("EPART_DEPT_NAME", vendorPrintInfo.get("EPART_DEPT_NAME"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
- </TD>
- <th style="text-align: left;">검토자</th>
- <TD>
- <INPUT type='hidden' name="VP_CHK_EMPNO" value="<%=vendorPrintInfo.get("VP_CHK_EMPNO")%>">
- <%= InputText.get("VP_CHK_EMPNM", vendorPrintInfo.get("VP_CHK_EMPNM"), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
- <%-- <IMG id=btnevalemp src="/img/buyer/button/bt_search_right.gif" alt="검토자" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:SearchUser('<%=vendorPrintInfo.get("VP_CHK_EMPNM")%>','<%=vendorPrintInfo.get("VP_CHK_EMPNO")%>','N');"> --%>
- </TD>
- <th style="text-align: left;">검토일자</th>
- <TD colspan="2">
- <%= InputText.get("VP_END_DY", Formatter2.formatDate(vendorPrintInfo.get("VP_END_DY"), "-"), 40, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
- <!-- <A href="JavaScript:calendar('VP_END_DY');"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A> -->
- </TD>
- </TR>
- <TR>
- <th style="text-align: left;">검토항목</th>
- <TD colspan="3">
- <%= InputText.get("VP_DESC", vendorPrintInfo.get("VP_DESC"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
- </TD>
- <th style="text-align: left;">상태</th>
- <TD colspan="2">
- <%= InputText.get("VP_STATUS_NM", vendorPrintInfo.get("VP_STATUS_NM"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
- </TD>
- </TR>
- <tr height="25" id="return_reson_area">
- <th style="text-align: left;">반려사유</th>
- <td colspan="5">
- <TEXTAREA name="vpRtnReason" id="vpRtnReason" rows="3" readOnly class="input ctrlTarget" style="width:98%; height: 98%; overflow-y:auto"><%= vendorPrintInfo.get("VP_RTN_REASON") %></TEXTAREA>
- </TD>
- </tr>
- <tr height="25">
- <th>의견</th>
- <td colspan="5">
- <TEXTAREA name="opinion" id="opinion" style="width:98%; height:70px; overflow-y:auto" maxlength="100" class="input byteChk ctrlTarget" readOnly><%=vendorPrintInfo.get("VP_OPINION") %></textarea>
- </td>
- </tr>
- </TABLE>
- <!-- Vendor Print : 끝 -->
-
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">첨부 및 기타서류</span>
- </div>
- <div class="application-location">
- </div>
- </div>
-
- <TABLE class="form-table">
- <colgroup>
- <col width="25%" />
- <col width="*" />
- <col width="20%" />
- <col width="20%" />
- </colgroup>
- <TR>
- <th style="text-align: Center;" colspan="2">첨부서류</th>
- <th style="text-align: Center;" colspan="1">파일첨부</th>
- <th style="text-align: Center;" colspan="1">특기사항</th>
- </TR>
- <TR height="140">
- <TD colspan="2">
- <TABLE class="inner_table" border="0" >
- <%
- if(purchaseFileRow.size() > 0){
- int i_mod = 0;
- for(int i = 0; purchaseFileRow.size() > i; i++){
- i_mod = i%3;
- if(i_mod == 0){ %>
- <TR>
- <% } %>
- <td width="2%">
- <input type="checkbox" name="doc_cd" value="<%=purchaseFileRow.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=purchaseFileRow.getRow(i).get("DETAILCD") %>')" <%if(!purchaseFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %>>
- </td>
- <td width="20%">
- <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
- <%=purchaseFileRow.getRow(i).get("DETAILNM") %>
- </td>
- <td width="7%" height="24">
- <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=purchaseFileRow.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!purchaseFileRow.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doAttachFile(document.form1.payreqId, '<%=purchaseFileRow.getRow(i).get("DETAILCD") %>', '<%=purchaseFileRow.getRow(i).get("DETAILNM")%>');" class="button">
- </td>
- <% if(i_mod == 2) { %>
- </TR>
- <% } %>
- <%
- }
- for(int i=i_mod+1; i<3; i++){ %>
- <td></td>
- <% }
- if(i_mod == 0 || i_mod == 1){ %>
- </TR>
- <% }
- }
- %>
- </TABLE>
- </TD>
- <TD><TEXTAREA name="p_AttachFile" id="p_AttachFile" rows="12" readOnly class="input ctrlTarget" style="width:98%; height: 98%; overflow-y:auto"></TEXTAREA></TD>
- <TD><TEXTAREA name="reMarks" id="reMarks" rows="12" maxlength="1000" class="input byteChk ctrlTarget" style="width:98%; height: 98%; overflow-y:auto"><%=prePayment.get("RE_MARKS")%></TEXTAREA></TD>
- </TR>
- </TABLE>
- <!-- 대금내역 : 시작 -->
- <div class="application-info magT15" style="display: none">
- <div class="application-sub-title">
- <span class="title">대금내역</span>
- </div>
- <div class="application-location">
- </div>
- </div>
-
- <TABLE class="form-table" style="display: none">
- <colgroup>
- <col width="12%" />
- <col width="12%" />
- <col width="26%" />
- <col width="5%" />
- <col width="5%" />
- <col width="10%" />
- <col width="10%" />
- <col width="10%" />
- <col width="*" />
- </colgroup>
- <TR>
- <th style="text-align: Center;" rowspan="2">입고번호</th>
- <th style="text-align: Center;" rowspan="2">자재코드</th>
- <th style="text-align: Center;" rowspan="2">자재명</th>
- <th style="text-align: Center;" rowspan="2">규격</th>
- <th style="text-align: Center;" rowspan="2">수량</th>
- <th style="text-align: Center;" colspan="2"><%=prePayment.get("CURRENCY_GB")%></th>
- <th style="text-align: Center;" colspan="2">KRW</th>
- </TR>
- <TR>
- <th style="text-align: Center;">단가</th>
- <th style="text-align: Center;">금액</th>
- <th style="text-align: Center;">단가</th>
- <th style="text-align: Center;">금액</th>
- </TR>
- <%
- for(int i=0; i<prePaymentList.size(); i++){
- Row row = prePaymentList.getRow(i);
- %>
- <TR>
- <TD><%=row.get("STOCK_NO") %></TD>
- <TD><%=row.get("MATERIAL_CD") %></TD>
- <TD><%=row.get("MATERIAL_NAME") %></TD>
- <TD><%=row.get("MATERIAL_SPEC") %></TD>
- <TD style="text-align: right;"><%=Formatter2.currency(row.get("ITEM_QTY"),0) %></TD>
- <TD style="text-align: right;"><%=Formatter2.currency(row.get("EXC_PRI"),intDigit)%></TD>
- <TD style="text-align: right;"><%=Formatter2.currency(row.get("EXC_AMT"),intDigit)%></TD>
- <TD style="text-align: right;"><%=Formatter2.currency(row.get("ITEM_PRI"),intDigit)%></TD>
- <TD style="text-align: right;"><%=Formatter2.currency(row.get("ITEM_AMT"),intDigit)%></TD>
- </TR>
- <%
- }
- %>
- </TABLE>
- <!-- 대금내역 : 끝 -->
- <%
- /*
- 보증 목록을 include 시킴 (2014-10-17) 김명호
- */
- %>
- <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarPurList.jsp" %>
- </FORM>
- <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
- <script>
-
-
- </script>
- </div>
- <!-- 전자인증 모듈 설정 //-->
- <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
- <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
- <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
- <!-- 전자인증 모듈 설정 //-->
|