suppPayItemRequest.jsp 87 KB

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