suppPayInstallRequest.jsp 92 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008
  1. <%--
  2. - FileName : suppPayItemRequest.jsp
  3. - Author(s) : ok
  4. - Date : 2014.06.17
  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 perpayReqDivComboList = storage.getRowSet("perpayReqDivComboList"); //신청구분 ComboList Data
  24. RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보
  25. /*
  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. RowSet prePaymentList = storage.getRowSet("prePaymentList"); //대금내역
  32. String check1 = "";
  33. String check2 = "";
  34. String check3 = "";
  35. String checkString = "";
  36. if("3".equals(prePayment.get("TAX_METHOD_CD"))){
  37. check3 = "checked";
  38. checkString = "Invoice";
  39. }else if("2".equals(prePayment.get("TAX_METHOD_CD"))){
  40. check2 = "checked";
  41. checkString = "순발행(업체직접 발행)";
  42. }else{
  43. check1 = "checked";
  44. checkString = "역발행(SGC이앤씨 발행)";
  45. }
  46. String digit = (String)prePayment.get("digit");
  47. int intDigit = Integer.parseInt(digit);
  48. //기타 첨부서류
  49. RowSet purchaseFileRow = storage.getRowSet("purchaseFileRow");
  50. %>
  51. <SCRIPT language="JavaScript">
  52. /*예약함수*/
  53. var sheet1;
  54. var sheet1Row;
  55. var sheet1PageNo = 1;
  56. var pageLastRowIndex = 1;
  57. var validationResult = false;
  58. var filterShow = false;
  59. var g_digit = <%= intDigit %>; // 소숫점 이하 자릿수
  60. function _onReady(){
  61. //리스트 페이지 이동
  62. jQuery("#btnList").click(function() {
  63. jQuery("#fevent").val("");
  64. jQuery("#form1").attr("action", "/portal/payment/SuppPayRequestList.screen");
  65. jQuery("#form1").attr("target", "_self");
  66. jQuery("#form1").attr("method", "post");
  67. jQuery("#form1").submit();
  68. });
  69. jQuery("#btnDelete").click(function() {
  70. var f = document.form1;
  71. //필수 입력항목 check
  72. if(jQuery("#prepayId").val() == ""){
  73. alert("삭제되었습니다.");
  74. return;
  75. }
  76. //입력데이터 저장
  77. if (confirm("삭제 하시겠습니까?")) {
  78. jQuery("#fevent").val("DELETE_DATA");
  79. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "DELETE_DATA", f, "SUCCESS");
  80. }
  81. });
  82. jQuery("#btnSave").click(function() {
  83. var f = document.form1;
  84. jQuery("#fevent").val("SAVE_DATA");
  85. //필수 입력항목 check
  86. if(requiredItemsCheck() == false){
  87. return;
  88. }
  89. //입력데이터 저장
  90. if (confirm("저장 하시겠습니까?")) {
  91. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  92. }
  93. });
  94. jQuery("#btnAppReq").click(function() {
  95. //첨부파일Check
  96. ChkAttch();
  97. /*
  98. var f = document.form1;
  99. jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:대금신청요청
  100. jQuery("#fevent").val("SAVE_DATA");
  101. //필수 입력항목 check
  102. if(requiredItemsCheck() == false){
  103. return;
  104. }
  105. //입력데이터 저장
  106. if (confirm(jQuery("#btnText").text()+" 하시겠습니까?")) {
  107. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  108. }
  109. */
  110. });
  111. //반려
  112. jQuery("#btnRejection").click(function() {
  113. /* var param = "";
  114. var param = "?payreqId=" + jQuery("#payreqId").val();
  115. param = param + "&pageDiv=2"; //0:선급, 1:기성, 2:대금(납품,설치), 3:대금(선급금)
  116. var url = "/payment/outside/RejectionPopup.screen"+param;
  117. result = window.showModalDialog(url,'rejection','dialogWidth:600px;dialogHeight:250px;center:yes;help:no;status:no;scroll:no;resizable:no');
  118. if(result != null){
  119. if(result[0] == "1"){
  120. reDisplay();
  121. //goList();
  122. }
  123. }
  124. */
  125. });
  126. //결재
  127. jQuery("#btnApproval").click(function() {
  128. /* if (!dlgConfirm("기성결재를 진행하시겠습니까?")) {
  129. return;
  130. }
  131. alert("확인후 개발할것 일단 완료 상태로 변경함.");
  132. var f = document.form1;
  133. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "APPROVAL", f, "SUCCESS");
  134. */
  135. });
  136. //jQuery("#curAcmpVat, #curPrepayApplyamt, #curPrepayVat").blur(function () {
  137. jQuery("#curPrepayApplyamt1").blur(function () {
  138. if(jQuery("#statusCd").val() == "10"){ //완료건에 대해서는 금액 계산을 하지않는다.
  139. return;
  140. }
  141. var conConAmtVal = jQuery("#conConAmt").val().replace(/(\,|\:)/g,""); //계약금
  142. var conConVatVal = conConAmtVal /100 * 10; //계약금 부가세
  143. var conPrepayAmtVal = jQuery("#conPrepayAmt").val().replace(/(\,|\:)/g,""); //선급금액
  144. var conPrepayVatVal = conPrepayAmtVal /100 * 10; //선급금액 부가세
  145. //전회 청구
  146. var befAcmpApplyAmtVal = jQuery("#befAcmpApplyAmt").val().replace(/(\,|\:)/g,""); //전회 청구 공급가액
  147. var befAcmpVatVal = jQuery("#befAcmpVat").val().replace(/(\,|\:)/g,""); //전회 청구 부가세
  148. var befAcmpAmtVal = jQuery("#befAcmpAmt").val().replace(/(\,|\:)/g,""); //전회 청구 합계
  149. var befAcmpPercentVal = jQuery("#befAcmpPercent").val().replace(/(\,|\:)/g,""); //전회 청구 지급율
  150. var curAcmpApplyamtVal = jQuery("#curAcmpApplyamt").val().replace(/(\,|\:)/g,""); //금회 청구 공급가액
  151. var befPrepayApplyAmtVal = jQuery("#befPrepayApplyAmt").val().replace(/(\,|\:)/g,""); //전회 선급 공급가액
  152. //금회 선급
  153. var curPrepayApplyamtVal = jQuery("#curPrepayApplyamt").val().replace(/(\,|\:)/g,""); //금회 선급 공급가액
  154. var curBefPrepaySupplyamtVal = parseFloat(befPrepayApplyAmtVal) + parseFloat(curPrepayApplyamtVal); //누계 선급 공급가액
  155. if(curPrepayApplyamtVal == ""){
  156. curPrepayApplyamtVal = 0;
  157. jQuery("#curPrepayApplyamt").val(0);
  158. }else{
  159. var reqPrepaySamtVal = jQuery("#reqPrepaySamt").val().replace(/(\,|\:)/g,""); //선급금 청구금액 공급가
  160. if(parseFloat(curBefPrepaySupplyamtVal) > parseFloat(reqPrepaySamtVal) ){
  161. alert("선급금 청구금액 공급가 보다 선급금공제액이 큽니다.");
  162. curPrepayApplyamtVal = jQuery("#orgCurPrepayApplyamt").val();
  163. jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal);
  164. jQuery("#curPrepayApplyamt").focus();
  165. }else{
  166. if(parseFloat(curPrepayApplyamtVal) > parseFloat(curAcmpApplyamtVal) ){ //입력한 선급금공제금액이 금회기성고공급가액보다 클수 없다.
  167. alert("선급금 공제액이 금회 기성고보다 큽니다.");
  168. curPrepayApplyamtVal = jQuery("#orgCurPrepayApplyamt").val();
  169. jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal);
  170. jQuery("#curPrepayApplyamt").focus();
  171. }else{
  172. jQuery("#curPrepayApplyamt").val(curPrepayApplyamtVal); //입력한 선급금공제 금회 공급가액 표시
  173. if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
  174. var bugaseVal = curAcmpApplyamtVal / 100 * 10;
  175. jQuery("#curAcmpVat").val(Math.floor(bugaseVal)); //기성고 금회 부가세
  176. var bugaseVatVal = curPrepayApplyamtVal / 100 * 10;
  177. jQuery("#curPrepayVat").val(Math.floor(bugaseVatVal)); //선급금공제 금회 부가세
  178. }else{
  179. jQuery("#curAcmpVat").val("0"); //기성고 금회 부가세
  180. jQuery("#curPrepayVat").val("0"); //선급금공제 금회 부가세
  181. }
  182. }
  183. }
  184. }
  185. //금회 청구
  186. var curAcmpVatVal = jQuery("#curAcmpVat").val().replace(/(\,|\:)/g,""); //금회 청구 부가세
  187. if(curAcmpVatVal == ""){
  188. curAcmpVatVal = 0;
  189. jQuery("#curAcmpVat").val(0);
  190. }else{
  191. jQuery("#curAcmpVat").val(curAcmpVatVal);
  192. }
  193. var curAcmpAmtVal = parseFloat(curAcmpApplyamtVal) + parseFloat(curAcmpVatVal); //금회 청구 합계
  194. jQuery("#curAcmpAmt").val(curAcmpAmtVal);
  195. jQuery("#curAcmpAmt, #curAcmpVat").each(function(index){
  196. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  197. });
  198. var curAcmpPercentVal = parseFloat(curAcmpApplyamtVal) / parseFloat(conConAmtVal) * 100; //금회 청구 지급율
  199. jQuery("#curAcmpPercent").val(curAcmpPercentVal.toFixed(1));
  200. //누계 청구
  201. var curBefAcmpSupplyamtVal = parseFloat(befAcmpApplyAmtVal) + parseFloat(curAcmpApplyamtVal); //누계 청구 공급가액
  202. jQuery("#curBefAcmpSupplyamt").val(curBefAcmpSupplyamtVal);
  203. var curBefAcmpVatVal = parseFloat(befAcmpVatVal) + parseFloat(curAcmpVatVal); //누계 청구 부가세
  204. jQuery("#curBefAcmpVat").val(curBefAcmpVatVal);
  205. var curBefAcmpAmtVal = parseFloat(curBefAcmpSupplyamtVal) + parseFloat(curBefAcmpVatVal); //누계 청구 합계
  206. jQuery("#curBefAcmpAmt").val(curBefAcmpAmtVal);
  207. var curBefAcmpPercentVal = parseFloat(curBefAcmpSupplyamtVal) / parseFloat(conConAmtVal) * 100; //누계 청구 지급율
  208. jQuery("#curBefAcmpPercent").val(curBefAcmpPercentVal.toFixed(1));
  209. jQuery("#curBefAcmpSupplyamt, #curBefAcmpVat, #curBefAcmpAmt").each(function(index){
  210. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  211. });
  212. //잔여 청구
  213. var remainderAcmpSupplyamtVal = parseFloat(conConAmtVal) - parseFloat(curBefAcmpSupplyamtVal); //잔여 청구 공급가액
  214. jQuery("#remainderAcmpSupplyamt").val(remainderAcmpSupplyamtVal);
  215. var remainderAcmpVatVal = parseFloat(conConVatVal) - parseFloat(curBefAcmpVatVal); //잔여 청구 부가세
  216. jQuery("#remainderAcmpVat").val(remainderAcmpVatVal);
  217. var remainderAcmpAmtVal = parseFloat(remainderAcmpSupplyamtVal) + parseFloat(remainderAcmpVatVal); //잔여 청구 합계
  218. jQuery("#remainderAcmpAmt").val(remainderAcmpAmtVal);
  219. var remainderAcmpPercentVal = parseFloat(remainderAcmpSupplyamtVal) / parseFloat(conConAmtVal) * 100; //누계 청구 지급율
  220. jQuery("#remainderAcmpPercent").val(remainderAcmpPercentVal.toFixed(1));
  221. jQuery("#remainderAcmpSupplyamt, #remainderAcmpVat, #remainderAcmpAmt").each(function(index){
  222. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  223. });
  224. //전회 선급
  225. var befPrepayVatVal = jQuery("#befPrepayVat").val().replace(/(\,|\:)/g,""); //전회 선급 부가세
  226. var befPrepayAmtVal = jQuery("#befPrepayAmt").val().replace(/(\,|\:)/g,""); //전회 선급 합계
  227. var befPrepayPercentVal = jQuery("#befPrepayPercent").val().replace(/(\,|\:)/g,""); //전회 선급 지급율
  228. var curPrepayVatVal = jQuery("#curPrepayVat").val().replace(/(\,|\:)/g,""); //금회 선급 부가세
  229. if(curPrepayVatVal == ""){
  230. curPrepayVatVal = 0;
  231. jQuery("#curPrepayVat").val(0);
  232. }else{
  233. jQuery("#curPrepayVat").val(curPrepayVatVal);
  234. }
  235. var curPrepayDeductamtVal = parseFloat(curPrepayApplyamtVal) + parseFloat(curPrepayVatVal); //금회 선급 합계
  236. jQuery("#curPrepayDeductamt").val(curPrepayDeductamtVal);
  237. if(parseFloat(curPrepayApplyamtVal) == "0"){
  238. var curPrepayPercentVal = 0.0; //금회 선급 지급율
  239. }else{
  240. var curPrepayPercentVal = parseFloat(curPrepayApplyamtVal) / parseFloat(conPrepayAmtVal) * 100; //금회 선급 지급율
  241. }
  242. jQuery("#curPrepayPercent").val(curPrepayPercentVal.toFixed(1));
  243. jQuery("#curPrepayApplyamt, #curPrepayVat, #curPrepayDeductamt").each(function(index){
  244. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  245. });
  246. //누계 선급
  247. jQuery("#curBefPrepaySupplyamt").val(curBefPrepaySupplyamtVal);
  248. var curBefPrepayVatVal = parseFloat(befPrepayVatVal) + parseFloat(curPrepayVatVal); //누계 선급 부가세
  249. jQuery("#curBefPrepayVat").val(curBefPrepayVatVal);
  250. var curBefPrepayAmtVal = parseFloat(befPrepayAmtVal) + parseFloat(curPrepayDeductamtVal); //누계 청구 합계
  251. jQuery("#curBefPrepayAmt").val(curBefPrepayAmtVal);
  252. if(parseFloat(curBefPrepaySupplyamtVal) == "0"){
  253. var curBefPrepayPercentVal = 0.0; //누계 선급 지급율
  254. }else{
  255. var curBefPrepayPercentVal = parseFloat(curBefPrepaySupplyamtVal) / parseFloat(conPrepayAmtVal) * 100; //누계 선급 지급율
  256. }
  257. jQuery("#curBefPrepayPercent").val(curBefPrepayPercentVal.toFixed(1));
  258. jQuery("#curBefPrepaySupplyamt, #curBefPrepayVat, #curBefPrepayAmt").each(function(index){
  259. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  260. });
  261. //잔여 선급
  262. var remainderPrepaySupplyamtVal = parseFloat(conPrepayAmtVal) - parseFloat(curBefPrepaySupplyamtVal); //잔여 선급 공급가액
  263. jQuery("#remainderPrepaySupplyamt").val(remainderPrepaySupplyamtVal);
  264. var remainderPrepayVatVal = parseFloat(conPrepayVatVal) - parseFloat(curBefPrepayVatVal); //잔여 선급 부가세
  265. jQuery("#remainderPrepayVat").val(remainderPrepayVatVal);
  266. var remainderPrepayAmtVal = parseFloat(remainderPrepaySupplyamtVal) + parseFloat(remainderPrepayVatVal); //잔여 선급 합계
  267. jQuery("#remainderPrepayAmt").val(remainderPrepayAmtVal);
  268. if(parseFloat(remainderPrepaySupplyamtVal) == "0"){
  269. var remainderPrepayPercentVal = 0.0; //잔여 선급 지급율
  270. }else{
  271. var remainderPrepayPercentVal = parseFloat(remainderPrepaySupplyamtVal) / parseFloat(conPrepayAmtVal) * 100; //잔여 선급 지급율
  272. }
  273. jQuery("#remainderPrepayPercent").val(remainderPrepayPercentVal.toFixed(1));
  274. jQuery("#remainderPrepaySupplyamt, #remainderPrepayVat, #remainderPrepayAmt").each(function(index){
  275. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  276. });
  277. //전회 실지급
  278. var payedApplyamtVal = parseFloat(befAcmpApplyAmtVal) - parseFloat(befPrepayApplyAmtVal); //전회 실지급 공급가액
  279. jQuery("#payedApplyamt").val(payedApplyamtVal);
  280. var payedVatVal = parseFloat(befAcmpVatVal) - parseFloat(befPrepayVatVal); //전회 실지급 부가세
  281. jQuery("#payedVat").val(payedVatVal);
  282. var payedAmtVal = parseFloat(payedApplyamtVal) + parseFloat(payedVatVal); //전회 실지급 합계
  283. jQuery("#payedAmt").val(payedAmtVal);
  284. var payedPercentVal = parseFloat(payedApplyamtVal) / parseFloat(conConAmtVal) * 100; //전회 실지급 지급율
  285. jQuery("#payedPercent").val(payedPercentVal.toFixed(1));
  286. jQuery("#payedApplyamt, #payedVat, #payedAmt").each(function(index){
  287. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  288. });
  289. //금회 실지급
  290. var curReqAmtVal = parseFloat(curAcmpApplyamtVal) - parseFloat(curPrepayApplyamtVal); //금회 실지급 공급가액
  291. jQuery("#curReqAmt").val(curReqAmtVal);
  292. //var curReqVatamtVal = parseFloat(curAcmpVatVal) - parseFloat(curPrepayVatVal); //금회 실지급 부가세
  293. if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
  294. var curReqVatamtVal = curReqAmtVal / 100 * 10; //금회 실지급 부가세
  295. }else{
  296. var curReqVatamtVal = 0; //금회 실지급 부가세
  297. }
  298. jQuery("#curReqVatamt").val(curReqVatamtVal);
  299. var curReqApplyamtVal = parseFloat(curReqAmtVal) + parseFloat(curReqVatamtVal); //금회 실지급 합계
  300. jQuery("#curReqApplyamt").val(curReqApplyamtVal);
  301. var curReqPercentVal = parseFloat(curReqAmtVal) / parseFloat(conConAmtVal) * 100; //금회 실지급 지급율
  302. jQuery("#curReqPercent").val(curReqPercentVal.toFixed(1));
  303. jQuery("#curReqAmt, #curReqVatamt, #curReqApplyamt").each(function(index){
  304. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  305. });
  306. //누계 실지급
  307. var curPayedSupplyamtVal = parseFloat(curBefAcmpSupplyamtVal) - parseFloat(curBefPrepaySupplyamtVal); //누계 실지급 공급가액
  308. jQuery("#curPayedSupplyamt").val(curPayedSupplyamtVal);
  309. var curPayedVatVal = parseFloat(curBefAcmpVatVal) - parseFloat(curBefPrepayVatVal); //누계 실지급 부가세
  310. jQuery("#curPayedVat").val(curPayedVatVal);
  311. var curPayedAmtVal = parseFloat(curPayedSupplyamtVal) + parseFloat(curPayedVatVal); //누계 실지급 합계
  312. jQuery("#curPayedAmt").val(curPayedAmtVal);
  313. var curPayedPercentVal = parseFloat(curPayedSupplyamtVal) / parseFloat(conConAmtVal) * 100; //누계 실지급 지급율
  314. jQuery("#curPayedPercent").val(curPayedPercentVal.toFixed(1));
  315. jQuery("#curPayedSupplyamt, #curPayedVat, #curPayedAmt").each(function(index){
  316. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  317. });
  318. //잔여 실지급
  319. var remainderSupplyamtVal = parseFloat(remainderAcmpSupplyamtVal) - parseFloat(remainderPrepaySupplyamtVal); //잔여 실지급 공급가액
  320. jQuery("#remainderSupplyamt").val(remainderSupplyamtVal);
  321. var remainderVatVal = parseFloat(remainderAcmpVatVal) - parseFloat(remainderPrepayVatVal); //잔여 실지급 부가세
  322. jQuery("#remainderVat").val(remainderVatVal);
  323. var remainderAmtVal = parseFloat(remainderSupplyamtVal) + parseFloat(remainderVatVal); //잔여 실지급 합계
  324. jQuery("#remainderAmt").val(remainderAmtVal);
  325. var remainderPercentVal = parseFloat(remainderSupplyamtVal) / parseFloat(conConAmtVal) * 100; //잔여 실지급 지급율
  326. jQuery("#remainderPercent").val(remainderPercentVal.toFixed(1));
  327. jQuery("#remainderSupplyamt, #remainderVat, #remainderAmt").each(function(index){
  328. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  329. });
  330. //잔여가 0이면 잔급으로 설정
  331. setDepostiCd();
  332. });
  333. pageinit();
  334. }
  335. //페이지 초기처리
  336. function pageinit(){
  337. //대금신청(신청상태)
  338. //setAmountData();
  339. //작성일자(증빙일자)
  340. seTaxDate();
  341. //신청구분 선택불가
  342. //appDivSet();
  343. //입력항목 초기처리
  344. //inputDataSet();
  345. //발행방법에 따른 페이지 셋팅
  346. //taxDataSet();
  347. //버튼표시 셋팅
  348. btnCtr();
  349. //상태에 따른 입력항목 readOnly
  350. inputReadOnlyset();
  351. getFileListForTextarea();
  352. //하자이행보증정보 view유무
  353. setGuarOutList();
  354. //Vender Print 초기처리
  355. setVenderPrintInit();
  356. }
  357. function setGuarOutList(){
  358. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  359. var preFundRateValue = Number(jQuery("#befAcmpPercent").val()); //전회 누계기성율
  360. //var preFundRateValue = 90; //전회 누계기성율
  361. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  362. var totFundRateValue = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
  363. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  364. var acmpNoValue = jQuery("#depositSeq").val(); //지급차수
  365. if(Number(checkRate1) > 99){
  366. jQuery('#warr1').show();
  367. jQuery('#warr2').show();
  368. }else if(Number(checkRate2) > 99){
  369. jQuery('#warr1').show();
  370. jQuery('#warr2').show();
  371. }else{
  372. jQuery('#warr1').hide();
  373. jQuery('#warr2').hide();
  374. }
  375. }
  376. //신청대상일때 계약선급금액을 선급신청금액에 초기 입력한다.
  377. function setAmountData() {
  378. if(jQuery("#statusCd").val() == "00"){ //신청대상
  379. var subPrepaySupplyTamtValue = jQuery("#subPrepaySupplyTamt").val(); //계약 선급금액
  380. jQuery("#reqPrepaySupplyTamt").val(subPrepaySupplyTamtValue); //선급 신청금액
  381. var subPrepaySupplyNamtValue = jQuery("#subPrepaySupplyNamt").val(); //계약 면세금액
  382. jQuery("#reqPrepaySupplyNamt").val(subPrepaySupplyNamtValue); //선급 면세금액
  383. }
  384. }
  385. function appDivSet() {
  386. jQuery("#perpayReqDiv").attr("disabled", true);
  387. jQuery("#reqPrepaySupplyTamt, #reqPrepaySupplyNamt").blur();
  388. }
  389. function seTaxDate(){
  390. var newDay = new Date( get_year(), get_month(), "");
  391. var lastDay = newDay.getDate();
  392. var yyyymmdd = get_year() +'-'+ get_month() +"-"+ lastDay;
  393. //alert(jQuery('#date1').val());
  394. if(jQuery('#date1').val() == ""){
  395. jQuery('#date1').val(yyyymmdd);
  396. }
  397. }
  398. function btnCtr(){
  399. //alert(jQuery("#statusCd").val());
  400. if(jQuery("#statusCd").val() == "00"){ //01:신청대상는 목록, 삭제, 저장 표시
  401. jQuery("#spanBtnList").show();
  402. jQuery("#spanBtnDelete").show();
  403. jQuery("#spanBtnSave").show();
  404. jQuery("#spanBtnRejection").hide();
  405. jQuery("#spanBtnApproval").hide();
  406. jQuery("#spanBtnAppReq").hide();
  407. }
  408. if(jQuery("#statusCd").val() == "01"){ //01:작성상태는 목록, 삭제, 저장, 대금신청 표시
  409. jQuery("#spanBtnList").show();
  410. jQuery("#spanBtnDelete").show();
  411. jQuery("#spanBtnSave").show();
  412. jQuery("#spanBtnAppReq").show();
  413. jQuery("#spanBtnRejection").hide();
  414. jQuery("#spanBtnApproval").hide();
  415. }
  416. if(jQuery("#statusCd").val() == "02"){ //02:대금요청상태는 목록, 삭제, 저장, 대금신청 표시
  417. jQuery("#spanBtnList").show();
  418. jQuery("#spanBtnDelete").hide();
  419. jQuery("#spanBtnSave").show();
  420. jQuery("#spanBtnAppReq").show();
  421. jQuery("#spanBtnRejection").hide();
  422. jQuery("#spanBtnApproval").hide();
  423. }
  424. if(jQuery("#statusCd").val() == "03"){ //03:대금신청상태는 목록, 반려, 결재
  425. jQuery("#spanBtnList").show();
  426. jQuery("#spanBtnDelete").hide();
  427. jQuery("#spanBtnSave").hide();
  428. jQuery("#spanBtnAppReq").hide();
  429. jQuery("#spanBtnRejection").hide();
  430. jQuery("#spanBtnApproval").hide();
  431. }
  432. if(jQuery("#statusCd").val() == "04"){ //04:결재중상태는 목록
  433. jQuery("#spanBtnList").show();
  434. jQuery("#spanBtnDelete").hide();
  435. jQuery("#spanBtnSave").hide();
  436. jQuery("#spanBtnAppReq").hide();
  437. jQuery("#spanBtnRejection").hide();
  438. jQuery("#spanBtnApproval").hide();
  439. }
  440. if(jQuery("#statusCd").val() == "10"){ //10:결재완료상태는 목록
  441. jQuery("#spanBtnList").show();
  442. jQuery("#spanBtnDelete").hide();
  443. jQuery("#spanBtnSave").hide();
  444. jQuery("#spanBtnAppReq").hide();
  445. jQuery("#spanBtnRejection").hide();
  446. jQuery("#spanBtnApproval").hide();
  447. }
  448. if(jQuery("#statusCd").val() == "40"){ //40:VP심사중
  449. jQuery("#spanBtnList").show();
  450. jQuery("#spanBtnDelete").hide();
  451. jQuery("#spanBtnSave").hide();
  452. jQuery("#spanBtnAppReq").hide();
  453. jQuery("#spanBtnRejection").hide();
  454. jQuery("#spanBtnApproval").hide();
  455. }
  456. if(jQuery("#statusCd").val() == "50"){ //50:VP반려
  457. jQuery("#spanBtnList").show();
  458. jQuery("#spanBtnDelete").hide();
  459. jQuery("#spanBtnSave").hide();
  460. jQuery("#spanBtnAppReq").hide();
  461. jQuery("#spanBtnRejection").hide();
  462. jQuery("#spanBtnApproval").hide();
  463. }
  464. if(jQuery("#statusCd").val() == "60"){ //60:VP승인
  465. jQuery("#spanBtnList").show();
  466. jQuery("#spanBtnDelete").hide();
  467. jQuery("#spanBtnSave").hide();
  468. jQuery("#spanBtnAppReq").hide();
  469. jQuery("#spanBtnRejection").hide();
  470. jQuery("#spanBtnApproval").hide();
  471. }
  472. if(jQuery("#statusCd").val() == "99"){ //99:반려상태는 목록, 삭제, 저장, 대금신청요청 표시
  473. jQuery("#spanBtnList").show();
  474. jQuery("#spanBtnDelete").hide();
  475. jQuery("#spanBtnSave").show();
  476. jQuery("#spanBtnAppReq").show();
  477. jQuery("#spanBtnRejection").hide();
  478. jQuery("#spanBtnApproval").hide();
  479. }
  480. }
  481. function inputReadOnlyset() {
  482. if (jQuery("#statusCd").val() == "10" || jQuery("#statusCd").val() == "04" || jQuery("#statusCd").val() == "03") { //입력불가상태
  483. jQuery("#userName").attr("readonly", true);
  484. jQuery("#userName").css({'background-color' : '#F0F0F0'});
  485. jQuery("#userName").css({'border' : '1px solid #bcbcbc'});
  486. jQuery("#hp").attr("readonly", true);
  487. jQuery("#hp").css({'background-color' : '#F0F0F0'});
  488. jQuery("#hp").css({'border' : '1px solid #bcbcbc'});
  489. jQuery("#eMail").attr("readonly", true);
  490. jQuery("#eMail").css({'background-color' : '#F0F0F0'});
  491. jQuery("#eMail").css({'border' : '1px solid #bcbcbc'});
  492. jQuery("#curAcmpVat").attr("readonly", true);
  493. jQuery("#curAcmpVat").css({'background-color' : '#F0F0F0'});
  494. jQuery("#curAcmpVat").css({'border' : '1px solid #bcbcbc'});
  495. jQuery("#curPrepayApplyamt").attr("readonly", true);
  496. jQuery("#curPrepayApplyamt").css({'background-color' : '#F0F0F0'});
  497. jQuery("#curPrepayApplyamt").css({'border' : '1px solid #bcbcbc'});
  498. jQuery("#curPrepayVat").attr("readonly", true);
  499. jQuery("#curPrepayVat").css({'background-color' : '#F0F0F0'});
  500. jQuery("#curPrepayVat").css({'border' : '1px solid #bcbcbc'});
  501. jQuery("#selectDepositCd").attr("disabled", true);
  502. }
  503. WarrantyDiv();
  504. }
  505. function taxDataSet(){
  506. var radioCheck = jQuery(':radio[name="chk_info"]:checked').val(); //세금계산서 발행방법
  507. if(radioCheck == "1"){
  508. jQuery("#taxAttachments").hide();
  509. jQuery("#taxTrRow").hide();
  510. }else{
  511. jQuery("#taxAttachments").show();
  512. jQuery("#taxTrRow").show();
  513. }
  514. }
  515. //잔여/중도금 설정
  516. function setDepostiCd(){
  517. var remainderAcmpAmtValue = jQuery("#remainderAcmpAmt").val(); //기성고_잔여_합계
  518. if(Number(remainderAcmpAmtValue) == 0){
  519. jQuery("#selectDepositCd").val("3"); //잔금
  520. }else{
  521. jQuery("#selectDepositCd").val("2"); //중도금
  522. }
  523. }
  524. function inputDataSet(){
  525. jQuery("#perpayReqDiv").attr("disabled",true);
  526. if(jQuery("#perpayReqDiv option:selected").val() == "1"){
  527. jQuery("#giveAmt").val("0"); //선급_포기금액_합계
  528. jQuery("#reqPrepayAmt").attr("readonly",true);
  529. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  530. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  531. jQuery("#reqPrepayAmt").val(jQuery("#perpayAmt").val());
  532. jQuery("#giveSupplyTamt").val("0"); //선급_포기금액_과세
  533. jQuery("#reqPrepaySupplyTamt").attr("readonly",true);
  534. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
  535. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
  536. jQuery("#reqPrepaySupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
  537. jQuery("#giveSupplyNamt").val("0"); //선급_포기금액_면세
  538. jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
  539. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  540. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  541. jQuery("#reqPrepaySupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
  542. jQuery("#giveSurtaxAmt").val("0"); //선급_포기금액_부가세
  543. jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
  544. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  545. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  546. jQuery("#reqPrepaySurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
  547. jQuery("#givePercent").val("0.0");
  548. var reqPrepayAmt = jQuery("#reqPrepayAmt").val();
  549. reqPrepayAmt = reqPrepayAmt.replace(/(\,|\:)/g,"");
  550. var conAmt = jQuery("#conAmt").val();
  551. conAmt = conAmt.replace(/(\,|\:)/g,"");
  552. var givePercent = (reqPrepayAmt / conAmt) * 100;
  553. jQuery("#reqPrepayPercent").val(givePercent.toFixed(1));
  554. giveDataSet();
  555. warrCtr('S'); //S:보이기, H:숨기기
  556. }else if(jQuery("#perpayReqDiv option:selected").val() == "2"){
  557. jQuery("#reqPrepayAmt").attr("readonly",true);
  558. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  559. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  560. jQuery("#reqPrepaySupplyTamt").attr("readonly",false);
  561. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#ffffff'});
  562. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #595a5a'});
  563. if(jQuery("#conSupplyNamt").val() == "0"){
  564. jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
  565. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  566. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  567. }else{
  568. jQuery("#reqPrepaySupplyNamt").attr("readonly",false);
  569. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#ffffff'});
  570. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #595a5a'});
  571. }
  572. jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
  573. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  574. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  575. jQuery("#reqPrepaySupplyTamt").val(jQuery("#orgReqPrepaySupplyTamt").val());
  576. jQuery("#reqPrepaySupplyNamt").val(jQuery("#orgReqPrepaySupplyNamt").val());
  577. jQuery("#reqPrepaySupplyTamt").blur();
  578. giveDataSet();
  579. warrCtr('S'); //S:보이기, H:숨기기
  580. }else if(jQuery("#perpayReqDiv option:selected").val() == "3"){
  581. jQuery("#reqPrepayAmt").val("0"); //선급_신청금액_합계
  582. jQuery("#reqPrepayAmt").attr("readonly",true);
  583. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  584. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  585. jQuery("#giveAmt").val(jQuery("#perpayAmt").val());
  586. jQuery("#reqPrepaySupplyTamt").val("0"); //선급_신청금액_과세
  587. jQuery("#reqPrepaySupplyTamt").attr("readonly",true);
  588. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
  589. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
  590. jQuery("#giveSupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
  591. jQuery("#reqPrepaySupplyNamt").val("0"); //선급_신청금액_면세
  592. jQuery("#reqPrepaySupplyNamt").attr("readonly",true);
  593. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  594. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  595. jQuery("#giveSupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
  596. jQuery("#reqPrepaySurtaxAmt").val("0"); //선급_신청금액_부가세
  597. jQuery("#reqPrepaySurtaxAmt").attr("readonly",true);
  598. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  599. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  600. jQuery("#giveSurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
  601. jQuery("#reqPrepayPercent").val("0.0");
  602. var giveAmt = jQuery("#giveAmt").val();
  603. giveAmt = giveAmt.replace(/(\,|\:)/g,"");
  604. var conAmt = jQuery("#conAmt").val();
  605. conAmt = conAmt.replace(/(\,|\:)/g,"");
  606. var givePercent = (giveAmt / conAmt) * 100;
  607. jQuery("#givePercent").val(givePercent.toFixed(1));
  608. giveDataSet();
  609. //포기일때 보증정보는 필요없으므로 숨김처ㅣ
  610. warrCtr('H'); //S:보이기, H:숨기기
  611. }
  612. }
  613. function warrCtr(gubun){
  614. if (gubun == "H") { //숨김
  615. var warrWamt = jQuery("#warrWamt").val().replace(/(\,|\:)/g, "");
  616. if(warrWamt == "0" || warrWamt == ""){
  617. jQuery('#warr1').slideUp();
  618. jQuery('#warr2').slideUp();
  619. }else{
  620. alert("보증정보가 존재합니다.");
  621. //jQuery("#reqPrepaySupplyTamt").val(jQuery("#warrWamt").val());
  622. }
  623. } else {
  624. jQuery('#warr1').show("slow");
  625. jQuery('#warr2').show("slow");
  626. }
  627. }
  628. function reDisplay() {
  629. jQuery("#fevent").val("");
  630. jQuery("#form1").attr("action", "/portal/payment/SuppPayInstallRequest.screen");
  631. jQuery("#form1").attr("target", "_self");
  632. jQuery("#form1").attr("method", "post");
  633. jQuery("#form1").submit();
  634. }
  635. //저장 및 대금 신청시 필수항목 Check
  636. function requiredItemsCheck(){
  637. var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
  638. var userName = jQuery('#userName').val(); //담당자명
  639. var hp = jQuery('#hp').val(); //담당자 핸드폰번호
  640. var eMail = jQuery('#eMail').val(); //담당자 이메일
  641. if(date1 == "" ){
  642. alert("입력필수입니다.");
  643. jQuery('#date1').focus();
  644. return false;
  645. }
  646. if(userName == ""){
  647. alert("담당자명은 입력필수입니다.");
  648. jQuery('#userName').focus();
  649. return false;
  650. }
  651. if(hp == ""){
  652. alert("담당자 핸드폰 번호는 입력필수입니다.");
  653. jQuery('#hp').focus();
  654. return false;
  655. }else{
  656. var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
  657. var strValue = hp;
  658. var chkFlg = rgEx.test(strValue);
  659. if(!chkFlg){
  660. alert("올바른 휴대폰번호가 아닙니다.");
  661. jQuery('#hp').focus();
  662. return false;
  663. }
  664. }
  665. if(eMail == ""){
  666. alert("담당자 이메일은 입력필수입니다.");
  667. jQuery('#eMail').focus();
  668. return false;
  669. }else{
  670. 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})(\]?)$/;
  671. if(!regEmail.test(eMail)) {
  672. alert('올바른 이메일 주소가 아닙니다.');
  673. jQuery('#eMail').focus();
  674. return false;
  675. }
  676. }
  677. //금액Check처리
  678. var remainderAcmpAmtValue = jQuery("#remainderAcmpAmt").val(); //기성고_잔여_합게
  679. var remainderPrepayAmtValue = jQuery("#remainderPrepayAmt").val(); //선급금공제_잔여_합게
  680. var curReqVatamtValue = jQuery("#curReqVatamt").val(); //청구액_금회_부가세
  681. if(Number(remainderAcmpAmtValue) < 0 || Number(remainderPrepayAmtValue) < 0 || Number(curReqVatamtValue) < 0){
  682. alert("금액을 확인바랍니다.");
  683. return false;
  684. }
  685. if(jQuery("#btnAppReqSelect").val() == "1"){ //대신청요청시에는 해당하는 첨부파일이 모드 등록되어있어야함.
  686. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  687. var preFundRateValue = Number(jQuery("#befAcmpPercent").val()); //전회 누계기성율
  688. //var preFundRateValue = 90; //전회 누계기성율
  689. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  690. var totFundRateValue = Number(jQuery("#curBefAcmpPercent").val()); //누계기성율
  691. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  692. if(checkRate1 > 99 || checkRate2 > 99){
  693. //하자이행보증 정보가 존재하는지Check
  694. if(jQuery("#warrWgno").val() == ""){
  695. alert("하자이행보증 정보가 없습니다.");
  696. return false;
  697. }
  698. }
  699. //01:작성중, 02:대금요청, 03:대금신청, 04:결재, 10:결재완료, 99:반려
  700. /* if (jQuery("#perpayReqDiv").val() == "1") { //선급신청
  701. jQuery("#selectStatusCd").val("20");
  702. } else if (jQuery("#perpayReqDiv").val() == "2") { //부분신청
  703. jQuery("#selectStatusCd").val("20");
  704. } else if (jQuery("#perpayReqDiv").val() == "3") { //포기신청
  705. jQuery("#selectStatusCd").val("21");
  706. } else {
  707. alert("신청구분을 선택하세요");
  708. return;
  709. } */
  710. }
  711. }
  712. function doResult(resultObj) {
  713. try {
  714. if( resultObj.getRequestEvent() == "SAVE_DATA" ) {
  715. if( resultObj.getSuccess() ) {
  716. document.form1.isSubmit = false;
  717. if(jQuery("#btnAppReqSelect").val() == "0"){
  718. alert("저장되었습니다.");
  719. //jQuery("#btnList").click();
  720. reDisplay();
  721. }else{
  722. jQuery("#btnAppReqSelect").val("0");
  723. btnAppReqProcess();
  724. }
  725. }else {
  726. dlgErrorMsg(resultObj);
  727. }
  728. document.form1.isSubmit = false;
  729. }
  730. if( resultObj.getRequestEvent() == "DELETE_DATA" ) {
  731. if( resultObj.getSuccess() ) {
  732. alert("삭제되었습니다.");
  733. jQuery("#btnList").click();
  734. }else {
  735. dlgErrorMsg(resultObj);
  736. }
  737. document.form1.isSubmit = false;
  738. }
  739. if( resultObj.getRequestEvent() == "REQ_DATA" ) {
  740. if( resultObj.getSuccess() ) {
  741. alert("신청요청하였습니다.");
  742. jQuery("#btnList").click();
  743. }else {
  744. dlgErrorMsg(resultObj);
  745. }
  746. document.form1.isSubmit = false;
  747. }
  748. if( resultObj.getRequestEvent() == "GET_ATTACHFILE" ) {
  749. if( resultObj.getSuccess() ) {
  750. document.form1.p_AttachFile.value = resultObj.getValueObject().get("AttachFile");
  751. }else {
  752. dlgErrorMsg(resultObj);
  753. }
  754. document.form1.isSubmit = false;
  755. }
  756. if( resultObj.getRequestEvent() == "CHK_ATTCH" ) {
  757. var vo = resultObj.getValueObject();
  758. var check = vo.get('checkFlag');
  759. if(check == 0){ //가능
  760. document.form1.isSubmit = false;
  761. runAppReq();
  762. }else{
  763. document.form1.isSubmit = false;
  764. if(check == 1){
  765. alert("대금청구서 첨부파일이 없습니다.");
  766. }
  767. }
  768. }
  769. if( resultObj.getRequestEvent() == "GET_DATA" ) {
  770. if( resultObj.getSuccess() ) {
  771. var subContId = resultObj.getValueObject().get("SUB_CONT_ID");
  772. if(subContId != ""){
  773. jQuery("#subContId").val(subContId);
  774. var warrGubun = resultObj.getValueObject().get("WARR_GUBUN");
  775. jQuery("#warrGubun").val(warrGubun);
  776. var warrSeq = resultObj.getValueObject().get("WARR_SEQ");
  777. jQuery("#warrSeq").val(warrSeq);
  778. var causeCode = resultObj.getValueObject().get("CAUSECODE");
  779. jQuery("#causeCode").val("당초");
  780. var guarOnoffYn = resultObj.getValueObject().get("GUAR_ONOFF_YN");
  781. jQuery("#guarOnoffYn").val(guarOnoffYn);
  782. var warrGoffice = resultObj.getValueObject().get("WARR_GOFFICE");
  783. jQuery("#warrGoffice").val(warrGoffice);
  784. var guarStatus = resultObj.getValueObject().get("GUAR_STATUS");
  785. jQuery("#guarStatus").val(guarStatus);
  786. var paperDate = resultObj.getValueObject().get("PAPERDATE");
  787. jQuery("#paperDate").val(paperDate);
  788. var warrWgno = resultObj.getValueObject().get("WARR_WGNO");
  789. jQuery("#warrWgno").val(warrWgno);
  790. var warrWamt = resultObj.getValueObject().get("WARR_WAMT");
  791. jQuery("#warrWamt").val(warrWamt);
  792. jQuery("#warrWamt").each(function(index){
  793. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  794. });
  795. var warrSdateEdate = resultObj.getValueObject().get("WARR_SDATE_EDATE");
  796. jQuery("#warrSdateEdate").val(warrSdateEdate);
  797. }
  798. }else {
  799. dlgErrorMsg(resultObj);
  800. }
  801. document.form1.isSubmit = false;
  802. }
  803. }
  804. catch(errorObject) {
  805. showErrorDlg("doResult()", errorObject);
  806. }
  807. }
  808. //저장 후 기성시청 처리
  809. function btnAppReqProcess(){
  810. fMakeItemInfo();
  811. // if (fMakeItemInfo()) { //서명데이터 처리
  812. // var f = document.form1;
  813. // jQuery("#fevent").val("REQ_DATA");
  814. // submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "REQ_DATA", f, "SUCCESS");
  815. // }
  816. }
  817. function doKeyPress() {
  818. if( event.keyCode == 13 ) {
  819. doSearch(document.all.sheet1)
  820. }
  821. }
  822. function calendar(thisDayObj){
  823. dlgCalendar(thisDayObj);
  824. }
  825. //첨부파일
  826. function doAttachFile(obj,No,fileName) {
  827. //alert(obj.value);
  828. if(obj.value == ''){
  829. //alert("After you have saved, you can attach a file.");
  830. alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
  831. }
  832. else if(obj.value != ''){
  833. //if(No == 1){
  834. // viewFileListNew('PURCHASE_'+obj.value, No, document.getElementById("fileMapIDDiv"), "Y", "payment/purchase/"+obj.value);
  835. //}else{
  836. var upLoadFlg = "N";
  837. if(jQuery("#statusCd").val() == "02"){ //상태값이 기성신청(03), 결재완료(10) 일때는 첨부파일 다운로드만 가능 2019.05.14 10->02로변경
  838. upLoadFlg = "Y";
  839. }
  840. viewFileListNew('PURCHASE_'+obj.value, No, document.getElementById("fileMapIDDiv"), upLoadFlg, "payment/purchase/"+obj.value, null, fileName);
  841. //}
  842. }
  843. //기성첨부파일 목록 조회
  844. //getFileListForTextarea();
  845. }
  846. //첨부목록 조회
  847. function getFileListForTextarea(){
  848. document.form1.p_AttachFile.value = "";
  849. var f = document.form1;
  850. jQuery("#fevent").val("GET_ATTACHFILE");
  851. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
  852. }
  853. //보증정보 조회
  854. function callback_getContWarr(){
  855. //alert("보증정보 조회");
  856. fLayerPopClose('contOutWarrPop');
  857. var f = document.form1;
  858. jQuery("#fevent").val("GET_DATA");
  859. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "GET_DATA", f, "VALUEOBJECT");
  860. }
  861. function fileCheck(checkObj, val){
  862. var f = document.form1;
  863. //alert(checkObj.value);
  864. //alert(checkObj.checked);
  865. //alert(val);
  866. var obj = eval("document.getElementById('" + val + "')");
  867. if(obj.style.display == "none"){
  868. obj.style.display = "inline";
  869. checkObj.checked = true;
  870. }else{
  871. obj.style.display = "none";
  872. checkObj.checked = false;
  873. }
  874. }
  875. //보증정보 조회
  876. function callback_getContWarr(){
  877. var f = document.form1;
  878. jQuery("#fevent").val("GET_DATA");
  879. submitXmlRequest("/payment/outside/AdvencePayment_form.screen", "GET_DATA", f, "VALUEOBJECT");
  880. }
  881. //첨부파일Check
  882. function ChkAttch(){
  883. var f = document.form1;
  884. jQuery("#fevent").val("CHK_ATTCH");
  885. submitXmlRequest("/portal/payment/SuppPayItemRequests_form.screen", "CHK_ATTCH", f, "VALUEOBJECT");
  886. }
  887. function runAppReq(){
  888. var f = document.form1;
  889. jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:대금신청요청
  890. jQuery("#fevent").val("SAVE_DATA");
  891. //필수 입력항목 check
  892. if(requiredItemsCheck() == false){
  893. return;
  894. }
  895. //입력데이터 저장
  896. if (confirm(jQuery("#btnText").text()+" 하시겠습니까?")) {
  897. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  898. }
  899. }
  900. function fMakeItemInfo() {
  901. var sColumDelimiter = "┃";
  902. var sRowDelimiter = "↕";
  903. var sSumDelimiter = "╂";
  904. var sEncDelimiter = "⇔";
  905. var sItemInfo = ""; //서명할 문자열 데이터
  906. var infoDeptName = "현장명:" + jQuery("#deptName").val(); //현장명
  907. var infoBuildName = "계약명:" + jQuery("#buildName").val(); //계약명
  908. var infoConCurNm = "계약통화:" + jQuery("#conCurCd").val(); //계약통화
  909. var infoCorpRegNo = "사업자번호:" + jQuery("#vendCd").val(); //사업자번호
  910. var CorpRegNoVal = jQuery("#vendCd").val().replace(/-/gi, "");
  911. //사업자번호
  912. //alert(CorpRegNoVal);
  913. var infoCorpKor = "계약업체명:" + jQuery("#memberName").val(); //계약업체명
  914. var infoBossName = "대표이사:" + jQuery("#bossName").val(); //업체대표이사
  915. var infoStartEndWorkDate = "계약기간:" + jQuery("#startEndWorkDate").val(); //계약기간
  916. var infoConAmt = "계약금액:" + jQuery("#conAmt").val(); //계약금액합계
  917. var infoPerpayAmt = "선급금액:" + jQuery("#perpayAmt").val(); //선급금액합계
  918. //var infoHowToPay = "대금지불방법:" + jQuery("#howToPay").val(); //대금지불방법
  919. var infoHowToPay = "지급사유:" + jQuery("#howToPay").val(); //지급사유
  920. var infoTaxMethod = ""; //세금계산서발행방법
  921. if (jQuery('input:checkbox[id="chk_1"]').is(":checked")) { //역발행
  922. infoTaxMethod = "세금계산서발행방법:역발행";
  923. } else {
  924. infoTaxMethod = "세금계산서발행방법:순발행";
  925. }
  926. var infoDate1 = "작성일자:" + jQuery("#date1").val(); //작성일자(증빙일자)
  927. var infoTaxChargNm = "담당자명:" + jQuery("#userName").val(); //담당자명
  928. var infoTaxChargHp = "핸드폰번호:" + jQuery("#hp").val(); //담당자 핸드폰번호
  929. var infoTaxChargEmail = "이메일주소:" + jQuery("#eMail").val(); //담당자 이메일
  930. var infoPayDiv = "대금구분:계획분할"; //대금구분:설치
  931. var infoDepositCd = "지급구분:" + jQuery("#selectDepositCd option:selected").val(); //지급구분:중도금
  932. var infoDepositSeq = "지급차수:" + jQuery("#depositSeq").val(); //지급차수:02
  933. var infoPrepayAmt = "선급_청구금액_합계:" + jQuery("#reqPrepayAmt").val();
  934. var infoPrepaySupplyTamt = "선급_청구금액_공급가:"+ jQuery("#reqPrepaySamt").val();
  935. var infoPrepaySurtaxAmt = "선급_청구금액_부가세:" + jQuery("#reqPrepaySamt").val();
  936. sItemInfo = sItemInfo + infoDeptName + sColumDelimiter;
  937. sItemInfo = sItemInfo + infoBuildName + sColumDelimiter;
  938. sItemInfo = sItemInfo + infoConCurNm + sColumDelimiter;
  939. sItemInfo = sItemInfo + infoCorpRegNo + sColumDelimiter;
  940. sItemInfo = sItemInfo + infoCorpKor + sColumDelimiter;
  941. sItemInfo = sItemInfo + infoBossName + sColumDelimiter;
  942. sItemInfo = sItemInfo + infoStartEndWorkDate + sColumDelimiter;
  943. sItemInfo = sItemInfo + infoConAmt + sColumDelimiter;
  944. sItemInfo = sItemInfo + infoPerpayAmt + sColumDelimiter;
  945. sItemInfo = sItemInfo + infoHowToPay + sColumDelimiter;
  946. sItemInfo = sItemInfo + infoTaxMethod + sColumDelimiter;
  947. sItemInfo = sItemInfo + infoDate1 + sColumDelimiter;
  948. sItemInfo = sItemInfo + infoTaxChargNm + sColumDelimiter;
  949. sItemInfo = sItemInfo + infoTaxChargHp + sColumDelimiter;
  950. sItemInfo = sItemInfo + infoTaxChargEmail + sColumDelimiter;
  951. sItemInfo = sItemInfo + infoPayDiv + sColumDelimiter;
  952. sItemInfo = sItemInfo + infoDepositCd + sColumDelimiter;
  953. sItemInfo = sItemInfo + infoDepositSeq + sColumDelimiter;
  954. sItemInfo = sItemInfo + infoPrepayAmt + sColumDelimiter;
  955. sItemInfo = sItemInfo + infoPrepaySupplyTamt + sColumDelimiter;
  956. //sItemInfo = sItemInfo + infoReqPrepaySupplyNamt + sColumDelimiter;
  957. sItemInfo = sItemInfo + infoPrepaySurtaxAmt;
  958. //alert(sItemInfo);
  959. if (sItemInfo == null || sItemInfo == "") {
  960. alert("서명할 데이타를 넣어주십시요");
  961. return false;
  962. }
  963. unisign.SignDataNVerifyVID( sItemInfo, null, CorpRegNoVal, function( resultObject ) {
  964. if( !resultObject || resultObject.resultCode != 0 ){
  965. if( resultObject.resultCode == '14208'){
  966. alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
  967. } else if( resultObject.resultCode == '999'){
  968. alert("사용자 DN 선택이 취소 되었습니다.");
  969. } else {
  970. alert( resultObject.resultMessage);
  971. }
  972. return ;
  973. }
  974. var signeddata = resultObject.signedData;
  975. // var userdn = resultObject.certAttrs.subjectName;
  976. jQuery("#signeddata").val(signeddata);
  977. var f = document.form1;
  978. jQuery("#fevent").val("REQ_DATA");
  979. submitXmlRequest("/portal/payment/SuppPayInstallRequest_form.screen", "REQ_DATA", f, "SUCCESS");
  980. });
  981. }
  982. //보증정보팝업 호출
  983. function popContWarr(wG, wSeq, wCauseCd) {
  984. var win_id = "contPurWarrPopup";
  985. var param = "";
  986. var param = "?purContModId=" + jQuery("#selectSubContModId").val();
  987. var param = param + "&warrGubun=" + wG;
  988. var param = param + "&warrSeq=" + wSeq;
  989. var param = param + "&causeCode=" + wCauseCd;
  990. if(wG=="3"){
  991. var param = param + "&viewDiv=PREPAY";
  992. var param = param + "&prepayId=" + jQuery("#payreqId").val();
  993. }else{
  994. var param = param + "&viewDiv=PAYREQ";
  995. }
  996. var param = param + "&pop_win_id=" + win_id;
  997. var url = "/portal/guar/contPurWarrPopup.screen"+param;
  998. fLayerPop(win_id, url, 560,500, '','', 'NO');
  999. }
  1000. //보증정보팝업 종료후 액션
  1001. function popContWarrClose(returnValue){
  1002. if(returnValue == null){
  1003. fLayerPopClose('contPurWarrPopup');
  1004. }else{
  1005. fLayerPopClose('contPurWarrPopup');
  1006. location.reload();
  1007. }
  1008. }
  1009. function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
  1010. var editFile = "";
  1011. if(obj==''){
  1012. alert("After you have saved, you can attach a file.");
  1013. }
  1014. else if(obj != ''){
  1015. if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
  1016. viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contPurWarrPopup");
  1017. }
  1018. }
  1019. function WarrantyDiv(){
  1020. //alert(jQuery("#selectDepositCd option:selected").val());
  1021. /* if(jQuery("#selectDepositCd option:selected").val() == "2"){ //중도금
  1022. jQuery("#warr1").show();
  1023. jQuery("#warr2").show();
  1024. }else{
  1025. jQuery("#warr1").show();
  1026. jQuery("#warr2").show();
  1027. } */
  1028. }
  1029. function setVenderPrintInit(){
  1030. var vpYN = jQuery("#vpYN").val();
  1031. if(vpYN != "Y"){
  1032. jQuery("#vpDiv1").css("display", "none");
  1033. jQuery("#vpDiv2").css("display", "none");
  1034. }else{
  1035. if(jQuery("#vpRtnReason").val() == ""){
  1036. jQuery("#return_reson_area").css("display", "none");
  1037. }
  1038. }
  1039. }
  1040. </SCRIPT>
  1041. <modular:search id="form1">
  1042. <modular:key id="fevent" />
  1043. </modular:search>
  1044. <form id="form1" name="form1" method="post" modular:type="search">
  1045. <div style="display:none;" id="fileMapIDDiv" class="attach_file_view" onPropertyChange="JavaScript:getFileListForTextarea();">
  1046. </div>
  1047. <INPUT type="hidden" name="fevent" id="fevent" value="">
  1048. <INPUT type="hidden" name="payreqId" id="payreqId" value="<%=prePayment.get("PAYREQ_ID") %>"> <!-- 발주계약ID -->
  1049. <INPUT type="hidden" name="purContId" id="purContId" value="<%=prePayment.get("PUR_CONT_ID") %>"> <!-- 발주계약ID -->
  1050. <INPUT type="hidden" name="selectSubContModId" id="selectSubContModId" value="<%=prePayment.get("PUR_CONT_MOD_ID") %>">
  1051. <!-- 리스트 검색조건 보존 시작-->
  1052. <INPUT type='hidden' id="searchDeptCd" name="searchDeptCd" value="<%=params.get("searchDeptCd")%>"> <!-- 현장코드 -->
  1053. <INPUT type='hidden' id="searchDeptNm" name="searchDeptNm" value="<%=params.get("searchDeptNm")%>"> <!-- 현장명 -->
  1054. <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("searchBuildName")%>"> <!-- 계약명 -->
  1055. <INPUT type='hidden' id="searchDateStart" name="searchDateStart" value="<%=params.get("searchDateStart")%>"> <!-- 작성 시작일 -->
  1056. <INPUT type='hidden' id="searchDateEnd" name="searchDateEnd" value="<%=params.get("searchDateEnd")%>"> <!-- 작성 종료일 -->
  1057. <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("searchStatusCd")%>"> <!-- 상태값 -->
  1058. <!-- 리스트 검색조건 보존 종료-->
  1059. <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0"> <!-- 결재 및 저장 구분 0:저장, 1:결재 -->
  1060. <INPUT type='hidden' id="conConAmt" name="conConAmt" value="<%=prePayment.get("ORD_AMT")%>"> <!-- 계약금액 -->
  1061. <INPUT type='hidden' id="conPrepayAmt" name="conPrepayAmt" value="<%=prePayment.get("PREPAY_SUPPLY_AMT")%>"> <!-- 선급금액 -->
  1062. <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=prePayment.get("REQ_STATUS") %>"> <!-- 상태값 -->
  1063. <INPUT type='hidden' id="vpYN" name="vpYN" value="<%=prePayment.get("VP_YN") %>">
  1064. <!-- 임시 FILE MAP ID 값 -->
  1065. <INPUT type="hidden" name="fileMapID" value="" onPropertyChange="JavaScript:getFileListForTextarea();">
  1066. <INPUT type='hidden' name="signeddata" value=""> <!-- 서명데이터 -->
  1067. <INPUT type="hidden" name="bugase" id="bugase" value="<%=prePayment.get("CHG_CODE10") %>">
  1068. <INPUT type="hidden" name="orgCurPrepayApplyamt" id="orgCurPrepayApplyamt" value="<%=prePayment.get("CUR_PREPAY_APPLYAMT") %>">
  1069. <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=prePayment.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
  1070. <INPUT type='hidden' id="resHp" name="resHp" value="<%=prePayment.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
  1071. <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=prePayment.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
  1072. <INPUT type='hidden' id="resDivision" name="resDivision" value="<%=prePayment.get("RES_DIVISION") %>">
  1073. <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=prePayment.get("ORD_DOC_NO") %>"> <!-- 발주계약번호 -->
  1074. <INPUT type='hidden' id="defEstGuarRate" name="defEstGuarRate" value="<%=prePayment.get("DEF_GUAR_AMT_RATE") %>"> <!-- 하자보수보증금율 -->
  1075. <!-- 제목 및 버튼 -->
  1076. <table width="100%">
  1077. <colgroup>
  1078. <col width="500" />
  1079. <col width="*" />
  1080. </colgroup>
  1081. <tr>
  1082. <th>
  1083. <div align="left" id="title">
  1084. <ul>
  1085. <li>구매_대금신청 상세(<%=prePayment.get("STATUS_NM")%>)</li>
  1086. </ul>
  1087. </div>
  1088. </th>
  1089. <td align="right">
  1090. <span id="spanBtnSave" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnSave">저장</a></span>
  1091. <span id="spanBtnDelete" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
  1092. <span id="spanBtnAppReq" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnAppReq"><span id="btnText">대금신청</span></a></span>
  1093. <span id="spanBtnApproval" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnApproval">결재</a></span>
  1094. <span id="spanBtnRejection" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnRejection">반려</a></span>
  1095. <span id="spanBtnList" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnList">목록</a></span>
  1096. </td>
  1097. </tr>
  1098. </table>
  1099. <%
  1100. if(!prePayment.get("RTN_REASON").equals("")){
  1101. %>
  1102. <div class="application-info magT10">
  1103. <div class="application-sub-title">
  1104. <span class="title">반려정보</span>
  1105. </div>
  1106. <div class="application-location"></div>
  1107. </div>
  1108. <TABLE class="form-table">
  1109. <colgroup>
  1110. <col width="13%" />
  1111. <col width="*" />
  1112. </colgroup>
  1113. <TR height="25">
  1114. <th style="text-align: left;">반려일</th>
  1115. <TD><%=Formatter2.formatDate(prePayment.get("RTN_DATE"), "-")%></TD>
  1116. </TR>
  1117. <TR>
  1118. <th style="text-align: left;">반려사유</th>
  1119. <TD><%=prePayment.get("RTN_REASON")%></TD>
  1120. </TR>
  1121. </TABLE>
  1122. <%
  1123. }
  1124. %>
  1125. <div class="application-info magT10">
  1126. <div class="application-sub-title">
  1127. <span class="title">계약정보</span>
  1128. </div>
  1129. <div class="application-location"></div>
  1130. </div>
  1131. <TABLE class="form-table">
  1132. <colgroup>
  1133. <col width="13%" />
  1134. <col width="20%" />
  1135. <col width="13%" />
  1136. <col width="20%" />
  1137. <col width="13%" />
  1138. <col width="*" />
  1139. </colgroup>
  1140. <TR height="25">
  1141. <th style="text-align: left;">현장명</th>
  1142. <TD><%= InputText.get("deptName", prePayment.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1143. <th style="text-align: left;">계약명</th>
  1144. <TD><%= InputText.get("buildName", prePayment.get("CST_DOC_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1145. <th style="text-align: left;">통화</th>
  1146. <TD><%= InputText.get("conCurCd", prePayment.get("CURRENCY_GB"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1147. </TR>
  1148. <TR>
  1149. <th style="text-align: left;">사업자번호</th>
  1150. <TD><%= InputText.get("vendCd", prePayment.get("REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1151. <th style="text-align: left;">계약업체명</th>
  1152. <TD><%= InputText.get("memberName", prePayment.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1153. <th style="text-align: left;">대표이사</th>
  1154. <TD><%= InputText.get("bossName", prePayment.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1155. </TR>
  1156. <TR>
  1157. <th style="text-align: left;">계약기간</th>
  1158. <TD><%= InputText.get("startEndWorkDate", prePayment.get("ORD_START_END_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1159. <th style="text-align: left;">계약금액</th>
  1160. <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>
  1161. <th style="text-align: left;">선급금액</th>
  1162. <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>
  1163. </TR>
  1164. <TR>
  1165. <th style="text-align: left;">지급사유</th>
  1166. <TD colspan="5">
  1167. <INPUT type="text" name="howToPay" id="howToPay" maxlength="999" style="width:99%;" value="<%=prePayment.get("DDD") %>">
  1168. </TD>
  1169. </TR>
  1170. </TABLE>
  1171. <!-- 계약정보 : 끝 -->
  1172. <!-- 세금계산서정보 : 시작 -->
  1173. <div class="application-info magT10">
  1174. <div class="application-sub-title">
  1175. <span class="title">세금계산서 정보</span>
  1176. </div>
  1177. <div class="application-location">
  1178. </div>
  1179. </div>
  1180. <TABLE class="form-table">
  1181. <colgroup>
  1182. <col width="13%" />
  1183. <col width="20%" />
  1184. <col width="13%" />
  1185. <col width="20%" />
  1186. <col width="13%" />
  1187. <col width="*" />
  1188. </colgroup>
  1189. <TR>
  1190. <th style="text-align: left;">세금계산서 발행방법</th>
  1191. <TD colspan="3">
  1192. <input type="radio" id="chk_1" name="chk_info" value="1" onclick="taxDataSet();" <%= check1 %> disabled='disabled' style="display: none;"/>
  1193. <input type="radio" id="chk_2" name="chk_info" value="2" onclick="taxDataSet();" <%= check2 %> disabled='disabled' style="display: none;"/>
  1194. <input type="radio" id="chk_3" name="chk_info" value="3" onclick="taxDataSet();" <%= check3 %> disabled='disabled' style="display: none;"/>
  1195. <%= checkString %>
  1196. </TD>
  1197. <th style="text-align: left;">작성일자(증빙일자)</th>
  1198. <TD><%= InputText.get("date1", Formatter2.formatDate(prePayment.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  1199. <A href="JavaScript:calendar('date1');"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  1200. </TD>
  1201. </TR>
  1202. <TR>
  1203. <th class="required" style="text-align: left;">담당자명</th>
  1204. <TD><%= InputText.get("userName", prePayment.get("TAX_CHARG_NM"), 98, 6, "string, left, perSize", "string") %></TD>
  1205. <th class="required" style="text-align: left;">담당자 핸드폰번호</th>
  1206. <TD><input type="text" id="hp" name="hp" value="<%=prePayment.get("TAX_CHARG_HP")%>" style="width: 44%" size="13" maxlength="13" alt="left">&nbsp;ex)010-0000-0000</TD>
  1207. <th class="required" style="text-align: left;">담당자 이메일</th>
  1208. <TD><%= InputText.get("eMail", prePayment.get("TAX_CHARG_EMAIL"), 98, 40, "string, left, perSize", "string") %></TD>
  1209. </TR>
  1210. </TABLE>
  1211. <!-- 세금계산서정보 : 끝 -->
  1212. <div class="application-info magT10">
  1213. <div class="application-sub-title">
  1214. <span class="title">대금정보</span>
  1215. </div>
  1216. <div class="application-location">
  1217. </div>
  1218. </div>
  1219. <TABLE class="form-table">
  1220. <colgroup>
  1221. <col width="13%" />
  1222. <col width="20%" />
  1223. <col width="13%" />
  1224. <col width="20%" />
  1225. <col width="13%" />
  1226. <col width="*" />
  1227. </colgroup>
  1228. <TR height="25">
  1229. <th style="text-align: left;">대금구분</th>
  1230. <TD><%= InputText.get("payDiv", "계획분할", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1231. <th style="text-align: left;">지급구분</th>
  1232. <TD>
  1233. <!-- <select name="selectDepositCd" id="selectDepositCd" onchange="" disabled>
  1234. <option value="2">중도금</option>
  1235. <option value="3">잔금</option>
  1236. </select> -->
  1237. <select name="selectDepositCd" id="selectDepositCd" onchange="WarrantyDiv()" style="background-color:#F0F0F0" disabled>
  1238. <option value="2">중도금</option>
  1239. <option value="3">잔금</option>
  1240. </select>
  1241. <script>
  1242. setSelect(form1.selectDepositCd, '<%=prePayment.get("DEPOSIT_CD")%>');
  1243. </script>
  1244. </TD>
  1245. <th style="text-align: left;">지급차수</th>
  1246. <TD><%= InputText.get("depositSeq", prePayment.get("DEPOSIT_SEQ"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1247. </TR>
  1248. </TABLE>
  1249. <img src="/img/com/blank.gif" height="10px" />
  1250. <TABLE class="form-table">
  1251. <colgroup>
  1252. <col width="13%" />
  1253. <col width="20%" />
  1254. <col width="13%" />
  1255. <col width="20%" />
  1256. <col width="13%" />
  1257. <col width="*" />
  1258. </colgroup>
  1259. <TR>
  1260. <th style="text-align: left;">선급금 청구금액</th>
  1261. <TD colspan="3">
  1262. 합계금액:<%= InputText.get("reqPrepayAmt", Formatter2.currency(prePayment.get("PREPAY_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
  1263. (청구금액:<%= InputText.get("reqPrepaySamt", Formatter2.currency(prePayment.get("PREPAY_SUPPLY_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
  1264. ,부가세:<%= InputText.get("reqPrepaySamt", Formatter2.currency(prePayment.get("PREPAY_SURTAX_AMT"), intDigit), 20, 16, "number, right, perSize, readonly, tabIndex=-1", "number") %>
  1265. )
  1266. </TD>
  1267. <th style="text-align: left;">업체신청일시</th>
  1268. <TD><%= InputText.get("signDate", prePayment.get("CUST_SIGN_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1269. </TR>
  1270. </TABLE>
  1271. <%-- <img src="/img/com/blank.gif" height="10px" />
  1272. <TABLE class="form-table">
  1273. <colgroup>
  1274. <col width="65" />
  1275. <col/>
  1276. <col/>
  1277. <col/>
  1278. <col width="40" />
  1279. <col/>
  1280. <col/>
  1281. <col/>
  1282. <col width="40" />
  1283. <col/>
  1284. <col/>
  1285. <col/>
  1286. </colgroup>
  1287. <tr>
  1288. <th rowspan="2"></th>
  1289. <th colspan="4">기성고</th>
  1290. <th colspan="4">선급금공제</th>
  1291. <th colspan="3">청구액</th>
  1292. </tr>
  1293. <tr>
  1294. <th>공급가액</th>
  1295. <th>부가세</th>
  1296. <th>합계</th>
  1297. <th>요율</th>
  1298. <th>공급가액</th>
  1299. <th>부가세</th>
  1300. <th>합계</th>
  1301. <th>요율</th>
  1302. <th>공급가액</th>
  1303. <th>부가세</th>
  1304. <th>합계</th>
  1305. </tr>
  1306. <tr>
  1307. <th>전회까지</th>
  1308. <td><%= InputText.get("befAcmpApplyAmt", Formatter2.currency(prePayment.get("BEF_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1309. <td><%= InputText.get("befAcmpVat", Formatter2.currency(prePayment.get("BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1310. <td><%= InputText.get("befAcmpAmt", Formatter2.currency(prePayment.get("BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1311. <td><%= InputText.get("befAcmpPercent", Formatter2.currency(prePayment.get("BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1312. <td><%= InputText.get("befPrepayApplyAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1313. <td><%= InputText.get("befPrepayVat", Formatter2.currency(prePayment.get("BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1314. <td><%= InputText.get("befPrepayAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1315. <td><%= InputText.get("befPrepayPercent", Formatter2.currency(prePayment.get("BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1316. <td><%= InputText.get("payedApplyamt", Formatter2.currency(prePayment.get("PAYED_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1317. <td><%= InputText.get("payedVat", Formatter2.currency(prePayment.get("PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1318. <td><%= InputText.get("payedAmt", Formatter2.currency(prePayment.get("PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1319. <td><%= InputText.get("payedPercent", Formatter2.currency(prePayment.get("PAYED_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1320. </tr>
  1321. <tr>
  1322. <th>금회</th>
  1323. <td><%= InputText.get("curAcmpApplyamt", Formatter2.currency(prePayment.get("CUR_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1324. <td><%= InputText.get("curAcmpVat", Formatter2.currency(prePayment.get("CUR_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1325. <td><%= InputText.get("curAcmpAmt", Formatter2.currency(prePayment.get("CUR_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1326. <td><%= InputText.get("curAcmpPercent", Formatter2.currency(prePayment.get("CUR_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1327. <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input byteChk ,number, right, perSize", "number") %></td>
  1328. <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1329. <td><%= InputText.get("curPrepayVat", Formatter2.currency(prePayment.get("CUR_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1330. <td><%= InputText.get("curPrepayDeductamt", Formatter2.currency(prePayment.get("CUR_PREPAY_DEDUCTAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1331. <td><%= InputText.get("curPrepayPercent", Formatter2.currency(prePayment.get("CUR_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1332. <td><%= InputText.get("curReqAmt", Formatter2.currency(prePayment.get("CUR_REQ_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1333. <td><%= InputText.get("curReqVatamt", Formatter2.currency(prePayment.get("CUR_REQ_VATAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1334. <td><%= InputText.get("curReqApplyamt", Formatter2.currency(prePayment.get("CUR_REQ_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1335. <td><%= InputText.get("curReqPercent", Formatter2.currency(prePayment.get("CUR_REQ_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1336. </tr>
  1337. <tr>
  1338. <th>누계</th>
  1339. <td><%= InputText.get("curBefAcmpSupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1340. <td><%= InputText.get("curBefAcmpVat", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1341. <td><%= InputText.get("curBefAcmpAmt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1342. <td><%= InputText.get("curBefAcmpPercent", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1343. <td><%= InputText.get("curBefPrepaySupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1344. <td><%= InputText.get("curBefPrepayVat", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1345. <td><%= InputText.get("curBefPrepayAmt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1346. <td><%= InputText.get("curBefPrepayPercent", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1347. <td><%= InputText.get("curPayedSupplyamt", Formatter2.currency(prePayment.get("CUR_PAYED_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1348. <td><%= InputText.get("curPayedVat", Formatter2.currency(prePayment.get("CUR_PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1349. <td><%= InputText.get("curPayedAmt", Formatter2.currency(prePayment.get("CUR_PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1350. <td><%= InputText.get("curPayedPercent", Formatter2.currency(prePayment.get("CUR_PAYED_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1351. </tr>
  1352. <tr>
  1353. <th>잔여</th>
  1354. <td><%= InputText.get("remainderAcmpSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1355. <td><%= InputText.get("remainderAcmpVat", Formatter2.currency(prePayment.get("REMAINDER_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1356. <td><%= InputText.get("remainderAcmpAmt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1357. <td><%= InputText.get("remainderAcmpPercent", Formatter2.currency(prePayment.get("REMAINDER_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1358. <td><%= InputText.get("remainderPrepaySupplyamt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1359. <td><%= InputText.get("remainderPrepayVat", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1360. <td><%= InputText.get("remainderPrepayAmt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1361. <td><%= InputText.get("remainderPrepayPercent", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1362. <td><%= InputText.get("remainderSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_SUPPLYAMT"),intDigit), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1363. <td><%= InputText.get("remainderVat", Formatter2.currency(prePayment.get("REMAINDER_VAT"),intDigit), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1364. <td><%= InputText.get("remainderAmt", Formatter2.currency(prePayment.get("REMAINDER_AMT"),intDigit), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1365. <td><%= InputText.get("remainderPercent", Formatter2.currency(prePayment.get("REMAINDER_PERCENT"),1), 96, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1366. <td style="background-color: #e1e0e0"></td>
  1367. <td style="background-color: #e1e0e0"></td>
  1368. <td style="background-color: #e1e0e0"></td>
  1369. </tr>
  1370. </TABLE><br/><br/> --%>
  1371. <!-- 대금정보 : 끝 -->
  1372. <img src="/img/com/blank.gif" height="10px" />
  1373. <TABLE class="form-table">
  1374. <colgroup>
  1375. <col width="3%" />
  1376. <col width="3%" />
  1377. <col width="5%" />
  1378. <col width="5%" />
  1379. <col width="5%" />
  1380. <col width="5%" />
  1381. <col width="5%" />
  1382. <col width="5%" />
  1383. <col width="5%" />
  1384. <col width="5%" />
  1385. <col width="5%" />
  1386. <col width="5%" />
  1387. <col width="5%" />
  1388. <col width="5%" />
  1389. </colgroup>
  1390. <TR>
  1391. <th style="text-align: center;" colspan="2" rowspan="2"></th>
  1392. <th style="text-align: center;" colspan="3">전회누계</th>
  1393. <th style="text-align: center;" colspan="3">금회</th>
  1394. <th style="text-align: center;" colspan="3">금회누계</th>
  1395. <th style="text-align: center;" colspan="3">잔여</th>
  1396. </TR>
  1397. <TR>
  1398. <th style="text-align: center;padding-left:0px;">공급가액</th>
  1399. <th style="text-align: center;padding-left:0px;">부가세</th>
  1400. <th style="text-align: center;padding-left:0px;">합계</th>
  1401. <th style="text-align: center;padding-left:0px;">공급가액</th>
  1402. <th style="text-align: center;padding-left:0px;">부가세</th>
  1403. <th style="text-align: center;padding-left:0px;">합계</th>
  1404. <th style="text-align: center;padding-left:0px;">공급가액</th>
  1405. <th style="text-align: center;padding-left:0px;">부가세</th>
  1406. <th style="text-align: center;padding-left:0px;">합계</th>
  1407. <th style="text-align: center;padding-left:0px;">공급가액</th>
  1408. <th style="text-align: center;padding-left:0px;">부가세</th>
  1409. <th style="text-align: center;padding-left:0px;">합계</th>
  1410. </TR>
  1411. <TR>
  1412. <th style="text-align: left;padding-left:5px;" rowspan="2">기성</th>
  1413. <th style="text-align: left;padding-left:5px;" rowspan="1">율</th>
  1414. <td><%= InputText.get("befAcmpPercent", Formatter2.currency(prePayment.get("BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1415. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1416. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1417. <td><%= InputText.get("curAcmpPercent", Formatter2.currency(prePayment.get("CUR_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1418. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1419. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1420. <td><%= InputText.get("curBefAcmpPercent", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1421. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1422. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1423. <td><%= InputText.get("remainderAcmpPercent", Formatter2.currency(prePayment.get("REMAINDER_ACMP_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1424. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1425. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1426. </TR>
  1427. <TR>
  1428. <th style="text-align: left;padding-left:5px;" rowspan="1">금액</th>
  1429. <td><%= InputText.get("befAcmpApplyAmt", Formatter2.currency(prePayment.get("BEF_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1430. <td><%= InputText.get("befAcmpVat", Formatter2.currency(prePayment.get("BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1431. <td><%= InputText.get("befAcmpAmt", Formatter2.currency(prePayment.get("BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1432. <td><%= InputText.get("curAcmpApplyamt", Formatter2.currency(prePayment.get("CUR_ACMP_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1433. <td><%= InputText.get("curAcmpVat", Formatter2.currency(prePayment.get("CUR_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1434. <td><%= InputText.get("curAcmpAmt", Formatter2.currency(prePayment.get("CUR_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1435. <td><%= InputText.get("curBefAcmpSupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1436. <td><%= InputText.get("curBefAcmpVat", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1437. <td><%= InputText.get("curBefAcmpAmt", Formatter2.currency(prePayment.get("CUR_BEF_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1438. <td><%= InputText.get("remainderAcmpSupplyamt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1439. <td><%= InputText.get("remainderAcmpVat", Formatter2.currency(prePayment.get("REMAINDER_ACMP_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1440. <td><%= InputText.get("remainderAcmpAmt", Formatter2.currency(prePayment.get("REMAINDER_ACMP_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1441. </TR>
  1442. <TR>
  1443. <th style="text-align: left;padding-left:5px;" rowspan="2">선급<BR/>공제</th>
  1444. <th style="text-align: left;padding-left:5px;" rowspan="1">율</th>
  1445. <td><%= InputText.get("befPrepayPercent", Formatter2.currency(prePayment.get("BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1446. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1447. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1448. <td><%= InputText.get("curPrepayPercent", Formatter2.currency(prePayment.get("CUR_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1449. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1450. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1451. <td><%= InputText.get("curBefPrepayPercent", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1452. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1453. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1454. <td><%= InputText.get("remainderPrepayPercent", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_PERCENT"),1), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1455. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1456. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1457. </TR>
  1458. <tr>
  1459. <th style="text-align: left;padding-left:5px;">금액</th>
  1460. <td><%= InputText.get("befPrepayApplyAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1461. <td><%= InputText.get("befPrepayVat", Formatter2.currency(prePayment.get("BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1462. <td><%= InputText.get("befPrepayAmt", Formatter2.currency(prePayment.get("BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1463. <td><%= InputText.get("curPrepayApplyamt", Formatter2.currency(prePayment.get("CUR_PREPAY_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1464. <td><%= InputText.get("curPrepayVat", Formatter2.currency(prePayment.get("CUR_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1465. <td><%= InputText.get("curPrepayDeductamt", Formatter2.currency(prePayment.get("CUR_PREPAY_DEDUCTAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1466. <td><%= InputText.get("curBefPrepaySupplyamt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1467. <td><%= InputText.get("curBefPrepayVat", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1468. <td><%= InputText.get("curBefPrepayAmt", Formatter2.currency(prePayment.get("CUR_BEF_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1469. <td><%= InputText.get("remainderPrepaySupplyamt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1470. <td><%= InputText.get("remainderPrepayVat", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1471. <td><%= InputText.get("remainderPrepayAmt", Formatter2.currency(prePayment.get("REMAINDER_PREPAY_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1472. </tr>
  1473. <tr>
  1474. <th style="text-align: left;padding-left:5px;">청구액</th>
  1475. <th style="text-align: left;padding-left:5px;">금액</th>
  1476. <td><%= InputText.get("payedApplyamt", Formatter2.currency(prePayment.get("PAYED_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1477. <td><%= InputText.get("payedVat", Formatter2.currency(prePayment.get("PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1478. <td><%= InputText.get("payedAmt", Formatter2.currency(prePayment.get("PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1479. <td><%= InputText.get("curReqAmt", Formatter2.currency(prePayment.get("CUR_REQ_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1480. <td><%= InputText.get("curReqVatamt", Formatter2.currency(prePayment.get("CUR_REQ_VATAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1481. <td><%= InputText.get("curReqApplyamt", Formatter2.currency(prePayment.get("CUR_REQ_APPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1482. <td><%= InputText.get("curPayedSupplyamt", Formatter2.currency(prePayment.get("CUR_PAYED_SUPPLYAMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1483. <td><%= InputText.get("curPayedVat", Formatter2.currency(prePayment.get("CUR_PAYED_VAT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1484. <td><%= InputText.get("curPayedAmt", Formatter2.currency(prePayment.get("CUR_PAYED_AMT"),intDigit), 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1485. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1486. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1487. <td><%= InputText.get("blank", "", 99, 16, "class=input_blank, readOnly=white, number, right, perSize, tabIndex=-1", "number") %></td>
  1488. </tr>
  1489. </TABLE>
  1490. <!-- Vendor Print : 시작 -->
  1491. <div class="application-info magT15" id="vpDiv1">
  1492. <div class="application-sub-title">
  1493. <span class="title">Vendor Print</span>
  1494. </div>
  1495. <div class="application-location">
  1496. </div>
  1497. </div>
  1498. <TABLE class="form-table" id="vpDiv2">
  1499. <colgroup>
  1500. <col width="13%" />
  1501. <col width="19%" />
  1502. <col width="15%" />
  1503. <col width="19%" />
  1504. <col width="15%" />
  1505. <col width="19%" />
  1506. <col width="*" />
  1507. </colgroup>
  1508. <TR>
  1509. <th style="text-align: left;">검토부서</th>
  1510. <TD>
  1511. <%= InputText.get("EPART_DEPT_NAME", vendorPrintInfo.get("EPART_DEPT_NAME"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  1512. </TD>
  1513. <th style="text-align: left;">검토자</th>
  1514. <TD>
  1515. <INPUT type='hidden' name="VP_CHK_EMPNO" value="<%=vendorPrintInfo.get("VP_CHK_EMPNO")%>">
  1516. <%= InputText.get("VP_CHK_EMPNM", vendorPrintInfo.get("VP_CHK_EMPNM"), 98, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  1517. <%-- <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');"> --%>
  1518. </TD>
  1519. <th style="text-align: left;">검토일자</th>
  1520. <TD colspan="2">
  1521. <%= 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") %>
  1522. <!-- <A href="JavaScript:calendar('VP_END_DY');"><IMG src="/img/supplier/template/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A> -->
  1523. </TD>
  1524. </TR>
  1525. <TR>
  1526. <th style="text-align: left;">검토항목</th>
  1527. <TD colspan="3">
  1528. <%= InputText.get("VP_DESC", vendorPrintInfo.get("VP_DESC"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  1529. </TD>
  1530. <th style="text-align: left;">상태</th>
  1531. <TD colspan="2">
  1532. <%= InputText.get("VP_STATUS_NM", vendorPrintInfo.get("VP_STATUS_NM"), 99, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %>
  1533. </TD>
  1534. </TR>
  1535. <tr height="25" id="return_reson_area">
  1536. <th style="text-align: left;">반려사유</th>
  1537. <td colspan="5">
  1538. <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>
  1539. </TD>
  1540. </tr>
  1541. <tr height="25">
  1542. <th>의견</th>
  1543. <td colspan="5">
  1544. <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>
  1545. </td>
  1546. </tr>
  1547. </TABLE>
  1548. <!-- Vendor Print : 끝 -->
  1549. <div class="application-info magT10">
  1550. <div class="application-sub-title">
  1551. <span class="title">첨부 및 기타서류</span>
  1552. </div>
  1553. <div class="application-location">
  1554. </div>
  1555. </div>
  1556. <TABLE class="form-table">
  1557. <colgroup>
  1558. <col width="25%" />
  1559. <col width="*" />
  1560. <col width="20%" />
  1561. <col width="20%" />
  1562. </colgroup>
  1563. <TR>
  1564. <th style="text-align: Center;" colspan="2">첨부서류</th>
  1565. <th style="text-align: Center;" colspan="1">파일첨부</th>
  1566. <th style="text-align: Center;" colspan="1">특기사항</th>
  1567. </TR>
  1568. <TR height="140">
  1569. <TD colspan="2">
  1570. <TABLE class="inner_table" border="0" >
  1571. <%
  1572. if(purchaseFileRow.size() > 0){
  1573. int i_mod = 0;
  1574. for(int i = 0; purchaseFileRow.size() > i; i++){
  1575. i_mod = i%3;
  1576. if(i_mod == 0){ %>
  1577. <TR>
  1578. <% } %>
  1579. <td width="2%">
  1580. <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");} %>>
  1581. </td>
  1582. <td width="20%">
  1583. <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
  1584. <%=purchaseFileRow.getRow(i).get("DETAILNM") %>
  1585. </td>
  1586. <td width="7%" height="24">
  1587. <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">
  1588. </td>
  1589. <% if(i_mod == 2) { %>
  1590. </TR>
  1591. <% } %>
  1592. <%
  1593. }
  1594. for(int i=i_mod+1; i<3; i++){ %>
  1595. <td></td>
  1596. <% }
  1597. if(i_mod == 0 || i_mod == 1){ %>
  1598. </TR>
  1599. <% }
  1600. }
  1601. %>
  1602. </TABLE>
  1603. </TD>
  1604. <TD><TEXTAREA name="p_AttachFile" id="p_AttachFile" rows="12" readOnly class="input ctrlTarget" style="width:98%; height: 98%; overflow-y:auto"></TEXTAREA></TD>
  1605. <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>
  1606. </TR>
  1607. </TABLE>
  1608. <!-- 대금내역 : 시작 -->
  1609. <div class="application-info magT15" style="display: none">
  1610. <div class="application-sub-title">
  1611. <span class="title">대금내역</span>
  1612. </div>
  1613. <div class="application-location">
  1614. </div>
  1615. </div>
  1616. <TABLE class="form-table" style="display: none">
  1617. <colgroup>
  1618. <col width="12%" />
  1619. <col width="12%" />
  1620. <col width="26%" />
  1621. <col width="5%" />
  1622. <col width="5%" />
  1623. <col width="10%" />
  1624. <col width="10%" />
  1625. <col width="10%" />
  1626. <col width="*" />
  1627. </colgroup>
  1628. <TR>
  1629. <th style="text-align: Center;" rowspan="2">입고번호</th>
  1630. <th style="text-align: Center;" rowspan="2">자재코드</th>
  1631. <th style="text-align: Center;" rowspan="2">자재명</th>
  1632. <th style="text-align: Center;" rowspan="2">규격</th>
  1633. <th style="text-align: Center;" rowspan="2">수량</th>
  1634. <th style="text-align: Center;" colspan="2"><%=prePayment.get("CURRENCY_GB")%></th>
  1635. <th style="text-align: Center;" colspan="2">KRW</th>
  1636. </TR>
  1637. <TR>
  1638. <th style="text-align: Center;">단가</th>
  1639. <th style="text-align: Center;">금액</th>
  1640. <th style="text-align: Center;">단가</th>
  1641. <th style="text-align: Center;">금액</th>
  1642. </TR>
  1643. <%
  1644. for(int i=0; i<prePaymentList.size(); i++){
  1645. Row row = prePaymentList.getRow(i);
  1646. %>
  1647. <TR>
  1648. <TD><%=row.get("STOCK_NO") %></TD>
  1649. <TD><%=row.get("MATERIAL_CD") %></TD>
  1650. <TD><%=row.get("MATERIAL_NAME") %></TD>
  1651. <TD><%=row.get("MATERIAL_SPEC") %></TD>
  1652. <TD style="text-align: right;"><%=Formatter2.currency(row.get("ITEM_QTY"),0) %></TD>
  1653. <TD style="text-align: right;"><%=Formatter2.currency(row.get("EXC_PRI"),intDigit)%></TD>
  1654. <TD style="text-align: right;"><%=Formatter2.currency(row.get("EXC_AMT"),intDigit)%></TD>
  1655. <TD style="text-align: right;"><%=Formatter2.currency(row.get("ITEM_PRI"),intDigit)%></TD>
  1656. <TD style="text-align: right;"><%=Formatter2.currency(row.get("ITEM_AMT"),intDigit)%></TD>
  1657. </TR>
  1658. <%
  1659. }
  1660. %>
  1661. </TABLE>
  1662. <!-- 대금내역 : 끝 -->
  1663. <%
  1664. /*
  1665. 보증 목록을 include 시킴 (2014-10-17) 김명호
  1666. */
  1667. %>
  1668. <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarPurList.jsp" %>
  1669. </FORM>
  1670. <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
  1671. <script>
  1672. </script>
  1673. </div>
  1674. <!-- 전자인증 모듈 설정 //-->
  1675. <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
  1676. <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
  1677. <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
  1678. <!-- 전자인증 모듈 설정 //-->