ResolutionRequest.jsp 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987
  1. <%--
  2. - FileName : resolutionRequest.jsp
  3. - Author(s) : ok
  4. - Date : 2014.06.30
  5. - Copyright : Copyright (c) 2013 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. //ValueObject prePayment = storage.getValueObject("prePayment"); //계약정보, 세금계산서정보
  24. ValueObject acmpData = storage.getValueObject("acmpData"); //기성정보
  25. RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보
  26. ValueObject AttachFile = storage.getValueObject("AttachFile");
  27. //기성검사 첨부서류
  28. RowSet acmpFileRow = storage.getRowSet("acmpFileRow");
  29. //준공검사 첨부서류
  30. RowSet compFileRow = storage.getRowSet("compFileRow");
  31. String check1 = "";
  32. String check2 = "";
  33. String checkString = "";
  34. if("2".equals(acmpData.get("TAX_METHOD_CD"))){
  35. check2 = "checked";
  36. checkString = "순발행(업체직접 발행)";
  37. }else{
  38. check1 = "checked";
  39. checkString = "역발행(SGC이앤씨 발행)";
  40. }
  41. String payCheckYN1 = "";
  42. String payCheckYN2 = "";
  43. String payCheckYNString = "";
  44. if("Y".equals(acmpData.get("SUPP_DIRECT_YN"))){
  45. payCheckYN1 = "checked";
  46. payCheckYNString = "예";
  47. }else{
  48. payCheckYN2 = "checked";
  49. payCheckYNString = "아니오";
  50. }
  51. String digit = (String)acmpData.get("digit");
  52. int intDigit = Integer.parseInt(digit);
  53. %>
  54. <SCRIPT language="JavaScript">
  55. /*예약함수*/
  56. var sheet1;
  57. var sheet1Row;
  58. var sheet1PageNo = 1;
  59. var pageLastRowIndex = 1;
  60. var validationResult = false;
  61. var filterShow = false;
  62. var serverName = '<%=request.getServerName() %>';
  63. var g_digit = <%= intDigit %>; // 소숫점 이하 자릿수
  64. function _onReady(){
  65. //상세화면 재조회
  66. jQuery("#btnSearch").click(function() {
  67. jQuery("#fevent").val("");
  68. jQuery("#form1").attr("action", "/payment/outside/ResolutionRequest.screen");
  69. jQuery("#form1").attr("target", "_self");
  70. jQuery("#form1").attr("method", "post");
  71. jQuery("#form1").submit();
  72. });
  73. //리스트 페이지 이동
  74. jQuery("#btnList").click(function() {
  75. jQuery("#fevent").val("");
  76. jQuery("#form1").attr("action", "/payment/outside/PayRequestList.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. if(jQuery("#statusCd").val() != "01" && jQuery("#statusCd").val() != "91"){ //2020.03.26 반려(91) 추가
  84. alert("작성중인 기성만 삭제 가능합니다.");
  85. return;
  86. }
  87. if(jQuery("#acmpId").val() == ""){
  88. alert("삭제되었습니다.");
  89. return;
  90. }
  91. //입력데이터 저장
  92. if (confirm("삭제 하시겠습니까?")) {
  93. jQuery("#fevent").val("DELETE_DATA");
  94. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "DELETE_DATA", f, "SUCCESS");
  95. }
  96. });
  97. jQuery("#btnSave").click(function() {
  98. var f = document.form1;
  99. jQuery("#fevent").val("SAVE_DATA");
  100. //필수 입력항목 check
  101. if(requiredItemsCheck() == false){
  102. return;
  103. }
  104. //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
  105. if(payCompareCheck() == false){
  106. return;
  107. }
  108. //입력데이터 저장
  109. if (confirm("저장 하시겠습니까?")) {
  110. jQuery("#btnAppReqSelect").val("0");
  111. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  112. }
  113. });
  114. jQuery("#btnAppReq").click(function() {
  115. var f = document.form1;
  116. jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:기성신청처리
  117. jQuery("#fevent").val("SAVE_DATA");
  118. //필수 입력항목 check
  119. if(requiredItemsCheck() == false){
  120. return;
  121. }
  122. //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
  123. if(payCompareCheck() == false){
  124. return;
  125. }
  126. //입력데이터 저장
  127. if (confirm("기성신청 하시겠습니까?")) {
  128. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  129. }else{
  130. jQuery("#btnAppReqSelect").val("0"); //0:저장처리, 1:기성신청처리
  131. }
  132. });
  133. jQuery("#requSurtaxAmt").blur(function () {
  134. var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
  135. var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
  136. var requSupplyTamt = jQuery("#requSupplyTamt").val().replace(/(\,|\:)/g,"");
  137. if(jQuery("#inputVatDiv").val() == "INPUT_EXEMPT"){
  138. if(requSurtaxAmt > 0){
  139. alert("영세율 대상건입니다.");
  140. jQuery("#requSurtaxAmt").val(0);
  141. jQuery("#requSurtaxAmt").focus();
  142. return;
  143. }
  144. if(requSurtaxAmt == ""){
  145. jQuery("#requSurtaxAmt").val(0);
  146. }
  147. }else{
  148. if(fundTamtValue > 0 && ( requSurtaxAmt == 0 || requSurtaxAmt == "") ){
  149. alert("부가세 0을 입력 할수 없습니다.");
  150. jQuery("#requSurtaxAmt").val(0);
  151. jQuery("#requSurtaxAmt").focus();
  152. return;
  153. }
  154. }
  155. var requAmt = Number(requSupplyTamt) + Number(requSurtaxAmt);
  156. jQuery("#requAmt").val(requAmt.toFixed(g_digit));
  157. jQuery("#trequSurtaxAmt").val(requSurtaxAmt.toFixed(g_digit)); //청구 부가세 금회 합계
  158. var requSupplyAmt = jQuery("#requSupplyAmt").val().replace(/(\,|\:)/g,""); //청구액 공급액 금회 합계
  159. var trequAmt = Number(requSupplyAmt) + Number(requSurtaxAmt);
  160. jQuery("#trequAmt").val(trequAmt.toFixed(g_digit));
  161. var totRequSupplyTamt = jQuery("#totRequSupplyTamt").val().replace(/(\,|\:)/g,""); //청구 공급액 누계 과세
  162. jQuery("#totRequSurtaxAmt").val(requSurtaxAmt.toFixed(g_digit)); //청구 부가세 누계 과세
  163. var totRequAmt = Number(totRequSupplyTamt) + Number(requSurtaxAmt);
  164. jQuery("#totRequAmt").val(totRequAmt.toFixed(g_digit)); //청구 합계 누계 과세
  165. var totRequSupplyAmt = jQuery("#totRequSupplyAmt").val().replace(/(\,|\:)/g,"");//청구 공급액 누계 합계
  166. jQuery("#ttotRequSurtaxAmt").val(requSurtaxAmt.toFixed(g_digit));//청구 부가세 누계 합계
  167. var ttotRequAmt = Number(totRequSupplyAmt) + Number(requSurtaxAmt);
  168. jQuery("#ttotRequAmt").val(ttotRequAmt.toFixed(g_digit)); //청구 합계 누계 합계
  169. var preRequSurtaxAmtValue = Number(jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,"")); //청구 부가세 전회 과세
  170. var totRequSurtaxAmtValue = preRequSurtaxAmtValue + requSurtaxAmt;
  171. jQuery("#totRequSurtaxAmt").val(totRequSurtaxAmtValue.toFixed(g_digit));
  172. var tpreRequSurtaxAmtValue = Number(jQuery("#tpreRequSurtaxAmt").val().replace(/(\,|\:)/g,""));
  173. var ttotRequSurtaxAmtValue = tpreRequSurtaxAmtValue + requSurtaxAmt;
  174. jQuery("#ttotRequSurtaxAmt").val(ttotRequSurtaxAmtValue);
  175. var totRequSupplyTamtValue = Number(jQuery("#totRequSupplyTamt").val().replace(/(\,|\:)/g,""));
  176. var totRequAmtValue = totRequSupplyTamtValue + ttotRequSurtaxAmtValue;
  177. jQuery("#totRequAmt").val(totRequAmtValue);
  178. var totRequSupplyAmtValue = Number(jQuery("#totRequSupplyAmt").val().replace(/(\,|\:)/g,""));
  179. var ttotRequAmtValue = totRequSupplyAmtValue + ttotRequSurtaxAmtValue;
  180. jQuery("#ttotRequAmt").val(ttotRequAmtValue.toFixed(g_digit));
  181. jQuery("#requAmt, #trequSurtaxAmt, #trequAmt, #totRequAmt, #ttotRequAmt, #totRequSurtaxAmt, #ttotRequSurtaxAmt").each(function(index){
  182. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  183. });
  184. });
  185. jQuery("#btnItem").click(function () {
  186. //2018.10.25 기성내역입력
  187. var win_id = "ItemPop";
  188. var link = "/payment/outside/PayItemPopup.screen";
  189. var editFile = "N";
  190. if(jQuery("#statusCd").val() == "01" || jQuery("#statusCd").val() == "02" || jQuery("#statusCd").val() == "91"){editFile="Y";} //2020.03.26 반려(91) 추가
  191. link += "?pop_win_id="+win_id+"&ACMP_ID="+jQuery("#acmpId").val()+"&SUB_CONT_ID="+jQuery("#selectSubContId").val()+"&EDIT_YN="+editFile+"&digit="+g_digit;
  192. fLayerPop(win_id, link, 950,500, '','', 'NO');
  193. });
  194. jQuery("#fundTamt").dblclick(function () {
  195. jQuery("#btnItem").click();
  196. });
  197. //2018.11.22 선급금공제 수정시 계산 2019.1.29
  198. jQuery("#payDeductTamt").blur(function () {
  199. var prepayedTAmt = jQuery("#slPrepaySupplyTmat").val().replace(/(\,|\:)/g,""); //선급금 과세 지급액
  200. var prepayedNAmt = jQuery("#slPrepaySupplyNamt").val().replace(/(\,|\:)/g,""); //선급금 면세 지급액
  201. var prepayedAmt = Number(prepayedTAmt) + Number(prepayedNAmt);//jQuery("#slPrepayAmt").val().replace(/(\,|\:)/g,""); //선급금 합계 지급액
  202. var conTamt = jQuery("#conSupplyTamt").val().replace(/(\,|\:)/g,""); //계약과세
  203. var conNamt = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약면세
  204. var conVat = jQuery("#conSurtaxAmt").val().replace(/(\,|\:)/g,""); //계약부가세
  205. var deductTAmt = jQuery("#payDeductTamt").val().replace(/(\,|\:)/g,""); //금회 과세 선급금 공제금액
  206. var deductNAmt = jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""); //Number(conNamt) * Number(deductTAmt) / Number(conTamt) ; //금회 면세 선급금 공제금액
  207. var deductAmt = Number(deductTAmt)+Number(deductNAmt);
  208. var deductTAmtSum = jQuery("#prePayDeductTamt").val().replace(/(\,|\:)/g,""); //전화 과세 선급금 누계
  209. var deductNAmtSum = jQuery("#prePayDeductNamt").val().replace(/(\,|\:)/g,""); //전회 면세 선급금 누계
  210. var deductAmtSum = jQuery("#prePayDeductAmt").val().replace(/(\,|\:)/g,""); //전회 합계 선급금 누계
  211. if (Number(prepayedTAmt) - Number(deductTAmtSum) - Number(deductTAmt) < 0){
  212. //alert("선급 과세 잔여가 마이너스 입니다.");
  213. //return;
  214. }
  215. if (Number(prepayedNAmt) - Number(deductNAmtSum) - Number(deductNAmt) < 0){
  216. //alert("선급 면세 잔여가 마이너스 입니다.");
  217. //return;
  218. }
  219. jQuery("#payDeductNamt").val(Number(deductNAmt).toFixed(g_digit)); //금회 면세 선급금 공제금액
  220. jQuery("#payDeductAmt").val((Number(deductNAmt) + Number(deductTAmt)).toFixed(g_digit)); //금회 합계 선급금 공제금액
  221. jQuery("#totPayDeductTamt").val((Number(deductTAmtSum)+Number(deductTAmt)).toFixed(g_digit)); //선급과세누계
  222. jQuery("#totPayDeductNamt").val((Number(deductNAmtSum)+Number(deductNAmt)).toFixed(g_digit)); //선급면세누계
  223. jQuery("#totPayDeductAmt").val((Number(deductAmtSum)+Number(deductAmt)).toFixed(g_digit)); //선급누계
  224. jQuery("#resPayDeductTamt").val((Number(prepayedTAmt) - Number(deductTAmtSum)-Number(deductTAmt)).toFixed(g_digit)); //잔여 과세
  225. jQuery("#resPayDeductNamt").val((Number(prepayedNAmt) - Number(deductNAmtSum)-Number(deductNAmt)).toFixed(g_digit)); //잔여 면세
  226. jQuery("#resPayDeductAmt").val(Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,""))+Number(jQuery("#resPayDeductNamt").val().replace(/(\,|\:)/g,"")));//잔여 합계
  227. var reqTAmt = Number(jQuery("#fundTamt").val().replace(/(\,|\:)/g,""))- Number(deductTAmt); //청구금회 과세
  228. var reqNAmt = Number(jQuery("#fundNamt").val().replace(/(\,|\:)/g,""))- Number(deductNAmt); //청구금회 면세
  229. var reqAmt = Number(jQuery("#fundAmt").val().replace(/(\,|\:)/g,""))- Number(deductAmt); //청구금회 합계
  230. jQuery("#requSupplyTamt").val(reqTAmt.toFixed(g_digit));
  231. jQuery("#requSupplyNamt").val(reqNAmt.toFixed(g_digit)) ;
  232. jQuery("#requSupplyAmt").val(reqAmt.toFixed(g_digit)) ;
  233. var reqTAmtSum = jQuery("#preRequSupplyTamt").val().replace(/(\,|\:)/g,"") ; //청구금회 과세누계
  234. var reqNAmtSum = jQuery("#preRequSupplyNamt").val().replace(/(\,|\:)/g,"") ; //청구금회 면세누계
  235. var reqAmtSum = jQuery("#preRequSupplyAmt").val().replace(/(\,|\:)/g,"") ; //청구금회 합계누계
  236. jQuery("#totRequSupplyTamt").val((Number(reqTAmtSum) + Number(reqTAmt)).toFixed(g_digit));
  237. jQuery("#totRequSupplyNamt").val((Number(reqNAmtSum) + Number(reqNAmt)).toFixed(g_digit));
  238. jQuery("#totRequSupplyAmt").val((Number(reqAmtSum) + Number(reqAmt)).toFixed(g_digit));
  239. var vatAmt = (Number(reqTAmt) * 10) / 100; //금회 부가세
  240. if (Number(conVat) == 0 ){
  241. vatAmt = 0 ;
  242. }
  243. jQuery("#requSurtaxAmt").val(vatAmt.toFixed(g_digit));
  244. jQuery("#trequSurtaxAmt").val(vatAmt.toFixed(g_digit));
  245. var preTaxamt = jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,"") ;
  246. jQuery("#totRequSurtaxAmt").val((Number(preTaxamt) + Number(vatAmt)).toFixed(g_digit) );
  247. jQuery("#ttotRequSurtaxAmt").val((Number(preTaxamt) + Number(vatAmt)).toFixed(g_digit) );
  248. jQuery("#requAmt").val((Number(reqTAmt) + Number(vatAmt)).toFixed(g_digit)); //과세금회합계 청구+부가세
  249. jQuery("#trequSupplyNamt").val(reqNAmt.toFixed(g_digit)); //면세금회합계 청구+부가세
  250. jQuery("#trequAmt").val((Number(reqTAmt) + Number(vatAmt) + Number(reqNAmt)).toFixed(g_digit)); //청구합계
  251. var preReqTAmt = jQuery("#preRequAmt").val().replace(/(\,|\:)/g,""); //누계 청구 과세 합계
  252. var preReqNAmt = jQuery("#tpreRequSupplyNamt").val().replace(/(\,|\:)/g,"") ; //누계 청구 면세 합계
  253. var preReqAmt = jQuery("#tpreRequAmt").val().replace(/(\,|\:)/g,"") ; //누계 청구 합계
  254. jQuery("#totRequAmt").val((Number(preReqTAmt) + Number(reqTAmt) + Number(vatAmt)).toFixed(g_digit));
  255. jQuery("#ttotRequSupplyNamt").val((Number(preReqNAmt) + Number(reqNAmt)).toFixed(g_digit));
  256. jQuery("#ttotRequAmt").val((Number(preReqAmt) + Number(reqTAmt) + Number(vatAmt) + Number(reqNAmt)).toFixed(g_digit));
  257. //선급비율
  258. if (Number(prepayedTAmt) > 0 ){
  259. var preTrate = (Number(deductTAmt) / Number(prepayedTAmt)) * 100; //금회 과세비율
  260. jQuery("#payDeductTRate").val(preTrate.toFixed(2)); //금회과세
  261. preTrate = ((Number(deductTAmtSum) + Number(deductTAmt)) / Number(prepayedTAmt)) * 100; //과세 누계비율
  262. jQuery("#totPayDeductTRate").val(preTrate.toFixed(2)); //과세누계
  263. jQuery("#resPayDeductTRate").val((100-preTrate).toFixed(2)); //과세잔여
  264. }
  265. if (Number(prepayedNAmt) > 0 ){
  266. var preNrate = (Number(deductNAmt) / Number(prepayedNAmt)) * 100; //금회 면세비율
  267. jQuery("#payDeductNRate").val(preNrate.toFixed(2)); //금회면세
  268. preNrate = ((Number(deductNAmtSum) + Number(deductNAmt)) / Number(prepayedNAmt)) * 100; //면세 누계비율
  269. jQuery("#totPayDeductNRate").val(preNrate.toFixed(2)); //면세누계
  270. jQuery("#resPayDeductNRate").val((100-preNrate).toFixed(2)); //면세잔여
  271. }
  272. if (Number(prepayedAmt) > 0 ){
  273. var prerate = (Number(deductAmt) / Number(prepayedAmt)) * 100; //금회 합계비율
  274. jQuery("#payDeductRate").val(prerate.toFixed(2)); //금회합계
  275. prerate = ((Number(deductAmtSum) + Number(deductAmt)) / Number(prepayedAmt)) * 100; //합계 누계비율
  276. jQuery("#totPayDeductRate").val(prerate.toFixed(2)); //합계누계
  277. jQuery("#resPayDeductRate").val((100-prerate).toFixed(2)); //합계잔여
  278. }
  279. jQuery("#payDeductNamt, #payDeductAmt, #totPayDeductTamt, #totPayDeductNamt, #totPayDeductAmt").each(function(index){
  280. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  281. });
  282. jQuery("#resPayDeductTamt, #resPayDeductNamt, #resPayDeductAmt, #requSupplyTamt, #requSupplyNamt, #requSupplyAmt").each(function(index){
  283. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  284. });
  285. jQuery("#totRequSupplyTamt, #totRequSupplyNamt, #totRequSupplyAmt, #requSurtaxAmt, #trequSurtaxAmt").each(function(index){
  286. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  287. });
  288. jQuery("#totRequSurtaxAmt, #ttotRequSurtaxAmt, #requAmt, #trequSupplyNamt, #trequAmt, #totRequAmt, #ttotRequSupplyNamt, #ttotRequAmt").each(function(index){
  289. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  290. });
  291. });
  292. jQuery("#fundTamt").blur(function () { //2019.1.29
  293. //금회 계산 처리
  294. var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
  295. fundTamtValue = Number(fundTamtValue).toFixed(g_digit);
  296. //입력한 선급금 과세가 빈값일 경우 0으로 셋팅
  297. if (fundTamtValue == "") {
  298. fundTamtValue = "0";
  299. jQuery("#fundTamt").val("0");
  300. }else{
  301. jQuery("#fundTamt").val(fundTamtValue);
  302. jQuery("#fundTamt").each(function(index){
  303. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  304. });
  305. }
  306. var conSupplyTamtValue = jQuery("#conSupplyTamt").val().replace(/(\,|\:)/g,""); //계약금 과세
  307. var fconSupplyTamtValue = jQuery("#F_CON_SUPPLY_AMT").val().replace(/(\,|\:)/g,""); //당초 계약금
  308. conSupplyTamtValue = Number(conSupplyTamtValue).toFixed(g_digit);
  309. fconSupplyTamtValue = Number(fconSupplyTamtValue).toFixed(g_digit);
  310. if(Number(fundTamtValue) > Number(conSupplyTamtValue)){
  311. alert("입력한 금회 기성 과세액이 계약 과세금 보다 큽니다.");
  312. jQuery("#fundTamt").focus();
  313. return;
  314. }
  315. var conSupplyNamt = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약금 공급가액 면세
  316. var fundNamt = jQuery("#fundNamt").val().replace(/(\,|\:)/g,"");//Number(conSupplyNamt) * (Number(fundTamtValue) / Number(conSupplyTamtValue));2019.03.15
  317. jQuery("#fundNamt").val(Number(fundNamt).toFixed(g_digit));
  318. //var fundNamtValue = jQuery("#fundNamt").val().replace(/(\,|\:)/g,""); //기성 금회 면세
  319. var fundNamtValue = fundNamt;
  320. fundNamtValue = Number(fundNamtValue).toFixed(g_digit);
  321. //입력한 선급금 면세가 빈값일 경우 0으로 셋팅
  322. if (fundNamtValue == "") {
  323. fundNamtValue = "0";
  324. jQuery("#fundNamt").val("0");
  325. }
  326. var conSupplyNamtValue = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약금 면세
  327. conSupplyNamtValue = Number(conSupplyNamtValue).toFixed(g_digit);
  328. if(Number(fundNamtValue) > Number(conSupplyNamtValue)){
  329. alert("입력한 금회 기성 면세액이 계약 면세금 보다 큽니다.");
  330. jQuery("#fundNamt").focus();
  331. return;
  332. }
  333. //금회 과세 기성율
  334. if(fconSupplyTamtValue == 0){
  335. var fundTRate = Number(fundTamtValue) / Number(conSupplyTamtValue) * 100;
  336. jQuery("#fundTRate").val(fundTRate.toFixed(2));
  337. }else{
  338. var fundTRate = Number(fundTamtValue) / Number(conSupplyTamtValue) * 100;
  339. //var fundTRate = fundTamtValue / fconSupplyTamtValue * 100;
  340. var f_rate = Number(fundTamtValue) / Number(fconSupplyTamtValue) * 100; //당초 계약금으로 계산
  341. jQuery("#fundTRate").val(fundTRate.toFixed(2));
  342. jQuery("#payDeductTRate").val(f_rate.toFixed(2)); //선급공제 금회 과세 율
  343. }
  344. //금회 면세 기성율
  345. var fundNRate = 0;
  346. if(Number(conSupplyNamtValue) == 0){
  347. jQuery("#fundNRate").val(fundNRate.toFixed(2));
  348. }else{
  349. fundNRate = Number(fundNamtValue) / Number(conSupplyNamtValue) * 100;
  350. jQuery("#fundNRate").val(fundNRate.toFixed(2));
  351. jQuery("#payDeductNRate").val(fundNRate.toFixed(2)); //선급공제 금회 과세 율
  352. }
  353. var fundAmtValue = Number(fundNamtValue) + Number(fundTamtValue);
  354. jQuery("#fundAmt").val(Number(fundAmtValue).toFixed(g_digit)); //기성 금회 합계
  355. var conSupplyAmtValue = Number(conSupplyTamtValue) + Number(conSupplyNamtValue);//계약 공급액
  356. var fundRateValue = (Number(fundAmtValue) / Number(conSupplyAmtValue)) * 100;
  357. jQuery("#fundRate").val(fundRateValue.toFixed(2)); //기성 금회 기성율
  358. var slPrepaySupplyTmatValue = jQuery("#slPrepaySupplyTmat").val().replace(/(\,|\:)/g,""); //계약 선급금지급 과세
  359. var slPrepaySupplyNamtValue = jQuery("#slPrepaySupplyNamt").val().replace(/(\,|\:)/g,""); //계약 선급금지급 면세
  360. var slPrepaySupplyAmtValue = Number(slPrepaySupplyTmatValue) + Number(slPrepaySupplyNamtValue); //계약 선급금지급 공급가액
  361. //var payDeductTamtValue = Number(slPrepaySupplyTmatValue) * Number( fundTRate.toFixed(2) / 100);
  362. if(fconSupplyTamtValue == 0){
  363. var payDeductTamtValue = 0;
  364. jQuery("#payDeductTamt").val(0); //선급공제 금회 과세
  365. jQuery("#payDeductNamt").val(0); //선급공제 금회 면세
  366. jQuery("#payDeductNRate").val("0.00"); //선급공제 금회 과세 율
  367. }else{
  368. //2016.7.28 선급금 마이너스인 경우 처리
  369. var f_rate = fundTamtValue / fconSupplyTamtValue * 100; //당초 계약금으로 계산
  370. var payDeductTamtValue = Number(slPrepaySupplyTmatValue) * Number(f_rate) / 100;
  371. //2016.7.28 선급공제액 > 선급잔액보다 크면
  372. /*if (Number(payDeductTamtValue) > Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,"")) ) {
  373. payDeductTamtValue = Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,"")); //선급잔액->선급공제액으로
  374. var p_rate = Number(payDeductTamtValue)/Number(jQuery("#prepaySupplyTamt").val().replace(/(\,|\:)/g,""))*100; //선급비율=공제금액/선급액
  375. jQuery("#payDeductTRate").val(p_rate.toFixed(2));//선급금율=공제금액/선급액*100
  376. }*/
  377. jQuery("#payDeductTamt").val(payDeductTamtValue.toFixed(g_digit)); //선급공제 금회 과세
  378. //var payDeductNamtValue = Number(slPrepaySupplyNamtValue * fundNRate.toFixed(2) / 100);
  379. var payDeductNamtValue = Number(slPrepaySupplyNamtValue) * parseFloat_isNaN(Number(payDeductTamtValue) / Number(slPrepaySupplyTmatValue));
  380. jQuery("#payDeductNamt").val(Number(payDeductNamtValue).toFixed(g_digit)); //선급공제 금회 면세
  381. var updse = payDeductNamtValue.toFixed(g_digit) / slPrepaySupplyNamtValue * 100;
  382. if(Number(slPrepaySupplyNamtValue) == 0){
  383. jQuery("#payDeductNRate").val("0.00"); //선급공제 금회 과세 율
  384. }else{
  385. jQuery("#payDeductNRate").val(updse.toFixed(2)); //선급공제 금회 과세 율
  386. }
  387. }
  388. var payDeductAmtValue = Number(payDeductTamtValue) + Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
  389. jQuery("#payDeductAmt").val(payDeductAmtValue.toFixed(g_digit)); //선급공제 금회 합계
  390. if(payDeductAmtValue == "0"){
  391. var payDeductRateValue = "0.00";
  392. jQuery("#payDeductRate").val(payDeductRateValue); //선급공제 금회 기성율
  393. }else{
  394. var payDeductRateValue = (Number(payDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
  395. jQuery("#payDeductRate").val(Number(payDeductRateValue).toFixed(2)); //선급공제 금회 기성율
  396. }
  397. var requSupplyTamtValue = Number(fundTamtValue) - Number(jQuery("#payDeductTamt").val().replace(/(\,|\:)/g,""));
  398. jQuery("#requSupplyTamt").val(requSupplyTamtValue.toFixed(g_digit)); //청구 공급액 금회 과세
  399. var requSupplyNamtValue = Number(fundNamtValue) - Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
  400. jQuery("#requSupplyNamt").val(requSupplyNamtValue.toFixed(g_digit)); //청구 공급액 금회 면세
  401. var requSupplyAmtValue = Number(fundAmtValue) - Number(payDeductAmtValue);
  402. jQuery("#requSupplyAmt").val(requSupplyAmtValue.toFixed(g_digit)); //청구 공급액 금회 합계
  403. var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
  404. //if(requSurtaxAmt == 0){
  405. var requSurtaxAmtValue = (requSupplyTamtValue * 10) / 100
  406. //jQuery("#requSurtaxAmt").val(requSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 금회 과세
  407. if(jQuery("#inputVatDiv").val() == "INPUT_EXEMPT"){
  408. jQuery("#requSurtaxAmt").val(0); //청구 부가세 금회 과세
  409. jQuery("#trequSurtaxAmt").val(0); //청구 부가세 금회 합계
  410. }else{
  411. jQuery("#requSurtaxAmt").val(doFloor(requSurtaxAmtValue,g_digit)); //청구 부가세 금회 과세
  412. var trequSurtaxAmtValue = (requSupplyTamtValue * 10) / 100
  413. //jQuery("#trequSurtaxAmt").val(trequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 금회 합계 2016.6.8 수정. 부가세 오차
  414. jQuery("#trequSurtaxAmt").val(doFloor(trequSurtaxAmtValue, g_digit));
  415. }
  416. //금회
  417. jQuery("#requSurtaxAmt, #trequSurtaxAmt").each(function(index){
  418. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  419. });
  420. //}
  421. var requSurtaxAmtValue = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,""));
  422. var trequSurtaxAmtValue = Number(jQuery("#trequSurtaxAmt").val().replace(/(\,|\:)/g,""));
  423. var requAmtValue = Number(requSupplyTamtValue) + Number(requSurtaxAmtValue);
  424. jQuery("#requAmt").val(requAmtValue.toFixed(g_digit)); //청구액 합계 금회 과세
  425. jQuery("#trequSupplyNamt").val(requSupplyNamtValue.toFixed(g_digit)); //청구액 합계 금회 면세
  426. var trequAmtValue = Number(requSupplyAmtValue) + Number(trequSurtaxAmtValue);
  427. jQuery("#trequAmt").val(trequAmtValue.toFixed(g_digit)); //청구액 합계 금회 합계
  428. var requAmtValue = Number(jQuery("#requAmt").val().replace(/(\,|\:)/g,""));
  429. var trequAmtValue = Number(jQuery("#trequAmt").val().replace(/(\,|\:)/g,""));
  430. //금회
  431. jQuery("#fundAmt, #fundNamt, #payDeductTamt, #payDeductNamt, #payDeductAmt, #requSupplyTamt, #requSupplyNamt, #requSupplyAmt, #requAmt, #trequSupplyNamt, #trequAmt").each(function(index){
  432. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  433. });
  434. //누계기성 계산 처리
  435. var preFundTamtValue = jQuery("#preFundTamt").val().replace(/(\,|\:)/g,""); //기성 전회 과세
  436. var totFundTamtValue = Number(preFundTamtValue) + Number(fundTamtValue);
  437. jQuery("#totFundTamt").val(totFundTamtValue.toFixed(g_digit)); //기성 누계기성 과세
  438. //누계기성 과세 율
  439. if(fconSupplyTamtValue == 0){
  440. jQuery("#totPayDeductTRate").val("0.00");
  441. var totFundTRate = Number(totFundTamtValue) / Number(conSupplyTamtValue) * 100;
  442. jQuery("#totFundTRate").val(totFundTRate.toFixed(2));
  443. }else{
  444. var totFundTRate = Number(totFundTamtValue) / Number(conSupplyTamtValue) * 100;
  445. jQuery("#totFundTRate").val(totFundTRate.toFixed(2));
  446. jQuery("#totPayDeductTRate").val(totFundTRate.toFixed(2));
  447. }
  448. var preFundNamtValue = jQuery("#preFundNamt").val().replace(/(\,|\:)/g,""); //기성 전회 면세
  449. var totFundNamtValue = Number(preFundNamtValue) + Number(fundNamtValue);
  450. jQuery("#totFundNamt").val(totFundNamtValue); //기성 누계기성 면세
  451. var totFundNRate = Number(totFundNamtValue) / Number(conSupplyNamtValue) * 100;
  452. if(Number(slPrepaySupplyNamtValue) == 0){
  453. totFundNRate = 0;
  454. jQuery("#totPayDeductNRate").val("0.00");
  455. }else{
  456. jQuery("#totFundNRate").val(totFundNRate.toFixed(2));
  457. jQuery("#totPayDeductNRate").val(totFundNRate.toFixed(2));
  458. }
  459. var preFundAmtValue = jQuery("#preFundAmt").val().replace(/(\,|\:)/g,""); //기성 전회 합계
  460. preFundAmtValue = Number(preFundAmtValue).toFixed(g_digit);
  461. var totFundAmtValue = Number(preFundAmtValue) + Number(fundAmtValue);
  462. totFundAmtValue = Number(totFundAmtValue).toFixed(g_digit);
  463. jQuery("#totFundAmt").val(totFundAmtValue); //기성 누계기성 합계
  464. var totFundRateValue = (Number(totFundAmtValue) / Number(conSupplyAmtValue)) * 100;
  465. jQuery("#totFundRate").val(totFundRateValue.toFixed(2)); //누계 기성율 과세
  466. var prePayDeductTamtValue = jQuery("#prePayDeductTamt").val().replace(/(\,|\:)/g,""); //선급공제 전회 과세
  467. var totPayDeductTamtValue = Number(prePayDeductTamtValue) + Number(payDeductTamtValue);
  468. jQuery("#totPayDeductTamt").val(totPayDeductTamtValue.toFixed(g_digit)); //선급공제 누계 과세
  469. var prePayDeductNamtValue = jQuery("#prePayDeductNamt").val().replace(/(\,|\:)/g,""); //선급공제 전회 면세
  470. var totPayDeductNamtValue = Number(prePayDeductNamtValue) + Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
  471. jQuery("#totPayDeductNamt").val(totPayDeductNamtValue.toFixed(g_digit)); //선급공제 누계 면세
  472. var prePayDeductAmtValue = jQuery("#prePayDeductAmt").val().replace(/(\,|\:)/g,""); //선급공제 전회 합계
  473. var totPayDeductAmtValue = Number(prePayDeductAmtValue) + Number(payDeductAmtValue);
  474. jQuery("#totPayDeductAmt").val(totPayDeductAmtValue.toFixed(g_digit)); //선급공제 누계 합계
  475. if(totPayDeductAmtValue == "0"){
  476. var totPayDeductRateValue = "0.00";
  477. jQuery("#totPayDeductRate").val(totPayDeductRateValue); //누계 기성율 과세
  478. }else{
  479. var totPayDeductRateValue = (Number(totPayDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
  480. jQuery("#totPayDeductRate").val(totPayDeductRateValue.toFixed(2)); //누계 기성율 과세
  481. }
  482. var preRequSupplyTamtValue = jQuery("#preRequSupplyTamt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 과세
  483. var totRequSupplyTamtValue = Number(preRequSupplyTamtValue) + Number(requSupplyTamtValue);
  484. jQuery("#totRequSupplyTamt").val(totRequSupplyTamtValue.toFixed(g_digit)); //청구 공급액 누계 과세
  485. var preRequSupplyNamtValue = jQuery("#preRequSupplyNamt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 면세
  486. var totRequSupplyNamtValue = Number(preRequSupplyNamtValue) + Number(requSupplyNamtValue);
  487. jQuery("#totRequSupplyNamt").val(totRequSupplyNamtValue.toFixed(g_digit)); //청구 공급액 누계 면세
  488. var preRequSupplyAmtValue = jQuery("#preRequSupplyAmt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 합계
  489. var totRequSupplyAmtValue = Number(preRequSupplyAmtValue) + Number(requSupplyAmtValue);
  490. jQuery("#totRequSupplyAmt").val(totRequSupplyAmtValue.toFixed(g_digit)); //청구 공급액 누계 합계
  491. var preRequSurtaxAmtValue = jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,""); //청구 부가세 전회 과세
  492. var totRequSurtaxAmtValue = Number(preRequSurtaxAmtValue) + Number(requSurtaxAmtValue);
  493. jQuery("#totRequSurtaxAmt").val(totRequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 누계 과세
  494. var tpreRequSurtaxAmtValue = jQuery("#tpreRequSurtaxAmt").val().replace(/(\,|\:)/g,""); //청구 부가세 전회 합계
  495. var ttotRequSurtaxAmtValue = Number(tpreRequSurtaxAmtValue) + Number(requSurtaxAmtValue);
  496. jQuery("#ttotRequSurtaxAmt").val(ttotRequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 누계 합계
  497. var preRequAmtValue = jQuery("#preRequAmt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 과세
  498. var totRequAmtValue = Number(preRequAmtValue) + Number(requAmtValue);
  499. jQuery("#totRequAmt").val(totRequAmtValue.toFixed(g_digit)); //청구 합계 누계 과세
  500. var tpreRequSupplyNamtValue = jQuery("#tpreRequSupplyNamt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 면세
  501. var ttotRequSupplyNamtValue = Number(tpreRequSupplyNamtValue) + Number(requSupplyNamtValue);
  502. jQuery("#ttotRequSupplyNamt").val(ttotRequSupplyNamtValue.toFixed(g_digit)); //청구 합계 누계 면세
  503. var tpreRequAmtValue = jQuery("#tpreRequAmt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 합계
  504. var ttotRequAmtValue = Number(tpreRequAmtValue) + Number(trequAmtValue);
  505. jQuery("#ttotRequAmt").val(ttotRequAmtValue.toFixed(g_digit)); //청구 합계 누계 과세
  506. //누계기성
  507. jQuery("#totFundTamt, #totFundNamt, #totFundAmt, #totPayDeductTamt, #totPayDeductNamt, #totPayDeductAmt, #totRequSupplyTamt, #totRequSupplyNamt, #totRequSurtaxAmt, #ttotRequSurtaxAmt, #totRequAmt, #totRequSupplyAmt, #ttotRequSupplyNamt, #ttotRequAmt").each(function(index){
  508. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  509. });
  510. //잔여 계산처리
  511. var resFundTamtValue = Number(conSupplyTamtValue) - Number(totFundTamtValue);
  512. jQuery("#resFundTamt").val(resFundTamtValue.toFixed(g_digit)); //기성 잔여 과세
  513. jQuery("#resFundTamt").each(function(index){
  514. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  515. });
  516. if(fconSupplyTamtValue == 0){
  517. var resFundTRate = Number(resFundTamtValue) / Number(conSupplyTamtValue) * 100;
  518. jQuery("#resFundTRate").val(resFundTRate.toFixed(2));
  519. jQuery("#resPayDeductTRate").val("0.00");
  520. }else{
  521. var resFundTRate = Number(resFundTamtValue) / Number(conSupplyTamtValue) * 100;
  522. jQuery("#resFundTRate").val(resFundTRate.toFixed(2));
  523. jQuery("#resPayDeductTRate").val(resFundTRate.toFixed(2));
  524. }
  525. var resFundNamtValue = Number(conSupplyNamtValue) - Number(totFundNamtValue);
  526. jQuery("#resFundNamt").val(resFundNamtValue); //기성 잔여 면세
  527. var resFundNRate = Number(resFundNamtValue) / Number(conSupplyNamtValue) * 100;
  528. if(Number(slPrepaySupplyNamtValue) == 0){
  529. resFundNRate = 0;
  530. jQuery("#resFundNRate").val("0.00");
  531. }else{
  532. jQuery("#resFundNRate").val(resFundNRate.toFixed(2));
  533. jQuery("#resPayDeductNRate").val(resFundNRate.toFixed(2));
  534. }
  535. jQuery("#resFundNamt").each(function(index){
  536. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  537. });
  538. var resFundAmtValue = Number(conSupplyAmtValue) - Number(totFundAmtValue);
  539. jQuery("#resFundAmt").val(resFundAmtValue.toFixed(g_digit)); //기성 잔여 합계
  540. jQuery("#resFundAmt").each(function(index){
  541. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  542. });
  543. var resFundRateValue = (Number(resFundAmtValue) / Number(conSupplyAmtValue)) * 100;
  544. jQuery("#resFundRate").val(resFundRateValue.toFixed(2)); //누계 기성율 과세
  545. var resPayDeductTamtValue = Number(slPrepaySupplyTmatValue).toFixed(g_digit) - Number(totPayDeductTamtValue).toFixed(g_digit);
  546. jQuery("#resPayDeductTamt").val(Number(resPayDeductTamtValue).toFixed(g_digit)); //선급공제 잔여 과세
  547. var resPayDeductNamtValue = Number(slPrepaySupplyNamtValue) - Number(totPayDeductNamtValue);
  548. jQuery("#resPayDeductNamt").val(Number(resPayDeductNamtValue).toFixed(g_digit)); //선급공제 잔여 면세
  549. var resPayDeductAmtValue = Number(slPrepaySupplyAmtValue) - Number(totPayDeductAmtValue);
  550. jQuery("#resPayDeductAmt").val(Number(resPayDeductAmtValue).toFixed(g_digit)); //선급공제 잔여 합계
  551. if(resPayDeductAmtValue == "0"){
  552. var resPayDeductRateValue = "0.00";
  553. //jQuery("#resPayDeductRate").val(resPayDeductRateValue.toFixed(2)); //선급공제 잔여 기성율
  554. jQuery("#resPayDeductRate").val(resPayDeductRateValue); //선급공제 잔여 기성율
  555. }else{
  556. var resPayDeductRateValue = (Number(resPayDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
  557. jQuery("#resPayDeductRate").val(Number(resPayDeductRateValue).toFixed(2)); //선급공제 잔여 기성율
  558. }
  559. //잔여
  560. jQuery("#resPayDeductTamt, #resPayDeductNamt, #resPayDeductAmt").each(function(index){
  561. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  562. });
  563. //하자이행율이 100%이상이면 보증정보 표시
  564. setGuarOutList();
  565. });
  566. pageinit();
  567. }
  568. function fPayDeduct(argGb)
  569. {
  570. alert("call");
  571. }
  572. //2018.10.25
  573. function RtnClose(returnValue, returnn){
  574. setTimeout(function(){fLayerPopClose('ItemPop');},100);
  575. jQuery("#fundTamt").val(returnValue);
  576. jQuery("#fundNamt").val(returnn);
  577. jQuery("#fundTamt").blur();
  578. jQuery("#fundNamt").blur(); //2019.05.24 추가. 면세만 있는경우 합계 계산이 안됨.
  579. var f = document.form1;
  580. jQuery("#fevent").val("SAVE_DATA");
  581. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  582. }
  583. //페이지 초기처리
  584. function pageinit(){
  585. //상태값에 따른 입력항목 리드온리 처리 03:기성신청
  586. if(jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "10"){
  587. inputDataSet();
  588. }
  589. //발행방법에 따른 페이지 셋팅
  590. //taxDataSet();
  591. //버튼표시 셋팅
  592. btnCtr();
  593. //작성일자(증빙일자)
  594. seTaxDate();
  595. //면세금액에 따른 금회면세 사용자 입력 가능유무
  596. if(jQuery("#conSupplyNamt").val() == "0"){
  597. //jQuery("#fundNamt").attr('disabled','disabled');
  598. //jQuery("#fundNamt").attr("style", "background-color: #dedede");
  599. //jQuery("#fundNamt").attr("style", "border:0px solid #6a6a6a");
  600. //jQuery("#fundNamt").attr("style", "width:100%");
  601. /* jQuery("#fundNamt").attr("style", "background-color: #dedede");
  602. jQuery("#fundNamt").attr("style", "border:0px solid #6a6a6a");
  603. jQuery("#fundNamt").attr("readonly",true); */
  604. }
  605. //하자이행보증정보 view유무
  606. setGuarOutList();
  607. }
  608. function setGuarOutList(){
  609. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  610. var preFundRateValue = Number(jQuery("#preFundRate").val()); //전회 누계기성율
  611. //var preFundRateValue = 90; //전회 누계기성율
  612. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  613. var totFundRateValue = Number(jQuery("#totFundRate").val()); //누계기성율
  614. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  615. var resFundAmtValue = Number(jQuery("#resFundAmt").val()); //잔여기성합계
  616. /* if(Number(checkRate1) > 100){
  617. jQuery('#warr1').show();
  618. jQuery('#warr2').show();
  619. }else if(Number(checkRate2) > 100){
  620. jQuery('#warr1').show();
  621. jQuery('#warr2').show();
  622. } */
  623. if(defEstGuarRateValue > 0 && resFundAmtValue <= 0){
  624. jQuery('#warr1').show();
  625. jQuery('#warr2').show();
  626. }
  627. else{
  628. jQuery('#warr1').hide();
  629. jQuery('#warr2').hide();
  630. }
  631. }
  632. //저장 후 기성신청 처리
  633. function btnAppReqProcess(){
  634. if(fMakeItemInfo()){
  635. //alert("저장처리");
  636. var f = document.form1;
  637. jQuery("#fevent").val("REQ_DATA");
  638. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "REQ_DATA", f, "SUCCESS");
  639. }
  640. }
  641. function seTaxDate(){
  642. var date = new Date();
  643. var day = date.getDate();
  644. var month = date.getMonth()+1;
  645. var year = date.getFullYear();
  646. //작년 구하기
  647. date.setFullYear(date.getFullYear() -1 );
  648. var last_year = date.getFullYear();
  649. var newDay = new Date( get_year(), get_month(), "");
  650. var lastDay = newDay.getDate();
  651. var yyyymmdd = get_year() +'-'+ get_month() +"-"+ lastDay;
  652. //test
  653. /* year = 2023;
  654. last_year = 2022;
  655. month = 12;
  656. day = 7; */
  657. if(month == 1){ //1월
  658. if(day < 7){
  659. year = last_year;
  660. month = 12;
  661. }
  662. }else{ //2~12월
  663. if(day < 7){
  664. month = month-1;
  665. }
  666. }
  667. newDay = new Date( year, month, 0);
  668. lastDay = newDay.getDate();
  669. if(month < 10){
  670. month = "0" + month;
  671. }
  672. yyyymmdd = year+'-'+month+'-'+lastDay;
  673. if(jQuery('#date1').val() == ""){
  674. jQuery('#date1').val(yyyymmdd);
  675. }
  676. }
  677. function btnCtr(){
  678. //alert(jQuery("#statusCd").val());
  679. if(jQuery("#statusCd").val() == "01"){ //작성상태(01): 목록, 삭제, 저장, 기성신청 표시
  680. jQuery("#btnList").show();
  681. jQuery("#btnDelete").show();
  682. jQuery("#btnSave").show();
  683. jQuery("#btnAppReq").show();
  684. }
  685. if(jQuery("#statusCd").val() == "02"){ //기성신청요청(02) : 목록, 저장, 기성신청 표시
  686. jQuery("#btnList").show();
  687. jQuery("#btnDelete").hide();
  688. jQuery("#btnSave").show();
  689. jQuery("#btnAppReq").show();
  690. }
  691. if(jQuery("#statusCd").val() == "03"){ //기성신청(03) : 목록 표시
  692. jQuery("#btnList").show();
  693. jQuery("#btnDelete").hide();
  694. jQuery("#btnSave").hide();
  695. jQuery("#btnAppReq").hide();
  696. }
  697. if(jQuery("#statusCd").val() == "04"){ //기성신청(04) : 목록 표시
  698. jQuery("#btnList").show();
  699. jQuery("#btnDelete").hide();
  700. jQuery("#btnSave").hide();
  701. jQuery("#btnAppReq").hide();
  702. }
  703. if(jQuery("#statusCd").val() == "10"){ //기성완료(10) : 목록 표시
  704. jQuery("#btnList").show();
  705. jQuery("#btnDelete").hide();
  706. jQuery("#btnSave").hide();
  707. jQuery("#btnAppReq").hide();
  708. }
  709. if(jQuery("#statusCd").val() == "91"){ //반려(91) : 목록, 저장, 기성신청 표시
  710. jQuery("#btnList").show();
  711. jQuery("#btnDelete").show();
  712. jQuery("#btnSave").show();
  713. jQuery("#btnAppReq").show();
  714. }
  715. }
  716. function taxDataSet(){
  717. var radioCheck = jQuery(':radio[name="chk_info"]:checked').val();
  718. //alert(radioCheck);
  719. if(radioCheck == "1"){
  720. jQuery("#taxAttachments").hide();
  721. }else{
  722. jQuery("#taxAttachments").show();
  723. }
  724. }
  725. //상태가 03:기성신청 일때 입력항목 리드온리
  726. function inputDataSet(){
  727. jQuery("#taxChargNm").attr("readonly",true);
  728. jQuery("#taxChargNm").css({'background-color' : '#f0f0f0'});
  729. jQuery("#taxChargNm").css({'border' : '0px solid #f0f0f0'});
  730. jQuery("#taxChargHp").attr("readonly",true);
  731. jQuery("#taxChargHp").css({'background-color' : '#f0f0f0'});
  732. jQuery("#taxChargHp").css({'border' : '0px solid #f0f0f0'});
  733. jQuery("#taxChargEmail").attr("readonly",true);
  734. jQuery("#taxChargEmail").css({'background-color' : '#f0f0f0'});
  735. jQuery("#taxChargEmail").css({'border' : '0px solid #f0f0f0'});
  736. jQuery("#fundTamt").attr("readonly",true);
  737. jQuery("#fundTamt").css({'background-color' : '#f0f0f0'});
  738. jQuery("#fundTamt").css({'border' : '0px solid #f0f0f0'});
  739. //jQuery("#fundNamt").attr("readonly",true);
  740. //jQuery("#fundNamt").css({'background-color' : '#f0f0f0'});
  741. //jQuery("#fundNamt").css({'border' : '0px solid #f0f0f0'});
  742. jQuery("#requSurtaxAmt").attr("readonly",true);
  743. jQuery("#requSurtaxAmt").css({'background-color' : '#f0f0f0'});
  744. jQuery("#requSurtaxAmt").css({'border' : '0px solid #f0f0f0'});
  745. //jQuery("#fundTamt").attr("disabled",true);
  746. //jQuery("#fundNamt").attr("disabled",true);
  747. }
  748. //저장 및 선급금 신청시 필수항목 Check
  749. function requiredItemsCheck(){
  750. var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
  751. var taxChargNm = jQuery('#taxChargNm').val(); //담당자명
  752. var taxChargHp = jQuery('#taxChargHp').val(); //담당자 핸드폰번호
  753. var taxChargEmail = jQuery('#taxChargEmail').val(); //담당자 이메일
  754. var resFundRate = jQuery('#resFundRate').val(); //잔여기성 기성율
  755. var fundRate = jQuery('#fundRate').val(); //금회_기성 기성율
  756. var resDeductTrate = jQuery('#resPayDeductTRate').val();
  757. var resPayDeductNrate = jQuery('#resPayDeductNRate').val();
  758. var resPayDeductRate = jQuery('#resPayDeductRate').val();
  759. var resPayDeductTamt = jQuery('#resPayDeductTamt').val();
  760. var resPayDeductNamt = jQuery('#resPayDeductNamt').val();
  761. var resPayDeductAmt = jQuery('#resPayDeductAmt').val();
  762. if(date1 == "" ){
  763. alert("입력필수입니다.");
  764. jQuery('#date1').focus();
  765. return false;
  766. }
  767. if(taxChargNm == ""){
  768. alert("담당자명은 입력필수입니다.");
  769. jQuery('#taxChargNm').focus();
  770. return false;
  771. }
  772. if(taxChargHp == ""){
  773. alert("담당자 핸드폰 번호는 입력필수입니다.");
  774. jQuery('#taxChargHp').focus();
  775. return false;
  776. }else{
  777. var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
  778. var strValue = taxChargHp;
  779. var chkFlg = rgEx.test(strValue);
  780. if(!chkFlg){
  781. alert("올바른 휴대폰번호가 아닙니다.");
  782. jQuery('#taxChargHp').focus();
  783. return false;
  784. }
  785. }
  786. if(taxChargEmail == ""){
  787. alert("담당자 이메일은 입력필수입니다.");
  788. jQuery('#taxChargEmail').focus();
  789. return false;
  790. }else{
  791. 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})(\]?)$/;
  792. if(!regEmail.test(taxChargEmail)) {
  793. alert('올바른 이메일 주소가 아닙니다.');
  794. jQuery('#taxChargEmail').focus();
  795. return false;
  796. }
  797. }
  798. //잔여기성율 마이너스 check
  799. if(Number(resFundRate) < 0){
  800. alert("잔여기성이 0보다 작을수 없습니다.");
  801. jQuery('#fundTamt').focus();
  802. return false;
  803. }
  804. //잔여기성율 마이너스 check
  805. if(Number(resDeductTrate) < 0){
  806. alert("선급금 잔여 과세율이 0보다 작을수 없습니다.");
  807. jQuery('#fundTamt').focus();
  808. return false;
  809. }
  810. //잔여기성율 마이너스 check
  811. if(Number(resPayDeductNrate) < 0){
  812. alert("선급금 잔여 면세율이 0보다 작을수 없습니다.");
  813. jQuery('#fundTamt').focus();
  814. return false;
  815. }
  816. //잔여기성율 마이너스 check
  817. if(Number(resPayDeductRate) < 0){
  818. alert("선급금 잔여율이 0보다 작을수 없습니다.");
  819. jQuery('#fundTamt').focus();
  820. return false;
  821. }
  822. //잔여기성율 마이너스 check
  823. if(Number(resPayDeductTamt) < 0){
  824. alert("선급금 잔여 과세금액이 0보다 작을수 없습니다.");
  825. jQuery('#fundTamt').focus();
  826. return false;
  827. }
  828. //잔여기성율 마이너스 check
  829. if(Number(resPayDeductNamt) < 0){
  830. alert("선급금 잔여 면세금액이 0보다 작을수 없습니다.");
  831. jQuery('#fundTamt').focus();
  832. return false;
  833. }
  834. //잔여기성율 마이너스 check
  835. if(Number(resPayDeductAmt) < 0){
  836. alert("선급금 잔여 금액이 0보다 작을수 없습니다.");
  837. jQuery('#fundTamt').focus();
  838. return false;
  839. }
  840. //금회기성율이 0% check 2019.05.13
  841. /*if(Number(fundRate) == 0){
  842. alert("금회 기성금액을 입력하세요.");
  843. jQuery('#fundTamt').focus();
  844. return false;
  845. }*/
  846. if(jQuery("#acmpYyyymm").val() != date1.substring(0,7)){
  847. alert("기성년월과 작성년월이 다릅니다.");
  848. jQuery('#date1').focus();
  849. return false;
  850. }
  851. if(jQuery("#btnAppReqSelect").val() == "1"){ //선급금신청요청시에는 해당하는 첨부파일이 모두 등록되어있어야함.
  852. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  853. var preFundRateValue = Number(jQuery("#preFundRate").val()); //전회 누계기성율
  854. //var preFundRateValue = 90; //전회 누계기성율
  855. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  856. var totFundRateValue = Number(jQuery("#totFundRate").val()); //누계기성율
  857. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  858. var resFundAmtValue = Number(jQuery("#resFundAmt").val()); //잔여기성합계
  859. /* if(checkRate1 > 100 || checkRate2 > 100){
  860. //하자이행보증 정보가 존재하는지Check
  861. if(jQuery("#warrWgno").val() == ""){
  862. alert("하자이행보증 정보가 없습니다.");
  863. return false;
  864. }
  865. } */
  866. if(resFundAmtValue <= 0){
  867. //하자이행보증 정보가 존재하는지Check
  868. if(jQuery("#warrWgno").val() == ""){
  869. alert("하자이행보증 정보가 없습니다.");
  870. return false;
  871. }
  872. }
  873. }
  874. }
  875. //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
  876. function payCompareCheck(){
  877. var befTotFundAmtValue = "<%=acmpData.get("BEF_TOT_FUND_AMT")%>"; //이전 기성차수 누계기성합계
  878. var befTotPayDeductValue = "<%=acmpData.get("BEF_TOT_PAY_DEDUCT_AMT")%>"; //이전 기성차수 누계선급금합계
  879. var preFundAmtValue = "<%=acmpData.get("PRE_FUND_AMT")%>"; //현재 기성차수 전회기성합계
  880. var prePayDeductAmtValue = "<%=acmpData.get("PRE_PAY_DEDUCT_AMT")%>"; //현재 기성차수 전회선급금합계
  881. //alert("befTotFundAmtValue : "+befTotFundAmtValue+", preFundAmtValue : "+preFundAmtValue+", befTotPayDeductValue : "+befTotPayDeductValue+", prePayDeductAmtValue : "+prePayDeductAmtValue);
  882. if(befTotFundAmtValue == "" || befTotFundAmtValue == null) befTotFundAmtValue = "0";
  883. if(befTotPayDeductValue == "" || befTotPayDeductValue == null) befTotPayDeductValue = "0";
  884. if(befTotFundAmtValue != preFundAmtValue){
  885. alert("전회기성금이 맞지 않습니다.\n관리자에게 문의하십시오.");
  886. return false;
  887. }
  888. if(befTotPayDeductValue != prePayDeductAmtValue){
  889. alert("전회선급금이 맞지 않습니다.\n관리자에게 문의하십시오.");
  890. return false;
  891. }
  892. }
  893. function doResult(resultObj) {
  894. try {
  895. if( resultObj.getRequestEvent() == "SAVE_DATA" ) {
  896. if( resultObj.getSuccess() ) {
  897. document.form1.isSubmit = false;
  898. if(jQuery("#btnAppReqSelect").val() == "0"){
  899. alert("저장되었습니다.");
  900. //jQuery("#btnList").click();
  901. jQuery("#btnSearch").click();
  902. }else{
  903. jQuery("#btnAppReqSelect").val("0");
  904. btnAppReqProcess();
  905. }
  906. }else {
  907. dlgErrorMsg(resultObj);
  908. }
  909. document.form1.isSubmit = false;
  910. }
  911. if( resultObj.getRequestEvent() == "DELETE_DATA" ) {
  912. if( resultObj.getSuccess() ) {
  913. alert("기성정보가 삭제되었습니다.");
  914. jQuery("#btnList").click();
  915. }else {
  916. dlgErrorMsg(resultObj);
  917. }
  918. document.form1.isSubmit = false;
  919. }
  920. if( resultObj.getRequestEvent() == "REQ_DATA" ) {
  921. if( resultObj.getSuccess() ) {
  922. alert("기성신청 하였습니다.");
  923. //jQuery("#btnList").click();
  924. jQuery("#btnSearch").click();
  925. }else {
  926. dlgErrorMsg(resultObj);
  927. }
  928. document.form1.isSubmit = false;
  929. }
  930. if( resultObj.getRequestEvent() == "GET_DATA" ) {
  931. if( resultObj.getSuccess() ) {
  932. var subContModId = resultObj.getValueObject().get("SUB_CONT_MOD_ID");
  933. if(subContModId != ""){
  934. jQuery("#subContModId").val(subContModId);
  935. var warrGubun = resultObj.getValueObject().get("WARR_GUBUN");
  936. jQuery("#warrGubun").val(warrGubun);
  937. var warrSeq = resultObj.getValueObject().get("WARR_SEQ");
  938. jQuery("#warrSeq").val(warrSeq);
  939. var causeCode = resultObj.getValueObject().get("CAUSECODE");
  940. jQuery("#causeCode").val("당초");
  941. var guarOnoffYn = resultObj.getValueObject().get("GUAR_ONOFF_YN");
  942. jQuery("#guarOnoffYn").val(guarOnoffYn);
  943. var warrGoffice = resultObj.getValueObject().get("WARR_GOFFICE");
  944. jQuery("#warrGoffice").val(warrGoffice);
  945. var guarStatus = resultObj.getValueObject().get("GUAR_STATUS");
  946. jQuery("#guarStatus").val(guarStatus);
  947. var paperDate = resultObj.getValueObject().get("PAPERDATE");
  948. jQuery("#paperDate").val(paperDate);
  949. var warrWgno = resultObj.getValueObject().get("WARR_WGNO");
  950. jQuery("#warrWgno").val(warrWgno);
  951. var warrWamt = resultObj.getValueObject().get("WARR_WAMT");
  952. jQuery("#warrWamt").val(warrWamt);
  953. jQuery("#warrWamt").each(function(index){
  954. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  955. });
  956. var warrSdateEdate = resultObj.getValueObject().get("WARR_SDATE_EDATE");
  957. jQuery("#warrSdateEdate").val(warrSdateEdate);
  958. }
  959. }else {
  960. dlgErrorMsg(resultObj);
  961. }
  962. document.form1.isSubmit = false;
  963. }
  964. if( resultObj.getRequestEvent() == "GET_ATTACHFILE" ) {
  965. if( resultObj.getSuccess() ) {
  966. document.form1.p_AttachFile.value = resultObj.getValueObject().get("AttachFile");
  967. }else {
  968. dlgErrorMsg(resultObj);
  969. }
  970. document.form1.isSubmit = false;
  971. }
  972. }
  973. catch(errorObject) {
  974. showErrorDlg("doResult()", errorObject);
  975. }
  976. }
  977. function doKeyPress() {
  978. if( event.keyCode == 13 ) {
  979. doSearch(document.all.sheet1)
  980. }
  981. }
  982. function calendar(thisDayObj){
  983. dlgCalendar(thisDayObj);
  984. }
  985. //첨부파일
  986. function doAttachFile(obj,No) {
  987. if(obj.value == ''){
  988. alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
  989. }
  990. else if(obj.value != ''){
  991. if(No == 1){
  992. viewFileListNew1('RESOLUTION_'+obj.value, No, document.getElementById("fileMapIDDiv"), "Y", "payment/purchase/"+obj.value);
  993. }else{
  994. var upLoadFlg = "Y";
  995. if(jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "10"){ //상태값이 기성신청(03), 기성완료(10) 일때는 첨부파일 다운로드만 가능
  996. upLoadFlg = "Y";//2019.03.28 첨부파일 항상오픈.상태값 조정필요.
  997. }
  998. viewFileListNew1('RESOLUTION_'+obj.value, No, document.getElementById("fileMapIDDiv"), upLoadFlg, "payment/purchase/"+obj.value);
  999. }
  1000. }
  1001. }
  1002. function viewFileListNew1(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename) {
  1003. var win_id = "_viewFileList";
  1004. var link = "/common/file/FileListNew.screen";
  1005. link += "?pop_win_id="+win_id;
  1006. link += "&extFunction=viewFileListClose1";
  1007. link += "&file_gb=" + fileGB;
  1008. link += "&id=" + id;
  1009. if( obj.id != null )
  1010. link += "&obj_id=" + obj.id;
  1011. if( iframeID != null )
  1012. link += "&iframeID=" + iframeID;
  1013. if( isModify != null )
  1014. link += "&is_modify=" + isModify;
  1015. if( isDrectory != null )
  1016. link += "&sys_gb=" + isDrectory;
  1017. if( user_filename != null )
  1018. link += "&user_filename=" + user_filename;
  1019. fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
  1020. }
  1021. //첨부목록 조회
  1022. function getFileListForTextarea(){
  1023. document.form1.p_AttachFile.value = "";
  1024. var f = document.form1;
  1025. jQuery("#fevent").val("GET_ATTACHFILE");
  1026. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
  1027. }
  1028. //보증정보 조회
  1029. function callback_getContWarr(){
  1030. //alert("보증정보 조회");
  1031. fLayerPopClose('contOutWarrPop');
  1032. var f = document.form1;
  1033. jQuery("#fevent").val("GET_DATA");
  1034. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "GET_DATA", f, "VALUEOBJECT");
  1035. }
  1036. function fileCheck(checkObj, val){
  1037. var f = document.form1;
  1038. var obj = eval("document.getElementById('" + val + "')");
  1039. if(obj.style.display == "none"){
  1040. obj.style.display = "inline";
  1041. checkObj.checked = true;
  1042. }else{
  1043. obj.style.display = "none";
  1044. checkObj.checked = false;
  1045. }
  1046. }
  1047. function open_apppend_file_popup_new(form, fileConnGB, fileConnID, isReadOnly, check_file_cd) {
  1048. if (!form) {
  1049. dlgAlert('form 인자를 지정하여 주세요.');
  1050. return false;
  1051. }
  1052. if (!fileConnGB) {
  1053. dlgAlert('fileConnGB 인자를 지정하여 주세요.');
  1054. return false;
  1055. }
  1056. if (!fileConnID) {
  1057. dlgAlert('fileConnID 인자를 지정하여 주세요.');
  1058. return false;
  1059. }
  1060. var url = '/common/file/Append_file_popup_new.screen?fileConnGB=' + fileConnGB + '&fileConnID=' + fileConnID + '&check_file_cd='+ check_file_cd;
  1061. if (isReadOnly) {
  1062. url += '&readOnly=true';
  1063. } else {
  1064. if (!form.fileMapID) {
  1065. dlgAlert('fileMapID 필드가 존재하지 않습니다.');
  1066. return false;
  1067. }
  1068. }
  1069. }
  1070. function fMakeItemInfo(){
  1071. //SGC이앤씨 담당자 기성생성, erp전달->결재진행.
  1072. return true;
  1073. }
  1074. //보증정보팝업 호출
  1075. function popContWarr(wG, wSeq, wCauseCd) {
  1076. var win_id = "contOutWarrPopup";
  1077. var param = "";
  1078. var param = "?subContModId=" + jQuery("#selectSubContModId").val();
  1079. var param = param + "&warrGubun=" + wG;
  1080. var param = param + "&warrSeq=" + wSeq;
  1081. var param = param + "&causeCode=" + wCauseCd;
  1082. var param = param + "&viewDiv=ACMP";
  1083. // var param = param + "&prepayId=" + jQuery("#prepayId").val();
  1084. var param = param + "&pop_win_id=" + win_id;
  1085. var url = "/portal/guar/contOutWarrPopup.screen"+param;
  1086. fLayerPop(win_id, url, 560,350, '','', 'NO');
  1087. }
  1088. //보증정보팝업 종료후 액션
  1089. function popContWarrClose(returnValue){
  1090. if(returnValue == null){
  1091. fLayerPopClose('contOutWarrPopup');
  1092. }else{
  1093. fLayerPopClose('contOutWarrPopup');
  1094. //location.reload();
  1095. jQuery("#btnSearch").click();
  1096. }
  1097. }
  1098. function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
  1099. var editFile = "";
  1100. if(obj==''){
  1101. alert("After you have saved, you can attach a file.");
  1102. }
  1103. else if(obj != ''){
  1104. if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
  1105. viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contOutWarrPopup");
  1106. }
  1107. }
  1108. </SCRIPT>
  1109. <modular:search id="form1">
  1110. <modular:key id="fevent" />
  1111. </modular:search>
  1112. <form id="form1" name="form1" method="post" modular:type="search">
  1113. <div style="display:none;" id="fileMapIDDiv" class="attach_file_view" onPropertyChange="JavaScript:getFileListForTextarea();">
  1114. </div>
  1115. <INPUT type="hidden" name="fevent" id="fevent" value="">
  1116. <INPUT type="hidden" name="selectSubContId" id="selectSubContId" value="<%=params.get("selectSubContId") %>">
  1117. <INPUT type="hidden" name="selectSubContModId" id="selectSubContModId" value="<%=params.get("selectSubContModId") %>">
  1118. <INPUT type="hidden" name="acmpId" id="acmpId" value="<%=params.get("acmpId") %>">
  1119. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=acmpData.get("SUB_CONT_MOD_ID") %>">
  1120. <INPUT type="hidden" name="modNo" id="modNo" value="<%=acmpData.get("MOD_NO") %>"> <!-- 변경계약MAX차수 -->
  1121. <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=acmpData.get("STATUS_CD") %>"> <!-- 기성 상태값 -->
  1122. <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0"> <!-- 기성신청상태구분 -->
  1123. <INPUT type="hidden" name="inputVatDiv" id="inputVatDiv" value="<%=acmpData.get("INPUTVATDIV") %>">
  1124. <INPUT type="hidden" id="F_CON_SUPPLY_AMT" name="F_CON_SUPPLY_AMT" value='<%= Formatter2.currency(acmpData.get("F_CON_SUPPLY_AMT"), intDigit) %>'> <!-- 선급금대상계약금액 -->
  1125. <INPUT type="hidden" id="F_TAX_DY" name="F_TAX_DY" value='<%= acmpData.get("F_TAX_DY") %>'>
  1126. <!-- 임시 FILE MAP ID 값 -->
  1127. <INPUT type="hidden" name="fileMapID" id="fileMapID" value="" onPropertyChange="JavaScript:getFileListForTextarea();">
  1128. <INPUT type='hidden' id="signeddata" name="signeddata" value="">
  1129. <INPUT type='hidden' id="CONT_SIGNDN" name="CONT_SIGNDN" value="">
  1130. <!-- 검색 조건 계약명 -->
  1131. <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("searchBuildName") %>">
  1132. <INPUT type='hidden' id="searchDeptName" name="searchDeptName" value="<%=params.get("deptName") %>">
  1133. <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("detailcd") %>">
  1134. <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=acmpData.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
  1135. <INPUT type='hidden' id="resHp" name="resHp" value="<%=acmpData.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
  1136. <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=acmpData.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
  1137. <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=acmpData.get("CON_DOC_NO") %>"> <!-- 발주계약번호 -->
  1138. <INPUT type='hidden' id="defEstGuarRate" name="defEstGuarRate" value="<%=acmpData.get("DEF_EST_GUAR_RATE") %>"> <!-- 하자보수보증금율 -->
  1139. <!-- 제목 및 버튼 -->
  1140. <table width="100%">
  1141. <colgroup>
  1142. <col width="500" />
  1143. <col width="*" />
  1144. </colgroup>
  1145. <tr>
  1146. <th>
  1147. <div align="left" id="title">
  1148. <ul>
  1149. <li>외주_기성현황 상세(<span style="font-size: 11px"><%=acmpData.get("STATUS_NM")%></span>)</li>
  1150. </ul>
  1151. </div>
  1152. </th>
  1153. <td align="right">
  1154. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSave">저장</a></span>
  1155. <span class="btnSearch center"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
  1156. <span class="btnSearch center"><a href="javascript:void(0);" id="btnAppReq">확정(ERP전송)</a></span>
  1157. <span class="btnSearch center"><a href="javascript:void(0);" id="btnList">목록</a></span>
  1158. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch" style="display: none;">조회</a></span>
  1159. </td>
  1160. </tr>
  1161. </table>
  1162. <%
  1163. if(!acmpData.get("RTN_REASON").equals("")){
  1164. %>
  1165. <div class="application-info magT10">
  1166. <div class="application-sub-title">
  1167. <span class="title">반려정보</span>
  1168. </div>
  1169. <div class="application-location">
  1170. </div>
  1171. </div>
  1172. <TABLE class="form-table">
  1173. <colgroup>
  1174. <col width="13%" />
  1175. <col width="*" />
  1176. </colgroup>
  1177. <TR>
  1178. <th style="text-align: left;">반려일</th>
  1179. <TD><%=acmpData.get("RTN_DATE")%></TD>
  1180. </TR>
  1181. <TR>
  1182. <th style="text-align: left;">반려사유</th>
  1183. <TD><%=acmpData.get("RTN_REASON")%></TD>
  1184. </TR>
  1185. </TABLE>
  1186. <%
  1187. }
  1188. %>
  1189. <div class="application-info magT10">
  1190. <div class="application-sub-title">
  1191. <span class="title">계약정보</span>
  1192. </div>
  1193. <div class="application-location">
  1194. </div>
  1195. </div>
  1196. <TABLE class="form-table">
  1197. <colgroup>
  1198. <col width="13%" />
  1199. <col width="20%" />
  1200. <col width="13%" />
  1201. <col width="20%" />
  1202. <col width="13%" />
  1203. <col width="*" />
  1204. </colgroup>
  1205. <TR>
  1206. <th style="text-align: left;">현장명</th>
  1207. <TD><%= InputText.get("deptName", acmpData.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1208. <th style="text-align: left;">계약명</th>
  1209. <TD><%= InputText.get("buildName", acmpData.get("BUILD_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1210. <th style="text-align: left;">통화</th>
  1211. <TD><%= InputText.get("conCurNm", acmpData.get("CON_CUR_NM"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1212. </TR>
  1213. <TR>
  1214. <th style="text-align: left;">사업자번호</th>
  1215. <TD><%= InputText.get("corpRegNo", acmpData.get("CORP_REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1216. <th style="text-align: left;">계약업체명</th>
  1217. <TD><%= InputText.get("corpKor", acmpData.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1218. <th style="text-align: left;">대표이사</th>
  1219. <TD><%= InputText.get("bossName", acmpData.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1220. </TR>
  1221. <TR>
  1222. <th style="text-align: left;">계약기간</th>
  1223. <TD><%= InputText.get("startEndWorkDate", acmpData.get("START_WORK_DATE") +"~"+ acmpData.get("END_WORK_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1224. <th style="text-align: left;">계약금액</th>
  1225. <TD><%= InputText.get("conConAmt", Formatter2.currency(acmpData.get("CON_SUPPLY_AMT"),intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1226. <th style="text-align: left;">선급금액</th>
  1227. <TD><%= InputText.get("conPrepayAmt", Formatter2.currency(acmpData.get("PREPAY_SUPPLY_AMT"),intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1228. </TR>
  1229. </TABLE>
  1230. <div class="application-info magT15">
  1231. <div class="application-sub-title">
  1232. <span class="title">세금계산서 정보</span>
  1233. </div>
  1234. </div>
  1235. <TABLE class="form-table">
  1236. <colgroup>
  1237. <col width="13%" />
  1238. <col width="20%" />
  1239. <col width="13%" />
  1240. <col width="20%" />
  1241. <col width="13%" />
  1242. <col width="*" />
  1243. </colgroup>
  1244. <TR>
  1245. <th style="text-align: left;">세금계산서 발행방법</th>
  1246. <TD colspan="3">
  1247. <input type="radio" id="chk_1" name="chk_info" value="1" onclick="taxDataSet();" <%= check1 %> disabled='disabled' style="display: none;"/>
  1248. <input type="radio" id="chk_2" name="chk_info" value="2" onclick="taxDataSet();" <%= check2 %> disabled='disabled' style="display: none;"/>
  1249. <%= checkString %>
  1250. </TD>
  1251. <th class="required" style="text-align: left;">작성일자(증빙일자)</th>
  1252. <TD><%= InputText.get("date1", Formatter.formatDate(acmpData.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  1253. <A href="JavaScript:calendar('date1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  1254. </TD>
  1255. </TR>
  1256. <TR>
  1257. <th class="required" style="text-align: left;">담당자명</th>
  1258. <TD><%= InputText.get("taxChargNm", acmpData.get("TAX_CHARG_NM"), 100, 10, "string, left, PerSize", "string") %></TD>
  1259. <th class="required" style="text-align: left;">담당자 핸드폰번호</th>
  1260. <TD><%-- <%= InputText.get("taxChargHp", acmpData.get("TAX_CHARG_HP"), 5, 13, "string, left", "string") %> --%>
  1261. <input type="text" id="taxChargHp" name="taxChargHp" value="<%=acmpData.get("TAX_CHARG_HP") %>" style="width: 44%" size="13" maxlength="13" alt="left">&nbsp;ex)010-0000-0000</TD>
  1262. <th class="required" style="text-align: left;">담당자 이메일</th>
  1263. <TD><%= InputText.get("taxChargEmail", acmpData.get("TAX_CHARG_EMAIL"), 100, 45, "string, left, PerSize", "string") %></TD>
  1264. </TR>
  1265. </TABLE>
  1266. <div class="application-info magT15">
  1267. <div class="application-sub-title">
  1268. <span class="title">기성 정보</span>
  1269. </div>
  1270. </div>
  1271. <TABLE class="form-table">
  1272. <colgroup>
  1273. <col width="13%" />
  1274. <col width="20%" />
  1275. <col width="13%" />
  1276. <col width="20%" />
  1277. <col width="13%" />
  1278. <col width="*" />
  1279. </colgroup>
  1280. <TR>
  1281. <th style="text-align: left;">기성년월</th>
  1282. <TD><%= InputText.get("acmpYyyymm", params.get("acmpYyyymm"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
  1283. <th style="text-align: left;">기성차수</th>
  1284. <TD><%= InputText.get("acmpNo", acmpData.get("ACMP_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, PerSize, tabIndex=-1", "string") %></TD>
  1285. <th style="text-align: left;">신청(서명)일시</th>
  1286. <TD><%= InputText.get("custSignDate", acmpData.get("SUPP_SIGN_DT") , 100, 30, "class=input_blank, readOnly=white, string, left, PerSize, tabIndex=-1", "string") %></TD>
  1287. </TR>
  1288. <TR>
  1289. <th style="text-align: left;">하도급직불여부</th>
  1290. <TD>
  1291. &nbsp;<input type="radio" name="SUPP_DIRECT_YN" value="Y"' <%=acmpData.get("SUPP_DIRECT_YN").equals("Y") ? "checked=\"checked\"" : ""%>>예
  1292. &nbsp;<input type="radio" name="SUPP_DIRECT_YN" value="N"' <%=acmpData.get("SUPP_DIRECT_YN").equals("N") ? "checked=\"checked\"" : ""%>>아니오
  1293. </TD>
  1294. <th style="text-align: left;">노무비닷컴여부</th>
  1295. <TD colspan="3">
  1296. &nbsp;<input type="radio" name="LABOR_USE_YN" value="Y"' onclick="return(false)" <%=acmpData.get("LABOR_USE_YN").equals("Y") ? "checked=\"checked\"" : ""%>>예
  1297. &nbsp;<input type="radio" name="LABOR_USE_YN" value="N"' onclick="return(false)" <%=acmpData.get("LABOR_USE_YN").equals("N") ? "checked=\"checked\"" : ""%>>아니오
  1298. </TD>
  1299. </TR>
  1300. </TABLE>
  1301. <img src="/img/com/blank.gif" height="10px" />
  1302. <TABLE class="form-table" style="table-layout: fixed;">
  1303. <colgroup>
  1304. <col width="2%" />
  1305. <col width="5%" />
  1306. <col width="6%" />
  1307. <col width="6%" />
  1308. <col width="6%" />
  1309. <col width="5%" />
  1310. <col width="6%" />
  1311. <col width="6%" />
  1312. <col width="6%" />
  1313. <col width="5%" />
  1314. <col width="6%" />
  1315. <col width="6%" />
  1316. <col width="6%" />
  1317. <col width="5%" />
  1318. <col width="6%" />
  1319. <col width="6%" />
  1320. <col width="6%" />
  1321. <col width="*" />
  1322. </colgroup>
  1323. <TR>
  1324. <th rowspan="2" colspan="2">구분</th>
  1325. <th rowspan="2" colspan="4">합계</th>
  1326. <th colspan="8">공급가액</th>
  1327. <th rowspan="2" colspan="4">부가세</th>
  1328. </TR>
  1329. <TR>
  1330. <th colspan="4">과세</th>
  1331. <th colspan="4">면세</th>
  1332. </TR>
  1333. <TR>
  1334. <th colspan="2">계약금</th>
  1335. <TD colspan="4"><%= InputText.get("conAmt", Formatter2.currency(acmpData.get("CON_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1336. <TD colspan="4"><%= InputText.get("conSupplyTamt", Formatter2.currency(acmpData.get("CON_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1337. <TD colspan="4"><%= InputText.get("conSupplyNamt", Formatter2.currency(acmpData.get("CON_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1338. <TD colspan="4"><%= InputText.get("conSurtaxAmt", Formatter2.currency(acmpData.get("CON_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1339. </TR>
  1340. <TR>
  1341. <th colspan="2">선급금</th>
  1342. <TD colspan="4"><%= InputText.get("perpayAmt", Formatter2.currency(acmpData.get("PREPAY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1343. <TD colspan="4"><%= InputText.get("prepaySupplyTamt", Formatter2.currency(acmpData.get("PREPAY_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1344. <TD colspan="4"><%= InputText.get("prepaySupplyNamt", Formatter2.currency(acmpData.get("PREPAY_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1345. <TD colspan="4"><%= InputText.get("prepaySurtaxAmt", Formatter2.currency(acmpData.get("PREPAY_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1346. </TR>
  1347. <TR>
  1348. <th colspan="2">선급금 지급</th>
  1349. <TD colspan="4"><%= InputText.get("slPrepayAmt", Formatter2.currency(acmpData.get("SL_PREPAY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1350. <TD colspan="4"><%= InputText.get("slPrepaySupplyTmat", Formatter2.currency(acmpData.get("SL_PREPAY_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1351. <TD colspan="4"><%= InputText.get("slPrepaySupplyNamt", Formatter2.currency(acmpData.get("SL_PREPAY_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1352. <TD colspan="4"><%= InputText.get("slPrepaySurtaxAmt", Formatter2.currency(acmpData.get("SL_PREPAY_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1353. </TR>
  1354. </TABLE>
  1355. <img src="/img/com/blank.gif" height="10px" />
  1356. <table width="100%"><tr><td align="right"><span class="btnSearch center"><a href="javascript:void(0);" id="btnItem">기성입력</a></span></td></tr></table>
  1357. <TABLE class="form-table" style="table-layout: fixed;">
  1358. <colgroup>
  1359. <col width="2%" />
  1360. <col width="5%" />
  1361. <col width="8%" />
  1362. <col width="7%" />
  1363. <col width="8%" />
  1364. <col width="8%" />
  1365. <col width="7%" />
  1366. <col width="8%" />
  1367. <col width="8%" />
  1368. <col width="7%" />
  1369. <col width="8%" />
  1370. <col width="8%" />
  1371. <col width="7%" />
  1372. <col width="*" />
  1373. </colgroup>
  1374. <TR>
  1375. <th rowspan="2" colspan="2">구분</th>
  1376. <th colspan="3">전회까지</th>
  1377. <th colspan="3" class="required">금회</th>
  1378. <th colspan="3">누계기성</th>
  1379. <th colspan="3">잔여기성</th>
  1380. </TR>
  1381. <TR>
  1382. <th>과세</th>
  1383. <th>면세</th>
  1384. <th>합계</th>
  1385. <th>과세</th>
  1386. <th>면세</th>
  1387. <th>합계</th>
  1388. <th>과세</th>
  1389. <th>면세</th>
  1390. <th>합계</th>
  1391. <th>과세</th>
  1392. <th>면세</th>
  1393. <th>합계</th>
  1394. </TR>
  1395. <TR>
  1396. <th rowspan="2">기성</th><th colspan="1">율</th>
  1397. <TD><%= InputText.get("preFundTate", Formatter2.currency(acmpData.get("PRE_FUND_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1398. <TD><%= InputText.get("preFundNate", Formatter2.currency(acmpData.get("PRE_FUND_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1399. <TD><%= InputText.get("preFundRate", Formatter2.currency(acmpData.get("PRE_FUND_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1400. <TD><%= InputText.get("fundTRate", Formatter2.currency(acmpData.get("FUND_TRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1401. <TD><%= InputText.get("fundNRate", Formatter2.currency(acmpData.get("FUND_NRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1402. <TD><%= InputText.get("fundRate", Formatter2.currency(acmpData.get("FUND_RATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1403. <TD><%= InputText.get("totFundTRate", Formatter2.currency(acmpData.get("TOT_FUND_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1404. <TD><%= InputText.get("totFundNRate", Formatter2.currency(acmpData.get("TOT_FUND_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1405. <TD><%= InputText.get("totFundRate", Formatter2.currency(acmpData.get("TOT_FUND_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1406. <TD><%= InputText.get("resFundTRate", Formatter2.currency(acmpData.get("RES_FUND_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1407. <TD><%= InputText.get("resFundNRate", Formatter2.currency(acmpData.get("RES_FUND_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1408. <TD><%= InputText.get("resFundRate", Formatter2.currency(acmpData.get("RES_FUND_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1409. </TR>
  1410. <TR>
  1411. <th colspan="1">금액</th>
  1412. <TD><%= InputText.get("preFundTamt", Formatter2.currency(acmpData.get("PRE_FUND_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1413. <TD><%= InputText.get("preFundNamt", Formatter2.currency(acmpData.get("PRE_FUND_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1414. <TD><%= InputText.get("preFundAmt", Formatter2.currency(acmpData.get("PRE_FUND_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1415. <TD><%= InputText.get("fundTamt", Formatter2.currency(acmpData.get("FUND_TAMT"),intDigit), 100, 16, "class=input byteChk ,float, right, perSize, tabIndex=-1, readOnly", "float") %></TD>
  1416. <TD><%= InputText.get("fundNamt", Formatter2.currency(acmpData.get("FUND_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1417. <TD><%= InputText.get("fundAmt", Formatter2.currency(acmpData.get("FUND_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1418. <TD><%= InputText.get("totFundTamt", Formatter2.currency(acmpData.get("TOT_FUND_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1419. <TD><%= InputText.get("totFundNamt", Formatter2.currency(acmpData.get("TOT_FUND_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1420. <TD><%= InputText.get("totFundAmt", Formatter2.currency(acmpData.get("TOT_FUND_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1421. <TD><%= InputText.get("resFundTamt", Formatter2.currency(acmpData.get("RES_FUND_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1422. <TD><%= InputText.get("resFundNamt", Formatter2.currency(acmpData.get("RES_FUND_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1423. <TD><%= InputText.get("resFundAmt", Formatter2.currency(acmpData.get("RES_FUND_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1424. </TR>
  1425. <TR>
  1426. <th rowspan="2" >선급 공제</th><th colspan="1">율</th>
  1427. <TD><%= InputText.get("prePayDeductTRate", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1428. <TD><%= InputText.get("prePayDeductNRate", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1429. <TD><%= InputText.get("prePayDeductRate", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1430. <TD><%= InputText.get("payDeductTRate", Formatter2.currency(acmpData.get("PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1431. <TD><%= InputText.get("payDeductNRate", Formatter2.currency(acmpData.get("PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1432. <TD><%= InputText.get("payDeductRate", Formatter2.currency(acmpData.get("PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1433. <TD><%= InputText.get("totPayDeductTRate", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1434. <TD><%= InputText.get("totPayDeductNRate", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1435. <TD><%= InputText.get("totPayDeductRate", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1436. <TD><%= InputText.get("resPayDeductTRate", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_TRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1437. <TD><%= InputText.get("resPayDeductNRate", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_NRATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1438. <TD><%= InputText.get("resPayDeductRate", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_RATE"), 2), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1439. </TR>
  1440. <TR>
  1441. <th colspan="1">금액</th>
  1442. <TD><%= InputText.get("prePayDeductTamt", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1443. <TD><%= InputText.get("prePayDeductNamt", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1444. <TD><%= InputText.get("prePayDeductAmt", Formatter2.currency(acmpData.get("PRE_PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1445. <TD><%= InputText.get("payDeductTamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input byteChk, float, right, perSize", "float") %></TD>
  1446. <%if (acmpData.get("CON_SUPPLY_TAMT").equals("0") ) {%>
  1447. <TD><%= InputText.get("payDeductNamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input byteChk, float, right, perSize", "float") %></TD>
  1448. <%} else { %>
  1449. <TD><%= InputText.get("payDeductNamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, byteChk, float, right, perSize", "float") %></TD>
  1450. <%} %>
  1451. <TD><%= InputText.get("payDeductAmt", Formatter2.currency(acmpData.get("PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1452. <TD><%= InputText.get("totPayDeductTamt", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1453. <TD><%= InputText.get("totPayDeductNamt", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1454. <TD><%= InputText.get("totPayDeductAmt", Formatter2.currency(acmpData.get("TOT_PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1455. <TD><%= InputText.get("resPayDeductTamt", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1456. <TD><%= InputText.get("resPayDeductNamt", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1457. <TD><%= InputText.get("resPayDeductAmt", Formatter2.currency(acmpData.get("RES_PAY_DEDUCT_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1458. </TR>
  1459. <TR>
  1460. <th rowspan="3" >청<br>구<br>액</th>
  1461. <th>공급액</th>
  1462. <TD><%= InputText.get("preRequSupplyTamt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1463. <TD><%= InputText.get("preRequSupplyNamt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1464. <TD><%= InputText.get("preRequSupplyAmt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1465. <TD><%= InputText.get("requSupplyTamt", Formatter2.currency(acmpData.get("REQU_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1466. <TD><%= InputText.get("requSupplyNamt", Formatter2.currency(acmpData.get("REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1467. <TD><%= InputText.get("requSupplyAmt", Formatter2.currency(acmpData.get("REQU_SUPPLY_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1468. <TD><%= InputText.get("totRequSupplyTamt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1469. <TD><%= InputText.get("totRequSupplyNamt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1470. <TD><%= InputText.get("totRequSupplyAmt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1471. <TD class="bgEF"></TD>
  1472. <TD class="bgEF"></TD>
  1473. <TD class="bgEF"></TD>
  1474. </TR>
  1475. <TR>
  1476. <th>부가세</th>
  1477. <TD><%= InputText.get("preRequSurtaxAmt", Formatter2.currency(acmpData.get("PRE_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1478. <TD><%= InputText.get("preRequSurtaxNamt", Formatter2.currency(acmpData.get("PRE_REQU_SURTAX_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1479. <TD><%= InputText.get("tpreRequSurtaxAmt", Formatter2.currency(acmpData.get("PRE_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1480. <TD><%= InputText.get("requSurtaxAmt", Formatter2.currency(acmpData.get("REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input byteChk ,float, right, perSize", "float") %></TD>
  1481. <TD><%= InputText.get("trequSurtaxNamt", Formatter2.currency(acmpData.get("REQU_SURTAX_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1482. <TD><%= InputText.get("trequSurtaxAmt", Formatter2.currency(acmpData.get("REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1483. <TD><%= InputText.get("totRequSurtaxAmt", Formatter2.currency(acmpData.get("TOT_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1484. <TD><%= InputText.get("ttotRequSurtaxNamt", Formatter2.currency(acmpData.get("TOT_REQU_SURTAX_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1485. <TD><%= InputText.get("ttotRequSurtaxAmt", Formatter2.currency(acmpData.get("TOT_REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1486. <TD class="bgEF" ></TD>
  1487. <TD class="bgEF" ></TD>
  1488. <TD class="bgEF" ></TD>
  1489. </TR>
  1490. <TR>
  1491. <th>합계</th>
  1492. <TD><%= InputText.get("preRequAmt", Formatter2.currency(acmpData.get("PRE_REQU_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1493. <TD><%= InputText.get("tpreRequSupplyNamt", Formatter2.currency(acmpData.get("PRE_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1494. <TD><%= InputText.get("tpreRequAmt", Formatter2.currency(acmpData.get("PRE_REQU_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1495. <TD><%= InputText.get("requAmt", Formatter2.currency(acmpData.get("REQU_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1496. <TD><%= InputText.get("trequSupplyNamt", Formatter2.currency(acmpData.get("REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1497. <TD><%= InputText.get("trequAmt", Formatter2.currency(acmpData.get("REQU_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1498. <TD><%= InputText.get("totRequAmt", Formatter2.currency(acmpData.get("TOT_REQU_TAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1499. <TD><%= InputText.get("ttotRequSupplyNamt", Formatter2.currency(acmpData.get("TOT_REQU_SUPPLY_NAMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1500. <TD><%= InputText.get("ttotRequAmt", Formatter2.currency(acmpData.get("TOT_REQU_AMT"),intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1501. <TD class="bgEF" ></TD>
  1502. <TD class="bgEF" ></TD>
  1503. <TD class="bgEF" ></TD>
  1504. </TR>
  1505. </TABLE>
  1506. <img src="/img/com/blank.gif" height="10px" />
  1507. <TABLE class="form-table">
  1508. <colgroup>
  1509. <col width="7%" />
  1510. <col width="43%" />
  1511. <col width="7%" />
  1512. <col width="43%" />
  1513. </colgroup>
  1514. <TR>
  1515. <th>기성검사<br>첨부서류</th>
  1516. <TD>
  1517. <TABLE class="inner_table" border="0" >
  1518. <%
  1519. if(acmpFileRow.size() > 0){
  1520. int i_mod = 0;
  1521. for(int i = 0; acmpFileRow.size() > i; i++){
  1522. i_mod = i%3;
  1523. if(i_mod == 0){ %>
  1524. <TR>
  1525. <% } %>
  1526. <td width="2%">
  1527. <input type="checkbox" name="doc_cd" value="<%=acmpFileRow.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=acmpFileRow.getRow(i).get("DETAILCD") %>')" <%if(!acmpFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %>>
  1528. </td>
  1529. <td width="20%">
  1530. <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
  1531. <%=acmpFileRow.getRow(i).get("DETAILNM") %>
  1532. </td>
  1533. <td width="7%" height="24">
  1534. <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=acmpFileRow.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!acmpFileRow.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doAttachFile(document.form1.acmpId, '<%=acmpFileRow.getRow(i).get("DETAILCD") %>');" class="button">
  1535. </td>
  1536. <% if(i_mod == 2) { %>
  1537. </TR>
  1538. <% } %>
  1539. <%
  1540. }
  1541. for(int i=i_mod+1; i<3; i++){ %>
  1542. <td></td>
  1543. <% }
  1544. if(i_mod == 0 || i_mod == 1){ %>
  1545. </TR>
  1546. <% }
  1547. }
  1548. %>
  1549. </TABLE>
  1550. </TD>
  1551. <th>준공검사<br>첨부서류</th>
  1552. <TD>
  1553. <TABLE class="inner_table" border="0" >
  1554. <%
  1555. if(compFileRow.size() > 0){
  1556. int i_mod = 0;
  1557. for(int i = 0; compFileRow.size() > i; i++){
  1558. i_mod = i%3;
  1559. if(i_mod == 0){ %>
  1560. <TR>
  1561. <% } %>
  1562. <td width="2%">
  1563. <input type="checkbox" name="doc_cd" value="<%=compFileRow.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck(this,'<%=compFileRow.getRow(i).get("DETAILCD") %>');" <%if(!compFileRow.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> />
  1564. </td>
  1565. <td width="20%">
  1566. <%=compFileRow.getRow(i).get("DETAILNM") %>
  1567. </td>
  1568. <td width="7%" height="24">
  1569. <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=compFileRow.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!compFileRow.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doAttachFile(document.form1.acmpId, '<%=compFileRow.getRow(i).get("DETAILCD") %>');" class="button">
  1570. </td>
  1571. <% if(i_mod == 2) { %>
  1572. </TR>
  1573. <% } %>
  1574. <%
  1575. }
  1576. for(int i=i_mod+1; i<3; i++){ %>
  1577. <td></td>
  1578. <% }
  1579. if(i_mod == 0 || i_mod == 1){ %>
  1580. </TR>
  1581. <% }
  1582. }
  1583. %>
  1584. </TABLE>
  1585. </TD>
  1586. </TR>
  1587. </TABLE>
  1588. <img src="/img/com/blank.gif" height="10px" />
  1589. <TABLE class="form-table">
  1590. <colgroup>
  1591. <col width="7%" />
  1592. <col width="43%" />
  1593. <col width="7%" />
  1594. <col width="43%" />
  1595. </colgroup>
  1596. <TR height="90">
  1597. <th>기성첨부</th>
  1598. <TD>
  1599. <TEXTAREA name="p_AttachFile" id="p_AttachFile" cols="70" rows="3" readOnly class="input ctrlTarget" style="height: 85px; overflow-y:auto"><%= AttachFile.get("AttachFile") %></TEXTAREA>
  1600. </TD>
  1601. <th>특기사항</th>
  1602. <TD>
  1603. <TEXTAREA name="acmp_remark" id="acmp_remark" cols="70" rows="3" maxlength="1000" class="input byteChk ctrlTarget" style="height: 85px; overflow-y:auto"><%=acmpData.get("ACMP_REMARK") %></TEXTAREA>
  1604. </TD>
  1605. </TR>
  1606. </TABLE>
  1607. <%
  1608. /*
  1609. 보증 목록을 include 시킴 (2014-10-17) 김명호
  1610. */
  1611. %>
  1612. <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarOutList.jsp" %>
  1613. </FORM>
  1614. <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
  1615. <!-- <script src="/js/crosscert/deployJava.js"></script> -->
  1616. <script>
  1617. /*
  1618. var browser2 = deployJava.browserName2;
  1619. if(browser2 == "MSIE"){
  1620. //alert("IE");
  1621. // IE이면 기존 Active-X 브라우저를 사용한다.
  1622. document.write('<object id="CC_Object_id" classid="CLSID:A099920B-630C-426B-91EC-737685CEEE17" codebase="/js/crosscert/AxCrossCert.cab#Version=2,6,7,0" width=0 height=0>');
  1623. document.write('</OBJECT>');
  1624. }else{
  1625. //alert("타브라우저");
  1626. var browser = deployJava.browserName2;
  1627. //alert("browser:" + browser);
  1628. if(browser == "MSIE"){
  1629. }else{
  1630. var status = true;
  1631. status = deployJava.versionCheck('1.6.0_20+')
  1632. //alert("status: " + status);
  1633. if (status == false) {
  1634. var userInput = confirm("You need the latest Java(TM) Runtime Environment. Would you like to update now?");
  1635. if (userInput == true) {
  1636. // Set deployJava.returnPage to make sure user comes back to
  1637. // your web site after installing the JRE
  1638. deployJava.setInstallerType("online");
  1639. // install latest JRE or redirect user to another page to get JRE from.
  1640. deployJava.installLatestJRE();
  1641. status = true;
  1642. } else {
  1643. status = false;
  1644. }
  1645. }
  1646. if (status == false) {
  1647. } else {
  1648. //사용자 운영체제 확인
  1649. //운영체제에 맞는 library jar파일 설정을 위함
  1650. var isWin = (window.navigator.platform =='Win32')||(window.navigator.platform=='Windows');
  1651. var isMac = (window.navigator.platform =='Mac68K')||(window.navigator.platform == 'MacPPC') || (window.navigator.platform == 'MacIntel') || (window.navigator.platform.indexOf("Mac") > -1 ) ;
  1652. var isUnix = !isWin && !isMac;
  1653. var library_jar = "/cc_multi_2014_etech/win_library.jar";
  1654. if (browser == "Safari"){
  1655. //alert("Safari");
  1656. var tag = "";
  1657. tag += '<div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">';
  1658. tag += '<APPLET name="CC_Object_id" code="com.crosscert.jws.app.CC_MultiBrowserApplet.class" archive="/js/crosscert/CC_MultiBrowser.jar" WIDTH="0" HEIGHT="0" MAYSCRIPT="true">';
  1659. tag += '<PARAM name="type" value="application/x-java-applet;jpi-version=1.6.0_20">';
  1660. tag += '<param name="ARCHIVE" value="/js/crosscert/CC_MultiBrowser.jar,'+ library_jar + '" >';
  1661. tag += '<param name="codebase_lookup" value="false">';
  1662. tag += '</APPLET></div>';
  1663. document.write(tag);
  1664. }else{
  1665. var attributes = {id:'CC_Object_id', name:'CC_Object_id', code:'com.crosscert.jws.app.CC_MultiBrowserApplet.class', archive:'/js/crosscert/CC_MultiBrowser.jar,/js/crosscert/win_library.jar', width:'0', height:'0'} ;
  1666. var parameters = {jnlp_href:'/js/crosscert/CC_MultiBrowser.jnlp', codebase_lookup: 'false'} ;
  1667. var javaVersion = '1.6';
  1668. deployJava.runApplet(attributes, parameters, javaVersion);
  1669. }
  1670. }
  1671. }
  1672. }
  1673. */
  1674. </script>
  1675. </div>
  1676. <!-- <script language="javascript" src="/js/crosscert/init.js"></script> -->