12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967 |
- <%--
- - FileName : resolutionRequest.jsp
- - Author(s) : ok
- - Date : 2014.06.30
- - Copyright : Copyright (c) 2013 www.udapsoft.co.kr, Inc.
- - Description: 협력업체포탈 기성신청현황 상세(외주)
- --%>
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
- <%@ page import="com.udapsoft.waf.common.ui.*" %>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <%@ page import="kr.co.hsnc.common.sql.*" %>
- <%@ page import="kr.co.hsnc.common.util.Formatter"%>
- <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
- <%@ 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();
-
- //ValueObject prePayment = storage.getValueObject("prePayment"); //계약정보, 세금계산서정보
- ValueObject acmpData = storage.getValueObject("acmpData"); //기성정보
-
- RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보
- ValueObject AttachFile = storage.getValueObject("AttachFile");
-
- //기성검사 첨부서류
- RowSet acmpFileRow = storage.getRowSet("acmpFileRow");
- //준공검사 첨부서류
- RowSet compFileRow = storage.getRowSet("compFileRow");
-
- String check1 = "";
- String check2 = "";
- String checkString = "";
- if("2".equals(acmpData.get("TAX_METHOD_CD"))){
- check2 = "checked";
- checkString = "순발행(업체직접 발행)";
- }else{
- check1 = "checked";
- checkString = "역발행(SGC이앤씨 발행)";
- }
-
- String payCheckYN1 = "";
- String payCheckYN2 = "";
- String payCheckYNString = "";
- if("Y".equals(acmpData.get("SUPP_DIRECT_YN"))){
- payCheckYN1 = "checked";
- payCheckYNString = "예";
- }else{
- payCheckYN2 = "checked";
- payCheckYNString = "아니오";
- }
-
- String digit = (String)acmpData.get("digit");
- int intDigit = Integer.parseInt(digit);
-
- %>
- <SCRIPT language="JavaScript">
- /*예약함수*/
- var sheet1;
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
-
- var serverName = '<%=request.getServerName() %>';
- var g_digit = <%= intDigit %>; // 소숫점 이하 자릿수
-
- function _onReady(){
- //상세화면 재조회
- jQuery("#btnSearch").click(function() {
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/portal/payment/ResolutionRequest.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
- });
-
- //리스트 페이지 이동
- jQuery("#btnList").click(function() {
-
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/portal/payment/ResolutionRequestList.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
- });
-
- jQuery("#btnDelete").click(function() {
- var f = document.form1;
-
- if(jQuery("#statusCd").val() != "01" && jQuery("#statusCd").val() != "91"){ //2020.03.26 반려(91) 추가
- alert("작성중인 기성만 삭제 가능합니다.");
- return;
- }
- if(jQuery("#acmpId").val() == ""){
- alert("삭제되었습니다.");
- return;
- }
- //입력데이터 저장
- if (confirm("삭제 하시겠습니까?")) {
- jQuery("#fevent").val("DELETE_DATA");
- submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "DELETE_DATA", f, "SUCCESS");
- }
- });
- jQuery("#btnSave").click(function() {
-
- var f = document.form1;
- jQuery("#fevent").val("SAVE_DATA");
- jQuery("#btnAppReqSelect").val("0"); //0:저장처리, 1:기성신청처리
- //필수 입력항목 check
- if(requiredItemsCheck() == false){
- return;
- }
- //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
- if(payCompareCheck() == false){
- return;
- }
- //입력데이터 저장
- if (confirm("저장 하시겠습니까?")) {
-
- submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
-
- }
- });
-
- jQuery("#btnAppReq").click(function() {
-
- var f = document.form1;
- jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:기성신청처리
-
- jQuery("#fevent").val("SAVE_DATA");
- //필수 입력항목 check
- if(requiredItemsCheck() == false){
- return;
- }
- //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
- if(payCompareCheck() == false){
- return;
- }
- //입력데이터 저장
- if (confirm("기성신청 하시겠습니까?")) {
-
- submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
- }else{
- jQuery("#btnAppReqSelect").val("0"); //0:저장처리, 1:기성신청처리
- }
-
- });
-
-
- jQuery("#requSurtaxAmt").blur(function () {
- var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
-
- var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
- var requSupplyTamt = jQuery("#requSupplyTamt").val().replace(/(\,|\:)/g,"");
- if(jQuery("#inputVatDiv").val() == "INPUT_EXEMPT"){
- if(requSurtaxAmt > 0){
- alert("영세율 대상건입니다.");
- jQuery("#requSurtaxAmt").val(0);
- jQuery("#requSurtaxAmt").focus();
- return;
- }
- if(requSurtaxAmt == ""){
- jQuery("#requSurtaxAmt").val(0);
- }
- }else{
- if(fundTamtValue > 0 && ( requSurtaxAmt == 0 || requSurtaxAmt == "") ){
- alert("부가세 0을 입력 할수 없습니다.");
- jQuery("#requSurtaxAmt").val(0);
- jQuery("#requSurtaxAmt").focus();
- return;
- }
- }
-
- var requAmt = Number(requSupplyTamt) + Number(requSurtaxAmt);
- jQuery("#requAmt").val(requAmt);
- jQuery("#trequSurtaxAmt").val(requSurtaxAmt); //청구 부가세 금회 합계
-
- var requSupplyAmt = jQuery("#requSupplyAmt").val().replace(/(\,|\:)/g,""); //청구액 공급액 금회 합계
- var trequAmt = Number(requSupplyAmt) + Number(requSurtaxAmt);
- jQuery("#trequAmt").val(trequAmt);
-
- var totRequSupplyTamt = jQuery("#totRequSupplyTamt").val().replace(/(\,|\:)/g,""); //청구 공급액 누계 과세
- jQuery("#totRequSurtaxAmt").val(requSurtaxAmt); //청구 부가세 누계 과세
- var totRequAmt = Number(totRequSupplyTamt) + Number(requSurtaxAmt);
- jQuery("#totRequAmt").val(totRequAmt); //청구 합계 누계 과세
-
- var totRequSupplyAmt = jQuery("#totRequSupplyAmt").val().replace(/(\,|\:)/g,"");//청구 공급액 누계 합계
- jQuery("#ttotRequSurtaxAmt").val(requSurtaxAmt);//청구 부가세 누계 합계
- var ttotRequAmt = Number(totRequSupplyAmt) + Number(requSurtaxAmt);
- jQuery("#ttotRequAmt").val(ttotRequAmt); //청구 합계 누계 합계
-
- var preRequSurtaxAmtValue = Number(jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,"")); //청구 부가세 전회 과세
- var totRequSurtaxAmtValue = preRequSurtaxAmtValue + requSurtaxAmt;
- jQuery("#totRequSurtaxAmt").val(totRequSurtaxAmtValue);
-
- var tpreRequSurtaxAmtValue = Number(jQuery("#tpreRequSurtaxAmt").val().replace(/(\,|\:)/g,""));
- var ttotRequSurtaxAmtValue = tpreRequSurtaxAmtValue + requSurtaxAmt;
- jQuery("#ttotRequSurtaxAmt").val(ttotRequSurtaxAmtValue);
-
- var totRequSupplyTamtValue = Number(jQuery("#totRequSupplyTamt").val().replace(/(\,|\:)/g,""));
- var totRequAmtValue = totRequSupplyTamtValue + ttotRequSurtaxAmtValue;
- jQuery("#totRequAmt").val(totRequAmtValue);
-
- var totRequSupplyAmtValue = Number(jQuery("#totRequSupplyAmt").val().replace(/(\,|\:)/g,""));
- var ttotRequAmtValue = totRequSupplyAmtValue + ttotRequSurtaxAmtValue;
- jQuery("#ttotRequAmt").val(ttotRequAmtValue);
-
- jQuery("#requAmt, #trequSurtaxAmt, #trequAmt, #totRequAmt, #ttotRequAmt, #totRequSurtaxAmt, #ttotRequSurtaxAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- });
-
- jQuery("#btnItem").click(function () {
- //2018.10.25 기성내역입력
- var win_id = "ItemPop";
- var link = "/payment/outside/PayItemPopup.screen";
- var editFile = "N";
- if(jQuery("#statusCd").val() == "01" || jQuery("#statusCd").val() == "02" || jQuery("#statusCd").val() == "91"){editFile="Y";} //2020.03.26 반려(91) 추가
-
- link += "?pop_win_id="+win_id+"&ACMP_ID="+jQuery("#acmpId").val()+"&SUB_CONT_ID="+jQuery("#selectSubContId").val()+"&EDIT_YN="+editFile+"&digit="+g_digit;
-
- fLayerPop(win_id, link, 950,500, '','', 'NO');
- });
-
- jQuery("#fundTamt").dblclick(function () {
- jQuery("#btnItem").click();
- });
-
- jQuery("#fundTamt").blur(function () {
- //금회 계산 처리
- var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
- fundTamtValue = Number(fundTamtValue).toFixed(g_digit);
- //입력한 선급금 과세가 빈값일 경우 0으로 셋팅
- if (fundTamtValue == "") {
- fundTamtValue = "0";
- jQuery("#fundTamt").val("0");
- }else{
- jQuery("#fundTamt").val(fundTamtValue);
- jQuery("#fundTamt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- }
- var conSupplyTamtValue = jQuery("#conSupplyTamt").val().replace(/(\,|\:)/g,""); //계약금 과세
- var fconSupplyTamtValue = jQuery("#F_CON_SUPPLY_AMT").val().replace(/(\,|\:)/g,""); //당초 계약금
- conSupplyTamtValue = Number(conSupplyTamtValue).toFixed(g_digit);
- fconSupplyTamtValue = Number(fconSupplyTamtValue).toFixed(g_digit);
- if(Number(fundTamtValue) > Number(conSupplyTamtValue)){
- alert("입력한 금회 기성 과세액이 계약 과세금 보다 큽니다.");
- jQuery("#fundTamt").focus();
- return;
- }
-
- var conSupplyNamt = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약금 공급가액 면세
- var fundNamt = jQuery("#fundNamt").val().replace(/(\,|\:)/g,"");//Number(conSupplyNamt) * (Number(fundTamtValue) / Number(conSupplyTamtValue));2019.03.15
- jQuery("#fundNamt").val(Number(fundNamt).toFixed(g_digit));
- //var fundNamtValue = jQuery("#fundNamt").val().replace(/(\,|\:)/g,""); //기성 금회 면세
- var fundNamtValue = fundNamt;
- fundNamtValue = Number(fundNamtValue).toFixed(g_digit);
- //입력한 선급금 면세가 빈값일 경우 0으로 셋팅
- if (fundNamtValue == "") {
- fundNamtValue = "0";
- jQuery("#fundNamt").val("0");
- }
- var conSupplyNamtValue = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약금 면세
- conSupplyNamtValue = Number(conSupplyNamtValue).toFixed(g_digit);
- if(Number(fundNamtValue) > Number(conSupplyNamtValue)){
- alert("입력한 금회 기성 면세액이 계약 면세금 보다 큽니다.");
- jQuery("#fundNamt").focus();
- return;
- }
-
- //금회 과세 기성율
- if(fconSupplyTamtValue == 0){
- var fundTRate = Number(fundTamtValue) / Number(conSupplyTamtValue) * 100;
- jQuery("#fundTRate").val(fundTRate.toFixed(2));
- }else{
-
- var fundTRate = Number(fundTamtValue) / Number(conSupplyTamtValue) * 100;
- //var fundTRate = fundTamtValue / fconSupplyTamtValue * 100;
- var f_rate = Number(fundTamtValue) / Number(fconSupplyTamtValue) * 100; //당초 계약금으로 계산
- jQuery("#fundTRate").val(fundTRate.toFixed(2));
- jQuery("#payDeductTRate").val(f_rate.toFixed(2)); //선급공제 금회 과세 율
- }
-
- //금회 면세 기성율
- var fundNRate = 0;
- if(Number(conSupplyNamtValue) == 0){
- jQuery("#fundNRate").val(fundNRate.toFixed(2));
-
- }else{
-
- fundNRate = Number(fundNamtValue) / Number(conSupplyNamtValue) * 100;
- jQuery("#fundNRate").val(fundNRate.toFixed(2));
- jQuery("#payDeductNRate").val(fundNRate.toFixed(2)); //선급공제 금회 과세 율
- }
-
- var fundAmtValue = Number(fundNamtValue) + Number(fundTamtValue);
- jQuery("#fundAmt").val(Number(fundAmtValue).toFixed(g_digit)); //기성 금회 합계
-
- var conSupplyAmtValue = Number(conSupplyTamtValue) + Number(conSupplyNamtValue);//계약 공급액
- var fundRateValue = (Number(fundAmtValue) / Number(conSupplyAmtValue)) * 100;
- jQuery("#fundRate").val(fundRateValue.toFixed(2)); //기성 금회 기성율
-
- var slPrepaySupplyTmatValue = jQuery("#slPrepaySupplyTmat").val().replace(/(\,|\:)/g,""); //계약 선급금지급 과세
- var slPrepaySupplyNamtValue = jQuery("#slPrepaySupplyNamt").val().replace(/(\,|\:)/g,""); //계약 선급금지급 면세
- var slPrepaySupplyAmtValue = Number(slPrepaySupplyTmatValue) + Number(slPrepaySupplyNamtValue); //계약 선급금지급 공급가액
-
- //var payDeductTamtValue = Number(slPrepaySupplyTmatValue) * Number( fundTRate.toFixed(2) / 100);
- if(fconSupplyTamtValue == 0){
-
- var payDeductTamtValue = 0;
- jQuery("#payDeductTamt").val(0); //선급공제 금회 과세
- jQuery("#payDeductNamt").val(0); //선급공제 금회 면세
- jQuery("#payDeductNRate").val("0.00"); //선급공제 금회 과세 율
-
- }else{
- //2016.7.28 선급금 마이너스인 경우 처리
- var f_rate = fundTamtValue / fconSupplyTamtValue * 100; //당초 계약금으로 계산
- var payDeductTamtValue = Number(slPrepaySupplyTmatValue) * Number(f_rate) / 100;
- //2016.7.28 선급공제액 > 선급잔액보다 크면
- if (Number(payDeductTamtValue) > Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,"")) ) {
- payDeductTamtValue = Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,"")); //선급잔액->선급공제액으로
- var p_rate = Number(payDeductTamtValue)/Number(jQuery("#prepaySupplyTamt").val().replace(/(\,|\:)/g,""))*100; //선급비율=공제금액/선급액
- jQuery("#payDeductTRate").val(p_rate.toFixed(2));//선급금율=공제금액/선급액*100
- }
-
- jQuery("#payDeductTamt").val(payDeductTamtValue.toFixed(g_digit)); //선급공제 금회 과세
- //var payDeductNamtValue = Number(slPrepaySupplyNamtValue * fundNRate.toFixed(2) / 100);
-
-
- var payDeductNamtValue = Number(slPrepaySupplyNamtValue) * parseFloat_isNaN(Number(payDeductTamtValue) / Number(slPrepaySupplyTmatValue));
- jQuery("#payDeductNamt").val(Number(payDeductNamtValue).toFixed(g_digit)); //선급공제 금회 면세
- var updse = payDeductNamtValue.toFixed(g_digit) / slPrepaySupplyNamtValue * 100;
- if(Number(slPrepaySupplyNamtValue) == 0){
- jQuery("#payDeductNRate").val("0.00"); //선급공제 금회 과세 율
- }else{
- jQuery("#payDeductNRate").val(updse.toFixed(2)); //선급공제 금회 과세 율
- }
- }
- var payDeductAmtValue = Number(payDeductTamtValue) + Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
- jQuery("#payDeductAmt").val(payDeductAmtValue.toFixed(g_digit)); //선급공제 금회 합계
-
- if(payDeductAmtValue == "0"){
- var payDeductRateValue = "0.00";
- jQuery("#payDeductRate").val(payDeductRateValue); //선급공제 금회 기성율
- }else{
- var payDeductRateValue = (Number(payDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
- jQuery("#payDeductRate").val(Number(payDeductRateValue).toFixed(2)); //선급공제 금회 기성율
- }
-
- var requSupplyTamtValue = Number(fundTamtValue) - Number(jQuery("#payDeductTamt").val().replace(/(\,|\:)/g,""));
- jQuery("#requSupplyTamt").val(requSupplyTamtValue.toFixed(g_digit)); //청구 공급액 금회 과세
- var requSupplyNamtValue = Number(fundNamtValue) - Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
- jQuery("#requSupplyNamt").val(requSupplyNamtValue.toFixed(g_digit)); //청구 공급액 금회 면세
- var requSupplyAmtValue = Number(fundAmtValue) - Number(payDeductAmtValue);
- jQuery("#requSupplyAmt").val(requSupplyAmtValue.toFixed(g_digit)); //청구 공급액 금회 합계
-
-
- var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
- //if(requSurtaxAmt == 0){
- var requSurtaxAmtValue = (requSupplyTamtValue * 10) / 100
- //jQuery("#requSurtaxAmt").val(requSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 금회 과세
- if(jQuery("#inputVatDiv").val() == "INPUT_EXEMPT"){
- jQuery("#requSurtaxAmt").val(0); //청구 부가세 금회 과세
- jQuery("#trequSurtaxAmt").val(0); //청구 부가세 금회 합계
- }else{
- jQuery("#requSurtaxAmt").val(doFloor(requSurtaxAmtValue,g_digit)); //청구 부가세 금회 과세
- var trequSurtaxAmtValue = (requSupplyTamtValue * 10) / 100
- //jQuery("#trequSurtaxAmt").val(trequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 금회 합계 2016.6.8 수정. 부가세 오차
- jQuery("#trequSurtaxAmt").val(doFloor(trequSurtaxAmtValue, g_digit));
- }
-
- //금회
- jQuery("#requSurtaxAmt, #trequSurtaxAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- //}
- var requSurtaxAmtValue = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,""));
- var trequSurtaxAmtValue = Number(jQuery("#trequSurtaxAmt").val().replace(/(\,|\:)/g,""));
- var requAmtValue = Number(requSupplyTamtValue) + Number(requSurtaxAmtValue);
- jQuery("#requAmt").val(requAmtValue.toFixed(g_digit)); //청구액 합계 금회 과세
- jQuery("#trequSupplyNamt").val(requSupplyNamtValue.toFixed(g_digit)); //청구액 합계 금회 면세
- var trequAmtValue = Number(requSupplyAmtValue) + Number(trequSurtaxAmtValue);
- jQuery("#trequAmt").val(trequAmtValue.toFixed(g_digit)); //청구액 합계 금회 합계
-
- var requAmtValue = Number(jQuery("#requAmt").val().replace(/(\,|\:)/g,""));
- var trequAmtValue = Number(jQuery("#trequAmt").val().replace(/(\,|\:)/g,""));
-
- //금회
- jQuery("#fundAmt, #fundNamt, #payDeductTamt, #payDeductNamt, #payDeductAmt, #requSupplyTamt, #requSupplyNamt, #requSupplyAmt, #requAmt, #trequSupplyNamt, #trequAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
-
- //누계기성 계산 처리
- var preFundTamtValue = jQuery("#preFundTamt").val().replace(/(\,|\:)/g,""); //기성 전회 과세
- var totFundTamtValue = Number(preFundTamtValue) + Number(fundTamtValue);
- jQuery("#totFundTamt").val(totFundTamtValue.toFixed(g_digit)); //기성 누계기성 과세
- //누계기성 과세 율
- if(fconSupplyTamtValue == 0){
- jQuery("#totPayDeductTRate").val("0.00");
- var totFundTRate = Number(totFundTamtValue) / Number(conSupplyTamtValue) * 100;
- jQuery("#totFundTRate").val(totFundTRate.toFixed(2));
- }else{
- var totFundTRate = Number(totFundTamtValue) / Number(conSupplyTamtValue) * 100;
- jQuery("#totFundTRate").val(totFundTRate.toFixed(2));
- jQuery("#totPayDeductTRate").val(totFundTRate.toFixed(2));
- }
- var preFundNamtValue = jQuery("#preFundNamt").val().replace(/(\,|\:)/g,""); //기성 전회 면세
- var totFundNamtValue = Number(preFundNamtValue) + Number(fundNamtValue);
- jQuery("#totFundNamt").val(totFundNamtValue); //기성 누계기성 면세
- var totFundNRate = Number(totFundNamtValue) / Number(conSupplyNamtValue) * 100;
- if(Number(slPrepaySupplyNamtValue) == 0){
- totFundNRate = 0;
- jQuery("#totPayDeductNRate").val("0.00");
- }else{
- jQuery("#totFundNRate").val(totFundNRate.toFixed(2));
- jQuery("#totPayDeductNRate").val(totFundNRate.toFixed(2));
- }
-
- var preFundAmtValue = jQuery("#preFundAmt").val().replace(/(\,|\:)/g,""); //기성 전회 합계
- preFundAmtValue = Number(preFundAmtValue).toFixed(g_digit);
-
- var totFundAmtValue = Number(preFundAmtValue) + Number(fundAmtValue);
- totFundAmtValue = Number(totFundAmtValue).toFixed(g_digit);
- jQuery("#totFundAmt").val(totFundAmtValue); //기성 누계기성 합계
- var totFundRateValue = (Number(totFundAmtValue) / Number(conSupplyAmtValue)) * 100;
- jQuery("#totFundRate").val(totFundRateValue.toFixed(2)); //누계 기성율 과세
-
- var prePayDeductTamtValue = jQuery("#prePayDeductTamt").val().replace(/(\,|\:)/g,""); //선급공제 전회 과세
- var totPayDeductTamtValue = Number(prePayDeductTamtValue) + Number(payDeductTamtValue);
- jQuery("#totPayDeductTamt").val(totPayDeductTamtValue.toFixed(g_digit)); //선급공제 누계 과세
-
- var prePayDeductNamtValue = jQuery("#prePayDeductNamt").val().replace(/(\,|\:)/g,""); //선급공제 전회 면세
- var totPayDeductNamtValue = Number(prePayDeductNamtValue) + Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
- jQuery("#totPayDeductNamt").val(totPayDeductNamtValue.toFixed(g_digit)); //선급공제 누계 면세
- var prePayDeductAmtValue = jQuery("#prePayDeductAmt").val().replace(/(\,|\:)/g,""); //선급공제 전회 합계
- var totPayDeductAmtValue = Number(prePayDeductAmtValue) + Number(payDeductAmtValue);
- jQuery("#totPayDeductAmt").val(totPayDeductAmtValue.toFixed(g_digit)); //선급공제 누계 합계
-
- if(totPayDeductAmtValue == "0"){
- var totPayDeductRateValue = "0.00";
- jQuery("#totPayDeductRate").val(totPayDeductRateValue); //누계 기성율 과세
- }else{
- var totPayDeductRateValue = (Number(totPayDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
- jQuery("#totPayDeductRate").val(totPayDeductRateValue.toFixed(2)); //누계 기성율 과세
- }
- var preRequSupplyTamtValue = jQuery("#preRequSupplyTamt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 과세
- var totRequSupplyTamtValue = Number(preRequSupplyTamtValue) + Number(requSupplyTamtValue);
- jQuery("#totRequSupplyTamt").val(totRequSupplyTamtValue.toFixed(g_digit)); //청구 공급액 누계 과세
-
- var preRequSupplyNamtValue = jQuery("#preRequSupplyNamt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 면세
- var totRequSupplyNamtValue = Number(preRequSupplyNamtValue) + Number(requSupplyNamtValue);
- jQuery("#totRequSupplyNamt").val(totRequSupplyNamtValue.toFixed(g_digit)); //청구 공급액 누계 면세
- var preRequSupplyAmtValue = jQuery("#preRequSupplyAmt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 합계
- var totRequSupplyAmtValue = Number(preRequSupplyAmtValue) + Number(requSupplyAmtValue);
- jQuery("#totRequSupplyAmt").val(totRequSupplyAmtValue.toFixed(g_digit)); //청구 공급액 누계 합계
-
- var preRequSurtaxAmtValue = jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,""); //청구 부가세 전회 과세
- var totRequSurtaxAmtValue = Number(preRequSurtaxAmtValue) + Number(requSurtaxAmtValue);
- jQuery("#totRequSurtaxAmt").val(totRequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 누계 과세
- var tpreRequSurtaxAmtValue = jQuery("#tpreRequSurtaxAmt").val().replace(/(\,|\:)/g,""); //청구 부가세 전회 합계
- var ttotRequSurtaxAmtValue = Number(tpreRequSurtaxAmtValue) + Number(requSurtaxAmtValue);
- jQuery("#ttotRequSurtaxAmt").val(ttotRequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 누계 합계
- var preRequAmtValue = jQuery("#preRequAmt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 과세
- var totRequAmtValue = Number(preRequAmtValue) + Number(requAmtValue);
- jQuery("#totRequAmt").val(totRequAmtValue.toFixed(g_digit)); //청구 합계 누계 과세
- var tpreRequSupplyNamtValue = jQuery("#tpreRequSupplyNamt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 면세
- var ttotRequSupplyNamtValue = Number(tpreRequSupplyNamtValue) + Number(requSupplyNamtValue);
- jQuery("#ttotRequSupplyNamt").val(ttotRequSupplyNamtValue.toFixed(g_digit)); //청구 합계 누계 면세
- var tpreRequAmtValue = jQuery("#tpreRequAmt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 합계
- var ttotRequAmtValue = Number(tpreRequAmtValue) + Number(trequAmtValue);
- jQuery("#ttotRequAmt").val(ttotRequAmtValue.toFixed(g_digit)); //청구 합계 누계 과세
- //누계기성
- jQuery("#totFundTamt, #totFundNamt, #totFundAmt, #totPayDeductTamt, #totPayDeductNamt, #totPayDeductAmt, #totRequSupplyTamt, #totRequSupplyNamt, #totRequSurtaxAmt, #ttotRequSurtaxAmt, #totRequAmt, #totRequSupplyAmt, #ttotRequSupplyNamt, #ttotRequAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- //잔여 계산처리
- var resFundTamtValue = Number(conSupplyTamtValue) - Number(totFundTamtValue);
- jQuery("#resFundTamt").val(resFundTamtValue.toFixed(g_digit)); //기성 잔여 과세
- jQuery("#resFundTamt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- if(fconSupplyTamtValue == 0){
- var resFundTRate = Number(resFundTamtValue) / Number(conSupplyTamtValue) * 100;
- jQuery("#resFundTRate").val(resFundTRate.toFixed(2));
- jQuery("#resPayDeductTRate").val("0.00");
- }else{
- var resFundTRate = Number(resFundTamtValue) / Number(conSupplyTamtValue) * 100;
- jQuery("#resFundTRate").val(resFundTRate.toFixed(2));
- jQuery("#resPayDeductTRate").val(resFundTRate.toFixed(2));
-
- }
-
- var resFundNamtValue = Number(conSupplyNamtValue) - Number(totFundNamtValue);
- jQuery("#resFundNamt").val(resFundNamtValue); //기성 잔여 면세
- var resFundNRate = Number(resFundNamtValue) / Number(conSupplyNamtValue) * 100;
-
- if(Number(slPrepaySupplyNamtValue) == 0){
- resFundNRate = 0;
- jQuery("#resFundNRate").val("0.00");
- }else{
- jQuery("#resFundNRate").val(resFundNRate.toFixed(2));
- jQuery("#resPayDeductNRate").val(resFundNRate.toFixed(2));
- }
-
- jQuery("#resFundNamt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- var resFundAmtValue = Number(conSupplyAmtValue) - Number(totFundAmtValue);
- jQuery("#resFundAmt").val(resFundAmtValue.toFixed(g_digit)); //기성 잔여 합계
- jQuery("#resFundAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
- var resFundRateValue = (Number(resFundAmtValue) / Number(conSupplyAmtValue)) * 100;
- jQuery("#resFundRate").val(resFundRateValue.toFixed(2)); //누계 기성율 과세
-
- var resPayDeductTamtValue = Number(slPrepaySupplyTmatValue).toFixed(g_digit) - Number(totPayDeductTamtValue).toFixed(g_digit);
- jQuery("#resPayDeductTamt").val(Number(resPayDeductTamtValue).toFixed(g_digit)); //선급공제 잔여 과세
- var resPayDeductNamtValue = Number(slPrepaySupplyNamtValue) - Number(totPayDeductNamtValue);
- jQuery("#resPayDeductNamt").val(Number(resPayDeductNamtValue).toFixed(g_digit)); //선급공제 잔여 면세
- var resPayDeductAmtValue = Number(slPrepaySupplyAmtValue) - Number(totPayDeductAmtValue);
- jQuery("#resPayDeductAmt").val(Number(resPayDeductAmtValue).toFixed(g_digit)); //선급공제 잔여 합계
-
- if(resPayDeductAmtValue == "0"){
- var resPayDeductRateValue = "0.00";
- //jQuery("#resPayDeductRate").val(resPayDeductRateValue.toFixed(2)); //선급공제 잔여 기성율
- jQuery("#resPayDeductRate").val(resPayDeductRateValue); //선급공제 잔여 기성율
- }else{
- var resPayDeductRateValue = (Number(resPayDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
- jQuery("#resPayDeductRate").val(Number(resPayDeductRateValue).toFixed(2)); //선급공제 잔여 기성율
- }
-
- //잔여
- jQuery("#resPayDeductTamt, #resPayDeductNamt, #resPayDeductAmt").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
-
-
- //하자이행율이 100%이상이면 보증정보 표시
- setGuarOutList();
-
- });
-
- pageinit();
-
- }
-
- //2018.10.25
- function RtnClose(returnValue, returnn){
- setTimeout(function(){fLayerPopClose('ItemPop');},100);
- jQuery("#fundTamt").val(returnValue);
- jQuery("#fundNamt").val(returnn);
- jQuery("#fundTamt").blur();
- var f = document.form1;
- jQuery("#fevent").val("SAVE_DATA");
-
- submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
- }
-
- //페이지 초기처리
- function pageinit(){
-
- //상태값에 따른 입력항목 리드온리 처리 03:기성신청
- if(jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "10"){
- inputDataSet();
- }
-
- //발행방법에 따른 페이지 셋팅
- //taxDataSet();
-
- //버튼표시 셋팅
- btnCtr();
-
- //작성일자(증빙일자)
- seTaxDate();
-
- //면세금액에 따른 금회면세 사용자 입력 가능유무
- if(jQuery("#conSupplyNamt").val() == "0"){
-
- //jQuery("#fundNamt").attr('disabled','disabled');
- //jQuery("#fundNamt").attr("style", "background-color: #dedede");
- //jQuery("#fundNamt").attr("style", "border:0px solid #6a6a6a");
- //jQuery("#fundNamt").attr("style", "width:100%");
-
- /* jQuery("#fundNamt").attr("style", "background-color: #dedede");
- jQuery("#fundNamt").attr("style", "border:0px solid #6a6a6a");
- jQuery("#fundNamt").attr("readonly",true); */
-
- }
-
- //하자이행보증정보 view유무
- setGuarOutList();
-
- }
- function setGuarOutList(){
-
- var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
- var preFundRateValue = Number(jQuery("#preFundRate").val()); //전회 누계기성율
- //var preFundRateValue = 90; //전회 누계기성율
- var checkRate1 = defEstGuarRateValue + preFundRateValue;
- var totFundRateValue = Number(jQuery("#totFundRate").val()); //누계기성율
- var checkRate2 = defEstGuarRateValue + totFundRateValue;
- var resFundAmtValue = Number(jQuery("#resFundAmt").val()); //잔여기성합계
-
- /* if(Number(checkRate1) > 100){
- jQuery('#warr1').show();
- jQuery('#warr2').show();
- }else if(Number(checkRate2) > 100){
- jQuery('#warr1').show();
- jQuery('#warr2').show();
- } */
- if(defEstGuarRateValue > 0 && resFundAmtValue <= 0){
- jQuery('#warr1').show();
- jQuery('#warr2').show();
- }else{
- jQuery('#warr1').hide();
- jQuery('#warr2').hide();
- }
-
- }
-
- //저장 후 기성시청 처리
- function btnAppReqProcess(){
- fMakeItemInfo();
- // if(fMakeItemInfo()){
- // //alert("저장처리");
- // var f = document.form1;
- // jQuery("#fevent").val("REQ_DATA");
- // submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "REQ_DATA", f, "SUCCESS");
- // }
- }
-
- function seTaxDate(){
-
- var newDay = new Date( get_year(), get_month(), "");
- var lastDay = newDay.getDate();
- var yyyymmdd = get_year() +'-'+ get_month() +"-"+ lastDay;
-
- if(jQuery('#date1').val() == ""){
- jQuery('#date1').val(yyyymmdd);
- }
-
- }
-
- function btnCtr(){
-
- //alert(jQuery("#statusCd").val());
- if(jQuery("#statusCd").val() == "01"){ //작성상태(01): 목록, 삭제, 저장, 기성신청 표시
- jQuery("#btnList").show();
- jQuery("#btnDelete").show();
- jQuery("#btnSave").show();
- jQuery("#btnAppReq").show();
- }
-
- if(jQuery("#statusCd").val() == "02"){ //기성신청요청(02) : 목록, 저장, 기성신청 표시
- jQuery("#btnList").show();
- jQuery("#btnDelete").hide();
- jQuery("#btnSave").show();
- jQuery("#btnAppReq").show();
- }
- if(jQuery("#statusCd").val() == "03"){ //기성신청(03) : 목록 표시
- jQuery("#btnList").show();
- jQuery("#btnDelete").hide();
- jQuery("#btnSave").hide();
- jQuery("#btnAppReq").hide();
- }
- if(jQuery("#statusCd").val() == "04"){ //기성신청(04) : 목록 표시
- jQuery("#btnList").show();
- jQuery("#btnDelete").hide();
- jQuery("#btnSave").hide();
- jQuery("#btnAppReq").hide();
- }
- if(jQuery("#statusCd").val() == "10"){ //기성완료(10) : 목록 표시
- jQuery("#btnList").show();
- jQuery("#btnDelete").hide();
- jQuery("#btnSave").hide();
- jQuery("#btnAppReq").hide();
- }
- if(jQuery("#statusCd").val() == "91"){ //반려(91) : 목록, 저장, 기성신청 표시
- jQuery("#btnList").show();
- jQuery("#btnDelete").hide();
- jQuery("#btnSave").show();
- jQuery("#btnAppReq").show();
- }
-
- }
-
- function taxDataSet(){
-
- var radioCheck = jQuery(':radio[name="chk_info"]:checked').val();
- //alert(radioCheck);
- if(radioCheck == "1"){
- jQuery("#taxAttachments").hide();
- }else{
- jQuery("#taxAttachments").show();
- }
- }
-
- //상태가 03:기성신청 일때 입력항목 리드온리
- function inputDataSet(){
-
- jQuery("#taxChargNm").attr("readonly",true);
- jQuery("#taxChargNm").css({'background-color' : '#f0f0f0'});
- jQuery("#taxChargNm").css({'border' : '0px solid #f0f0f0'});
- jQuery("#taxChargHp").attr("readonly",true);
- jQuery("#taxChargHp").css({'background-color' : '#f0f0f0'});
- jQuery("#taxChargHp").css({'border' : '0px solid #f0f0f0'});
- jQuery("#taxChargEmail").attr("readonly",true);
- jQuery("#taxChargEmail").css({'background-color' : '#f0f0f0'});
- jQuery("#taxChargEmail").css({'border' : '0px solid #f0f0f0'});
- jQuery("#fundTamt").attr("readonly",true);
- jQuery("#fundTamt").css({'background-color' : '#f0f0f0'});
- jQuery("#fundTamt").css({'border' : '0px solid #f0f0f0'});
-
- //jQuery("#fundNamt").attr("readonly",true);
- //jQuery("#fundNamt").css({'background-color' : '#f0f0f0'});
- //jQuery("#fundNamt").css({'border' : '0px solid #f0f0f0'});
- jQuery("#requSurtaxAmt").attr("readonly",true);
- jQuery("#requSurtaxAmt").css({'background-color' : '#f0f0f0'});
- jQuery("#requSurtaxAmt").css({'border' : '0px solid #f0f0f0'});
- //jQuery("#fundTamt").attr("disabled",true);
- //jQuery("#fundNamt").attr("disabled",true);
-
- }
-
-
- //저장 및 선급금 신청시 필수항목 Check
- function requiredItemsCheck(){
-
- var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
- var taxChargNm = jQuery('#taxChargNm').val(); //담당자명
- var taxChargHp = jQuery('#taxChargHp').val(); //담당자 핸드폰번호
- var taxChargEmail = jQuery('#taxChargEmail').val(); //담당자 이메일
- var resFundRate = jQuery('#resFundRate').val(); //잔여기성 기성율
- var fundRate = jQuery('#fundRate').val(); //금회_기성 기성율
-
- var resDeductTrate = jQuery('#resPayDeductTRate').val();
- var resPayDeductNrate = jQuery('#resPayDeductNRate').val();
- var resPayDeductRate = jQuery('#resPayDeductRate').val();
- var resPayDeductTamt = jQuery('#resPayDeductTamt').val();
- var resPayDeductNamt = jQuery('#resPayDeductNamt').val();
- var resPayDeductAmt = jQuery('#resPayDeductAmt').val();
-
- if(date1 == "" ){
- alert("입력필수입니다.");
- jQuery('#date1').focus();
- return false;
- }
- if(taxChargNm == ""){
- alert("담당자명은 입력필수입니다.");
- jQuery('#taxChargNm').focus();
- return false;
- }
-
- if(taxChargHp == ""){
- alert("담당자 핸드폰 번호는 입력필수입니다.");
- jQuery('#taxChargHp').focus();
- return false;
- }else{
- var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
- var strValue = taxChargHp;
- var chkFlg = rgEx.test(strValue);
- if(!chkFlg){
- alert("올바른 휴대폰번호가 아닙니다.");
- jQuery('#taxChargHp').focus();
- return false;
- }
- }
-
- if(taxChargEmail == ""){
- alert("담당자 이메일은 입력필수입니다.");
- jQuery('#taxChargEmail').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(taxChargEmail)) {
- alert('올바른 이메일 주소가 아닙니다.');
- jQuery('#taxChargEmail').focus();
- return false;
- }
- }
-
- //잔여기성율 마이너스 check
- if(Number(resFundRate) < 0){
- alert("잔여기성이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
-
- //잔여기성율 마이너스 check
- if(Number(resDeductTrate) < 0){
- alert("선급금 잔여 과세율이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
- //잔여기성율 마이너스 check
- if(Number(resPayDeductNrate) < 0){
- alert("선급금 잔여 면세율이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
-
- //잔여기성율 마이너스 check
- if(Number(resPayDeductRate) < 0){
- alert("선급금 잔여율이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
- //잔여기성율 마이너스 check
- if(Number(resPayDeductTamt) < 0){
- alert("선급금 잔여 과세금액이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
- //잔여기성율 마이너스 check
- if(Number(resPayDeductNamt) < 0){
- alert("선급금 잔여 면세금액이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
- //잔여기성율 마이너스 check
- if(Number(resPayDeductAmt) < 0){
- alert("선급금 잔여 금액이 0보다 작을수 없습니다.");
- jQuery('#fundTamt').focus();
- return false;
- }
-
- //금회기성율이 0% check
- if(Number(fundRate) == 0){
- alert("금회 기성금액을 입력하세요.");
- jQuery('#fundTamt').focus();
- return false;
- }
-
- if(jQuery("#acmpYyyymm").val() != date1.substring(0,7)){
- alert("기성년월과 작성년월이 다릅니다.");
- jQuery('#date1').focus();
- return false;
- }
- //2017.10.18 잔여기성이 0일때 : 계약부가세 != 청구누계부가세 + 선급발생부가세 2017.12.12부가세 버림이라 오차너무 많이 발생함.
- /*var chk_amt = Number(jQuery('#conSurtaxAmt').val().replace(/(\,|\:)/g,"")) - Number(jQuery('#ttotRequSurtaxAmt').val().replace(/(\,|\:)/g,"")) -Number(jQuery('#slPrepaySurtaxAmt').val().replace(/(\,|\:)/g,""));
-
- if (Number(jQuery('#resFundTamt').val()) == 0 && chk_amt != 0){
- alert("계약부가세와 청구부가세 누계를 확인하십시요.(오차:" + chk_amt + ")");
- jQuery('#requSurtaxAmt').focus();
- return false;
- }*/
- /* var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
- var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
- if(fundTamtValue <= 0 && ( requSurtaxAmt == 0 || requSurtaxAmt == "") ){
- alert("부가세 0을 입력 할수 없습니다.");
- jQuery("#requSurtaxAmt").val(0);
- jQuery("#requSurtaxAmt").focus();
- return false;
- }
- */
-
-
-
- if(jQuery("#btnAppReqSelect").val() == "1"){ //선급금신청요청시에는 해당하는 첨부파일이 모드 등록되어있어야함.
-
- var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
- var preFundRateValue = Number(jQuery("#preFundRate").val()); //전회 누계기성율
- //var preFundRateValue = 90; //전회 누계기성율
- var checkRate1 = defEstGuarRateValue + preFundRateValue;
- var totFundRateValue = Number(jQuery("#totFundRate").val()); //누계기성율
- var checkRate2 = defEstGuarRateValue + totFundRateValue;
- var resFundAmtValue = Number(jQuery("#resFundAmt").val()); //잔여기성합계
- /* if(checkRate1 > 100 || checkRate2 > 100){
- //하자이행보증 정보가 존재하는지Check
- if(jQuery("#warrWgno").val() == ""){
- alert("하자이행보증 정보가 없습니다.");
- return false;
- }
- } */
- if(resFundAmtValue <= 0){
- //하자이행보증 정보가 존재하는지Check
- if(jQuery("#warrWgno").val() == ""){
- alert("하자이행보증 정보가 없습니다.");
- return false;
- }
- }
-
- /*
- var radioCheck = jQuery(':radio[name="chk_info"]:checked').val();
- if(radioCheck == "2"){ //순발행일때 세금계산서 첨부파일이 등록되어있어야함.
- var fileName2 = jQuery('#p_AttachFile2').val();
- if(fileName2 == ""){
- alert("세금계산서 첨부파일 필수입니다.");
- return false;
- }
- }
-
- var reqDivGubun = jQuery("#perpayReqDiv option:selected").val();
- if(reqDivGubun == "2" || reqDivGubun == "3"){
- var fileName1 = jQuery('#p_AttachFile1').val();
- if(fileName1 == ""){
- alert("선급금 포기각서 첨부파일 필수입니다.");
- return false;
- }
- }
-
- if(reqDivGubun == "1" || reqDivGubun == "2"){
- var subContId = jQuery('#subContId').val();
- if(subContId == ""){
- alert("보증정보 입력 필수입니다.");
- return false;
- }
- }
- */
- //var warrWamtValue = jQuery("#warrWamt").val().replace(/(\,|\:)/g,""); //보증금액
- //if(warrWamtValue == ""){
- //}
- }
- }
-
- //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
- function payCompareCheck(){
- var befTotFundAmtValue = "<%=acmpData.get("BEF_TOT_FUND_AMT")%>"; //이전 기성차수 누계기성합계
- var befTotPayDeductValue = "<%=acmpData.get("BEF_TOT_PAY_DEDUCT_AMT")%>"; //이전 기성차수 누계선급금합계
- var preFundAmtValue = "<%=acmpData.get("PRE_FUND_AMT")%>"; //현재 기성차수 전회기성합계
- var prePayDeductAmtValue = "<%=acmpData.get("PRE_PAY_DEDUCT_AMT")%>"; //현재 기성차수 전회선급금합계
- //alert("befTotFundAmtValue : "+befTotFundAmtValue+", preFundAmtValue : "+preFundAmtValue+", befTotPayDeductValue : "+befTotPayDeductValue+", prePayDeductAmtValue : "+prePayDeductAmtValue);
- if(befTotFundAmtValue == "" || befTotFundAmtValue == null) befTotFundAmtValue = "0";
- if(befTotPayDeductValue == "" || befTotPayDeductValue == null) befTotPayDeductValue = "0";
-
- if(befTotFundAmtValue != preFundAmtValue){
- alert("전회기성금이 맞지 않습니다.\n관리자에게 문의하십시오.");
- return false;
- }
-
- if(befTotPayDeductValue != prePayDeductAmtValue){
- alert("전회선급금이 맞지 않습니다.\n관리자에게 문의하십시오.");
- return false;
- }
- }
-
- 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();
- jQuery("#btnSearch").click();
-
- }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();
- jQuery("#btnSearch").click();
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
-
- if( resultObj.getRequestEvent() == "GET_DATA" ) {
-
- if( resultObj.getSuccess() ) {
- var subContModId = resultObj.getValueObject().get("SUB_CONT_MOD_ID");
- if(subContModId != ""){
- jQuery("#subContModId").val(subContModId);
-
- 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;
- }
-
- if( resultObj.getRequestEvent() == "GET_ATTACHFILE" ) {
- if( resultObj.getSuccess() ) {
- document.form1.p_AttachFile.value = resultObj.getValueObject().get("AttachFile");
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
-
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
- function doKeyPress() {
-
- if( event.keyCode == 13 ) {
- doSearch(document.all.sheet1)
- }
- }
- function calendar(thisDayObj){
- dlgCalendar(thisDayObj);
- }
- //첨부파일
- function doAttachFile(obj,No) {
-
- //alert(obj.value);
- if(obj.value == ''){
- //alert("After you have saved, you can attach a file.");
- alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
- }
- else if(obj.value != ''){
- if(No == 1){
- //viewFileList('PREPAYMENTS_GIVEUP', obj.value, document.form1.p_AttachFile1, "N", "N", "Y", "N");
- viewFileListNew1('RESOLUTION_'+obj.value, No, document.getElementById("fileMapIDDiv"), "Y", "payment/purchase/"+obj.value);
- }else{
- //alert(No);
- var upLoadFlg = "Y";
- if(jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "10"){ //상태값이 기성신청(03), 기성완료(10) 일때는 첨부파일 다운로드만 가능
- upLoadFlg = "N";
- }
- //viewFileListNew('RESOLUTION_'+obj.value, No, document.form1.fileMapID, upLoadFlg, "cont/cont-1001");
- viewFileListNew1('RESOLUTION_'+obj.value, No, document.getElementById("fileMapIDDiv"), upLoadFlg, "payment/purchase/"+obj.value);
- }
- }
- //alert();
- //기성첨부파일 목록 조회
- //getFileListForTextarea();
-
- }
- function viewFileListNew1(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename) {
-
- var win_id = "_viewFileList";
- var link = "/common/file/FileListNew.screen";
- link += "?pop_win_id="+win_id;
- link += "&extFunction=viewFileListClose1";
- link += "&file_gb=" + fileGB;
- link += "&id=" + id;
-
- if( obj.id != null )
- link += "&obj_id=" + obj.id;
- if( iframeID != null )
- link += "&iframeID=" + iframeID;
-
- if( isModify != null )
- link += "&is_modify=" + isModify;
- if( isDrectory != null )
- link += "&sys_gb=" + isDrectory;
- if( user_filename != null )
- link += "&user_filename=" + user_filename;
-
- fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
- }
-
- //첨부목록 조회
- function getFileListForTextarea(){
-
- document.form1.p_AttachFile.value = "";
- var f = document.form1;
- jQuery("#fevent").val("GET_ATTACHFILE");
- submitXmlRequest("/portal/payment/ResolutionRequest_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 open_apppend_file_popup_new(form, fileConnGB, fileConnID, isReadOnly, check_file_cd) {
-
- /* alert(form);
- alert(fileConnGB);
- alert(fileConnID);
- alert(isReadOnly);
- alert(check_file_cd); */
-
- if (!form) {
- dlgAlert('form 인자를 지정하여 주세요.');
- return false;
- }
- if (!fileConnGB) {
- dlgAlert('fileConnGB 인자를 지정하여 주세요.');
- return false;
- }
- if (!fileConnID) {
- dlgAlert('fileConnID 인자를 지정하여 주세요.');
- return false;
- }
- //var url = '/subcontract/append_file_popup_new.screen?fileConnGB=' + fileConnGB + '&fileConnID=' + fileConnID + '&check_file_cd='+ check_file_cd;
- var url = '/common/file/Append_file_popup_new.screen?fileConnGB=' + fileConnGB + '&fileConnID=' + fileConnID + '&check_file_cd='+ check_file_cd;
-
- if (isReadOnly) {
- url += '&readOnly=true';
- } else {
- if (!form.fileMapID) {
- dlgAlert('fileMapID 필드가 존재하지 않습니다.');
- return false;
- }
- }
- //openPopup(url, "ItemWindow", "auto", 730, 200);
- }
-
-
- 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("#conCurNm").val(); //계약통화
-
- var infoCorpRegNo = "사업자번호:"+jQuery("#corpRegNo").val(); //사업자번호
- var CorpRegNoVal = jQuery("#corpRegNo").val().replace(/-/gi, "");; //사업자번호
- //alert(CorpRegNoVal);
-
- var infoCorpKor = "계약업체명:"+jQuery("#corpKor").val(); //계약업체명
- var infoBossName = "대표이사:"+jQuery("#bossName").val(); //업체대표이사
-
- var infoStartEndWorkDate = "계약기간:"+jQuery("#startEndWorkDate").val(); //계약기간
- var infoConAmt = "계약금액:"+jQuery("#conAmt").val(); //계약금액합계
- var infoPerpayAmt = "선급금액:"+jQuery("#perpayAmt").val(); //선급금액합계
- var infoSlPrepayAmt = "선급금액:"+jQuery("#slPrepayAmt").val(); //선급지금금액합계
-
- var infoTaxMethod = ""; //세금계산서발행방법
- if(jQuery('input:checkbox[id="chk_1"]').is(":checked")){ //역발행
- infoTaxMethod = "세금계산서발행방법:역발행";
- }else{
- infoTaxMethod = "세금계산서발행방법:순발행";
- }
- var infoDate1 = "작성일자:"+jQuery("#date1").val(); //작성일자(증빙일자)
- var infoTaxChargNm = "담당자명:"+jQuery("#taxChargNm").val(); //담당자명
- var infoTaxChargHp = "핸드폰번호:"+jQuery("#taxChargHp").val(); //담당자 핸드폰번호
- var infoTaxChargEmail = "이메일주소:"+jQuery("#taxChargEmail").val(); //담당자 이메일
-
- var infoAcmpYyyymm = "기성년월:"+jQuery("#acmpYyyymm").val(); //기성년월
- var infoAcmpNo = "기성차수:"+jQuery("#acmpNo").val(); //기성차수
-
- var infoFundTamt = "금회_기성_과세:"+jQuery("#fundTamt").val(); //금회_기성_과세
- var infoFundNamt = "금회_기성_면세:"+jQuery("#fundNamt").val(); //금회_기성_면세
- var infoFundAmt = "금회_기성_합계:"+jQuery("#fundAmt").val(); //금회_기성_합계
- var infoFundRate = "금회_기성_기성율:"+jQuery("#fundRate").val(); //금회_기성_기성율
-
- var infoPayDeductTamt = "금회_선급공제_과세:"+jQuery("#payDeductTamt").val(); //금회_선급공제_과세
- var infoPayDeductNamt = "금회_선급공제_면세:"+jQuery("#payDeductNamt").val(); //금회_선급공제_면세
- var infoPayDeductAmt = "금회_선급공제_합계:"+jQuery("#payDeductAmt").val(); //금회_선급공제_합게
- var infoPayDeductRate = "금회_선급공제_기성율:"+jQuery("#payDeductRate").val(); //금회_선급공제_기성율
-
- var infoRequSupplyTamt = "금회_청구액_공급액_과세:"+jQuery("#requSupplyTamt").val(); //금회_청구액_공급액_과세
- var infoRequSupplyNamt = "금회_청구액_공급액_면세:"+jQuery("#requSupplyNamt").val(); //금회_청구액_공급액_면세
- var infoRequSupplyAmt = "금회_청구액_공급액_합계:"+jQuery("#requSupplyAmt").val(); //금회_청구액_공급액_합계
-
- var infoRequSurtaxAmt = "금회_청구액_부가세_과세:"+jQuery("#requSurtaxAmt").val(); //금회_청구액_부가세_과세
- var infoTrequSurtaxAmt = "금회_청구액_부가세_합계:"+jQuery("#trequSurtaxAmt").val(); //금회_청구액_부가세_합계
-
- var infoRequAmt = "금회_청구액_합계_과세:"+jQuery("#requAmt").val(); //금회_청구액_부가세_과세
- var infoTrequSupplyNamt = "금회_청구액_합계_면세:"+jQuery("#trequSupplyNamt").val(); //금회_청구액_부가세_면세
- var infoTrequAmt = "금회_청구액_합계_합계:"+jQuery("#trequAmt").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 + infoSlPrepayAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxMethod + sColumDelimiter;
- sItemInfo = sItemInfo + infoDate1 + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxChargNm + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxChargHp + sColumDelimiter;
- sItemInfo = sItemInfo + infoTaxChargEmail + sColumDelimiter;
-
- sItemInfo = sItemInfo + infoAcmpYyyymm + sColumDelimiter;
- sItemInfo = sItemInfo + infoAcmpNo + sColumDelimiter;
-
- sItemInfo = sItemInfo + infoFundTamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoFundNamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoFundAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoFundRate + sColumDelimiter;
- sItemInfo = sItemInfo + infoPayDeductTamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoPayDeductNamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoPayDeductAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoPayDeductRate + sColumDelimiter;
- sItemInfo = sItemInfo + infoRequSupplyTamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoRequSupplyNamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoRequSupplyAmt + sColumDelimiter;
-
- sItemInfo = sItemInfo + infoRequSurtaxAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoTrequSurtaxAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoRequAmt + sColumDelimiter;
- sItemInfo = sItemInfo + infoTrequSupplyNamt + sColumDelimiter;
- sItemInfo = sItemInfo + infoTrequAmt;
-
- //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);
- jQuery("#CONT_SIGNDN").val(userdn); //20116.02.03 추가
-
- var f = document.form1;
- jQuery("#fevent").val("REQ_DATA");
- submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "REQ_DATA", f, "SUCCESS");
-
- });
-
- }
- //보증정보팝업 호출
- function popContWarr(wG, wSeq, wCauseCd) {
-
- var win_id = "contOutWarrPopup";
- var param = "";
- var param = "?subContModId=" + jQuery("#selectSubContModId").val();
- var param = param + "&warrGubun=" + wG;
- var param = param + "&warrSeq=" + wSeq;
- var param = param + "&causeCode=" + wCauseCd;
- var param = param + "&viewDiv=ACMP";
- // var param = param + "&prepayId=" + jQuery("#prepayId").val();
- var param = param + "&pop_win_id=" + win_id;
-
- var url = "/portal/guar/contOutWarrPopup.screen"+param;
-
- fLayerPop(win_id, url, 560,350, '','', 'NO');
- }
- //보증정보팝업 종료후 액션
- function popContWarrClose(returnValue){
- if(returnValue == null){
- fLayerPopClose('contOutWarrPopup');
- }else{
- fLayerPopClose('contOutWarrPopup');
- //location.reload();
- jQuery("#btnSearch").click();
- }
- }
- 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, "contOutWarrPopup");
- }
- }
- </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="selectSubContId" id="selectSubContId" value="<%=params.get("selectSubContId") %>">
- <INPUT type="hidden" name="selectSubContModId" id="selectSubContModId" value="<%=params.get("selectSubContModId") %>">
- <INPUT type="hidden" name="acmpId" id="acmpId" value="<%=params.get("acmpId") %>">
- <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=acmpData.get("SUB_CONT_MOD_ID") %>">
- <INPUT type="hidden" name="conCorpId" id="conCorpId" value="<%=acmpData.get("CON_CORP_ID") %>"> <!-- 협력업체ID -->
- <INPUT type="hidden" name="modNo" id="modNo" value="<%=acmpData.get("MOD_NO") %>"> <!-- 변경계약MAX차수 -->
- <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=acmpData.get("STATUS_CD") %>"> <!-- 기성 상태값 -->
-
- <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0"> <!-- 기성신청상태구분 -->
- <INPUT type="hidden" name="inputVatDiv" id="inputVatDiv" value="<%=acmpData.get("INPUTVATDIV") %>">
-
- <INPUT type="hidden" id="F_CON_SUPPLY_AMT" name="F_CON_SUPPLY_AMT" value='<%= Formatter2.currency(acmpData.get("F_CON_SUPPLY_AMT"), intDigit) %>'> <!-- 선급금대상계약금액 -->
- <INPUT type="hidden" id="F_TAX_DY" name="F_TAX_DY" value='<%= acmpData.get("F_TAX_DY") %>'>
-
- <!-- 임시 FILE MAP ID 값 -->
- <INPUT type="hidden" name="fileMapID" id="fileMapID" value="" onPropertyChange="JavaScript:getFileListForTextarea();">
-
- <INPUT type='hidden' id="signeddata" name="signeddata" value="">
- <INPUT type='hidden' id="CONT_SIGNDN" name="CONT_SIGNDN" value="">
-
-
- <!-- 검색 조건 계약명 -->
- <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("buildName") %>">
- <INPUT type='hidden' id="searchDeptName" name="searchDeptName" value="<%=params.get("deptName") %>">
- <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("detailcd") %>">
-
- <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=acmpData.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
- <INPUT type='hidden' id="resHp" name="resHp" value="<%=acmpData.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
- <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=acmpData.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
- <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=acmpData.get("CON_DOC_NO") %>"> <!-- 발주계약번호 -->
-
- <INPUT type='hidden' id="defEstGuarRate" name="defEstGuarRate" value="<%=acmpData.get("DEF_EST_GUAR_RATE") %>"> <!-- 하자보수보증금율 -->
-
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div align="left" id="title">
- <ul>
- <li>외주_기성현황 상세(<span style="font-size: 11px"><%=acmpData.get("STATUS_NM")%></span>)</li>
- </ul>
- </div>
- </th>
- <td align="right">
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnSave">저장</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnAppReq">기성신청</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnList">목록</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch" style="display: none;">조회</a></span>
- </td>
- </tr>
- </table>
- <%
- if(!acmpData.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>
- <th style="text-align: left;">반려일</th>
- <TD><%=acmpData.get("RTN_DATE")%></TD>
- </TR>
- <TR>
- <th style="text-align: left;">반려사유</th>
- <TD><%=acmpData.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>
- <th style="text-align: left;">현장명</th>
- <TD><%= InputText.get("deptName", acmpData.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", acmpData.get("BUILD_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">통화</th>
- <TD><%= InputText.get("conCurNm", acmpData.get("CON_CUR_NM"), 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("corpRegNo", acmpData.get("CORP_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("corpKor", acmpData.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", acmpData.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", acmpData.get("START_WORK_DATE") +"~"+ acmpData.get("END_WORK_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">계약금액</th>
- <TD><%= InputText.get("conConAmt", Formatter2.currency(acmpData.get("CON_SUPPLY_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("conPrepayAmt", Formatter2.currency(acmpData.get("PREPAY_SUPPLY_AMT"),intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- </TABLE>
-
- <div class="application-info magT15">
- <div class="application-sub-title">
- <span class="title">세금계산서 정보</span>
- </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;"/>
- <%= checkString %>
- </TD>
- <th class="required" style="text-align: left;">작성일자(증빙일자)</th>
- <TD><%= InputText.get("date1", Formatter.formatDate(acmpData.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
- <A href="JavaScript:calendar('date1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
- </TD>
- </TR>
- <TR>
- <th class="required" style="text-align: left;">담당자명</th>
- <TD><%= InputText.get("taxChargNm", acmpData.get("TAX_CHARG_NM"), 100, 10, "string, left, PerSize", "string") %></TD>
- <th class="required" style="text-align: left;">담당자 핸드폰번호</th>
- <TD><%-- <%= InputText.get("taxChargHp", acmpData.get("TAX_CHARG_HP"), 5, 13, "string, left", "string") %> --%>
- <input type="text" id="taxChargHp" name="taxChargHp" value="<%=acmpData.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("taxChargEmail", acmpData.get("TAX_CHARG_EMAIL"), 100, 45, "string, left, PerSize", "string") %></TD>
- </TR>
- </TABLE>
-
- <div class="application-info magT15">
- <div class="application-sub-title">
- <span class="title">기성 정보</span>
- </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><%= InputText.get("acmpYyyymm", params.get("acmpYyyymm"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
- <%-- <TD><%= InputText.get("acmpYyyymm", params.get("acmpYyyymm"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD> --%>
- <th style="text-align: left;">기성차수</th>
- <TD><%= InputText.get("acmpNo", acmpData.get("ACMP_NO"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">신청(서명)일시</th>
- <TD><%= InputText.get("custSignDate", acmpData.get("SUPP_SIGN_DT") , 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("SUPP_DIRECT_YN", acmpData.get("SUPP_DIRECT_YN"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
- <th style="text-align: left;">노무비닷컴여부</th>
- <TD><%= InputText.get("LABOR_USE_YN", acmpData.get("LABOR_USE_YN"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
- <TH colspan="2"></TH>
- </TR>
- </TABLE>
-
- <img src="/img/com/blank.gif" height="10px" />
-
- <TABLE class="form-table" style="table-layout: fixed;">
- <colgroup>
- <col width="2%" />
- <col width="5%" />
- <col width="6%" />
- <col width="6%" />
- <col width="6%" />
- <col width="5%" />
- <col width="6%" />
- <col width="6%" />
- <col width="6%" />
- <col width="5%" />
- <col width="6%" />
- <col width="6%" />
- <col width="6%" />
- <col width="5%" />
- <col width="6%" />
- <col width="6%" />
- <col width="6%" />
- <col width="*" />
- </colgroup>
- <TR>
- <th rowspan="2" colspan="2">구분</th>
- <th rowspan="2" colspan="4">합계</th>
- <th colspan="8">공급가액</th>
- <th rowspan="2" colspan="4">부가세</th>
- </TR>
- <TR>
- <th colspan="4">과세</th>
- <th colspan="4">면세</th>
- </TR>
- <TR>
- <th colspan="2">계약금</th>
- <TD colspan="4"><%= InputText.get("conAmt", Formatter2.currency(acmpData.get("CON_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("conSupplyTamt", Formatter2.currency(acmpData.get("CON_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("conSupplyNamt", Formatter2.currency(acmpData.get("CON_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("conSurtaxAmt", Formatter2.currency(acmpData.get("CON_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th colspan="2">선급금</th>
- <TD colspan="4"><%= InputText.get("perpayAmt", Formatter2.currency(acmpData.get("PREPAY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("prepaySupplyTamt", Formatter2.currency(acmpData.get("PREPAY_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("prepaySupplyNamt", Formatter2.currency(acmpData.get("PREPAY_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("prepaySurtaxAmt", Formatter2.currency(acmpData.get("PREPAY_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th colspan="2">선급금 지급</th>
- <TD colspan="4"><%= InputText.get("slPrepayAmt", Formatter2.currency(acmpData.get("SL_PREPAY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("slPrepaySupplyTmat", Formatter2.currency(acmpData.get("SL_PREPAY_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("slPrepaySupplyNamt", Formatter2.currency(acmpData.get("SL_PREPAY_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD colspan="4"><%= InputText.get("slPrepaySurtaxAmt", Formatter2.currency(acmpData.get("SL_PREPAY_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- </TABLE>
-
- <img src="/img/com/blank.gif" height="10px" />
-
- <table width="100%"><tr><td align="right"><span class="btnSearch center"><a href="javascript:void(0);" id="btnItem">기성입력</a></span></td></tr></table>
-
- <TABLE class="form-table" style="table-layout: fixed;">
- <colgroup>
- <col width="2%" />
- <col width="5%" />
-
- <col width="8%" />
- <col width="7%" />
- <col width="8%" />
- <col width="8%" />
- <col width="7%" />
- <col width="8%" />
- <col width="8%" />
- <col width="7%" />
- <col width="8%" />
- <col width="8%" />
- <col width="7%" />
- <col width="*" />
- </colgroup>
-
- <TR>
- <th rowspan="2" colspan="2">구분</th>
- <th colspan="3">전회까지</th>
- <th colspan="3" class="required">금회</th>
- <th colspan="3">누계기성</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>
- <th>합계</th>
- </TR>
- <TR>
- <th rowspan="2">기성</th><th colspan="1">율</th>
- <TD><%= InputText.get("preFundTate", Formatter2.currency(acmpData.get("PRE_FUND_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preFundNate", Formatter2.currency(acmpData.get("PRE_FUND_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preFundRate", Formatter2.currency(acmpData.get("PRE_FUND_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("fundTRate", Formatter2.currency(acmpData.get("FUND_TRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("fundNRate", Formatter2.currency(acmpData.get("FUND_NRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("fundRate", Formatter2.currency(acmpData.get("FUND_RATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totFundTRate", Formatter2.currency(acmpData.get("TOT_FUND_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totFundNRate", Formatter2.currency(acmpData.get("TOT_FUND_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totFundRate", Formatter2.currency(acmpData.get("TOT_FUND_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resFundTRate", Formatter2.currency(acmpData.get("RES_FUND_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resFundNRate", Formatter2.currency(acmpData.get("RES_FUND_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resFundRate", Formatter2.currency(acmpData.get("RES_FUND_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th colspan="1">금액</th>
- <TD><%= InputText.get("preFundTamt", Formatter2.currency(acmpData.get("PRE_FUND_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preFundNamt", Formatter2.currency(acmpData.get("PRE_FUND_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preFundAmt", Formatter2.currency(acmpData.get("PRE_FUND_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("fundTamt", Formatter2.currency(acmpData.get("FUND_TAMT"),intDigit), 100, 16, "class=input byteChk ,float, right, perSize, tabIndex=-1, readOnly", "float") %></TD>
- <TD><%= InputText.get("fundNamt", Formatter2.currency(acmpData.get("FUND_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("fundAmt", Formatter2.currency(acmpData.get("FUND_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totFundTamt", Formatter2.currency(acmpData.get("TOT_FUND_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totFundNamt", Formatter2.currency(acmpData.get("TOT_FUND_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totFundAmt", Formatter2.currency(acmpData.get("TOT_FUND_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resFundTamt", Formatter2.currency(acmpData.get("RES_FUND_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resFundNamt", Formatter2.currency(acmpData.get("RES_FUND_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resFundAmt", Formatter2.currency(acmpData.get("RES_FUND_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th rowspan="2" >선급 공제</th><th colspan="1">율</th>
- <TD><%= InputText.get("prePayDeductTRate", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("prePayDeductNRate", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("prePayDeductRate", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("payDeductTRate", Formatter2.currency(acmpData.get("PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("payDeductNRate", Formatter2.currency(acmpData.get("PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("payDeductRate", Formatter2.currency(acmpData.get("PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totPayDeductTRate", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totPayDeductNRate", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totPayDeductRate", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resPayDeductTRate", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resPayDeductNRate", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resPayDeductRate", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th colspan="1">금액</th>
- <TD><%= InputText.get("prePayDeductTamt", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("prePayDeductNamt", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("prePayDeductAmt", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("payDeductTamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("payDeductNamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("payDeductAmt", Formatter2.currency(acmpData.get("PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totPayDeductTamt", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totPayDeductNamt", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totPayDeductAmt", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resPayDeductTamt", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resPayDeductNamt", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("resPayDeductAmt", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- </TR>
- <TR>
- <th rowspan="3" >청<br>구<br>액</th>
- <th>공급액</th>
- <TD><%= InputText.get("preRequSupplyTamt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preRequSupplyNamt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preRequSupplyAmt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("requSupplyTamt", Formatter2.currency(acmpData.get("REQU_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("requSupplyNamt", Formatter2.currency(acmpData.get("REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("requSupplyAmt", Formatter2.currency(acmpData.get("REQU_SUPPLY_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totRequSupplyTamt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totRequSupplyNamt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("totRequSupplyAmt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD class="bgEF"></TD>
- <TD class="bgEF"></TD>
- <TD class="bgEF"></TD>
- </TR>
- <TR>
- <th>부가세</th>
- <TD><%= InputText.get("preRequSurtaxAmt", Formatter2.currency(acmpData.get("PRE_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("preRequSurtaxNamt", Formatter2.currency(acmpData.get("PRE_REQU_SURTAX_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("tpreRequSurtaxAmt", Formatter2.currency(acmpData.get("PRE_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("requSurtaxAmt", Formatter2.currency(acmpData.get("REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input byteChk ,float, right, perSize", "float") %></TD>
- <TD><%= InputText.get("trequSurtaxNamt", Formatter2.currency(acmpData.get("REQU_SURTAX_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("trequSurtaxAmt", Formatter2.currency(acmpData.get("REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totRequSurtaxAmt", Formatter2.currency(acmpData.get("TOT_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("ttotRequSurtaxNamt", Formatter2.currency(acmpData.get("TOT_REQU_SURTAX_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("ttotRequSurtaxAmt", Formatter2.currency(acmpData.get("TOT_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD class="bgEF" ></TD>
- <TD class="bgEF" ></TD>
- <TD class="bgEF" ></TD>
- </TR>
- <TR>
- <th>합계</th>
- <TD><%= InputText.get("preRequAmt", Formatter2.currency(acmpData.get("PRE_REQU_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("tpreRequSupplyNamt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("tpreRequAmt", Formatter2.currency(acmpData.get("PRE_REQU_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("requAmt", Formatter2.currency(acmpData.get("REQU_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("trequSupplyNamt", Formatter2.currency(acmpData.get("REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("trequAmt", Formatter2.currency(acmpData.get("REQU_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
- <TD><%= InputText.get("totRequAmt", Formatter2.currency(acmpData.get("TOT_REQU_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("ttotRequSupplyNamt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD><%= InputText.get("ttotRequAmt", Formatter2.currency(acmpData.get("TOT_REQU_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
- <TD class="bgEF" ></TD>
- <TD class="bgEF" ></TD>
- <TD class="bgEF" ></TD>
- </TR>
- </TABLE>
- <img src="/img/com/blank.gif" height="10px" />
-
- <TABLE class="form-table">
- <colgroup>
- <col width="7%" />
- <col width="43%" />
- <col width="7%" />
- <col width="43%" />
- </colgroup>
-
- <TR>
- <th>기성검사<br>첨부서류</th>
- <TD>
- <TABLE class="inner_table" border="0" >
- <%
- if(acmpFileRow.size() > 0){
- int i_mod = 0;
- for(int i = 0; acmpFileRow.size() > i; i++){
- i_mod = i%3;
- if(i_mod == 0){ %>
- <TR>
- <% } %>
- <td width="2%">
- <input type="checkbox" name="doc_cd" value="<%=acmpFileRow.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=acmpFileRow.getRow(i).get("DETAILCD") %>')" <%if(!acmpFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %>>
- </td>
- <td width="20%">
- <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
- <%=acmpFileRow.getRow(i).get("DETAILNM") %>
- </td>
- <td width="7%" height="24">
- <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=acmpFileRow.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!acmpFileRow.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doAttachFile(document.form1.acmpId, '<%=acmpFileRow.getRow(i).get("DETAILCD") %>');" 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>
- <th>준공검사<br>첨부서류</th>
- <TD>
- <TABLE class="inner_table" border="0" >
- <%
- if(compFileRow.size() > 0){
- int i_mod = 0;
- for(int i = 0; compFileRow.size() > i; i++){
-
- i_mod = i%3;
- if(i_mod == 0){ %>
- <TR>
- <% } %>
- <td width="2%">
- <input type="checkbox" name="doc_cd" value="<%=compFileRow.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=compFileRow.getRow(i).get("DETAILCD") %>');" <%if(!compFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> />
- </td>
- <td width="20%">
- <%=compFileRow.getRow(i).get("DETAILNM") %>
- </td>
- <td width="7%" height="24">
- <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=compFileRow.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!compFileRow.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doAttachFile(document.form1.acmpId, '<%=compFileRow.getRow(i).get("DETAILCD") %>');" 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>
- </TR>
- </TABLE>
-
- <img src="/img/com/blank.gif" height="10px" />
-
- <TABLE class="form-table">
- <colgroup>
- <col width="7%" />
- <col width="43%" />
- <col width="7%" />
- <col width="43%" />
- </colgroup>
- <TR height="90">
- <th>기성첨부</th>
- <TD>
- <TEXTAREA name="p_AttachFile" id="p_AttachFile" cols="70" rows="3" readOnly class="input ctrlTarget" style="height: 85px; overflow-y:auto"><%= AttachFile.get("AttachFile") %></TEXTAREA>
- </TD>
- <th>특기사항</th>
- <TD>
- <TEXTAREA name="acmp_remark" id="acmp_remark" cols="70" rows="3" maxlength="1000" class="input byteChk ctrlTarget" style="height: 85px; overflow-y:auto"><%=acmpData.get("ACMP_REMARK") %></TEXTAREA>
- </TD>
- </TR>
- </TABLE>
- <%
- /*
- 보증 목록을 include 시킴 (2014-10-17) 김명호
- */
- %>
- <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarOutList.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>
- <!-- 전자인증 모듈 설정 //-->
|