payInstallResult.jsp 123 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915
  1. <%--
  2. - FileName : payInstallResult.jsp
  3. - Author(s) : ok
  4. - Date : 2014.08.25
  5. - Copyright : Copyright (c) 2014 www.udapsoft.co.kr, Inc.
  6. - Description: 대금신청상세(구매_중도금,잔금) -설치
  7. --%>
  8. <%@ page contentType="text/html; charset=utf-8" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="kr.co.hsnc.common.util.*"%>
  12. <%@ page import="kr.co.hsnc.common.sql.*" %>
  13. <%@ page import="kr.co.hsnc.common.util.Formatter"%>
  14. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  15. <%@ include file="/jsp/work/taglib.jsp"%>
  16. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  17. <%
  18. ctx.init(request, response);
  19. HandlerStorage storage = ctx.getHandlerStorage();
  20. ValueObject params = storage.getParams();
  21. ValueObject user = storage.getUser();
  22. String event = storage.getEvent();
  23. RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보
  24. /*
  25. RowSet perpayReqDivComboList = storage.getRowSet("perpayReqDivComboList"); //신청구분 ComboList Data
  26. ValueObject file_giveup = storage.getValueObject("PREPAYMENTS_GIVEUP");
  27. ValueObject file_taxbill = storage.getValueObject("TAX_BILL");
  28. */
  29. ValueObject prePayment = storage.getValueObject("prePayment"); //기본정보, 세금계산서정보, 선급금정보
  30. ValueObject vendorPrintInfo = storage.getValueObject("vendorPrintInfo");//Vendor Print
  31. ValueObject planApprInfo = storage.getValueObject("planApprInfo");//설계평가
  32. ValueObject ContInfo = storage.getValueObject("ContInfo"); //분계유형
  33. RowSet prePaymentList = storage.getRowSet("prePaymentList"); //대금내역
  34. String check1 = "";
  35. String check2 = "";
  36. String check3 = "";
  37. if("3".equals(prePayment.get("TAX_METHOD_CD"))){
  38. check3 = "checked";
  39. }else if("2".equals(prePayment.get("TAX_METHOD_CD"))){
  40. check2 = "checked";
  41. }else{
  42. check1 = "checked";
  43. }
  44. String digit = (String)prePayment.get("digit");
  45. int intDigit = Integer.parseInt(digit);
  46. //기타 첨부서류
  47. RowSet purchaseFileRow = storage.getRowSet("purchaseFileRow");
  48. String acctid = storage.getUser().get("ACCT_ID");
  49. String creby = user.get("ACCT_ID");
  50. String updby = user.get("ACCT_ID");
  51. if(!"".equals(prePayment.get("CRE_BY")) && !"".equals(prePayment.get("UPD_BY"))){
  52. creby = prePayment.get("CRE_BY");
  53. updby = prePayment.get("UPD_BY");
  54. }
  55. String plan_appr_yn = planApprInfo.get("PLAN_APPR_YN");
  56. String plan_appr_status = planApprInfo.get("PLAN_APPR_STATUS");
  57. String plan_appr_send_yn = planApprInfo.get("PLAN_APPR_SEND_YN");
  58. //베트남 환율정보 0원으로 표기되는 부분 수정(23.07.10)
  59. String CURRENCY_GB = (String)prePayment.get("CURRENCY_GB");
  60. int currency_digit = intDigit;
  61. if(CURRENCY_GB.equals("VND")) currency_digit = 4; //통화가 vnd인 경우 소숫점 4자리까지 표기
  62. %>
  63. <SCRIPT language="JavaScript">
  64. /*예약함수*/
  65. var sheet1;
  66. var sheet1Row;
  67. var sheet1PageNo = 1;
  68. var pageLastRowIndex = 1;
  69. var validationResult = false;
  70. var filterShow = false;
  71. var g_digit = <%= intDigit %>; // 소숫점 이하 자릿수
  72. function _onReady(){
  73. jQuery("#spanBbtnContCopy").show();
  74. jQuery(document).delegate('#date1','change', function() {
  75. var f = document.form1;
  76. jQuery("#fevent").val("GET_RATE");
  77. //반려가 가능한 상태인지 확인한다.
  78. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "GET_RATE", f, "VALUEOBJECT");
  79. });
  80. //2016.11.10 외국환거래신고
  81. $("#btn_foreign").click(function() {//저장
  82. var corpId = "<%=prePayment.get("CORP_ID")%>";
  83. var win_id = "ForeignCheckPop";
  84. var editYN = "N";
  85. if (jQuery("#statusCd").val() == "00"|| jQuery("#statusCd").val() == "03"|| jQuery("#statusCd").val() == "05"|| jQuery("#statusCd").val() == "99"){
  86. editYN="Y";
  87. }
  88. var link = "/bid/purchase/ForeignCheckPop.screen";
  89. link += "?pop_win_id="+win_id+"&BID_NO="+$("#purContId").val()+"&BID_DEG="+$("#payreqId").val()+"&VENDOR_CD=" + corpId + "&editYN="+ editYN + "&WHO5=P"
  90. link += "&P_USER=" + "<%=user.get("USER_SABUN")%>";
  91. fLayerPop(win_id, link, 950,600, '','', 'NO');
  92. });
  93. $("#btnFixAppr").click(function() {
  94. <%-- var corp_no = "<%=prePayment.get("corp_reg_no")%>";
  95. var corp_id = "<%= prePayment.get("corp_id")%>";
  96. var dept_cd = "<%= prePayment.get("dept_cd")%>";
  97. var dept_name = "<%= prePayment.get("dept_nm")%>";
  98. var payreq_id = "<%=prePayment.get("PAYREQ_ID")%>";
  99. // var url = "/supplier/purchase/PuSuppFixApprPop.screen?corp_no="+corp_no+"&corp_id="+corp_id+"&dept_cd="+dept_cd+"&dept_name="+dept_name+"&payreq_id="+payreq_id;
  100. // openPopup(url, "ItemWindow", "yes", 1024, 800);
  101. var url = "/supplier/purchase/PuSuppFixApprPop.screen";
  102. var win_id = "_ItemWindow";
  103. url += "?pop_win_id="+win_id;
  104. url += "&corp_no="+corp_no;
  105. url += "&corp_id="+corp_id;
  106. url += "&dept_cd="+dept_cd;
  107. url += "&dept_name="+dept_name;
  108. url += "&payreq_id="+payreq_id;
  109. fLayerPop(win_id, url, 1024,400, '', '', 'NO'); --%>
  110. var corpId = "<%=prePayment.get("CORP_ID")%>";
  111. var apprArrId = "<%=prePayment.get("APPR_ARR_ID")%>";
  112. var apprDocCd = "<%=prePayment.get("APPR_DOC_CD")%>";
  113. var apprDy = "<%=prePayment.get("APPR_DY")%>";
  114. if(typeof apprArrId == "undefined" || apprArrId == "" || apprArrId == null ){
  115. alert("정기평가표가 등록되어 있지 않습니다.");
  116. //return;
  117. }else{
  118. var f = document.form1;
  119. var reportInfo = new ReportInfo();
  120. if(apprDocCd == "03") // manufacturer의 경우
  121. {
  122. reportInfo.title = "기자재공급업체 정기평가표(Manufacturer)";
  123. if ("<%=prePayment.get("ADM_YEAR")%>" == "2014")
  124. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport3.mrd";
  125. else if ("<%=prePayment.get("ADM_YEAR")%>" == "2016")
  126. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport3_2016.mrd";
  127. else if ("<%=prePayment.get("ADM_YEAR")%>" == "2019")
  128. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport3_2019.mrd";
  129. else if ("<%=prePayment.get("ADM_YEAR")%>" == "2020")
  130. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport3_2020.mrd";
  131. else
  132. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport3_2023.mrd";
  133. }else
  134. {
  135. reportInfo.title = "기자재공급업체 정기평가표(Agent)";
  136. if ("<%=prePayment.get("ADM_YEAR")%>" == "2014")
  137. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport4.mrd";
  138. else if ("<%=prePayment.get("ADM_YEAR")%>" == "2016")
  139. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport4_2016.mrd";
  140. else if ("<%=prePayment.get("ADM_YEAR")%>" == "2019")
  141. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport4_2019.mrd";
  142. else if ("<%=prePayment.get("ADM_YEAR")%>" == "2020")
  143. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport4_2020.mrd";
  144. else
  145. reportInfo.reportName = "/report/mrd/buyer/supplier/purchase/PuSupplierReport4_2020.mrd";
  146. }
  147. reportInfo.set(corpId);
  148. reportInfo.set(apprArrId);
  149. reportInfo.set(apprDocCd);
  150. reportInfo.set(apprDy.substring(0,4));
  151. reportInfo.width = 1000; // Default: 1024
  152. reportInfo.height = 700; // Default: 768
  153. // reportInfo.reportOption = "/rf /rsn ["+f.defaultDS.value+"]"; // Default: '/rf'
  154. reportInfo.showPopup();
  155. }
  156. });
  157. //설계평가 요청하기(설계평가자에게 메일 발송)
  158. $("#btnPlanApprReq").click(function() {
  159. if(confirm('설계평가자에게 작성요청메일 발송하시겠습니까? ')){
  160. var f = document.form1;
  161. jQuery("#fevent").val("PLAN_REQ");
  162. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "PLAN_REQ", f, "SUCCESS");
  163. }
  164. });
  165. //VP요청 2015.3.9
  166. jQuery("#btnVpApp").click(function() {
  167. var f = document.form1;
  168. jQuery("#fevent").val("CHK_VP");
  169. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "CHK_VP", f, "VALUEOBJECT");
  170. });
  171. //리스트 페이지 이동
  172. jQuery("#btnList").click(function() {
  173. jQuery("#fevent").val("");
  174. jQuery("#form1").attr("action", "/payment/purchase/PayRequestList.screen");
  175. jQuery("#form1").attr("target", "_self");
  176. jQuery("#form1").attr("method", "post");
  177. jQuery("#form1").submit();
  178. });
  179. jQuery("#btnDelete").click(function() {
  180. var f = document.form1;
  181. //필수 입력항목 check
  182. if(jQuery("#prepayId").val() == ""){
  183. alert("삭제되었습니다.");
  184. return;
  185. }
  186. //입력데이터 저장
  187. if (confirm("삭제 하시겠습니까?")) {
  188. jQuery("#fevent").val("DELETE_DATA");
  189. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "DELETE_DATA", f, "SUCCESS");
  190. }
  191. });
  192. jQuery("#btnSave").click(function() {
  193. var f = document.form1;
  194. jQuery("#fevent").val("SAVE_DATA");
  195. //필수 입력항목 check
  196. if(requiredItemsCheck() == false){
  197. return;
  198. }
  199. //2015.11.16 외화 부가세 확인 "Z99"->부가세 0
  200. var conCurCd = jQuery("#conCurCd").val();
  201. if(conCurCd != "KRW" && jQuery("#bugase").val() != "INPUT_VAT" ){ ///2019.03.21 jQuery("#proof_cd").val() != "Z99"
  202. var curReqAmt = jQuery("#curReqAmt").val().replace(/(\,|\:)/g,"");
  203. var curReqVatamt = jQuery("#curReqVatamt").val().replace(/(\,|\:)/g,"");
  204. if (Number(curReqAmt)/10 != Number(curReqVatamt) )
  205. {
  206. if (!confirm("외화 부가세 금액이 10%가 아닙니다. 저장 하시겠습니까?"))
  207. {
  208. return;
  209. }
  210. }
  211. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_DATA", f, "SUCCESS");
  212. }
  213. else
  214. {
  215. //입력데이터 저장
  216. if (confirm("저장 하시겠습니까?")) {
  217. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_DATA", f, "SUCCESS");
  218. }
  219. }
  220. });
  221. jQuery("#btnAppReq").click(function() {
  222. var f = document.form1;
  223. jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:대금신청요청
  224. jQuery("#fevent").val("SAVE_DATA");
  225. //필수 입력항목 check
  226. if(requiredItemsCheck() == false){
  227. return;
  228. }
  229. //설계평가 입력 유무
  230. if ("<%=plan_appr_yn%>" =="Y" && "<%=plan_appr_status%>" != "02") {
  231. if(!confirm('설계평가표 작성이 완료되지 않았습니다. \n계속하시겠습니까? ')){
  232. return;
  233. }
  234. }
  235. //입력데이터 저장
  236. if (confirm(jQuery("#btnText").text()+" 하시겠습니까?")) {
  237. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_DATA", f, "SUCCESS");
  238. }
  239. });
  240. //반려
  241. jQuery("#btnRejection2").click(function() {
  242. var f = document.form1;
  243. if(!confirm('업체에 반려요청 됩니다.\n계속하시겠습니까?')){
  244. return;
  245. }
  246. f.rejectDiv.value = "21";
  247. jQuery("#fevent").val("CHK_REJECT");
  248. //반려가 가능한 상태인지 확인한다.
  249. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "CHK_REJECT", f, "VALUEOBJECT");
  250. });
  251. //현장반려
  252. jQuery("#btnRejection1").click(function() {
  253. var f = document.form1;
  254. if(!confirm('반려시 데이터가 삭제됩니다.\n계속하시겠습니까?')){
  255. return;
  256. }
  257. f.rejectDiv.value = "20";
  258. jQuery("#fevent").val("CHK_REJECT");
  259. //반려가 가능한 상태인지 확인한다.
  260. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "CHK_REJECT", f, "VALUEOBJECT");
  261. });
  262. jQuery("#btnApproval").click(function() {
  263. //통화가KRW가 아니고 분계유형에 증빙종류[기타]이면 invlice고정
  264. var conCurCd = jQuery("#conCurCd").val();
  265. var proof_cd = jQuery("#proof_cd option:selected").val();
  266. if(conCurCd != "KRW"){
  267. var rateEx = Number(jQuery("#rateEx").val());
  268. //if(rateEx == 0 ){
  269. if(Number(rateEx) * 100 == 0 ){
  270. alert('환율이 없습니다.');
  271. return;
  272. }
  273. }
  274. //설계평가 입력 유무
  275. if ("<%=plan_appr_yn%>" =="Y" && "<%=plan_appr_status%>" != "02") {
  276. if(!confirm('설계평가표 작성이 완료되지 않았습니다. \n계속하시겠습니까? ')){
  277. return;
  278. }
  279. }
  280. //금회누계의 기성율이 100로 이상이면 잔금처리이므로 업체평가가 등록되 있는지 Check처리한다.
  281. var curBefAcmpPercent = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
  282. if(curBefAcmpPercent > 99.999999999){
  283. //업체평가가 등록되어 있어야 결재가 가능하다.
  284. var corpId = "<%=prePayment.get("CORP_ID")%>";
  285. var apprArrId = "<%=prePayment.get("APPR_ARR_ID")%>";
  286. var apprDocCd = "<%=prePayment.get("APPR_DOC_CD")%>";
  287. var apprDy = "<%=prePayment.get("APPR_DY")%>";
  288. var APPR_NOTE = "<%=prePayment.get("APPR_NOTE")%>";
  289. if(typeof apprArrId == "undefined" || apprArrId == "" || apprArrId == null ){ //|| Number(APPR_NOTE) < 1
  290. alert("정기평가표가 등록되어 있지 않습니다. ");
  291. //return;
  292. }
  293. }
  294. //2016.5.12 외국환거래 확인
  295. if("<%=prePayment.get("CURRENCY_GB")%>" != "KRW" && jQuery("#FOREIGN_CHK").val()=="A" ){
  296. alert("외국환거래 신고대상여부를 확인해 주세요");
  297. return;
  298. }
  299. var f = document.form1;
  300. jQuery("#fevent").val("CHK_APPVAR");
  301. //결재가 가능한 상태인지 확인한다.
  302. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "CHK_APPVAR", f, "VALUEOBJECT");
  303. });
  304. //Invoice결재
  305. jQuery("#btnInvoiceApproval").click(function() {
  306. //설계평가 입력 유무
  307. if ("<%=plan_appr_yn%>" =="Y" && "<%=plan_appr_status%>" != "02") {
  308. if(!confirm('설계평가표 작성이 완료되지 않았습니다. \n계속하시겠습니까? ')){
  309. return;
  310. }
  311. }
  312. //금회누계의 기성율이 100로 이상이면 잔금처리이므로 업체평가가 등록되 있는지 Check처리한다.
  313. var curBefAcmpPercent = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
  314. if(curBefAcmpPercent > 99.99999999){
  315. //업체평가가 등록되어 있어야 결재가 가능하다.
  316. var corpId = "<%=prePayment.get("CORP_ID")%>";
  317. var apprArrId = "<%=prePayment.get("APPR_ARR_ID")%>";
  318. var apprDocCd = "<%=prePayment.get("APPR_DOC_CD")%>";
  319. var apprDy = "<%=prePayment.get("APPR_DY")%>";
  320. var APPR_NOTE = "<%=prePayment.get("APPR_NOTE")%>";
  321. if(typeof apprArrId == "undefined" || apprArrId == "" || apprArrId == null){// || Number(APPR_NOTE) < 1
  322. alert("정기평가표가 등록되어 있지 않습니다. ");
  323. //return;
  324. }
  325. }
  326. //2016.5.12 외국환거래 확인
  327. if("<%=prePayment.get("CURRENCY_GB")%>" != "KRW" && jQuery("#FOREIGN_CHK").val()=="A" ){
  328. alert("외국환거래 신고대상여부를 확인해 주세요");
  329. return;
  330. }
  331. //2017.08.02 환율체크
  332. if("<%=prePayment.get("CURRENCY_GB")%>" != "KRW"){
  333. var rateEx = Number(jQuery("#rateEx").val());
  334. if(Number(rateEx) * 100 == 0 ){
  335. //if(rateEx == 0 ){
  336. alert('환율이 없습니다.');
  337. return;
  338. }
  339. }
  340. var f = document.form1;
  341. jQuery("#btnAppReqSelect").val("2"); //0:저장처리, 1:선급신청처리, 2:Invoice결재
  342. //필수 입력항목 check
  343. if (requiredItemsCheck() == false) {
  344. return;
  345. }
  346. var f = document.form1;
  347. jQuery("#fevent").val("CHK_APPVAR");
  348. //결재가 가능한 상태인지 확인한다.
  349. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "CHK_APPVAR", f, "VALUEOBJECT");
  350. });
  351. //2016.11.10
  352. jQuery("#curPrepayVat").blur(function () {
  353. //금회 기성 부가세,합계, 누계 부가세,합계, 잔여 부가세,합계
  354. //금회 선급공제 합계, 누계 부가세,합계, 잔여 부가세,합계
  355. //기성 curAcmpVat, curAcmpAmt / curBefAcmpVat, curBefAcmpAmt / remainderAcmpVat, remainderAcmpAmt
  356. //선급 curPrepayDeductamt / curBefPrepayVat, curBefPrepayAmt / remainderPrepayVat, remainderPrepayAmt
  357. //청구 curReqVatamt, curReqApplyamt / curPayedVat, curPayedAmt
  358. var conPrepayAmtVal = jQuery("#conPrepayAmt").val().replace(/(\,|\:)/g,""); //선급금액
  359. var conPrepayVatVal = jQuery("#reqPrepayStax").val().replace(/(\,|\:)/g,"");
  360. var conConAmtVal = jQuery("#conConAmt").val().replace(/(\,|\:)/g,""); //계약금
  361. var conConVatVal = conConAmtVal /100 * 10;
  362. if (Number(jQuery("#curBefAcmpVat").val().replace(/(\,|\:)/g,"")) == 0 ){
  363. conConVatVal = 0;
  364. }//|| Number(jQuery("#remainderAcmpVat").val().replace(/(\,|\:)/g,"")) < 0
  365. //선급공제
  366. var curPrepayDeductamt = Number(jQuery("#curPrepayApplyamt").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,"")); //선급공제합계 = 선급공급 + 선급부가
  367. var curBefPrepayVat = Number(jQuery("#befPrepayVat").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,"")); //누계선급부가세=전회부가세+금회부가세
  368. var curBefPrepayAmt = Number(jQuery("#curBefPrepaySupplyamt").val().replace(/(\,|\:)/g,"")) + Number(curBefPrepayVat); //누계합계 = 누계공급+누계부가
  369. var remainderPrepayVat = Number(conPrepayVatVal) - Number(curBefPrepayVat); //선급잔여부가세=선급부가세-누계부가세
  370. var remainderPrepayAmt = Number(jQuery("#remainderPrepaySupplyamt").val().replace(/(\,|\:)/g,"")) + Number(remainderPrepayVat); //선급잔여합계 = 잔여공급액+잔여부가세
  371. jQuery("#curPrepayDeductamt").val(curPrepayDeductamt.toFixed(g_digit));
  372. jQuery("#curBefPrepayVat").val(curBefPrepayVat.toFixed(g_digit));
  373. jQuery("#curBefPrepayAmt").val(curBefPrepayAmt.toFixed(g_digit));
  374. jQuery("#remainderPrepayVat").val(remainderPrepayVat.toFixed(g_digit));
  375. jQuery("#remainderPrepayAmt").val(remainderPrepayAmt.toFixed(g_digit));
  376. jQuery("#curPrepayDeductamt, #curBefPrepayVat, #curBefPrepayAmt, #remainderPrepayVat, #remainderPrepayAmt").each(function(index){
  377. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  378. });
  379. //기성
  380. var curAcmpVat = Number(jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curReqVatamt").val().replace(/(\,|\:)/g,"")) ; //금회부가세=선급부가세+청구부가세
  381. var curAcmpAmt= Number(jQuery("#curPrepayDeductamt").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curReqApplyamt").val().replace(/(\,|\:)/g,"")) ; //금회금액 =선급액+청구액
  382. var curBefAcmpVat = Number(jQuery("#curBefPrepayVat").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPayedVat").val().replace(/(\,|\:)/g,"")) ; //누계부가세=선급누계부가세+청구누계부가세
  383. var curBefAcmpAmt = Number(jQuery("#curBefPrepayAmt").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPayedAmt").val().replace(/(\,|\:)/g,"")) ; //누계합계=선급누계합계+청구누계합계
  384. var remainderAcmpVat = conConVatVal - Number(curBefAcmpVat); //잔여부가세 = 계약부가세-누계부가세
  385. var remainderAcmpAmt = Number(jQuery("#remainderAcmpSupplyamt").val().replace(/(\,|\:)/g,"")) + Number(remainderAcmpVat); //잔여합계=잔여공급액+잔여부가세
  386. jQuery("#curAcmpVat").val(curAcmpVat.toFixed(g_digit));
  387. jQuery("#curAcmpAmt").val(curAcmpAmt.toFixed(g_digit));
  388. jQuery("#curBefAcmpVat").val(curBefAcmpVat.toFixed(g_digit));
  389. jQuery("#curBefAcmpAmt").val(curBefAcmpAmt.toFixed(g_digit));
  390. jQuery("#remainderAcmpVat").val(remainderAcmpVat.toFixed(g_digit));
  391. jQuery("#remainderAcmpAmt").val(remainderAcmpAmt.toFixed(g_digit));
  392. jQuery("#curAcmpVat, #curAcmpAmt, #curBefAcmpVat, #curBefAcmpAmt, #remainderAcmpVat, #remainderAcmpAmt").each(function(index){
  393. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  394. });
  395. });
  396. jQuery("#curReqVatamt").blur(function () {
  397. //전회 청구
  398. var payedApplyamt = jQuery("#payedApplyamt").val().replace(/(\,|\:)/g,""); //전회 청구 공급가액
  399. var payedVat = jQuery("#payedVat").val().replace(/(\,|\:)/g,""); //전회 청구 부가세
  400. var payedAmt = jQuery("#payedAmt").val().replace(/(\,|\:)/g,""); //전회 청구 합계
  401. var curReqAmt = jQuery("#curReqAmt").val().replace(/(\,|\:)/g,"");
  402. curReqAmt = Number(curReqAmt).toFixed(g_digit);
  403. var curReqVatamt = jQuery("#curReqVatamt").val().replace(/(\,|\:)/g,"");
  404. curReqVatamt = Number(curReqVatamt).toFixed(g_digit);
  405. jQuery("#curReqVatamt").val(Number(curReqVatamt).toFixed(g_digit));
  406. var curReqApplyamtVal = Number(curReqAmt) + Number(curReqVatamt); //금회 실지급 합계
  407. jQuery("#curReqApplyamt").val(Number(curReqApplyamtVal).toFixed(g_digit));
  408. //var curPayedSupplyamt = Number(curReqAmt) - Number(payedApplyamt);
  409. //jQuery("#curPayedSupplyamt").val(Number(curPayedSupplyamt).toFixed(g_digit)); //금회누계 공급가액 청구액 금액
  410. var curPayedVat = Number(payedVat) + Number(curReqVatamt);
  411. jQuery("#curPayedVat").val(Number(curPayedVat).toFixed(g_digit)); //금회누계 부가세 청구액 금액
  412. var curPayedSupplyamt = jQuery("#curPayedSupplyamt").val().replace(/(\,|\:)/g,"");
  413. curPayedSupplyamt = Number(curPayedSupplyamt).toFixed(g_digit);
  414. var curPayedAmt = Number(curPayedSupplyamt) + Number(curPayedVat);
  415. jQuery("#curPayedAmt").val(Number(curPayedAmt).toFixed(g_digit)); //금회누계 합계 청구액 금액
  416. jQuery("#curReqVatamt, #curReqApplyamt, #curPayedVat, #curPayedAmt").each(function(index){
  417. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  418. });
  419. //2016.11.10 기성수정
  420. var conPrepayAmtVal = jQuery("#conPrepayAmt").val().replace(/(\,|\:)/g,""); //선급금액
  421. var conPrepayVatVal = jQuery("#reqPrepayStax").val().replace(/(\,|\:)/g,"");
  422. var conConAmtVal = jQuery("#conConAmt").val().replace(/(\,|\:)/g,""); //계약금
  423. var conConVatVal = conConAmtVal /100 * 10;
  424. if (Number(jQuery("#curBefAcmpVat").val().replace(/(\,|\:)/g,"")) == 0 ){
  425. conConVatVal = 0;
  426. }//|| Number(jQuery("#remainderAcmpVat").val().replace(/(\,|\:)/g,"")) < 0
  427. //선급공제
  428. var curPrepayDeductamt = Number(jQuery("#curPrepayApplyamt").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,"")); //선급공제합계 = 선급공급 + 선급부가
  429. var curBefPrepayVat = Number(jQuery("#befPrepayVat").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,"")); //누계선급부가세=전회부가세+금회부가세
  430. var curBefPrepayAmt = Number(jQuery("#curBefPrepaySupplyamt").val().replace(/(\,|\:)/g,"")) + Number(curBefPrepayVat); //누계합계 = 누계공급+누계부가
  431. var remainderPrepayVat = Number(conPrepayVatVal) - Number(curBefPrepayVat); //선급잔여부가세=선급부가세-누계부가세
  432. var remainderPrepayAmt = Number(jQuery("#remainderPrepaySupplyamt").val().replace(/(\,|\:)/g,"")) + Number(remainderPrepayVat); //선급잔여합계 = 잔여공급액+잔여부가세
  433. jQuery("#curPrepayDeductamt").val(curPrepayDeductamt.toFixed(g_digit));
  434. jQuery("#curBefPrepayVat").val(curBefPrepayVat.toFixed(g_digit));
  435. jQuery("#curBefPrepayAmt").val(curBefPrepayAmt.toFixed(g_digit));
  436. jQuery("#remainderPrepayVat").val(remainderPrepayVat.toFixed(g_digit));
  437. jQuery("#remainderPrepayAmt").val(remainderPrepayAmt.toFixed(g_digit));
  438. jQuery("#curPrepayDeductamt, #curBefPrepayVat, #curBefPrepayAmt, #remainderPrepayVat, #remainderPrepayAmt").each(function(index){
  439. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  440. });
  441. //기성
  442. var curAcmpVat = Number(jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curReqVatamt").val().replace(/(\,|\:)/g,"")) ; //금회부가세=선급부가세+청구부가세
  443. var curAcmpAmt= Number(jQuery("#curPrepayDeductamt").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curReqApplyamt").val().replace(/(\,|\:)/g,"")) ; //금회금액 =선급액+청구액
  444. var curBefAcmpVat = Number(jQuery("#curBefPrepayVat").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPayedVat").val().replace(/(\,|\:)/g,"")) ; //누계부가세=선급누계부가세+청구누계부가세
  445. var curBefAcmpAmt = Number(jQuery("#curBefPrepayAmt").val().replace(/(\,|\:)/g,"")) + Number(jQuery("#curPayedAmt").val().replace(/(\,|\:)/g,"")) ; //누계합계=선급누계합계+청구누계합계
  446. var remainderAcmpVat = conConVatVal - Number(curBefAcmpVat); //잔여부가세 = 계약부가세-누계부가세
  447. var remainderAcmpAmt = Number(jQuery("#remainderAcmpSupplyamt").val().replace(/(\,|\:)/g,"")) + Number(remainderAcmpVat); //잔여합계=잔여공급액+잔여부가세
  448. jQuery("#curAcmpVat").val(curAcmpVat.toFixed(g_digit));
  449. jQuery("#curAcmpAmt").val(curAcmpAmt.toFixed(g_digit));
  450. jQuery("#curBefAcmpVat").val(curBefAcmpVat.toFixed(g_digit));
  451. jQuery("#curBefAcmpAmt").val(curBefAcmpAmt.toFixed(g_digit));
  452. jQuery("#remainderAcmpVat").val(remainderAcmpVat.toFixed(g_digit));
  453. jQuery("#remainderAcmpAmt").val(remainderAcmpAmt.toFixed(g_digit));
  454. jQuery("#curAcmpVat, #curAcmpAmt, #curBefAcmpVat, #curBefAcmpAmt, #remainderAcmpVat, #remainderAcmpAmt").each(function(index){
  455. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  456. });
  457. });
  458. //jQuery("#curAcmpVat, #curPrepayApplyamt, #curPrepayVat").blur(function () {
  459. //2018.3.26 선급부가세 수정. 0이면 잔금
  460. jQuery("#curPrepayVat").blur(function () {
  461. //잔여가 0이면 잔금으로 설정
  462. //setDepostiCd(); //2019.08.02 사용자가 선택 후 아래에서 금액 변경 시 자동으로 바뀌면서 혼란이 생김
  463. //하자이행율이 100%이상이면 보증정보 표시
  464. setGuarOutList();
  465. });
  466. jQuery("#curPrepayApplyamt").blur(function () {
  467. if(jQuery("#statusCd").val() == "10"){ //완료건에 대해서는 금액 계산을 하지않는다.
  468. return;
  469. }
  470. //2016.11.9 기존 기성금액 고정. 청구액 변경-->청구액 고정. 기성금액 합산
  471. var tmp1 = jQuery("#curPrepayApplyamt").val().replace(/(\,|\:)/g,"");
  472. var tmp2 = jQuery("#curReqAmt").val().replace(/(\,|\:)/g,"");
  473. var tmp1 = Number(tmp1) + Number(tmp2);
  474. jQuery("#curAcmpApplyamt").val(tmp1.toFixed(g_digit));
  475. jQuery("#curAcmpApplyamt").each(function(index){
  476. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  477. });
  478. var conConAmtVal = jQuery("#conConAmt").val().replace(/(\,|\:)/g,""); //계약금
  479. var conConVatVal = conConAmtVal /100 * 10; //계약금 부가세 2016.5.25
  480. if (Number(jQuery("#curBefAcmpVat").val().replace(/(\,|\:)/g,"")) == 0 ){
  481. conConVatVal = 0;
  482. }
  483. var conPrepayAmtVal = jQuery("#conPrepayAmt").val().replace(/(\,|\:)/g,""); //선급금액
  484. var conPrepayVatVal = jQuery("#reqPrepayStax").val().replace(/(\,|\:)/g,""); //선급금액 부가세 2016.5.25 선급부가세 계산 수정 conPrepayAmtVal /100 * 10;
  485. //전회 청구
  486. var befAcmpApplyAmtVal = jQuery("#befAcmpApplyAmt").val().replace(/(\,|\:)/g,""); //전회 청구 공급가액
  487. var befAcmpVatVal = jQuery("#befAcmpVat").val().replace(/(\,|\:)/g,""); //전회 청구 부가세
  488. var befAcmpAmtVal = jQuery("#befAcmpAmt").val().replace(/(\,|\:)/g,""); //전회 청구 합계
  489. var befAcmpPercentVal = jQuery("#befAcmpPercent").val().replace(/(\,|\:)/g,""); //전회 청구 지급율
  490. var curAcmpApplyamtVal = jQuery("#curAcmpApplyamt").val().replace(/(\,|\:)/g,""); //금회 청구 공급가액
  491. var befPrepayApplyAmtVal = jQuery("#befPrepayApplyAmt").val().replace(/(\,|\:)/g,""); //전회 선급 공급가액
  492. //금회 선급
  493. var curPrepayApplyamtVal = jQuery("#curPrepayApplyamt").val().replace(/(\,|\:)/g,""); //금회 선급 공급가액
  494. var curPrepayApplyamtVal = Number(curPrepayApplyamtVal).toFixed(g_digit); //금회 선급 공급가액
  495. var curBefPrepaySupplyamtVal = Number(befPrepayApplyAmtVal) + Number(curPrepayApplyamtVal); //누계 선급 공급가액
  496. var curBefPrepaySupplyamtVal = Number(curBefPrepaySupplyamtVal).toFixed(g_digit); //누계 선급 공급가액
  497. if(curPrepayApplyamtVal == ""){
  498. curPrepayApplyamtVal = 0;
  499. jQuery("#curPrepayApplyamt").val(0);
  500. }else{
  501. var reqPrepaySamtVal = jQuery("#reqPrepaySamt").val().replace(/(\,|\:)/g,""); //선급금 청구금액 공급가
  502. if(parseFloat(curBefPrepaySupplyamtVal) > parseFloat(reqPrepaySamtVal) ){
  503. alert("선급금 청구금액 공급가 보다 선급금공제액이 큽니다.");
  504. curPrepayApplyamtVal = jQuery("#orgCurPrepayApplyamt").val();
  505. jQuery("#curPrepayApplyamt").val(Number(curPrepayApplyamtVal).toFixed(g_digit));
  506. jQuery("#curPrepayApplyamt").focus();
  507. return;
  508. }else{
  509. if(parseFloat(curPrepayApplyamtVal) > parseFloat(curAcmpApplyamtVal) ){ //입력한 선급금공제금액이 금회기성고공급가액보다 클수 없다.
  510. alert("선급금 공제액이 금회 기성고보다 큽니다.");
  511. curPrepayApplyamtVal = jQuery("#orgCurPrepayApplyamt").val();
  512. jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal);
  513. jQuery("#curPrepayApplyamt").focus();
  514. }else{
  515. jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal); //입력한 선급금공제 금회 공급가액 표시
  516. if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
  517. var bugaseVal = curAcmpApplyamtVal / 100 * 10;
  518. //jQuery("#curAcmpVat").val(Math.floor(bugaseVal)); //기성고 금회 부가세
  519. jQuery("#curAcmpVat").val(Number(bugaseVal).toFixed(g_digit)); //기성고 금회 부가세
  520. var bugaseVatVal = curPrepayApplyamtVal / 100 * 10;
  521. //jQuery("#curPrepayVat").val(Math.floor(bugaseVatVal)); //선급금공제 금회 부가세
  522. jQuery("#curPrepayVat").val(Number(bugaseVatVal).toFixed(g_digit)); //선급금공제 금회 부가세
  523. }else{
  524. jQuery("#curAcmpVat").val("0"); //기성고 금회 부가세
  525. jQuery("#curPrepayVat").val("0"); //선급금공제 금회 부가세
  526. }
  527. }
  528. }
  529. }
  530. //금회 청구
  531. var curAcmpVatVal = jQuery("#curAcmpVat").val().replace(/(\,|\:)/g,""); //금회 청구 부가세
  532. if(curAcmpVatVal == ""){
  533. curAcmpVatVal = 0;
  534. jQuery("#curAcmpVat").val(0);
  535. }else{
  536. jQuery("#curAcmpVat").val(Number(curAcmpVatVal).toFixed(g_digit));
  537. }
  538. var curAcmpAmtVal = Number(curAcmpApplyamtVal) + Number(curAcmpVatVal); //금회 청구 합계
  539. curAcmpAmtVal = Number(curAcmpAmtVal).toFixed(g_digit);
  540. jQuery("#curAcmpAmt").val(curAcmpAmtVal);
  541. jQuery("#curAcmpAmt, #curAcmpVat").each(function(index){
  542. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  543. });
  544. var curAcmpPercentVal = Number(curAcmpApplyamtVal) / Number(conConAmtVal) * 100; //금회 청구 지급율
  545. jQuery("#curAcmpPercent").val(curAcmpPercentVal.toFixed(1));
  546. //누계 청구
  547. var curBefAcmpSupplyamtVal = Number(befAcmpApplyAmtVal) + Number(curAcmpApplyamtVal); //누계 청구 공급가액
  548. jQuery("#curBefAcmpSupplyamt").val(Number(curBefAcmpSupplyamtVal).toFixed(g_digit));
  549. var curBefAcmpVatVal = Number(befAcmpVatVal) + Number(curAcmpVatVal); //누계 청구 부가세
  550. jQuery("#curBefAcmpVat").val(Number(curBefAcmpVatVal).toFixed(g_digit));
  551. var curBefAcmpAmtVal = Number(curBefAcmpSupplyamtVal) + Number(curBefAcmpVatVal); //누계 청구 합계
  552. jQuery("#curBefAcmpAmt").val(Number(curBefAcmpAmtVal).toFixed(g_digit));
  553. var curBefAcmpPercentVal = Number(curBefAcmpSupplyamtVal) / Number(conConAmtVal) * 100; //누계 청구 지급율
  554. jQuery("#curBefAcmpPercent").val(curBefAcmpPercentVal.toFixed(1));
  555. jQuery("#curBefAcmpSupplyamt, #curBefAcmpVat, #curBefAcmpAmt").each(function(index){
  556. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  557. });
  558. //잔여 청구
  559. //2016.11.15추가
  560. if (Number(jQuery("#curBefAcmpVat").val().replace(/(\,|\:)/g,"")) == 0 ){
  561. conConVatVal = 0;
  562. }
  563. var remainderAcmpSupplyamtVal = Number(conConAmtVal) - Number(curBefAcmpSupplyamtVal); //잔여 청구 공급가액
  564. jQuery("#remainderAcmpSupplyamt").val(Number(remainderAcmpSupplyamtVal).toFixed(g_digit));
  565. var remainderAcmpVatVal = Number(conConVatVal) - Number(curBefAcmpVatVal); //잔여 청구 부가세
  566. jQuery("#remainderAcmpVat").val(Number(remainderAcmpVatVal).toFixed(g_digit));
  567. var remainderAcmpAmtVal = Number(remainderAcmpSupplyamtVal) + Number(remainderAcmpVatVal); //잔여 청구 합계
  568. jQuery("#remainderAcmpAmt").val(Number(remainderAcmpAmtVal).toFixed(g_digit));
  569. var remainderAcmpPercentVal = Number(remainderAcmpSupplyamtVal) / Number(conConAmtVal) * 100; //누계 청구 지급율
  570. jQuery("#remainderAcmpPercent").val(remainderAcmpPercentVal.toFixed(1));
  571. jQuery("#remainderAcmpSupplyamt, #remainderAcmpVat, #remainderAcmpAmt").each(function(index){
  572. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  573. });
  574. //전회 선급
  575. var befPrepayVatVal = jQuery("#befPrepayVat").val().replace(/(\,|\:)/g,""); //전회 선급 부가세
  576. var befPrepayAmtVal = jQuery("#befPrepayAmt").val().replace(/(\,|\:)/g,""); //전회 선급 합계
  577. var befPrepayPercentVal = jQuery("#befPrepayPercent").val().replace(/(\,|\:)/g,""); //전회 선급 지급율
  578. var curPrepayVatVal = jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,""); //금회 선급 부가세
  579. if(curPrepayVatVal == ""){
  580. curPrepayVatVal = 0;
  581. jQuery("#curPrepayVat").val(0);
  582. }else{
  583. jQuery("#curPrepayVat").val(Number(curPrepayVatVal).toFixed(g_digit));
  584. }
  585. var curPrepayDeductamtVal = Number(curPrepayApplyamtVal) + Number(curPrepayVatVal); //금회 선급 합계
  586. jQuery("#curPrepayDeductamt").val(Number(curPrepayDeductamtVal).toFixed(g_digit));
  587. if(parseFloat(curPrepayApplyamtVal) == "0"){
  588. var curPrepayPercentVal = 0.0; //금회 선급 지급율
  589. }else{
  590. var curPrepayPercentVal = Number(curPrepayApplyamtVal) / Number(conPrepayAmtVal) * 100; //금회 선급 지급율
  591. }
  592. jQuery("#curPrepayPercent").val(curPrepayPercentVal.toFixed(1));
  593. jQuery("#curPrepayApplyamt, #curPrepayVat, #curPrepayDeductamt").each(function(index){
  594. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  595. });
  596. //누계 선급
  597. jQuery("#curBefPrepaySupplyamt").val(Number(curBefPrepaySupplyamtVal).toFixed(g_digit));
  598. var curBefPrepayVatVal = Number(befPrepayVatVal) + Number(curPrepayVatVal); //누계 선급 부가세
  599. jQuery("#curBefPrepayVat").val(Number(curBefPrepayVatVal).toFixed(g_digit));
  600. var curBefPrepayAmtVal = Number(befPrepayAmtVal) + Number(curPrepayDeductamtVal); //누계 청구 합계
  601. jQuery("#curBefPrepayAmt").val(Number(curBefPrepayAmtVal).toFixed(g_digit));
  602. if(parseFloat(curBefPrepaySupplyamtVal) == "0"){
  603. var curBefPrepayPercentVal = 0.0; //누계 선급 지급율
  604. }else{
  605. var curBefPrepayPercentVal = Number(curBefPrepaySupplyamtVal) / Number(conPrepayAmtVal) * 100; //누계 선급 지급율
  606. }
  607. jQuery("#curBefPrepayPercent").val(curBefPrepayPercentVal.toFixed(1));
  608. jQuery("#curBefPrepaySupplyamt, #curBefPrepayVat, #curBefPrepayAmt").each(function(index){
  609. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  610. });
  611. //잔여 선급
  612. var remainderPrepaySupplyamtVal = Number(conPrepayAmtVal) - Number(curBefPrepaySupplyamtVal); //잔여 선급 공급가액
  613. jQuery("#remainderPrepaySupplyamt").val(Number(remainderPrepaySupplyamtVal).toFixed(g_digit));
  614. var remainderPrepayVatVal = Number(conPrepayVatVal) - Number(curBefPrepayVatVal); //잔여 선급 부가세
  615. jQuery("#remainderPrepayVat").val(Number(remainderPrepayVatVal).toFixed(g_digit));
  616. var remainderPrepayAmtVal = Number(remainderPrepaySupplyamtVal) + Number(remainderPrepayVatVal); //잔여 선급 합계
  617. jQuery("#remainderPrepayAmt").val(Number(remainderPrepayAmtVal).toFixed(g_digit));
  618. if(parseFloat(remainderPrepaySupplyamtVal) == "0"){
  619. var remainderPrepayPercentVal = 0.0; //잔여 선급 지급율
  620. }else{
  621. var remainderPrepayPercentVal = Number(remainderPrepaySupplyamtVal) / Number(conPrepayAmtVal) * 100; //잔여 선급 지급율
  622. }
  623. jQuery("#remainderPrepayPercent").val(remainderPrepayPercentVal.toFixed(1));
  624. jQuery("#remainderPrepaySupplyamt, #remainderPrepayVat, #remainderPrepayAmt").each(function(index){
  625. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  626. });
  627. //전회 실지급
  628. var payedApplyamtVal = Number(befAcmpApplyAmtVal) - Number(befPrepayApplyAmtVal); //전회 실지급 공급가액
  629. jQuery("#payedApplyamt").val(Number(payedApplyamtVal).toFixed(g_digit));
  630. var payedVatVal = Number(befAcmpVatVal) - Number(befPrepayVatVal); //전회 실지급 부가세
  631. jQuery("#payedVat").val(Number(payedVatVal).toFixed(g_digit));
  632. var payedAmtVal = Number(payedApplyamtVal) + Number(payedVatVal); //전회 실지급 합계
  633. jQuery("#payedAmt").val(Number(payedAmtVal).toFixed(g_digit));
  634. var payedPercentVal = Number(payedApplyamtVal) / Number(conConAmtVal) * 100; //전회 실지급 지급율
  635. jQuery("#payedPercent").val(payedPercentVal.toFixed(1));
  636. jQuery("#payedApplyamt, #payedVat, #payedAmt").each(function(index){
  637. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  638. });
  639. //금회 실지급
  640. var curReqAmtVal = Number(curAcmpApplyamtVal) - Number(curPrepayApplyamtVal); //금회 실지급 공급가액
  641. jQuery("#curReqAmt").val(Number(curReqAmtVal).toFixed(g_digit));
  642. //var curReqVatamtVal = parseFloat(curAcmpVatVal) - parseFloat(curPrepayVatVal); //금회 실지급 부가세
  643. if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
  644. var curReqVatamtVal = curReqAmtVal / 100 * 10; //금회 실지급 부가세
  645. }else{
  646. var curReqVatamtVal = 0; //금회 실지급 부가세
  647. }
  648. jQuery("#curReqVatamt").val(Number(curReqVatamtVal).toFixed(g_digit));
  649. var curReqApplyamtVal = Number(curReqAmtVal) + Number(curReqVatamtVal); //금회 실지급 합계
  650. jQuery("#curReqApplyamt").val(Number(curReqApplyamtVal).toFixed(g_digit));
  651. var curReqPercentVal = Number(curReqAmtVal) / Number(conConAmtVal) * 100; //금회 실지급 지급율
  652. jQuery("#curReqPercent").val(curReqPercentVal.toFixed(1));
  653. jQuery("#curReqAmt, #curReqVatamt, #curReqApplyamt").each(function(index){
  654. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  655. });
  656. //누계 실지급
  657. var curPayedSupplyamtVal = Number(curBefAcmpSupplyamtVal) - Number(curBefPrepaySupplyamtVal); //누계 실지급 공급가액
  658. jQuery("#curPayedSupplyamt").val(Number(curPayedSupplyamtVal).toFixed(g_digit));
  659. var curPayedVatVal = Number(curBefAcmpVatVal) - Number(curBefPrepayVatVal); //누계 실지급 부가세
  660. jQuery("#curPayedVat").val(Number(curPayedVatVal).toFixed(g_digit));
  661. var curPayedAmtVal = Number(curPayedSupplyamtVal) + Number(curPayedVatVal); //누계 실지급 합계
  662. jQuery("#curPayedAmt").val(Number(curPayedAmtVal).toFixed(g_digit));
  663. var curPayedPercentVal = Number(curPayedSupplyamtVal) / Number(conConAmtVal) * 100; //누계 실지급 지급율
  664. jQuery("#curPayedPercent").val(curPayedPercentVal.toFixed(1));
  665. jQuery("#curPayedSupplyamt, #curPayedVat, #curPayedAmt").each(function(index){
  666. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  667. });
  668. //잔여 실지급
  669. var remainderSupplyamtVal = Number(remainderAcmpSupplyamtVal) - Number(remainderPrepaySupplyamtVal); //잔여 실지급 공급가액
  670. jQuery("#remainderSupplyamt").val(Number(remainderSupplyamtVal).toFixed(g_digit));
  671. var remainderVatVal = Number(remainderAcmpVatVal) - Number(remainderPrepayVatVal); //잔여 실지급 부가세
  672. jQuery("#remainderVat").val(Number(remainderVatVal).toFixed(g_digit));
  673. var remainderAmtVal = Number(remainderSupplyamtVal) + Number(remainderVatVal); //잔여 실지급 합계
  674. jQuery("#remainderAmt").val(Number(remainderAmtVal).toFixed(g_digit));
  675. var remainderPercentVal = Number(remainderSupplyamtVal) / Number(conConAmtVal) * 100; //잔여 실지급 지급율
  676. jQuery("#remainderPercent").val(remainderPercentVal.toFixed(1));
  677. jQuery("#remainderSupplyamt, #remainderVat, #remainderAmt").each(function(index){
  678. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  679. });
  680. //잔여가 0이면 잔금으로 설정
  681. //setDepostiCd(); //2019.08.02 사용자가 선택 후 아래에서 금액 변경 시 자동으로 바뀌면서 혼란이 생김
  682. //하자이행율이 100%이상이면 보증정보 표시
  683. setGuarOutList();
  684. });
  685. //보증정보팝업 호출
  686. jQuery("#contOutWarr").click(function() {
  687. if(jQuery("#prepayId").val() == ""){
  688. alert("데이터를 저장 후, 보증정보를 입력할 수가 있습니다.");
  689. return;
  690. }
  691. var param = "";
  692. var param = "?subContModId=" + jQuery("#subContModId").val();
  693. var param = param + "&warrGubun=3";
  694. //var param = param + "&warrSeq=" + jQuery("#warrSeq").val();
  695. var param = param + "&warrSeq=1";
  696. var url = "/payment/outside/ContOutWarrPopup.screen"+param;
  697. result = window.showModalDialog(url,'contOutWarr','dialogWidth:550px;dialogHeight:540px;center:yes;help:no;status:no;scroll:no;resizable:no');
  698. callback_getContWarr();
  699. });
  700. jQuery("#btnContCopy").click(function () {
  701. var f = document.form1;
  702. submitXmlRequest("/payment/purchase/PayItemResult_form.screen", "SAVE_CONT_COPY_FILE", f);
  703. });
  704. pageinit();
  705. }
  706. //페이지 초기처리
  707. function pageinit(){
  708. //대금신청(신청상태)
  709. //setAmountData();
  710. //작성일자(증빙일자)
  711. seTaxDate();
  712. //신청구분 선택불가
  713. //appDivSet();
  714. //입력항목 초기처리
  715. //inputDataSet();
  716. //발행방법에 따른 페이지 셋팅
  717. taxDataSet();
  718. //버튼표시 셋팅
  719. btnCtr();
  720. //상태에 따른 입력항목 readOnly
  721. inputReadOnlyset();
  722. getFileListForTextarea();
  723. //하자이행보증정보 view유무
  724. setGuarOutList();
  725. //Vender Print 초기처리
  726. setVenderPrintInit();
  727. }
  728. function setGuarOutList(){
  729. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  730. var preFundRateValue = Number(jQuery("#befAcmpPercent").val()); //전회 누계기성율
  731. //var preFundRateValue = 90; //전회 누계기성율
  732. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  733. var totFundRateValue = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
  734. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  735. var acmpNoValue = jQuery("#depositSeq").val(); //지급차수
  736. if(Number(checkRate1) > 100){
  737. jQuery('#warr1').show();
  738. jQuery('#warr2').show();
  739. }else if(Number(checkRate2) > 100){
  740. jQuery('#warr1').show();
  741. jQuery('#warr2').show();
  742. }else{
  743. jQuery('#warr1').hide();
  744. jQuery('#warr2').hide();
  745. }
  746. }
  747. //신청대상일때 계약선급금액을 선급신청금액에 초기 입력한다.
  748. function setAmountData() {
  749. if(jQuery("#statusCd").val() == "00"){ //신청대상
  750. var subPrepaySupplyTamtValue = jQuery("#subPrepaySupplyTamt").val(); //계약 선급금액
  751. jQuery("#reqPrepaySupplyTamt").val(subPrepaySupplyTamtValue); //선급 신청금액
  752. var subPrepaySupplyNamtValue = jQuery("#subPrepaySupplyNamt").val(); //계약 면세금액
  753. jQuery("#reqPrepaySupplyNamt").val(subPrepaySupplyNamtValue); //선급 면세금액
  754. }
  755. }
  756. function appDivSet() {
  757. jQuery("#perpayReqDiv").attr("disabled", true);
  758. jQuery("#reqPrepaySupplyTamt, #reqPrepaySupplyNamt").blur();
  759. }
  760. function seTaxDate(){
  761. var newDay = new Date( get_year(), get_month(), "");
  762. var lastDay = newDay.getDate();
  763. var yyyymmdd = get_year() +'-'+ get_month() +"-"+ lastDay;
  764. if(jQuery('#date1').val() == ""){
  765. jQuery('#date1').val(yyyymmdd);
  766. }
  767. jQuery('#lastDate').val(yyyymmdd);
  768. }
  769. function btnCtr(){
  770. var radioCheck = jQuery(':radio[name="chk_info"]:checked').val(); //세금계산서 발행방법
  771. if(radioCheck == "3"){ //Invoice
  772. if(jQuery("#statusCd").val() == "05" || jQuery("#statusCd").val() == "99"){
  773. jQuery("#spanBtnSave").show();
  774. jQuery("#spanBtnDelete").hide();
  775. jQuery("#spanBtnAppReq").hide();
  776. jQuery("#spanBtnApproval").hide();
  777. jQuery("#spanBtnInvoiceApproval").show();
  778. jQuery("#spanBtnRejection1").show();
  779. jQuery("#spanBtnRejection2").hide();
  780. jQuery("#spanBtnList").show();
  781. jQuery("#spanTaxSave").hide();
  782. }else {
  783. jQuery("#spanBtnSave").hide();
  784. jQuery("#spanBtnDelete").hide();
  785. jQuery("#spanBtnAppReq").hide();
  786. jQuery("#spanBtnApproval").hide();
  787. jQuery("#spanBtnInvoiceApproval").hide();
  788. jQuery("#spanBtnRejection1").hide();
  789. jQuery("#spanBtnRejection2").hide();
  790. jQuery("#spanBtnList").show();
  791. jQuery("#spanTaxSave").hide();
  792. }
  793. }else{
  794. if(jQuery("#statusCd").val() == "00"){ //00:신청대상는 목록, 삭제, 저장 표시
  795. jQuery("#spanBtnList").show();
  796. jQuery("#spanBtnDelete").hide();
  797. jQuery("#spanBtnSave").show();
  798. jQuery("#spanBtnRejection2").hide();
  799. jQuery("#spanBtnApproval").hide();
  800. jQuery("#spanBtnInvoiceApproval").hide();
  801. jQuery("#spanBtnAppReq").hide();
  802. jQuery("#spanGubSave").hide();
  803. jQuery("#spanTaxSave").hide();
  804. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  805. //jQuery("#purSuppFixAppr").show();
  806. }
  807. if(jQuery("#statusCd").val() == "01"){ //01:작성상태는 목록, 삭제, 저장, 대금신청요청 표시
  808. jQuery("#spanBtnList").show();
  809. jQuery("#spanBtnDelete").hide();
  810. jQuery("#spanBtnSave").show();
  811. jQuery("#spanBtnRejection1").hide();
  812. jQuery("#spanBtnRejection2").hide();
  813. jQuery("#spanBtnApproval").hide();
  814. jQuery("#spanBtnInvoiceApproval").hide();
  815. jQuery("#spanBtnAppReq").show();
  816. jQuery("#spanGubSave").hide();
  817. jQuery("#spanTaxSave").hide();
  818. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  819. //jQuery("#purSuppFixAppr").show();
  820. }
  821. if(jQuery("#statusCd").val() == "02"){ //02:대금요청상태는 목록, 삭제, 저장, 대금신청요청 표시
  822. jQuery("#spanBtnList").show();
  823. jQuery("#spanBtnDelete").hide();
  824. jQuery("#spanBtnSave").hide();
  825. jQuery("#spanBtnRejection1").show();
  826. jQuery("#spanBtnRejection2").hide();
  827. jQuery("#spanBtnApproval").hide();
  828. if(radioCheck == "1"){
  829. jQuery("#spanBtnInvoiceApproval").hide(); //추후 숨김으로
  830. }else{
  831. jQuery("#spanBtnInvoiceApproval").show(); //추후 숨김으로
  832. }
  833. jQuery("#spanBtnAppReq").hide();
  834. jQuery("#spanGubSave").hide();
  835. jQuery("#spanTaxSave").hide();
  836. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  837. //jQuery("#purSuppFixAppr").show();
  838. }
  839. if(jQuery("#statusCd").val() == "03"){ //03:대금신청상태는 목록, 반려, 결재
  840. jQuery("#spanBtnList").show();
  841. jQuery("#spanBtnDelete").hide();
  842. jQuery("#spanBtnSave").hide();
  843. jQuery("#spanBtnRejection1").show();
  844. jQuery("#spanBtnRejection2").hide();
  845. jQuery("#spanBtnApproval").hide();
  846. if( jQuery("#vpYN").val() == 'N' ){
  847. jQuery("#spanBtnApproval").show(); //추후 숨김으로
  848. jQuery("#spanBtnRejection2").show(); //추후 숨김으로
  849. }else {
  850. jQuery("#spanBtnApproval").hide(); //추후 숨김으로
  851. jQuery("#spanBtnRejection2").hide(); //추후 숨김으로
  852. }
  853. jQuery("#spanBtnAppReq").hide();
  854. jQuery("#spanGubSave").show();
  855. jQuery("#spanTaxSave").show();
  856. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  857. //jQuery("#purSuppFixAppr").show();
  858. }
  859. if(jQuery("#statusCd").val() == "04"){ //04:결재중상태는 목록
  860. jQuery("#spanBtnList").show();
  861. jQuery("#spanBtnDelete").hide();
  862. jQuery("#spanBtnSave").hide();
  863. jQuery("#spanBtnRejection1").hide();
  864. jQuery("#spanBtnRejection2").hide();
  865. jQuery("#spanBtnApproval").hide();
  866. jQuery("#spanBtnInvoiceApproval").hide();
  867. jQuery("#spanBtnAppReq").hide();
  868. jQuery("#spanGubSave").hide();
  869. jQuery("#spanTaxSave").hide();
  870. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  871. //jQuery("#purSuppFixAppr").show();
  872. }
  873. if(jQuery("#statusCd").val() == "05"){ //05:현장신청 : 현장결재 완료된 상태. SAVE버튼 보여야 함.
  874. jQuery("#spanBtnList").show();
  875. if(radioCheck == "2"){ //순발행
  876. if( jQuery("#vpYN").val() == 'N' ){
  877. jQuery("#spanBtnDelete").hide();
  878. jQuery("#spanBtnSave").show();
  879. jQuery("#spanBtnApproval").show(); //2015.3.9 추후 숨김으로
  880. jQuery("#spanBtnRejection2").hide(); //추후 숨김으로
  881. jQuery("#spanBtnAppReq").show();
  882. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  883. }else{
  884. jQuery("#spanBtnDelete").hide();
  885. jQuery("#spanBtnSave").show(); //2015.3.6 수정
  886. jQuery("#spanBtnApproval").hide(); //수정 추후 숨김으로
  887. jQuery("#spanBtnRejection2").hide(); //추후 숨김으로
  888. jQuery("#spanBtnAppReq").hide(); //2015.3.6
  889. jQuery("#spanBtnVpApp").show(); //2015.3.9
  890. }
  891. }else{ //역발행
  892. jQuery("#spanBtnDelete").hide();
  893. jQuery("#spanBtnSave").show(); //2015.3.6 수정
  894. jQuery("#spanBtnAppReq").show();
  895. jQuery("#spanBtnApproval").hide(); //추후 숨김으로
  896. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  897. }
  898. jQuery("#spanBtnRejection1").show();
  899. if(radioCheck == "1"){
  900. jQuery("#spanBtnInvoiceApproval").hide(); //추후 숨김으로
  901. }else{
  902. jQuery("#spanBtnInvoiceApproval").hide(); //추후 숨김으로
  903. }
  904. jQuery("#spanGubSave").hide();
  905. jQuery("#spanTaxSave").hide();
  906. //jQuery("#purSuppFixAppr").show();
  907. }
  908. if(jQuery("#statusCd").val() == "10"){ //10:결재완료상태는 목록
  909. jQuery("#spanBtnList").show();
  910. jQuery("#spanBtnDelete").hide();
  911. jQuery("#spanBtnSave").hide();
  912. jQuery("#spanBtnRejection1").hide();
  913. jQuery("#spanBtnRejection2").hide();
  914. jQuery("#spanBtnApproval").hide();
  915. jQuery("#spanBtnInvoiceApproval").hide();
  916. jQuery("#spanBtnAppReq").hide();
  917. jQuery("#spanGubSave").hide();
  918. jQuery("#spanTaxSave").hide();
  919. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  920. //jQuery("#purSuppFixAppr").show();
  921. }
  922. if(jQuery("#statusCd").val() == "40"){ //40:VP심사중
  923. jQuery("#spanBtnList").show();
  924. jQuery("#spanBtnDelete").hide();
  925. jQuery("#spanBtnSave").hide();
  926. jQuery("#spanBtnRejection1").hide();
  927. jQuery("#spanBtnRejection2").hide();
  928. jQuery("#spanBtnApproval").hide();
  929. jQuery("#spanBtnInvoiceApproval").hide();
  930. jQuery("#spanBtnAppReq").hide();
  931. jQuery("#spanGubSave").show();
  932. jQuery("#spanTaxSave").show();
  933. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  934. //jQuery("#purSuppFixAppr").show();
  935. }
  936. if(jQuery("#statusCd").val() == "50"){ //50:VP반려
  937. jQuery("#spanBtnList").show();
  938. jQuery("#spanBtnDelete").hide();
  939. jQuery("#spanBtnSave").hide();
  940. jQuery("#spanBtnRejection1").show(); //2015.3.10
  941. jQuery("#spanBtnRejection2").hide();
  942. jQuery("#spanBtnApproval").hide();
  943. jQuery("#spanBtnInvoiceApproval").hide();
  944. jQuery("#spanBtnAppReq").show();
  945. jQuery("#spanGubSave").show();
  946. jQuery("#spanTaxSave").show();
  947. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  948. //jQuery("#purSuppFixAppr").show();
  949. }
  950. if(jQuery("#statusCd").val() == "60"){ //60:VP승인
  951. jQuery("#spanBtnList").show();
  952. jQuery("#spanBtnDelete").hide();
  953. jQuery("#spanBtnSave").hide();
  954. jQuery("#spanBtnRejection1").hide();
  955. jQuery("#spanBtnRejection2").show();
  956. jQuery("#spanBtnApproval").show();
  957. jQuery("#spanBtnInvoiceApproval").hide();
  958. jQuery("#spanBtnAppReq").hide();
  959. jQuery("#spanGubSave").show();
  960. jQuery("#spanTaxSave").show();
  961. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  962. //jQuery("#purSuppFixAppr").show();
  963. }
  964. if(jQuery("#statusCd").val() == "98"){ //98:현장반려
  965. jQuery("#spanBtnList").show();
  966. jQuery("#spanBtnDelete").hide();
  967. jQuery("#spanBtnSave").hide(); //2015.3.9
  968. jQuery("#spanBtnRejection1").hide();
  969. jQuery("#spanBtnRejection2").hide();
  970. jQuery("#spanBtnApproval").hide();
  971. jQuery("#spanBtnInvoiceApproval").hide();
  972. jQuery("#spanBtnAppReq").hide();
  973. jQuery("#spanGubSave").hide();
  974. jQuery("#spanTaxSave").hide();
  975. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  976. //jQuery("#purSuppFixAppr").hide();
  977. }
  978. if(jQuery("#statusCd").val() == "99"){ //99:반려상태는 목록, 삭제, 저장, 대금신청요청 표시
  979. jQuery("#spanBtnList").show();
  980. jQuery("#spanBtnDelete").hide();
  981. //2015.9.3
  982. if (radioCheck == "2" && jQuery("#vpYN").val() == 'N' ) //순발행. VP없으면 저장가능.
  983. {
  984. jQuery("#spanBtnSave").show();
  985. }
  986. else{
  987. jQuery("#spanBtnSave").hide();
  988. }
  989. jQuery("#spanBtnRejection1").show();//2015.03.10
  990. jQuery("#spanBtnRejection2").hide();
  991. jQuery("#spanBtnApproval").hide();
  992. jQuery("#spanBtnInvoiceApproval").hide();
  993. jQuery("#spanBtnAppReq").show();
  994. jQuery("#spanGubSave").hide();
  995. jQuery("#spanTaxSave").hide();
  996. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  997. //jQuery("#purSuppFixAppr").show();
  998. }
  999. if(jQuery("#statusCd").val() == "06"){ //06 대금결재중
  1000. jQuery("#spanBtnList").show();
  1001. jQuery("#spanBtnDelete").hide();
  1002. jQuery("#spanBtnSave").hide();
  1003. jQuery("#spanBtnRejection1").hide();
  1004. jQuery("#spanBtnRejection2").hide();
  1005. jQuery("#spanBtnApproval").hide();
  1006. jQuery("#spanBtnInvoiceApproval").hide();
  1007. jQuery("#spanBtnAppReq").hide();
  1008. jQuery("#spanGubSave").hide();
  1009. jQuery("#spanTaxSave").hide();
  1010. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  1011. //jQuery("#purSuppFixAppr").show();
  1012. }
  1013. if(jQuery("#statusCd").val() == "91"){
  1014. jQuery("#spanBtnList").show();
  1015. jQuery("#spanBtnDelete").show();
  1016. jQuery("#spanBtnSave").hide();
  1017. jQuery("#spanBtnRejection1").hide();
  1018. jQuery("#spanBtnRejection2").hide();
  1019. jQuery("#spanBtnApproval").hide();
  1020. jQuery("#spanBtnInvoiceApproval").hide();
  1021. jQuery("#spanBtnAppReq").hide();
  1022. jQuery("#spanGubSave").hide();
  1023. jQuery("#spanTaxSave").hide();
  1024. jQuery("#spanBtnVpApp").hide(); //2015.3.9
  1025. }
  1026. }
  1027. var curBefAcmpPercent = Number(jQuery("#curBefAcmpPercent").val());
  1028. if(curBefAcmpPercent > 99.9999999){
  1029. jQuery("#purSuppFixAppr").show();
  1030. }
  1031. <%-- if ("<%=plan_appr_yn%>" =="Y" && "<%=plan_appr_status%>" != "02") { --%>
  1032. if ("<%=plan_appr_yn%>" =="Y" && "<%=plan_appr_send_yn%>" != "Y") {
  1033. jQuery("#purSuppPlanAppr").show();
  1034. }
  1035. }
  1036. function inputReadOnlyset() {
  1037. //분개유형 비활성화
  1038. var acctGb = '<%=ContInfo.get("acct_gb")%>';
  1039. jQuery('#acct_gb').attr('disabled', 'true');
  1040. /* if(acctGb == '1' || acctGb == '2' || acctGb == '3' ){
  1041. jQuery('#proof_cd').attr('disabled', 'true');
  1042. jQuery('#pay_group').attr('disabled', 'true');
  1043. jQuery('#payment_terms_id').attr('disabled', 'true');
  1044. jQuery("#spanGubSave").css("display", "none");
  1045. } */
  1046. //2016.6.9 원화일때 PAYMENT TERMS수정불가
  1047. if(jQuery("#conCurCd").val() == "KRW"){
  1048. jQuery("#payment_terms_id").attr("disabled",'true');
  1049. jQuery("#pay_group").attr("disabled",'true');
  1050. }
  1051. if(jQuery("#conCurCd").val() == "KRW"){
  1052. jQuery("#chk_3").attr("disabled",true);
  1053. }
  1054. if (jQuery("#statusCd").val() == "10" || jQuery("#statusCd").val() == "04" || jQuery("#statusCd").val() == "98") { //입력불가상태
  1055. jQuery("#userName").attr("readonly", true);
  1056. jQuery("#userName").css({'background-color' : '#F0F0F0'});
  1057. jQuery("#userName").css({'border' : '1px solid #bcbcbc'});
  1058. jQuery("#hp").attr("readonly", true);
  1059. jQuery("#hp").css({'background-color' : '#F0F0F0'});
  1060. jQuery("#hp").css({'border' : '1px solid #bcbcbc'});
  1061. jQuery("#eMail").attr("readonly", true);
  1062. jQuery("#eMail").css({'background-color' : '#F0F0F0'});
  1063. jQuery("#eMail").css({'border' : '1px solid #bcbcbc'});
  1064. jQuery("#curAcmpVat").attr("readonly", true);
  1065. jQuery("#curAcmpVat").css({'background-color' : '#F0F0F0'});
  1066. jQuery("#curAcmpVat").css({'border' : '1px solid #bcbcbc'});
  1067. jQuery("#curPrepayApplyamt").attr("readonly", true);
  1068. jQuery("#curPrepayApplyamt").css({'background-color' : '#F0F0F0'});
  1069. jQuery("#curPrepayApplyamt").css({'border' : '1px solid #bcbcbc'});
  1070. jQuery("#curPrepayVat").attr("readonly", true);
  1071. jQuery("#curPrepayVat").css({'background-color' : '#F0F0F0'});
  1072. jQuery("#curPrepayVat").css({'border' : '1px solid #bcbcbc'});
  1073. //jQuery("#selectDepositCd").attr("disabled", true);
  1074. }else if(jQuery("#statusCd").val() == "03"){
  1075. jQuery("#curAcmpVat").attr("readonly", true);
  1076. jQuery("#curAcmpVat").css({'background-color' : '#F0F0F0'});
  1077. jQuery("#curAcmpVat").css({'border' : '1px solid #bcbcbc'});
  1078. jQuery("#curPrepayApplyamt").attr("readonly", true);
  1079. jQuery("#curPrepayApplyamt").css({'background-color' : '#F0F0F0'});
  1080. jQuery("#curPrepayApplyamt").css({'border' : '1px solid #bcbcbc'});
  1081. jQuery("#curPrepayVat").attr("readonly", true);
  1082. jQuery("#curPrepayVat").css({'background-color' : '#F0F0F0'});
  1083. jQuery("#curPrepayVat").css({'border' : '1px solid #bcbcbc'});
  1084. //jQuery("#selectDepositCd").attr("disabled", true);
  1085. }
  1086. WarrantyDiv();
  1087. }
  1088. function taxDataSet(){
  1089. //통화가KRW가 아니고 분계유형에 증빙종류[기타]이면 invlice고정
  1090. var conCurCd = jQuery("#conCurCd").val();
  1091. var proof_cd = jQuery("#proof_cd option:selected").val();
  1092. if(conCurCd != "KRW" && proof_cd == "Z99"){
  1093. //jQuery("#chk_3").attr("checked", true);
  1094. jQuery("#chk_1").attr("disabled",true);
  1095. jQuery("#chk_2").attr("disabled",true);
  1096. }else if(conCurCd != "KRW" && proof_cd != "Z99"){
  1097. jQuery("#chk_3").attr("disabled",true);
  1098. }
  1099. /* var radioCheck = jQuery(':radio[name="chk_info"]:checked').val(); //세금계산서 발행방법
  1100. if (radioCheck == "1") { //역발행
  1101. jQuery("#taxAttachments").hide();
  1102. jQuery("#taxTrRow").hide();
  1103. jQuery("#invoiceAttachments").hide();
  1104. jQuery("#invoiceTrRow").hide();
  1105. } else if (radioCheck == "2"){ //순발행
  1106. jQuery("#taxAttachments").show();
  1107. jQuery("#taxTrRow").show();
  1108. jQuery("#invoiceAttachments").hide();
  1109. jQuery("#invoiceTrRow").hide();
  1110. }else{
  1111. jQuery("#taxAttachments").hide();
  1112. jQuery("#taxTrRow").hide();
  1113. jQuery("#invoiceAttachments").show();
  1114. jQuery("#invoiceTrRow").show();
  1115. } */
  1116. btnCtr();
  1117. }
  1118. //잔여/중도금 설정
  1119. function setDepostiCd(){
  1120. var remainderAcmpAmtValue = jQuery("#remainderAcmpAmt").val(); //기성고_잔여_합계
  1121. if(Number(remainderAcmpAmtValue) == 0){
  1122. jQuery("#selectDepositCd").val("3"); //잔금
  1123. }else{
  1124. jQuery("#selectDepositCd").val("2"); //중도금
  1125. }
  1126. }
  1127. function inputDataSet(){
  1128. jQuery("#perpayReqDiv").attr("disabled",true);
  1129. if(jQuery("#perpayReqDiv option:selected").val() == "1"){
  1130. jQuery("#giveAmt").val("0"); //선급_포기금액_합계
  1131. jQuery("#reqPrepayAmt").attr("readonly",true);
  1132. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  1133. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  1134. jQuery("#reqPrepayAmt").val(jQuery("#perpayAmt").val());
  1135. jQuery("#giveSupplyTamt").val("0"); //선급_포기금액_과세
  1136. jQuery("#reqPrepaySupplyTamt").attr("readonly",true);
  1137. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
  1138. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
  1139. jQuery("#reqPrepaySupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
  1140. jQuery("#giveSupplyNamt").val("0"); //선급_포기금액_면세
  1141. jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
  1142. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  1143. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  1144. jQuery("#reqPrepaySupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
  1145. jQuery("#giveSurtaxAmt").val("0"); //선급_포기금액_부가세
  1146. jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
  1147. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  1148. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  1149. jQuery("#reqPrepaySurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
  1150. jQuery("#givePercent").val("0.0");
  1151. var reqPrepayAmt = jQuery("#reqPrepayAmt").val();
  1152. reqPrepayAmt = reqPrepayAmt.replace(/(\,|\:)/g,"");
  1153. var conAmt = jQuery("#conAmt").val();
  1154. conAmt = conAmt.replace(/(\,|\:)/g,"");
  1155. var givePercent = (reqPrepayAmt / conAmt) * 100;
  1156. jQuery("#reqPrepayPercent").val(givePercent.toFixed(1));
  1157. giveDataSet();
  1158. warrCtr('S'); //S:보이기, H:숨기기
  1159. }else if(jQuery("#perpayReqDiv option:selected").val() == "2"){
  1160. jQuery("#reqPrepayAmt").attr("readonly",true);
  1161. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  1162. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  1163. jQuery("#reqPrepaySupplyTamt").attr("readonly",false);
  1164. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#ffffff'});
  1165. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #595a5a'});
  1166. if(jQuery("#conSupplyNamt").val() == "0"){
  1167. jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
  1168. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  1169. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  1170. }else{
  1171. jQuery("#reqPrepaySupplyNamt").attr("readonly",false);
  1172. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#ffffff'});
  1173. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #595a5a'});
  1174. }
  1175. jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
  1176. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  1177. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  1178. jQuery("#reqPrepaySupplyTamt").val(jQuery("#orgReqPrepaySupplyTamt").val());
  1179. jQuery("#reqPrepaySupplyNamt").val(jQuery("#orgReqPrepaySupplyNamt").val());
  1180. jQuery("#reqPrepaySupplyTamt").blur();
  1181. giveDataSet();
  1182. warrCtr('S'); //S:보이기, H:숨기기
  1183. }else if(jQuery("#perpayReqDiv option:selected").val() == "3"){
  1184. jQuery("#reqPrepayAmt").val("0"); //선급_신청금액_합계
  1185. jQuery("#reqPrepayAmt").attr("readonly",true);
  1186. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  1187. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  1188. jQuery("#giveAmt").val(jQuery("#perpayAmt").val());
  1189. jQuery("#reqPrepaySupplyTamt").val("0"); //선급_신청금액_과세
  1190. jQuery("#reqPrepaySupplyTamt").attr("readonly",true);
  1191. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
  1192. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
  1193. jQuery("#giveSupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
  1194. jQuery("#reqPrepaySupplyNamt").val("0"); //선급_신청금액_면세
  1195. jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
  1196. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  1197. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  1198. jQuery("#giveSupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
  1199. jQuery("#reqPrepaySurtaxAmt").val("0"); //선급_신청금액_부가세
  1200. jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
  1201. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  1202. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  1203. jQuery("#giveSurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
  1204. jQuery("#reqPrepayPercent").val("0.0");
  1205. var giveAmt = jQuery("#giveAmt").val();
  1206. giveAmt = giveAmt.replace(/(\,|\:)/g,"");
  1207. var conAmt = jQuery("#conAmt").val();
  1208. conAmt = conAmt.replace(/(\,|\:)/g,"");
  1209. var givePercent = (giveAmt / conAmt) * 100;
  1210. jQuery("#givePercent").val(givePercent.toFixed(1));
  1211. giveDataSet();
  1212. //포기일때 보증정보는 필요없으므로 숨김처ㅣ
  1213. warrCtr('H'); //S:보이기, H:숨기기
  1214. }
  1215. }
  1216. //2016.11.10 외국환거래신고
  1217. function PopClose(win_id,result){
  1218. if( result != null ){
  1219. if(result[0] == 2){ //2016.5.12 외국환거래신고
  1220. setTimeout(function(){ fLayerPopClose(win_id);},100);
  1221. if(result[1].length> 0)alert(result[1]);
  1222. $("#FOREIGN_CHK").val(result[2]);
  1223. $("#FOREIGN_NM").val(result[3]);
  1224. }
  1225. }else{
  1226. setTimeout(function(){ fLayerPopClose(win_id); },100);
  1227. }
  1228. }
  1229. function warrCtr(gubun){
  1230. if (gubun == "H") { //숨김
  1231. var warrWamt = jQuery("#warrWamt").val().replace(/(\,|\:)/g, "");
  1232. if(warrWamt == "0" || warrWamt == ""){
  1233. jQuery('#warr1').slideUp();
  1234. jQuery('#warr2').slideUp();
  1235. }else{
  1236. alert("보증정보가 존재합니다.");
  1237. //jQuery("#reqPrepaySupplyTamt").val(jQuery("#warrWamt").val());
  1238. }
  1239. } else {
  1240. jQuery('#warr1').show("slow");
  1241. jQuery('#warr2').show("slow");
  1242. }
  1243. }
  1244. function reDisplay() {
  1245. jQuery("#fevent").val("");
  1246. jQuery("#form1").attr("action", "/payment/purchase/PayInstallResult.screen");
  1247. jQuery("#form1").attr("target", "_self");
  1248. jQuery("#form1").attr("method", "post");
  1249. jQuery("#form1").submit();
  1250. }
  1251. function doList() {
  1252. jQuery("#fevent").val("");
  1253. jQuery("#form1").attr("action", "/payment/purchase/PayRequestList.screen");
  1254. jQuery("#form1").attr("target", "_self");
  1255. jQuery("#form1").attr("method", "post");
  1256. jQuery("#form1").submit();
  1257. }
  1258. //저장 및 대금 신청시 필수항목 Check
  1259. function requiredItemsCheck(){
  1260. var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
  1261. var userName = jQuery('#userName').val(); //담당자명
  1262. var hp = jQuery('#hp').val(); //담당자 핸드폰번호
  1263. var eMail = jQuery('#eMail').val(); //담당자 이메일
  1264. if(date1 == "" ){
  1265. alert("입력필수입니다.");
  1266. jQuery('#date1').focus();
  1267. return false;
  1268. }
  1269. if(userName == ""){
  1270. alert("담당자명은 입력필수입니다.");
  1271. jQuery('#userName').focus();
  1272. return false;
  1273. }
  1274. if(hp == ""){
  1275. alert("담당자 핸드폰 번호는 입력필수입니다.");
  1276. jQuery('#hp').focus();
  1277. return false;
  1278. }/*else{
  1279. var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
  1280. var strValue = hp;
  1281. var chkFlg = rgEx.test(strValue);
  1282. if(!chkFlg){
  1283. alert("올바른 휴대폰번호가 아닙니다.");
  1284. jQuery('#hp').focus();
  1285. return false;
  1286. }
  1287. }계약서에 명시된 번호이므로 신뢰. 2019.04.24*/
  1288. if(eMail == ""){
  1289. alert("담당자 이메일은 입력필수입니다.");
  1290. jQuery('#eMail').focus();
  1291. return false;
  1292. }else{
  1293. 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})(\]?)$/;
  1294. if(!regEmail.test(eMail)) {
  1295. alert('올바른 이메일 주소가 아닙니다.');
  1296. jQuery('#eMail').focus();
  1297. return false;
  1298. }
  1299. }
  1300. //금액Check처리
  1301. var remainderAcmpAmtValue = jQuery("#remainderAcmpAmt").val(); //기성고_잔여_합게
  1302. var remainderPrepayAmtValue = jQuery("#remainderPrepayAmt").val(); //선급금공제_잔여_합게
  1303. var curReqVatamtValue = jQuery("#curReqVatamt").val().replace(/(\,|\:)/g,""); //청구액_금회_부가세 2015.11.16
  1304. if(Number(remainderAcmpAmtValue) < 0 || Number(remainderPrepayAmtValue) < 0 || Number(curReqVatamtValue) < 0){
  1305. alert("금액을 확인바랍니다.");
  1306. return false;
  1307. }
  1308. //2016.5.25 기성잔여가 0일때, 선급금이 0이 아니면
  1309. if(Number(remainderAcmpAmtValue) == 0 && Number(remainderPrepayAmtValue) != 0 ){
  1310. alert("선급공제 잔여액을 확인바랍니다.");
  1311. return false;
  1312. }
  1313. if(jQuery("#proof_cd").val() == "Z99"){
  1314. if(Number(curReqVatamtValue) > 0 ){
  1315. alert("청구액 금회 부가세가 0이여야 합니다");
  1316. return false;
  1317. }
  1318. }
  1319. if(jQuery("#btnAppReqSelect").val() == "1"){ //대신청요청시에는 해당하는 첨부파일이 모드 등록되어있어야함.
  1320. //01:작성중, 02:대금요청, 03:대금신청, 04:결재, 10:결재완료, 99:반려
  1321. /* if (jQuery("#perpayReqDiv").val() == "1") { //선급신청
  1322. jQuery("#selectStatusCd").val("20");
  1323. } else if (jQuery("#perpayReqDiv").val() == "2") { //부분신청
  1324. jQuery("#selectStatusCd").val("20");
  1325. } else if (jQuery("#perpayReqDiv").val() == "3") { //포기신청
  1326. jQuery("#selectStatusCd").val("21");
  1327. } else {
  1328. alert("신청구분을 선택하세요");
  1329. return;
  1330. } */
  1331. }
  1332. }
  1333. function doResult(resultObj) {
  1334. try {
  1335. if( resultObj.getRequestEvent() == "SAVE_DATA" || resultObj.getRequestEvent() == "SAVE_SEGUM" || resultObj.getRequestEvent() == "SAVE_GUA") {
  1336. if( resultObj.getSuccess() ) {
  1337. document.form1.isSubmit = false;
  1338. if(jQuery("#btnAppReqSelect").val() == "0"){
  1339. alert("저장되었습니다.");
  1340. //jQuery("#btnList").click();
  1341. reDisplay();
  1342. }else if (jQuery("#btnAppReqSelect").val() == "1"){
  1343. jQuery("#btnAppReqSelect").val("0");
  1344. btnAppReqProcess();
  1345. } else {
  1346. jQuery("#btnAppReqSelect").val("0");
  1347. approvalStart();
  1348. }
  1349. }else {
  1350. dlgErrorMsg(resultObj);
  1351. }
  1352. document.form1.isSubmit = false;
  1353. }
  1354. if( resultObj.getRequestEvent() == "DELETE_DATA" ) {
  1355. if( resultObj.getSuccess() ) {
  1356. alert("삭제되었습니다.");
  1357. jQuery("#btnList").click();
  1358. }else {
  1359. dlgErrorMsg(resultObj);
  1360. }
  1361. document.form1.isSubmit = false;
  1362. }
  1363. if( resultObj.getRequestEvent() == "REQ_DATA" ) {
  1364. if( resultObj.getSuccess() ) {
  1365. alert("신청요청하였습니다.");
  1366. jQuery("#btnList").click();
  1367. }else {
  1368. dlgErrorMsg(resultObj);
  1369. }
  1370. document.form1.isSubmit = false;
  1371. }
  1372. //2015.3.10
  1373. if( resultObj.getRequestEvent() == "CHK_VP" ) {
  1374. if( resultObj.getSuccess() ) {
  1375. alert("VP신청 하였습니다.");
  1376. jQuery("#btnList").click();
  1377. }else {
  1378. dlgErrorMsg(resultObj);
  1379. }
  1380. document.form1.isSubmit = false;
  1381. }
  1382. /* if( resultObj.getRequestEvent() == "APPROVAL" ) {
  1383. if( resultObj.getSuccess() ) {
  1384. alert("선급금 결재 완료하였습니다..");
  1385. jQuery("#btnList").click();
  1386. }else {
  1387. dlgErrorMsg(resultObj);
  1388. }
  1389. document.form1.isSubmit = false;
  1390. } */
  1391. if( resultObj.getRequestEvent() == "BUDGET_CHECK" ) {
  1392. var vo = resultObj.getValueObject();
  1393. var check = vo.get('checkFlag');
  1394. if(check == 0){
  1395. document.form1.isSubmit = false;
  1396. //approvalStart();
  1397. //저장처리
  1398. saveData();
  1399. }else{
  1400. document.form1.isSubmit = false;
  1401. // 예산통제하는 현장일 경우 집행내역 코드로 예산금액과 전체실적누계, 금회지급액을 구한다
  1402. //getBudgetControlAMT(); 2018.11.26 GET_BUDGET_AMT 확인해제. check ==0으로 처리.
  1403. }
  1404. }
  1405. if(resultObj.getRequestEvent() == "SAVE_ATTC"){
  1406. document.form1.isSubmit = false;
  1407. approvalRun();
  1408. }
  1409. if(resultObj.getRequestEvent() == "GET_BUDGET_AMT"){
  1410. // 구해온 금액을 가지고 예산과 실적을 비교한다
  1411. var vo = resultObj.getValueObject();
  1412. document.form1.isSubmit = false;
  1413. doBudgetAmtResult(vo);
  1414. }
  1415. if( resultObj.getRequestEvent() == "SAVE_DRAFT" ) {
  1416. //document.form1.draft_div_id.value = "";
  1417. document.form1.isSubmit = false;
  1418. if( resultObj.getSuccess() ) {
  1419. var status = resultObj.getMessage();
  1420. if(status == '1'){
  1421. //approvalRun();
  1422. }else if(status == '2'){
  1423. alert("결재할수 없습니다. 확인바랍니다.");
  1424. }else{
  1425. //approvalRun();
  1426. }
  1427. }else {
  1428. dlgErrorMsg(resultObj);
  1429. }
  1430. }
  1431. if( resultObj.getRequestEvent() == "GET_ATTACHFILE" ) {
  1432. if( resultObj.getSuccess() ) {
  1433. document.form1.p_AttachFile.value = resultObj.getValueObject().get("AttachFile");
  1434. }else {
  1435. dlgErrorMsg(resultObj);
  1436. }
  1437. document.form1.isSubmit = false;
  1438. }
  1439. if( resultObj.getRequestEvent() == "CHK_REJECT" ) {
  1440. var vo = resultObj.getValueObject();
  1441. var check = vo.get('checkFlag');
  1442. if(check == 0){ //가능
  1443. document.form1.isSubmit = false;
  1444. runRejection();
  1445. }else{
  1446. document.form1.isSubmit = false;
  1447. alert("이미 결제중입니다.");
  1448. }
  1449. }
  1450. if( resultObj.getRequestEvent() == "CHK_APPVAR" ) {
  1451. var vo = resultObj.getValueObject();
  1452. var check = vo.get('checkFlag');
  1453. if(check == 0){ //가능
  1454. document.form1.isSubmit = false;
  1455. if (jQuery("#btnAppReqSelect").val() == "2") { //Invoice결재
  1456. //runInvoice();
  1457. runApproval();
  1458. }else{
  1459. jQuery("#btnAppReqSelect").val("0");
  1460. runApproval();
  1461. }
  1462. }else{
  1463. if(check == 99){
  1464. document.form1.isSubmit = false;
  1465. //alert("첨부파일 세금계산서 OR Invoice가 없습니다.");
  1466. if (jQuery("#btnAppReqSelect").val() == "2") { //Invoice결재
  1467. if( jQuery(':radio[name="chk_info"]:checked').val() == "2" || jQuery(':radio[name="chk_info"]:checked').val() == "3" ){
  1468. alert("경영정보시스템의 전표상신 화면에서 세금계산서 첨부 후 완료 바랍니다.\n\r \n\r※ 세금계산서 첨부후 승인작업을 하지 않을경우 재경팀으로 대금정보가 이관 되지 않습니다.");
  1469. }
  1470. //runInvoice();
  1471. runApproval();
  1472. }
  1473. }else{
  1474. document.form1.isSubmit = false;
  1475. alert("이미 결제중입니다.");
  1476. }
  1477. }
  1478. }
  1479. if( resultObj.getRequestEvent() == "GET_RATE" ) {
  1480. var vo = resultObj.getValueObject();
  1481. document.form1.isSubmit = false;
  1482. var rate = vo.get('rate');
  1483. var rateAmt = vo.get('rateAmt');
  1484. var rateVamt = vo.get('rateVamt');
  1485. jQuery("#rateEx").val(rate);
  1486. jQuery("#rateAmt").val(rateAmt);
  1487. jQuery("#rateVamt").val(rateVamt);
  1488. jQuery("#rateAmt, #rateVamt").each(function(index) { //#rateEx,
  1489. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  1490. });
  1491. }
  1492. if( resultObj.getRequestEvent() == "GET_DATA" ) {
  1493. if( resultObj.getSuccess() ) {
  1494. var subContId = resultObj.getValueObject().get("SUB_CONT_ID");
  1495. if(subContId != ""){
  1496. jQuery("#subContId").val(subContId);
  1497. var warrGubun = resultObj.getValueObject().get("WARR_GUBUN");
  1498. jQuery("#warrGubun").val(warrGubun);
  1499. var warrSeq = resultObj.getValueObject().get("WARR_SEQ");
  1500. jQuery("#warrSeq").val(warrSeq);
  1501. var causeCode = resultObj.getValueObject().get("CAUSECODE");
  1502. jQuery("#causeCode").val("당초");
  1503. var guarOnoffYn = resultObj.getValueObject().get("GUAR_ONOFF_YN");
  1504. jQuery("#guarOnoffYn").val(guarOnoffYn);
  1505. var warrGoffice = resultObj.getValueObject().get("WARR_GOFFICE");
  1506. jQuery("#warrGoffice").val(warrGoffice);
  1507. var guarStatus = resultObj.getValueObject().get("GUAR_STATUS");
  1508. jQuery("#guarStatus").val(guarStatus);
  1509. var paperDate = resultObj.getValueObject().get("PAPERDATE");
  1510. jQuery("#paperDate").val(paperDate);
  1511. var warrWgno = resultObj.getValueObject().get("WARR_WGNO");
  1512. jQuery("#warrWgno").val(warrWgno);
  1513. var warrWamt = resultObj.getValueObject().get("WARR_WAMT");
  1514. jQuery("#warrWamt").val(warrWamt);
  1515. jQuery("#warrWamt").each(function(index){
  1516. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  1517. });
  1518. var warrSdateEdate = resultObj.getValueObject().get("WARR_SDATE_EDATE");
  1519. jQuery("#warrSdateEdate").val(warrSdateEdate);
  1520. }
  1521. }else {
  1522. dlgErrorMsg(resultObj);
  1523. }
  1524. document.form1.isSubmit = false;
  1525. }
  1526. if( resultObj.getRequestEvent() == "PLAN_REQ" ) {
  1527. if( resultObj.getSuccess() ) {
  1528. alert("설계평가 작성요청 하였습니다.");
  1529. jQuery("#btnList").click();
  1530. }else {
  1531. dlgErrorMsg(resultObj);
  1532. }
  1533. document.form1.isSubmit = false;
  1534. }
  1535. if( resultObj.getRequestEvent() == "SAVE_CONT_COPY_FILE" ) {
  1536. if( resultObj.getSuccess() ) {
  1537. alert("계약서 사본을 첨부하였습니다.");
  1538. document.form1.isSubmit = false;
  1539. getFileListForTextarea();
  1540. }else {
  1541. dlgErrorMsg(resultObj);
  1542. }
  1543. }
  1544. }
  1545. catch(errorObject) {
  1546. showErrorDlg("doResult()", errorObject);
  1547. }
  1548. }
  1549. //저장 후 기성시청 처리
  1550. function btnAppReqProcess(){
  1551. var f = document.form1;
  1552. jQuery("#fevent").val("REQ_DATA");
  1553. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "REQ_DATA", f, "SUCCESS");
  1554. }
  1555. function saveData(){
  1556. var f = document.form1;
  1557. jQuery("#btnAppReqSelect").val("2");
  1558. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_DATA", f, "SUCCESS");
  1559. }
  1560. function doKeyPress() {
  1561. if( event.keyCode == 13 ) {
  1562. doSearch(document.all.sheet1)
  1563. }
  1564. }
  1565. function calendar(thisDayObj){
  1566. dlgCalendar(thisDayObj);
  1567. }
  1568. //첨부파일
  1569. function doAttachFile(obj,No,fileName) {
  1570. if(obj.value == ''){
  1571. alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
  1572. }
  1573. else if(obj.value != ''){
  1574. if(No == 1){
  1575. viewFileListNew('PURCHASE_'+obj.value, No, document.getElementById("fileMapIDDiv"), "Y", "payment/purchase/"+obj.value);
  1576. }else{
  1577. var upLoadFlg = "Y";
  1578. if(jQuery("#statusCd").val() == "10"){ //상태값이 기성신청(03), 결재완료(10) 일때는 첨부파일 다운로드만 가능
  1579. upLoadFlg = "N";
  1580. //2016.6.2 6월 30일까지 기타는 등록가능(외국환거래 신고여부 첨부)
  1581. /*if (No == '240')
  1582. {
  1583. upLoadFlg = "Y";
  1584. }*/
  1585. ////2017.1.9 admin 등록가능.
  1586. if (<%=storage.getUser().get("RIGHT_NAME").equals("ADMIN NEW")%>){
  1587. upLoadFlg = "Y";
  1588. }
  1589. }
  1590. if(jQuery("#taxStatus").val()<= 3){
  1591. upLoadFlg = "Y";
  1592. }
  1593. viewFileListNew('PURCHASE_'+obj.value, No, document.getElementById("fileMapIDDiv"), upLoadFlg, "payment/purchase/"+obj.value, null, fileName);
  1594. }
  1595. }
  1596. //기성첨부파일 목록 조회
  1597. //getFileListForTextarea();
  1598. }
  1599. //첨부목록 조회
  1600. function getFileListForTextarea(){
  1601. document.form1.p_AttachFile.value = "";
  1602. var f = document.form1;
  1603. jQuery("#fevent").val("GET_ATTACHFILE");
  1604. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
  1605. }
  1606. function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
  1607. var editFile = "";
  1608. if(obj==''){
  1609. alert("After you have saved, you can attach a file.");
  1610. }
  1611. else if(obj != ''){
  1612. if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
  1613. if (<%=storage.getUser().get("RIGHT_NAME").equals("ADMIN NEW")%>) {editFile="Y"; }//2018.06.01수정
  1614. viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contPurWarrPopup");
  1615. }
  1616. }
  1617. //보증정보 조회
  1618. function callback_getContWarr(){
  1619. //alert("보증정보 조회");
  1620. fLayerPopClose('contOutWarrPop');
  1621. var f = document.form1;
  1622. jQuery("#fevent").val("GET_DATA");
  1623. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "GET_DATA", f, "VALUEOBJECT");
  1624. }
  1625. function fileCheck(checkObj, val){
  1626. var f = document.form1;
  1627. //alert(checkObj.value);
  1628. //alert(checkObj.checked);
  1629. //alert(val);
  1630. var obj = eval("document.getElementById('" + val + "')");
  1631. if(obj.style.display == "none"){
  1632. obj.style.display = "inline";
  1633. checkObj.checked = true;
  1634. }else{
  1635. obj.style.display = "none";
  1636. checkObj.checked = false;
  1637. }
  1638. }
  1639. //보증정보 조회
  1640. function callback_getContWarr(){
  1641. var f = document.form1;
  1642. jQuery("#fevent").val("GET_DATA");
  1643. submitXmlRequest("/payment/outside/AdvencePayment_form.screen", "GET_DATA", f, "VALUEOBJECT");
  1644. }
  1645. function doBudgetAmtResult(vo){
  1646. var amtVO = vo;
  1647. var yyyymm = amtVO.get('YYYYMM');
  1648. var dept_cd = amtVO.get('DEPT_CD');
  1649. var payitem = amtVO.get('PAYITEM');
  1650. var estamt = amtVO.get('ESTAMT'); // 집행내역 예산금액
  1651. var cur_amt = amtVO.get('CUR_AMT'); // 이번달 전체실적누계 금액
  1652. var remainder_amt = amtVO.get('REMAINDER_AMT'); // 예산대비 실적 잔액
  1653. var supply_amt = amtVO.get('SUPPLY_AMT'); // 외화일 경우 외화로 원화금액 환산한 금회대금지급 금액
  1654. var cal_amt = amtVO.get('CAL_AMT'); // 예산 - 전체실적누계 - 금회대금지금
  1655. var estdesc = amtVO.get('ESTDESC');
  1656. var cnt = amtVO.get('CNT');
  1657. if(cnt == 999){
  1658. //alert('전월이 마감되지 않았거나 해당월은 작성할 수 없습니다.');
  1659. //approvalStart();
  1660. //저장처리
  1661. saveData();
  1662. }else{
  1663. if( cal_amt > 0){
  1664. //approvalStart();
  1665. //저장처리
  1666. saveData();
  1667. }else{
  1668. alert('집행내역 [ ' + estdesc + ']의 잔액이 부족하여 전표생성이 불가합니다.<br>'+'예산금액:' + estamt + ' 실적누계금액:' + cur_amt + '<br>잔액:' + remainder_amt + ' 금회작성금액:' + supply_amt + '<br>해당 현장의 PE에게 문의하세요.');
  1669. }
  1670. }
  1671. }
  1672. //
  1673. function getBudgetControlAMT(){
  1674. document.form1.isSubmit = false;
  1675. var f = document.form1;
  1676. jQuery("#fevent").val("BUDGET_CHECK");
  1677. //입력데이터 저장
  1678. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "GET_BUDGET_AMT", f, "VALUEOBJECT");
  1679. }
  1680. function approvalStart(){
  1681. document.form1.isSubmit = false;
  1682. var f = document.form1;
  1683. jQuery("#fevent").val("SAVE_ATTC");
  1684. //입력데이터 저장
  1685. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_ATTC", f, "SUCCESS");
  1686. }
  1687. function runApproval(){
  1688. //예산통제 BUDGET_CHECK 처리
  1689. var f = document.form1;
  1690. jQuery("#fevent").val("BUDGET_CHECK");
  1691. //입력데이터 저장
  1692. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "BUDGET_CHECK", f, "VALUEOBJECT");
  1693. }
  1694. //결재가능여부
  1695. function approvalCheck(){
  1696. var f = document.form1;
  1697. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_DRAFT", f, "success");
  1698. }
  1699. //결재
  1700. function approvalRun(){
  1701. document.form1.isSubmit = false;
  1702. var f = document.form1;
  1703. var tmpslip_payreqId = f.payreqId.value;
  1704. var tmpslip_purContId = f.purContId.value;
  1705. var acctid = f.acctid.value;
  1706. dlgSignForm('ebid_ppyD', '/payment/purchase/PayRequestSign.screen?tmpslip_payreqId='+tmpslip_payreqId+'^tmpslip_purContId='+tmpslip_purContId+'^acctid='+acctid+'^acct_type=1^sign_type=1' );
  1707. }
  1708. //결재
  1709. function dlgSignForm( sign_class_cd, uri ) {
  1710. var f = document.form1;
  1711. var sheet1 = document.all.sheet1;
  1712. var tmpslip_payreqId = f.payreqId.value;
  1713. var tmpslip_purContId = f.purContId.value;
  1714. var url = "/slipSign/paySign_form.screen";
  1715. url += "?sign_class_cd=" + sign_class_cd;
  1716. url += "&uri=" + uri;
  1717. url += "&tmpslip_payreqId=" + tmpslip_payreqId;
  1718. url += "&tmpslip_purContId=" + tmpslip_purContId;
  1719. url += "&slip_dept=" + f.p_dept_cd.value;
  1720. url += "&slip_dt=" + f.date1.value;
  1721. url += "&acct_type=1";
  1722. if(confirm("결재 하시겠습니까?") ){
  1723. //f.slip_dt.value = '';
  1724. //f.sign_chk.value = "Y";
  1725. openWindowCenter(url, "sign_form", 200, 100, "");
  1726. }else{
  1727. return;
  1728. }
  1729. }
  1730. function runRejection(){
  1731. var pageDiv = '21';
  1732. var f = document.form1;
  1733. pageDiv = f.rejectDiv.value ; //20 삭제.erp반려 21업체반려
  1734. var win_id = "Rejection";
  1735. var link = "/payment/outside/RejectionPopup.screen";
  1736. link += "?pop_win_id="+win_id;
  1737. link += "&payreqId=" + jQuery("#payreqId").val();
  1738. link += "&pageDiv="+ pageDiv;
  1739. fLayerPop(win_id, link, 620, 220, '', '', 'NO');
  1740. }
  1741. function runInvoice(){
  1742. var f = document.form1;
  1743. jQuery("#btnAppReqSelect").val("2"); //0:저장처리, 1:선급신청처리
  1744. jQuery("#fevent").val("SAVE_DATA");
  1745. submitXmlRequest("/payment/purchase/PayInstallResult_form.screen", "SAVE_DATA", f, "SUCCESS");
  1746. }
  1747. function RejectionPopupClose(){
  1748. //alert();
  1749. setTimeout(function(){fLayerPopClose('Rejection');},100);
  1750. doList();
  1751. }
  1752. function WarrantyDiv(){
  1753. //alert(jQuery("#selectDepositCd option:selected").val());
  1754. if(jQuery("#selectDepositCd option:selected").val() == "2"){ //중도금
  1755. jQuery("#warr1").show();
  1756. jQuery("#warr2").show();
  1757. }else{
  1758. jQuery("#warr1").show();
  1759. jQuery("#warr2").show();
  1760. }
  1761. }
  1762. //보증정보팝업 호출
  1763. function popContWarr(wG, wSeq, wCauseCd) {
  1764. var win_id = "contPurWarrPopup";
  1765. var param = "";
  1766. var param = "?purContModId=" + jQuery("#subContModId").val();
  1767. var param = param + "&warrGubun=" + wG;
  1768. var param = param + "&warrSeq=" + wSeq;
  1769. var param = param + "&causeCode=" + wCauseCd;
  1770. if(wG=="3"){
  1771. var param = param + "&viewDiv=PREPAY";
  1772. var param = param + "&prepayId=" + jQuery("#payreqId").val();
  1773. }else{
  1774. var param = param + "&viewDiv=PAYREQ";
  1775. var param = param + "&PreqStatusCd=" + jQuery("#statusCd").val();
  1776. }
  1777. var param = param + "&pop_win_id=" + win_id;
  1778. var param = param + "&sModule=EB";
  1779. var url = "/portal/guar/contPurWarrPopup.screen"+param;
  1780. fLayerPop(win_id, url, 560,350, '','', 'NO');
  1781. }
  1782. //보증정보팝업 종료후 액션
  1783. function popContWarrClose(returnValue){
  1784. if(returnValue == null){
  1785. fLayerPopClose('contPurWarrPopup');
  1786. }else{
  1787. fLayerPopClose('contPurWarrPopup');
  1788. location.reload();
  1789. }
  1790. }
  1791. function SearchUser(NAME,CODE,DEPT_YN){
  1792. CODE = "";
  1793. NAME = "";
  1794. GB = "PUREMP";
  1795. /* if(CODE == "PUREMPNO"){
  1796. CODE = "";
  1797. NAME = "";
  1798. GB = "PUREMP";
  1799. }else if(CODE == "SITEDESCCHRGPRSNID"){
  1800. CODE = "";
  1801. NAME = "";
  1802. GB = "SITEDESCCHRGPRSN";
  1803. }else{
  1804. GB = "";
  1805. } */
  1806. var win_id = "_searchUserPopup";
  1807. var link = "/lib/dlgSearchUserPop.screen";
  1808. link += "?pop_win_id="+win_id;
  1809. link += "&NAME="+NAME;
  1810. link += "&CODE="+CODE;
  1811. link += "&GB="+GB;
  1812. if(DEPT_YN == "Y")
  1813. link += "&deptNameYn=purchase";
  1814. fLayerPop(win_id, link, 700,400, '', '', 'NO');
  1815. }
  1816. function SearchUserClose(result){
  1817. /* if(result[10] == "PUREMP"){
  1818. $("#PUREMPNO").val(result[9])//ACCT_ID
  1819. $("#PUREMPNM").val(result[1])//이름
  1820. $("#PO_EMPNM").val(result[6])//연락처
  1821. }else if(result[10] == "SITEDESCCHRGPRSN"){
  1822. $("#SITEDESCCHRGPRSNID").val(result[9])//ACCT_ID
  1823. $("#SITEDESCCHRGPRSNNM").val(result[1])//이름
  1824. $("#SITEDESCTELNO").val(result[6])//연락처
  1825. $("#SITEDESCEMAIL").val(result[8])//이메일
  1826. } */
  1827. /* alert(result[0]);
  1828. alert(result[1]);
  1829. alert(result[2]);
  1830. alert(result[3]);
  1831. alert(result[4]);
  1832. alert(result[5]);
  1833. alert(result[6]);
  1834. alert(result[7]);
  1835. alert(result[8]);
  1836. alert(result[9]);
  1837. alert(result[10]); */
  1838. jQuery("#VP_CHK_EMPNO").val(result[9])//ACCT_ID
  1839. jQuery("#VP_CHK_EMPNM").val(result[1])//이름
  1840. jQuery("#EPART_DEPT_NAME").val(result[3])//부서
  1841. setTimeout(function(){ fLayerPopClose('_searchUserPopup');},100);
  1842. }
  1843. function setVenderPrintInit(){
  1844. var vpYN = jQuery("#vpYN").val();
  1845. if(vpYN != "Y"){
  1846. jQuery("#vpDiv1").css("display", "none");
  1847. jQuery("#vpDiv2").css("display", "none");
  1848. }else{
  1849. if(jQuery("#vpRtnReason").val() == ""){
  1850. jQuery("#return_reson_area").css("display", "none");
  1851. }
  1852. }
  1853. <%-- var status = "<%=status%>";
  1854. if(status != "50")
  1855. {
  1856. $("#return_reson_area").css("display", "none");
  1857. }
  1858. if(status == "50" || status == "60" )
  1859. {
  1860. $("#opinion").attr("readonly", true);
  1861. $("#btn_save_area").css("display", "none");
  1862. $("#btn_confim_area").css("display", "none");
  1863. $("#btn_return_area").css("display", "none");
  1864. }
  1865. --%>
  1866. }
  1867. function chProofCd(obj){
  1868. //통화가KRW가 아니고 분계유형에 증빙종류[기타]이면 invlice고정
  1869. var conCurCd = jQuery("#conCurCd").val();
  1870. var proof_cd = obj.value
  1871. if(conCurCd != "KRW"){
  1872. if(proof_cd == "Z99"){
  1873. jQuery("#chk_1").prop("checked", false);
  1874. jQuery("#chk_2").prop("checked", false);
  1875. jQuery("#chk_3").prop("checked", true);
  1876. jQuery("#chk_1").attr("disabled",true);
  1877. jQuery("#chk_2").attr("disabled",true);
  1878. jQuery("#chk_3").attr("disabled",false);
  1879. btnCtr();
  1880. }else if(proof_cd != "Z99"){
  1881. jQuery("#chk_1").prop("checked", true);
  1882. jQuery("#chk_2").prop("checked", false);
  1883. jQuery("#chk_3").prop("checked", false);
  1884. jQuery("#chk_1").attr("disabled",false);
  1885. jQuery("#chk_2").attr("disabled",false);
  1886. jQuery("#chk_3").attr("disabled",true);
  1887. btnCtr();
  1888. }
  1889. /* var radioCheck = jQuery(':radio[name="chk_info"]:checked').val(); //세금계산서 발행방법
  1890. if (radioCheck == "1") { //역발행
  1891. jQuery("#taxAttachments").hide();
  1892. jQuery("#taxTrRow").hide();
  1893. jQuery("#invoiceAttachments").hide();
  1894. jQuery("#invoiceTrRow").hide();
  1895. } else if (radioCheck == "2"){ //순발행
  1896. jQuery("#taxAttachments").show();
  1897. jQuery("#taxTrRow").show();
  1898. jQuery("#invoiceAttachments").hide();
  1899. jQuery("#invoiceTrRow").hide();
  1900. }else{
  1901. jQuery("#taxAttachments").hide();
  1902. jQuery("#taxTrRow").hide();
  1903. jQuery("#invoiceAttachments").show();
  1904. jQuery("#invoiceTrRow").show();
  1905. } */
  1906. }
  1907. }
  1908. </SCRIPT>
  1909. <modular:search id="form1">
  1910. <modular:key id="fevent" />
  1911. </modular:search>
  1912. <form id="form1" name="form1" method="post" modular:type="search">
  1913. <div style="display:none;" id="fileMapIDDiv" class="attach_file_view" onPropertyChange="JavaScript:getFileListForTextarea();">
  1914. </div>
  1915. <INPUT type="hidden" name="fevent" id="fevent" value="">
  1916. <INPUT type="hidden" name="acctid" id="acctid" value="<%=acctid%>">
  1917. <INPUT type="hidden" name="payreqId" id="payreqId" value="<%=prePayment.get("PAYREQ_ID") %>"> <!-- 발주계약ID -->
  1918. <INPUT type="hidden" name="purContId" id="purContId" value="<%=prePayment.get("PUR_CONT_ID") %>"> <!-- 발주계약ID -->
  1919. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=prePayment.get("PUR_CONT_MOD_ID") %>">
  1920. <INPUT type="hidden" name="dept_cd" id="dept_cd" value="<%=prePayment.get("DEPT_CD") %>"> <!-- 현장코드 -->
  1921. <INPUT type="hidden" name="p_dept_cd" id="p_dept_cd" value="<%=prePayment.get("P_DEPT_CD") %>"> <!-- 현장코드 -->
  1922. <INPUT type="hidden" name="lastDate" id="lastDate" value="">
  1923. <INPUT type="hidden" name=pItem id="pItem" value="<%=ContInfo.get("P_ITEM") %>">
  1924. <INPUT type='hidden' name="FOREIGN_CHK" value="<%=prePayment.get("FOREIGN_CHK")%>">
  1925. <!-- 리스트 검색조건 보존 시작-->
  1926. <INPUT type='hidden' id="searchDeptCd" name="searchDeptCd" value="<%=params.get("searchDeptCd")%>"> <!-- 현장코드 -->
  1927. <INPUT type='hidden' id="searchDeptNm" name="searchDeptNm" value="<%=params.get("searchDeptNm")%>"> <!-- 현장명 -->
  1928. <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("searchBuildName")%>"> <!-- 계약명 -->
  1929. <INPUT type='hidden' id="searchDateStart" name="searchDateStart" value="<%=params.get("searchDateStart")%>"> <!-- 작성 시작일 -->
  1930. <INPUT type='hidden' id="searchDateEnd" name="searchDateEnd" value="<%=params.get("searchDateEnd")%>"> <!-- 작성 종료일 -->
  1931. <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("searchStatusCd")%>"> <!-- 상태값 -->
  1932. <INPUT type='hidden' id="searchCorp" name="searchCorp" value="<%=params.get("searchCorp")%>"> <!-- 업체명 -->
  1933. <!-- 리스트 검색조건 보존 종료-->
  1934. <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0"> <!-- 결재 및 저장 구분 0:저장, 1:결재 -->
  1935. <INPUT type='hidden' id="conConAmt" name="conConAmt" value="<%=prePayment.get("ORD_AMT")%>"> <!-- 계약금액 -->
  1936. <INPUT type='hidden' id="conPrepayAmt" name="conPrepayAmt" value="<%=prePayment.get("PREPAY_SUPPLY_AMT")%>"> <!-- 선급금액 -->
  1937. <INPUT type="hidden" name="F_CON_SUPPLY_AMT" value='<%= prePayment.get("F_CON_SUPPLY_AMT") %>'> <!-- 선급금대상계약금액 -->
  1938. <INPUT type="hidden" name="F_TAX_DY" value='<%= prePayment.get("F_TAX_DY") %>'>
  1939. <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=prePayment.get("REQ_STATUS") %>"> <!-- 상태값 -->
  1940. <INPUT type="hidden" name="creBy" id="creBy" value="<%=creby %>">
  1941. <INPUT type="hidden" name="updBy" id="updBy" value="<%=updby %>">
  1942. <INPUT type='hidden' id="rejectDiv" name="rejectDiv" value=""> <!-- 반려구분 0:현장,1:조달 -->
  1943. <INPUT type='hidden' id="vpYN" name="vpYN" value="<%=prePayment.get("VP_YN") %>">
  1944. <!-- 임시 FILE MAP ID 값 -->
  1945. <INPUT type="hidden" name="fileMapID" value="" onPropertyChange="JavaScript:getFileListForTextarea();">
  1946. <INPUT type="hidden" name="bugase" id="bugase" value="<%=prePayment.get("CHG_CODE10") %>">
  1947. <INPUT type="hidden" name="orgCurPrepayApplyamt" id="orgCurPrepayApplyamt" value="<%=prePayment.get("CUR_PREPAY_APPLYAMT") %>">
  1948. <INPUT type="hidden" name="SUPP_DIRECT_YN" id="SUPP_DIRECT_YN" value="N"> <!-- 하도급직불여부 제거 -->
  1949. <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=prePayment.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
  1950. <INPUT type='hidden' id="resDivsion" name="resDivsion" value="<%=prePayment.get("RES_DIVISION") %>"> <!-- 계약담당자 -->
  1951. <INPUT type='hidden' id="resHp" name="resHp" value="<%=prePayment.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
  1952. <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=prePayment.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
  1953. <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=prePayment.get("ORD_DOC_NO") %>"> <!-- 발주계약번호 -->
  1954. <INPUT type='hidden' id="corpId" name="corpId" value="<%=prePayment.get("CORP_ID") %>">
  1955. <INPUT type='hidden' id="apprArrId" name="apprArrId" value="<%=prePayment.get("APPR_ARR_ID") %>">
  1956. <INPUT type='hidden' id="apprDocCd" name="apprDocCd" value="<%=prePayment.get("APPR_DOC_CD") %>">
  1957. <INPUT type='hidden' id="apprDy" name="apprDy" value="<%=prePayment.get("APPR_DY") %>">
  1958. <INPUT type='hidden' id="taxStatus" name="taxStatus" value="<%=prePayment.get("TAX_STATUS") %>">
  1959. <INPUT type='hidden' id="defEstGuarRate" name="defEstGuarRate" value="<%=prePayment.get("DEF_GUAR_AMT_RATE") %>"> <!-- 하자보수보증금율 -->
  1960. <!-- 제목 및 버튼 -->
  1961. <table width="100%">
  1962. <colgroup>
  1963. <col width="300" />
  1964. <col width="*" />
  1965. </colgroup>
  1966. <tr>
  1967. <th>
  1968. <div align="left" id="title">
  1969. <ul>
  1970. <li>구매_대금신청 상세(<%=prePayment.get("STATUS_NM")%>)</li>
  1971. </ul>
  1972. </div>
  1973. </th>
  1974. <td align="right">
  1975. <span id="spanBbtnContCopy" class="btnSearch center" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnContCopy" >계약서사본</a></span>
  1976. <span id="purSuppFixAppr" name="purSuppFixAppr" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnFixAppr">정기평가표</a></span>
  1977. <span id="purSuppPlanAppr" name="purSuppPlanAppr" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnPlanApprReq">설계평가요청</a></span>
  1978. <span id="spanBtnSave" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnSave">저장</a></span>
  1979. <span id="spanBtnDelete" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
  1980. <span id="spanBtnAppReq" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnAppReq"><span id="btnText">대금신청요청</span></a></span>
  1981. <span id="spanBtnApproval" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnApproval">결재</a></span>
  1982. <span id="spanBtnInvoiceApproval" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnInvoiceApproval">결재</a></span>
  1983. <span id="spanBtnRejection2" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnRejection2">업체반려</a></span>
  1984. <span id="spanBtnRejection1" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnRejection1">ERP반려</a></span>
  1985. <span id="spanBtnVpApp" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnVpApp">VP신청</a></span>
  1986. <span id="spanBtnList" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnList">목록</a></span>
  1987. </td>
  1988. </tr>
  1989. </table>
  1990. <%
  1991. if(!prePayment.get("RTN_REASON").equals("")){
  1992. %>
  1993. <div class="application-info magT10">
  1994. <div class="application-sub-title">
  1995. <span class="title">반려정보</span>
  1996. </div>
  1997. <div class="application-location"></div>
  1998. </div>
  1999. <TABLE class="form-table">
  2000. <colgroup>
  2001. <col width="13%" />
  2002. <col width="*" />
  2003. </colgroup>
  2004. <TR height="25">
  2005. <th style="text-align: left;">반려일</th>
  2006. <TD><%=Formatter2.formatDate(prePayment.get("RTN_DATE"), "-")%></TD>
  2007. </TR>
  2008. <TR>
  2009. <th style="text-align: left;">반려사유</th>
  2010. <TD><%=prePayment.get("RTN_REASON")%></TD>
  2011. </TR>
  2012. </TABLE>
  2013. <%
  2014. }else if(!prePayment.get("TAX_RTN_REASON").equals("")){
  2015. %>
  2016. <div class="application-info magT10">
  2017. <div class="application-sub-title">
  2018. <span class="title">반려정보</span>
  2019. </div>
  2020. <div class="application-location"></div>
  2021. </div>
  2022. <TABLE class="form-table">
  2023. <colgroup>
  2024. <col width="13%" />
  2025. <col width="*" />
  2026. </colgroup>
  2027. <TR height="25">
  2028. <th style="text-align: left;">반려일</th>
  2029. <TD><%=prePayment.get("TAX_RTN_DATE")%></TD>
  2030. </TR>
  2031. <TR>
  2032. <th style="text-align: left;">반려사유</th>
  2033. <TD><%=prePayment.get("TAX_RTN_REASON")%></TD>
  2034. </TR>
  2035. </TABLE>
  2036. <%
  2037. }
  2038. %>
  2039. <div class="application-info magT10">
  2040. <div class="application-sub-title">
  2041. <span class="title">계약정보</span>
  2042. </div>
  2043. <div class="application-location"></div>
  2044. </div>
  2045. <TABLE class="form-table">
  2046. <colgroup>
  2047. <col width="13%" />
  2048. <col width="20%" />
  2049. <col width="13%" />
  2050. <col width="20%" />
  2051. <col width="13%" />
  2052. <col width="*" />
  2053. </colgroup>
  2054. <TR height="25">
  2055. <th style="text-align: left;">현장명</th>
  2056. <TD><%= InputText.get("deptName", prePayment.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2057. <th style="text-align: left;">계약명</th>
  2058. <TD><%= InputText.get("buildName", prePayment.get("CST_DOC_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2059. <th style="text-align: left;">통화</th>
  2060. <TD><%= InputText.get("conCurCd", prePayment.get("CURRENCY_GB"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2061. </TR>
  2062. <TR>
  2063. <th style="text-align: left;">사업자번호</th>
  2064. <TD><%= InputText.get("vendCd", prePayment.get("REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2065. <th style="text-align: left;">계약업체명</th>
  2066. <TD><%= InputText.get("memberName", prePayment.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2067. <th style="text-align: left;">대표이사</th>
  2068. <TD><%= InputText.get("bossName", prePayment.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2069. </TR>
  2070. <TR>
  2071. <th style="text-align: left;">계약기간</th>
  2072. <TD><%= InputText.get("startEndWorkDate", prePayment.get("ORD_START_END_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2073. <th style="text-align: left;">계약금액</th>
  2074. <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>
  2075. <th style="text-align: left;">선급금액</th>
  2076. <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>
  2077. </TR>
  2078. <TR>
  2079. <th style="text-align: left;">담당자명</th>
  2080. <TD><%= InputText.get("userName", prePayment.get("RES_USER_NAME"), 98, 6, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2081. <th style="text-align: left;">담당자 핸드폰번호</th>
  2082. <TD><%= InputText.get("hp", prePayment.get("RES_HP"), 98, 40, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2083. <th style="text-align: left;">담당자 이메일</th>
  2084. <TD><%= InputText.get("eMail", prePayment.get("RES_EMAIL"), 98, 40, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2085. </TR>
  2086. <TR>
  2087. <th style="text-align: left;">지급사유</th>
  2088. <TD>
  2089. <INPUT type="text" name="jigubsayu" id="jigubsayu" maxlength="1000" style="width:99%;" value="<%=prePayment.get("DDD") %>">
  2090. </TD>
  2091. <th style="text-align: left;">외국환거래 신고대상</th>
  2092. <TD colspan="3"><%if (prePayment.get("CURRENCY_GB").equals("KRW")) { %>
  2093. &nbsp; 비대상
  2094. <%}else{ %>
  2095. &nbsp;<%= InputText.get("FOREIGN_NM", prePayment.get("FOREIGN_NM"), 10, 10, "readOnly") %>
  2096. &nbsp;<span class="btnSearch center" id="btn_foreign"><a href="javascript:void(0);">검토</a></span>
  2097. <%} %>
  2098. </TD>
  2099. <%-- <th style="text-align: left;">하도급직불여부</th>
  2100. <TD colspan="3">
  2101. &nbsp;<input type="radio" name="SUPP_DIRECT_YN" value="Y"' <%=prePayment.get("SUPP_DIRECT_YN").equals("Y") ? "checked=\"checked\"" : ""%>>예
  2102. &nbsp;<input type="radio" name="SUPP_DIRECT_YN" value="N"' <%=prePayment.get("SUPP_DIRECT_YN").equals("N") ? "checked=\"checked\"" : ""%>>아니오
  2103. </TD> --%>
  2104. </TR>
  2105. </TABLE>
  2106. <!-- 계약정보 : 끝 -->
  2107. <%
  2108. /*
  2109. 분개유형
  2110. */
  2111. %>
  2112. <%@ include file="/jsp/ko_KR/buyer/cont/outside/payItem_typeA.jsp" %>
  2113. <!-- 세금계산서정보 : 시작 -->
  2114. <div class="application-info magT10">
  2115. <div class="application-sub-title">
  2116. <span class="title">세금계산서 정보</span>
  2117. </div>
  2118. <div class="application-location">
  2119. <span id="spanTaxSave" class="btnSearch center" style="display: none"><a href="javascript:void(0);" onclick="gubSave('1');" id="btnGubSave">세금계산서저장</a></span>
  2120. </div>
  2121. </div>
  2122. <TABLE class="form-table">
  2123. <colgroup>
  2124. <col width="13%" />
  2125. <col width="20%" />
  2126. <col width="13%" />
  2127. <col width="20%" />
  2128. <col width="13%" />
  2129. <col width="*" />
  2130. </colgroup>
  2131. <TR>
  2132. <th style="text-align: left;">세금계산서 발행방법</th>
  2133. <TD colspan="3">
  2134. <input type="radio" id="chk_1" name="chk_info" value="1" onclick="taxDataSet();" <%= check1 %>>역발행(SGC이앤씨 발행)
  2135. &nbsp;<input type="radio" id="chk_2" name="chk_info" value="2" onclick="taxDataSet();" <%= check2 %>>순발행(업체직접 발행)
  2136. &nbsp;<input type="radio" id="chk_3" name="chk_info" value="3" onclick="taxDataSet();" <%= check3 %>>&nbsp;Invoice
  2137. </TD>
  2138. <th style="text-align: left;">증빙일자</th>
  2139. <TD><%= InputText.get("date1", Formatter2.formatDate(prePayment.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  2140. <A href="JavaScript:calendar('date1');"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  2141. </TD>
  2142. </TR>
  2143. <TR>
  2144. <TH>환율</th>
  2145. <TD>
  2146. <%-- <%= InputText.get("rateEx", Formatter2.currency(prePayment.get("rateEx"), intDigit), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %> --%>
  2147. <%= InputText.get("rateEx", Formatter2.currency(prePayment.get("rateEx"), currency_digit), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  2148. </TD>
  2149. <TH>환율연산금액</th>
  2150. <TD colspan="3">공급가:<%= InputText.get("rateAmt", Formatter2.currency(prePayment.get("rateAmt"), intDigit), 20, 30, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>, 부가세:<%= InputText.get("rateVamt", Formatter2.currency(prePayment.get("rateVamt"), intDigit), 20, 30, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %>
  2151. </TD>
  2152. </TR>
  2153. </TABLE>
  2154. <!-- 세금계산서정보 : 끝 -->
  2155. <div class="application-info magT10">
  2156. <div class="application-sub-title">
  2157. <span class="title">대금정보</span>
  2158. </div>
  2159. <div class="application-location">
  2160. </div>
  2161. </div>
  2162. <TABLE class="form-table">
  2163. <colgroup>
  2164. <col width="13%" />
  2165. <col width="20%" />
  2166. <col width="13%" />
  2167. <col width="20%" />
  2168. <col width="13%" />
  2169. <col width="*" />
  2170. </colgroup>
  2171. <TR height="25">
  2172. <th style="text-align: left;">대금구분</th>
  2173. <TD><%= InputText.get("payDiv", "계획분할", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2174. <th style="text-align: left;">지급구분</th>
  2175. <TD>
  2176. <select name="selectDepositCd" id="selectDepositCd" onchange="WarrantyDiv()" disabled="disabled">
  2177. <option value="2">중도금</option>
  2178. <option value="3">잔금</option>
  2179. </select>
  2180. <script>
  2181. setSelect(form1.selectDepositCd, '<%=prePayment.get("DEPOSIT_CD")%>');
  2182. </script>
  2183. </TD>
  2184. <th style="text-align: left;">지급차수</th>
  2185. <TD><%= InputText.get("depositSeq", prePayment.get("DEPOSIT_SEQ"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2186. </TR>
  2187. <TR>
  2188. <th style="text-align: left;">선급금 청구금액</th>
  2189. <TD colspan="3">
  2190. 합계금액:<%= InputText.get("reqPrepayAmt", Formatter2.currency(prePayment.get("PREPAY_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
  2191. (공급가:<%= InputText.get("reqPrepaySamt", Formatter2.currency(prePayment.get("PREPAY_SUPPLY_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
  2192. ,부가세:<%= InputText.get("reqPrepayStax", Formatter2.currency(prePayment.get("PREPAY_SURTAX_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
  2193. )
  2194. </TD>
  2195. <th style="text-align: left;">업체신청일시</th>
  2196. <TD><%= InputText.get("custSignDate", prePayment.get("CUST_SIGN_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  2197. </TR>
  2198. </TABLE>
  2199. <img src="/img/com/blank.gif" height="10px" />
  2200. <TABLE class="list-form-table">
  2201. <colgroup>
  2202. <col width="3%" />
  2203. <col width="3%" />
  2204. <col width="5%" />
  2205. <col width="5%" />
  2206. <col width="5%" />
  2207. <col width="5%" />
  2208. <col width="5%" />
  2209. <col width="5%" />
  2210. <col width="5%" />
  2211. <col width="5%" />
  2212. <col width="5%" />
  2213. <col width="5%" />
  2214. <col width="5%" />
  2215. <col width="5%" />
  2216. </colgroup>
  2217. <tr>
  2218. <th colspan="2" rowspan="2"></th>
  2219. <th colspan="3">전회누계</th>
  2220. <th colspan="3">금회</th>
  2221. <th colspan="3">금회누계</th>
  2222. <th colspan="3">잔여</th>
  2223. </tr>
  2224. <tr>
  2225. <th>공급가액</th>
  2226. <th>부가세</th>
  2227. <th>합계</th>
  2228. <th>공급가액</th>
  2229. <th>부가세</th>
  2230. <th>합계</th>
  2231. <th>공급가액</th>
  2232. <th>부가세</th>
  2233. <th>합계</th>
  2234. <th>공급가액</th>
  2235. <th>부가세</th>
  2236. <th>합계</th>
  2237. </tr>
  2238. <tr>
  2239. <th rowspan="2">기성</th>
  2240. <th>율</th>
  2241. <td><%= InputText.get("befAcmpPercent", Formatter2.currency(prePayment.get("BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2242. <td colspan="2"></td>
  2243. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2244. <td><%= InputText.get("curAcmpPercent", Formatter2.currency(prePayment.get("CUR_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2245. <td colspan="2"></td>
  2246. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2247. <td><%= InputText.get("curBefAcmpPercent", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2248. <td colspan="2"></td>
  2249. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2250. <td><%= InputText.get("remainderAcmpPercent", Formatter2.currency(prePayment.get("REMAINDER_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2251. <td colspan="2"></td>
  2252. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2253. </tr>
  2254. <tr>
  2255. <th>금액</th>
  2256. <td><%= InputText.get("befAcmpApplyAmt", Formatter2.currency(prePayment.get("BEF_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2257. <td><%= InputText.get("befAcmpVat", Formatter2.currency(prePayment.get("BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2258. <td><%= InputText.get("befAcmpAmt", Formatter2.currency(prePayment.get("BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2259. <td><%= InputText.get("curAcmpApplyamt", Formatter2.currency(prePayment.get("CUR_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2260. <td><%= InputText.get("curAcmpVat", Formatter2.currency(prePayment.get("CUR_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2261. <td><%= InputText.get("curAcmpAmt", Formatter2.currency(prePayment.get("CUR_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2262. <td><%= InputText.get("curBefAcmpSupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2263. <td><%= InputText.get("curBefAcmpVat", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2264. <td><%= InputText.get("curBefAcmpAmt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2265. <td><%= InputText.get("remainderAcmpSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2266. <td><%= InputText.get("remainderAcmpVat", Formatter2.currency(prePayment.get("REMAINDER_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2267. <td><%= InputText.get("remainderAcmpAmt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2268. </tr>
  2269. <tr>
  2270. <th rowspan="2">선급<BR/>공제</th>
  2271. <th>율</th>
  2272. <td><%= InputText.get("befPrepayPercent", Formatter2.currency(prePayment.get("BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2273. <td colspan="2"></td>
  2274. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2275. <td><%= InputText.get("curPrepayPercent", Formatter2.currency(prePayment.get("CUR_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2276. <td colspan="2"></td>
  2277. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2278. <td><%= InputText.get("curBefPrepayPercent", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2279. <td colspan="2"></td>
  2280. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2281. <td><%= InputText.get("remainderPrepayPercent", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2282. <td colspan="2"></td>
  2283. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2284. </tr>
  2285. <tr>
  2286. <th>금액</th>
  2287. <td><%= InputText.get("befPrepayApplyAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2288. <td><%= InputText.get("befPrepayVat", Formatter2.currency(prePayment.get("BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2289. <td><%= InputText.get("befPrepayAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2290. <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input byteChk ,float, right, perSize", "float") %></td>
  2291. <%-- <td><%= InputText.get("curPrepayVat", Formatter2.currency(prePayment.get("CUR_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2292. <td><%= InputText.get("curPrepayVat", Formatter2.currency(prePayment.get("CUR_PREPAY_VAT"),intDigit), 99, 16, "class=input byteChk ,float, right, perSize", "float") %></td>
  2293. <td><%= InputText.get("curPrepayDeductamt", Formatter2.currency(prePayment.get("CUR_PREPAY_DEDUCTAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2294. <td><%= InputText.get("curBefPrepaySupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2295. <td><%= InputText.get("curBefPrepayVat", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2296. <td><%= InputText.get("curBefPrepayAmt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2297. <td><%= InputText.get("remainderPrepaySupplyamt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2298. <td><%= InputText.get("remainderPrepayVat", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2299. <td><%= InputText.get("remainderPrepayAmt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2300. </tr>
  2301. <tr>
  2302. <th rowspan="1">청구액</th>
  2303. <th>금액</th>
  2304. <td><%= InputText.get("payedApplyamt", Formatter2.currency(prePayment.get("PAYED_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2305. <td><%= InputText.get("payedVat", Formatter2.currency(prePayment.get("PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2306. <td><%= InputText.get("payedAmt", Formatter2.currency(prePayment.get("PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2307. <!-- 2017.1.18 잔여1-2원 관리자 정산 -->
  2308. <%if (user.get("right_name").equals("ADMIN NEW")) { %>
  2309. <td><%= InputText.get("curReqAmt", Formatter2.currency(prePayment.get("CUR_REQ_AMT"),intDigit), 99, 16, "class=input byteChk ,float, right, perSize", "float") %></td>
  2310. <%}else { %>
  2311. <td><%= InputText.get("curReqAmt", Formatter2.currency(prePayment.get("CUR_REQ_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2312. <%} %>
  2313. <td><%= InputText.get("curReqVatamt", Formatter2.currency(prePayment.get("CUR_REQ_VATAMT"),intDigit), 99, 16, "class=input byteChk ,float, right, perSize", "float") %></td>
  2314. <td><%= InputText.get("curReqApplyamt", Formatter2.currency(prePayment.get("CUR_REQ_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2315. <td><%= InputText.get("curPayedSupplyamt", Formatter2.currency(prePayment.get("CUR_PAYED_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2316. <td><%= InputText.get("curPayedVat", Formatter2.currency(prePayment.get("CUR_PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2317. <td><%= InputText.get("curPayedAmt", Formatter2.currency(prePayment.get("CUR_PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td>
  2318. <td colspan="3"></td>
  2319. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2320. <%-- <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></td> --%>
  2321. </tr>
  2322. </TABLE>
  2323. <!-- Vendor Print : 시작 -->
  2324. <div class="application-info magT15" id="vpDiv1">
  2325. <div class="application-sub-title">
  2326. <span class="title">Vendor Print</span>
  2327. </div>
  2328. <div class="application-location">
  2329. </div>
  2330. </div>
  2331. <TABLE class="form-table" id="vpDiv2">
  2332. <colgroup>
  2333. <col width="13%" />
  2334. <col width="19%" />
  2335. <col width="15%" />
  2336. <col width="19%" />
  2337. <col width="15%" />
  2338. <col width="19%" />
  2339. <col width="*" />
  2340. </colgroup>
  2341. <TR>
  2342. <th style="text-align: left;">검토부서</th>
  2343. <TD>
  2344. <%= InputText.get("EPART_DEPT_NAME", vendorPrintInfo.get("EPART_DEPT_NAME"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  2345. </TD>
  2346. <th style="text-align: left;">검토자</th>
  2347. <TD>
  2348. <INPUT type='hidden' name="VP_CHK_EMPNO" value="<%=vendorPrintInfo.get("VP_CHK_EMPNO")%>">
  2349. <%= InputText.get("VP_CHK_EMPNM", vendorPrintInfo.get("VP_CHK_EMPNM"), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  2350. <%-- <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');"> --%>
  2351. </TD>
  2352. <th style="text-align: left;">검토일자</th>
  2353. <TD colspan="2">
  2354. <%= 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") %>
  2355. <!-- <A href="JavaScript:calendar('VP_END_DY');"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A> -->
  2356. </TD>
  2357. </TR>
  2358. <TR>
  2359. <th style="text-align: left;">검토항목</th>
  2360. <TD colspan="3">
  2361. <%= InputText.get("VP_DESC", vendorPrintInfo.get("VP_DESC"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  2362. </TD>
  2363. <th style="text-align: left;">상태</th>
  2364. <TD colspan="2">
  2365. <%= InputText.get("VP_STATUS_NM", vendorPrintInfo.get("VP_STATUS_NM"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  2366. </TD>
  2367. </TR>
  2368. <tr height="25" id="return_reson_area">
  2369. <th style="text-align: left;">반려사유</th>
  2370. <td colspan="5">
  2371. <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>
  2372. </TD>
  2373. </tr>
  2374. <tr height="25">
  2375. <th>의견</th>
  2376. <td colspan="5">
  2377. <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>
  2378. </td>
  2379. </tr>
  2380. </TABLE>
  2381. <!-- Vendor Print : 끝 -->
  2382. <div class="application-info magT10">
  2383. <div class="application-sub-title">
  2384. <span class="title">첨부 및 기타서류</span>
  2385. </div>
  2386. <div class="application-location">
  2387. </div>
  2388. </div>
  2389. <TABLE class="form-table">
  2390. <colgroup>
  2391. <col width="25%" />
  2392. <col width="*" />
  2393. <col width="20%" />
  2394. <col width="20%" />
  2395. </colgroup>
  2396. <TR>
  2397. <th style="text-align: Center;" colspan="2">첨부서류</th>
  2398. <th style="text-align: Center;" colspan="1">파일첨부</th>
  2399. <th style="text-align: Center;" colspan="1">특기사항</th>
  2400. </TR>
  2401. <TR height="140">
  2402. <TD colspan="2">
  2403. <TABLE class="inner_table" border="0" >
  2404. <%
  2405. if(purchaseFileRow.size() > 0){
  2406. int i_mod = 0;
  2407. for(int i = 0; purchaseFileRow.size() > i; i++){
  2408. i_mod = i%3;
  2409. if(i_mod == 0){ %>
  2410. <TR>
  2411. <% } %>
  2412. <td width="2%">
  2413. <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");} %>>
  2414. </td>
  2415. <td width="20%">
  2416. <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
  2417. <%=purchaseFileRow.getRow(i).get("DETAILNM") %>
  2418. </td>
  2419. <td width="7%" height="24">
  2420. <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">
  2421. </td>
  2422. <% if(i_mod == 2) { %>
  2423. </TR>
  2424. <% } %>
  2425. <%
  2426. }
  2427. for(int i=i_mod+1; i<3; i++){ %>
  2428. <td></td>
  2429. <% }
  2430. if(i_mod == 0 || i_mod == 1){ %>
  2431. </TR>
  2432. <% }
  2433. }
  2434. %>
  2435. </TABLE>
  2436. </TD>
  2437. <TD><TEXTAREA name="p_AttachFile" id="p_AttachFile" rows="12" readOnly class="input ctrlTarget" style="width:98%; height: 98%; overflow-y:auto"></TEXTAREA></TD>
  2438. <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>
  2439. </TR>
  2440. </TABLE>
  2441. <!-- 보증정보 : 시작 -->
  2442. <%
  2443. /*
  2444. 보증 목록을 include 시킴 (2014-10-16) 김명호
  2445. */
  2446. if(!prePayment.get("REQ_STATUS").equals("98")){
  2447. %>
  2448. <%@ include file="/jsp/ko_KR/buyer/cont/purchase/guarList.jsp"%>
  2449. <%
  2450. }
  2451. %>
  2452. </FORM>