resolutionRequest.jsp 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967
  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", "/portal/payment/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", "/portal/payment/ResolutionRequestList.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. jQuery("#btnAppReqSelect").val("0"); //0:저장처리, 1:기성신청처리
  101. //필수 입력항목 check
  102. if(requiredItemsCheck() == false){
  103. return;
  104. }
  105. //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
  106. if(payCompareCheck() == false){
  107. return;
  108. }
  109. //입력데이터 저장
  110. if (confirm("저장 하시겠습니까?")) {
  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);
  157. jQuery("#trequSurtaxAmt").val(requSurtaxAmt); //청구 부가세 금회 합계
  158. var requSupplyAmt = jQuery("#requSupplyAmt").val().replace(/(\,|\:)/g,""); //청구액 공급액 금회 합계
  159. var trequAmt = Number(requSupplyAmt) + Number(requSurtaxAmt);
  160. jQuery("#trequAmt").val(trequAmt);
  161. var totRequSupplyTamt = jQuery("#totRequSupplyTamt").val().replace(/(\,|\:)/g,""); //청구 공급액 누계 과세
  162. jQuery("#totRequSurtaxAmt").val(requSurtaxAmt); //청구 부가세 누계 과세
  163. var totRequAmt = Number(totRequSupplyTamt) + Number(requSurtaxAmt);
  164. jQuery("#totRequAmt").val(totRequAmt); //청구 합계 누계 과세
  165. var totRequSupplyAmt = jQuery("#totRequSupplyAmt").val().replace(/(\,|\:)/g,"");//청구 공급액 누계 합계
  166. jQuery("#ttotRequSurtaxAmt").val(requSurtaxAmt);//청구 부가세 누계 합계
  167. var ttotRequAmt = Number(totRequSupplyAmt) + Number(requSurtaxAmt);
  168. jQuery("#ttotRequAmt").val(ttotRequAmt); //청구 합계 누계 합계
  169. var preRequSurtaxAmtValue = Number(jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,"")); //청구 부가세 전회 과세
  170. var totRequSurtaxAmtValue = preRequSurtaxAmtValue + requSurtaxAmt;
  171. jQuery("#totRequSurtaxAmt").val(totRequSurtaxAmtValue);
  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);
  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. jQuery("#fundTamt").blur(function () {
  198. //금회 계산 처리
  199. var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
  200. fundTamtValue = Number(fundTamtValue).toFixed(g_digit);
  201. //입력한 선급금 과세가 빈값일 경우 0으로 셋팅
  202. if (fundTamtValue == "") {
  203. fundTamtValue = "0";
  204. jQuery("#fundTamt").val("0");
  205. }else{
  206. jQuery("#fundTamt").val(fundTamtValue);
  207. jQuery("#fundTamt").each(function(index){
  208. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  209. });
  210. }
  211. var conSupplyTamtValue = jQuery("#conSupplyTamt").val().replace(/(\,|\:)/g,""); //계약금 과세
  212. var fconSupplyTamtValue = jQuery("#F_CON_SUPPLY_AMT").val().replace(/(\,|\:)/g,""); //당초 계약금
  213. conSupplyTamtValue = Number(conSupplyTamtValue).toFixed(g_digit);
  214. fconSupplyTamtValue = Number(fconSupplyTamtValue).toFixed(g_digit);
  215. if(Number(fundTamtValue) > Number(conSupplyTamtValue)){
  216. alert("입력한 금회 기성 과세액이 계약 과세금 보다 큽니다.");
  217. jQuery("#fundTamt").focus();
  218. return;
  219. }
  220. var conSupplyNamt = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약금 공급가액 면세
  221. var fundNamt = jQuery("#fundNamt").val().replace(/(\,|\:)/g,"");//Number(conSupplyNamt) * (Number(fundTamtValue) / Number(conSupplyTamtValue));2019.03.15
  222. jQuery("#fundNamt").val(Number(fundNamt).toFixed(g_digit));
  223. //var fundNamtValue = jQuery("#fundNamt").val().replace(/(\,|\:)/g,""); //기성 금회 면세
  224. var fundNamtValue = fundNamt;
  225. fundNamtValue = Number(fundNamtValue).toFixed(g_digit);
  226. //입력한 선급금 면세가 빈값일 경우 0으로 셋팅
  227. if (fundNamtValue == "") {
  228. fundNamtValue = "0";
  229. jQuery("#fundNamt").val("0");
  230. }
  231. var conSupplyNamtValue = jQuery("#conSupplyNamt").val().replace(/(\,|\:)/g,""); //계약금 면세
  232. conSupplyNamtValue = Number(conSupplyNamtValue).toFixed(g_digit);
  233. if(Number(fundNamtValue) > Number(conSupplyNamtValue)){
  234. alert("입력한 금회 기성 면세액이 계약 면세금 보다 큽니다.");
  235. jQuery("#fundNamt").focus();
  236. return;
  237. }
  238. //금회 과세 기성율
  239. if(fconSupplyTamtValue == 0){
  240. var fundTRate = Number(fundTamtValue) / Number(conSupplyTamtValue) * 100;
  241. jQuery("#fundTRate").val(fundTRate.toFixed(2));
  242. }else{
  243. var fundTRate = Number(fundTamtValue) / Number(conSupplyTamtValue) * 100;
  244. //var fundTRate = fundTamtValue / fconSupplyTamtValue * 100;
  245. var f_rate = Number(fundTamtValue) / Number(fconSupplyTamtValue) * 100; //당초 계약금으로 계산
  246. jQuery("#fundTRate").val(fundTRate.toFixed(2));
  247. jQuery("#payDeductTRate").val(f_rate.toFixed(2)); //선급공제 금회 과세 율
  248. }
  249. //금회 면세 기성율
  250. var fundNRate = 0;
  251. if(Number(conSupplyNamtValue) == 0){
  252. jQuery("#fundNRate").val(fundNRate.toFixed(2));
  253. }else{
  254. fundNRate = Number(fundNamtValue) / Number(conSupplyNamtValue) * 100;
  255. jQuery("#fundNRate").val(fundNRate.toFixed(2));
  256. jQuery("#payDeductNRate").val(fundNRate.toFixed(2)); //선급공제 금회 과세 율
  257. }
  258. var fundAmtValue = Number(fundNamtValue) + Number(fundTamtValue);
  259. jQuery("#fundAmt").val(Number(fundAmtValue).toFixed(g_digit)); //기성 금회 합계
  260. var conSupplyAmtValue = Number(conSupplyTamtValue) + Number(conSupplyNamtValue);//계약 공급액
  261. var fundRateValue = (Number(fundAmtValue) / Number(conSupplyAmtValue)) * 100;
  262. jQuery("#fundRate").val(fundRateValue.toFixed(2)); //기성 금회 기성율
  263. var slPrepaySupplyTmatValue = jQuery("#slPrepaySupplyTmat").val().replace(/(\,|\:)/g,""); //계약 선급금지급 과세
  264. var slPrepaySupplyNamtValue = jQuery("#slPrepaySupplyNamt").val().replace(/(\,|\:)/g,""); //계약 선급금지급 면세
  265. var slPrepaySupplyAmtValue = Number(slPrepaySupplyTmatValue) + Number(slPrepaySupplyNamtValue); //계약 선급금지급 공급가액
  266. //var payDeductTamtValue = Number(slPrepaySupplyTmatValue) * Number( fundTRate.toFixed(2) / 100);
  267. if(fconSupplyTamtValue == 0){
  268. var payDeductTamtValue = 0;
  269. jQuery("#payDeductTamt").val(0); //선급공제 금회 과세
  270. jQuery("#payDeductNamt").val(0); //선급공제 금회 면세
  271. jQuery("#payDeductNRate").val("0.00"); //선급공제 금회 과세 율
  272. }else{
  273. //2016.7.28 선급금 마이너스인 경우 처리
  274. var f_rate = fundTamtValue / fconSupplyTamtValue * 100; //당초 계약금으로 계산
  275. var payDeductTamtValue = Number(slPrepaySupplyTmatValue) * Number(f_rate) / 100;
  276. //2016.7.28 선급공제액 > 선급잔액보다 크면
  277. if (Number(payDeductTamtValue) > Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,"")) ) {
  278. payDeductTamtValue = Number(jQuery("#resPayDeductTamt").val().replace(/(\,|\:)/g,"")); //선급잔액->선급공제액으로
  279. var p_rate = Number(payDeductTamtValue)/Number(jQuery("#prepaySupplyTamt").val().replace(/(\,|\:)/g,""))*100; //선급비율=공제금액/선급액
  280. jQuery("#payDeductTRate").val(p_rate.toFixed(2));//선급금율=공제금액/선급액*100
  281. }
  282. jQuery("#payDeductTamt").val(payDeductTamtValue.toFixed(g_digit)); //선급공제 금회 과세
  283. //var payDeductNamtValue = Number(slPrepaySupplyNamtValue * fundNRate.toFixed(2) / 100);
  284. var payDeductNamtValue = Number(slPrepaySupplyNamtValue) * parseFloat_isNaN(Number(payDeductTamtValue) / Number(slPrepaySupplyTmatValue));
  285. jQuery("#payDeductNamt").val(Number(payDeductNamtValue).toFixed(g_digit)); //선급공제 금회 면세
  286. var updse = payDeductNamtValue.toFixed(g_digit) / slPrepaySupplyNamtValue * 100;
  287. if(Number(slPrepaySupplyNamtValue) == 0){
  288. jQuery("#payDeductNRate").val("0.00"); //선급공제 금회 과세 율
  289. }else{
  290. jQuery("#payDeductNRate").val(updse.toFixed(2)); //선급공제 금회 과세 율
  291. }
  292. }
  293. var payDeductAmtValue = Number(payDeductTamtValue) + Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
  294. jQuery("#payDeductAmt").val(payDeductAmtValue.toFixed(g_digit)); //선급공제 금회 합계
  295. if(payDeductAmtValue == "0"){
  296. var payDeductRateValue = "0.00";
  297. jQuery("#payDeductRate").val(payDeductRateValue); //선급공제 금회 기성율
  298. }else{
  299. var payDeductRateValue = (Number(payDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
  300. jQuery("#payDeductRate").val(Number(payDeductRateValue).toFixed(2)); //선급공제 금회 기성율
  301. }
  302. var requSupplyTamtValue = Number(fundTamtValue) - Number(jQuery("#payDeductTamt").val().replace(/(\,|\:)/g,""));
  303. jQuery("#requSupplyTamt").val(requSupplyTamtValue.toFixed(g_digit)); //청구 공급액 금회 과세
  304. var requSupplyNamtValue = Number(fundNamtValue) - Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
  305. jQuery("#requSupplyNamt").val(requSupplyNamtValue.toFixed(g_digit)); //청구 공급액 금회 면세
  306. var requSupplyAmtValue = Number(fundAmtValue) - Number(payDeductAmtValue);
  307. jQuery("#requSupplyAmt").val(requSupplyAmtValue.toFixed(g_digit)); //청구 공급액 금회 합계
  308. var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
  309. //if(requSurtaxAmt == 0){
  310. var requSurtaxAmtValue = (requSupplyTamtValue * 10) / 100
  311. //jQuery("#requSurtaxAmt").val(requSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 금회 과세
  312. if(jQuery("#inputVatDiv").val() == "INPUT_EXEMPT"){
  313. jQuery("#requSurtaxAmt").val(0); //청구 부가세 금회 과세
  314. jQuery("#trequSurtaxAmt").val(0); //청구 부가세 금회 합계
  315. }else{
  316. jQuery("#requSurtaxAmt").val(doFloor(requSurtaxAmtValue,g_digit)); //청구 부가세 금회 과세
  317. var trequSurtaxAmtValue = (requSupplyTamtValue * 10) / 100
  318. //jQuery("#trequSurtaxAmt").val(trequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 금회 합계 2016.6.8 수정. 부가세 오차
  319. jQuery("#trequSurtaxAmt").val(doFloor(trequSurtaxAmtValue, g_digit));
  320. }
  321. //금회
  322. jQuery("#requSurtaxAmt, #trequSurtaxAmt").each(function(index){
  323. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  324. });
  325. //}
  326. var requSurtaxAmtValue = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,""));
  327. var trequSurtaxAmtValue = Number(jQuery("#trequSurtaxAmt").val().replace(/(\,|\:)/g,""));
  328. var requAmtValue = Number(requSupplyTamtValue) + Number(requSurtaxAmtValue);
  329. jQuery("#requAmt").val(requAmtValue.toFixed(g_digit)); //청구액 합계 금회 과세
  330. jQuery("#trequSupplyNamt").val(requSupplyNamtValue.toFixed(g_digit)); //청구액 합계 금회 면세
  331. var trequAmtValue = Number(requSupplyAmtValue) + Number(trequSurtaxAmtValue);
  332. jQuery("#trequAmt").val(trequAmtValue.toFixed(g_digit)); //청구액 합계 금회 합계
  333. var requAmtValue = Number(jQuery("#requAmt").val().replace(/(\,|\:)/g,""));
  334. var trequAmtValue = Number(jQuery("#trequAmt").val().replace(/(\,|\:)/g,""));
  335. //금회
  336. jQuery("#fundAmt, #fundNamt, #payDeductTamt, #payDeductNamt, #payDeductAmt, #requSupplyTamt, #requSupplyNamt, #requSupplyAmt, #requAmt, #trequSupplyNamt, #trequAmt").each(function(index){
  337. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  338. });
  339. //누계기성 계산 처리
  340. var preFundTamtValue = jQuery("#preFundTamt").val().replace(/(\,|\:)/g,""); //기성 전회 과세
  341. var totFundTamtValue = Number(preFundTamtValue) + Number(fundTamtValue);
  342. jQuery("#totFundTamt").val(totFundTamtValue.toFixed(g_digit)); //기성 누계기성 과세
  343. //누계기성 과세 율
  344. if(fconSupplyTamtValue == 0){
  345. jQuery("#totPayDeductTRate").val("0.00");
  346. var totFundTRate = Number(totFundTamtValue) / Number(conSupplyTamtValue) * 100;
  347. jQuery("#totFundTRate").val(totFundTRate.toFixed(2));
  348. }else{
  349. var totFundTRate = Number(totFundTamtValue) / Number(conSupplyTamtValue) * 100;
  350. jQuery("#totFundTRate").val(totFundTRate.toFixed(2));
  351. jQuery("#totPayDeductTRate").val(totFundTRate.toFixed(2));
  352. }
  353. var preFundNamtValue = jQuery("#preFundNamt").val().replace(/(\,|\:)/g,""); //기성 전회 면세
  354. var totFundNamtValue = Number(preFundNamtValue) + Number(fundNamtValue);
  355. jQuery("#totFundNamt").val(totFundNamtValue); //기성 누계기성 면세
  356. var totFundNRate = Number(totFundNamtValue) / Number(conSupplyNamtValue) * 100;
  357. if(Number(slPrepaySupplyNamtValue) == 0){
  358. totFundNRate = 0;
  359. jQuery("#totPayDeductNRate").val("0.00");
  360. }else{
  361. jQuery("#totFundNRate").val(totFundNRate.toFixed(2));
  362. jQuery("#totPayDeductNRate").val(totFundNRate.toFixed(2));
  363. }
  364. var preFundAmtValue = jQuery("#preFundAmt").val().replace(/(\,|\:)/g,""); //기성 전회 합계
  365. preFundAmtValue = Number(preFundAmtValue).toFixed(g_digit);
  366. var totFundAmtValue = Number(preFundAmtValue) + Number(fundAmtValue);
  367. totFundAmtValue = Number(totFundAmtValue).toFixed(g_digit);
  368. jQuery("#totFundAmt").val(totFundAmtValue); //기성 누계기성 합계
  369. var totFundRateValue = (Number(totFundAmtValue) / Number(conSupplyAmtValue)) * 100;
  370. jQuery("#totFundRate").val(totFundRateValue.toFixed(2)); //누계 기성율 과세
  371. var prePayDeductTamtValue = jQuery("#prePayDeductTamt").val().replace(/(\,|\:)/g,""); //선급공제 전회 과세
  372. var totPayDeductTamtValue = Number(prePayDeductTamtValue) + Number(payDeductTamtValue);
  373. jQuery("#totPayDeductTamt").val(totPayDeductTamtValue.toFixed(g_digit)); //선급공제 누계 과세
  374. var prePayDeductNamtValue = jQuery("#prePayDeductNamt").val().replace(/(\,|\:)/g,""); //선급공제 전회 면세
  375. var totPayDeductNamtValue = Number(prePayDeductNamtValue) + Number(jQuery("#payDeductNamt").val().replace(/(\,|\:)/g,""));
  376. jQuery("#totPayDeductNamt").val(totPayDeductNamtValue.toFixed(g_digit)); //선급공제 누계 면세
  377. var prePayDeductAmtValue = jQuery("#prePayDeductAmt").val().replace(/(\,|\:)/g,""); //선급공제 전회 합계
  378. var totPayDeductAmtValue = Number(prePayDeductAmtValue) + Number(payDeductAmtValue);
  379. jQuery("#totPayDeductAmt").val(totPayDeductAmtValue.toFixed(g_digit)); //선급공제 누계 합계
  380. if(totPayDeductAmtValue == "0"){
  381. var totPayDeductRateValue = "0.00";
  382. jQuery("#totPayDeductRate").val(totPayDeductRateValue); //누계 기성율 과세
  383. }else{
  384. var totPayDeductRateValue = (Number(totPayDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
  385. jQuery("#totPayDeductRate").val(totPayDeductRateValue.toFixed(2)); //누계 기성율 과세
  386. }
  387. var preRequSupplyTamtValue = jQuery("#preRequSupplyTamt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 과세
  388. var totRequSupplyTamtValue = Number(preRequSupplyTamtValue) + Number(requSupplyTamtValue);
  389. jQuery("#totRequSupplyTamt").val(totRequSupplyTamtValue.toFixed(g_digit)); //청구 공급액 누계 과세
  390. var preRequSupplyNamtValue = jQuery("#preRequSupplyNamt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 면세
  391. var totRequSupplyNamtValue = Number(preRequSupplyNamtValue) + Number(requSupplyNamtValue);
  392. jQuery("#totRequSupplyNamt").val(totRequSupplyNamtValue.toFixed(g_digit)); //청구 공급액 누계 면세
  393. var preRequSupplyAmtValue = jQuery("#preRequSupplyAmt").val().replace(/(\,|\:)/g,""); //청구 공급액 전회 합계
  394. var totRequSupplyAmtValue = Number(preRequSupplyAmtValue) + Number(requSupplyAmtValue);
  395. jQuery("#totRequSupplyAmt").val(totRequSupplyAmtValue.toFixed(g_digit)); //청구 공급액 누계 합계
  396. var preRequSurtaxAmtValue = jQuery("#preRequSurtaxAmt").val().replace(/(\,|\:)/g,""); //청구 부가세 전회 과세
  397. var totRequSurtaxAmtValue = Number(preRequSurtaxAmtValue) + Number(requSurtaxAmtValue);
  398. jQuery("#totRequSurtaxAmt").val(totRequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 누계 과세
  399. var tpreRequSurtaxAmtValue = jQuery("#tpreRequSurtaxAmt").val().replace(/(\,|\:)/g,""); //청구 부가세 전회 합계
  400. var ttotRequSurtaxAmtValue = Number(tpreRequSurtaxAmtValue) + Number(requSurtaxAmtValue);
  401. jQuery("#ttotRequSurtaxAmt").val(ttotRequSurtaxAmtValue.toFixed(g_digit)); //청구 부가세 누계 합계
  402. var preRequAmtValue = jQuery("#preRequAmt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 과세
  403. var totRequAmtValue = Number(preRequAmtValue) + Number(requAmtValue);
  404. jQuery("#totRequAmt").val(totRequAmtValue.toFixed(g_digit)); //청구 합계 누계 과세
  405. var tpreRequSupplyNamtValue = jQuery("#tpreRequSupplyNamt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 면세
  406. var ttotRequSupplyNamtValue = Number(tpreRequSupplyNamtValue) + Number(requSupplyNamtValue);
  407. jQuery("#ttotRequSupplyNamt").val(ttotRequSupplyNamtValue.toFixed(g_digit)); //청구 합계 누계 면세
  408. var tpreRequAmtValue = jQuery("#tpreRequAmt").val().replace(/(\,|\:)/g,""); //청구 합계 전회 합계
  409. var ttotRequAmtValue = Number(tpreRequAmtValue) + Number(trequAmtValue);
  410. jQuery("#ttotRequAmt").val(ttotRequAmtValue.toFixed(g_digit)); //청구 합계 누계 과세
  411. //누계기성
  412. jQuery("#totFundTamt, #totFundNamt, #totFundAmt, #totPayDeductTamt, #totPayDeductNamt, #totPayDeductAmt, #totRequSupplyTamt, #totRequSupplyNamt, #totRequSurtaxAmt, #ttotRequSurtaxAmt, #totRequAmt, #totRequSupplyAmt, #ttotRequSupplyNamt, #ttotRequAmt").each(function(index){
  413. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  414. });
  415. //잔여 계산처리
  416. var resFundTamtValue = Number(conSupplyTamtValue) - Number(totFundTamtValue);
  417. jQuery("#resFundTamt").val(resFundTamtValue.toFixed(g_digit)); //기성 잔여 과세
  418. jQuery("#resFundTamt").each(function(index){
  419. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  420. });
  421. if(fconSupplyTamtValue == 0){
  422. var resFundTRate = Number(resFundTamtValue) / Number(conSupplyTamtValue) * 100;
  423. jQuery("#resFundTRate").val(resFundTRate.toFixed(2));
  424. jQuery("#resPayDeductTRate").val("0.00");
  425. }else{
  426. var resFundTRate = Number(resFundTamtValue) / Number(conSupplyTamtValue) * 100;
  427. jQuery("#resFundTRate").val(resFundTRate.toFixed(2));
  428. jQuery("#resPayDeductTRate").val(resFundTRate.toFixed(2));
  429. }
  430. var resFundNamtValue = Number(conSupplyNamtValue) - Number(totFundNamtValue);
  431. jQuery("#resFundNamt").val(resFundNamtValue); //기성 잔여 면세
  432. var resFundNRate = Number(resFundNamtValue) / Number(conSupplyNamtValue) * 100;
  433. if(Number(slPrepaySupplyNamtValue) == 0){
  434. resFundNRate = 0;
  435. jQuery("#resFundNRate").val("0.00");
  436. }else{
  437. jQuery("#resFundNRate").val(resFundNRate.toFixed(2));
  438. jQuery("#resPayDeductNRate").val(resFundNRate.toFixed(2));
  439. }
  440. jQuery("#resFundNamt").each(function(index){
  441. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  442. });
  443. var resFundAmtValue = Number(conSupplyAmtValue) - Number(totFundAmtValue);
  444. jQuery("#resFundAmt").val(resFundAmtValue.toFixed(g_digit)); //기성 잔여 합계
  445. jQuery("#resFundAmt").each(function(index){
  446. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  447. });
  448. var resFundRateValue = (Number(resFundAmtValue) / Number(conSupplyAmtValue)) * 100;
  449. jQuery("#resFundRate").val(resFundRateValue.toFixed(2)); //누계 기성율 과세
  450. var resPayDeductTamtValue = Number(slPrepaySupplyTmatValue).toFixed(g_digit) - Number(totPayDeductTamtValue).toFixed(g_digit);
  451. jQuery("#resPayDeductTamt").val(Number(resPayDeductTamtValue).toFixed(g_digit)); //선급공제 잔여 과세
  452. var resPayDeductNamtValue = Number(slPrepaySupplyNamtValue) - Number(totPayDeductNamtValue);
  453. jQuery("#resPayDeductNamt").val(Number(resPayDeductNamtValue).toFixed(g_digit)); //선급공제 잔여 면세
  454. var resPayDeductAmtValue = Number(slPrepaySupplyAmtValue) - Number(totPayDeductAmtValue);
  455. jQuery("#resPayDeductAmt").val(Number(resPayDeductAmtValue).toFixed(g_digit)); //선급공제 잔여 합계
  456. if(resPayDeductAmtValue == "0"){
  457. var resPayDeductRateValue = "0.00";
  458. //jQuery("#resPayDeductRate").val(resPayDeductRateValue.toFixed(2)); //선급공제 잔여 기성율
  459. jQuery("#resPayDeductRate").val(resPayDeductRateValue); //선급공제 잔여 기성율
  460. }else{
  461. var resPayDeductRateValue = (Number(resPayDeductAmtValue) / Number(slPrepaySupplyAmtValue)) * 100;
  462. jQuery("#resPayDeductRate").val(Number(resPayDeductRateValue).toFixed(2)); //선급공제 잔여 기성율
  463. }
  464. //잔여
  465. jQuery("#resPayDeductTamt, #resPayDeductNamt, #resPayDeductAmt").each(function(index){
  466. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  467. });
  468. //하자이행율이 100%이상이면 보증정보 표시
  469. setGuarOutList();
  470. });
  471. pageinit();
  472. }
  473. //2018.10.25
  474. function RtnClose(returnValue, returnn){
  475. setTimeout(function(){fLayerPopClose('ItemPop');},100);
  476. jQuery("#fundTamt").val(returnValue);
  477. jQuery("#fundNamt").val(returnn);
  478. jQuery("#fundTamt").blur();
  479. var f = document.form1;
  480. jQuery("#fevent").val("SAVE_DATA");
  481. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  482. }
  483. //페이지 초기처리
  484. function pageinit(){
  485. //상태값에 따른 입력항목 리드온리 처리 03:기성신청
  486. if(jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "10"){
  487. inputDataSet();
  488. }
  489. //발행방법에 따른 페이지 셋팅
  490. //taxDataSet();
  491. //버튼표시 셋팅
  492. btnCtr();
  493. //작성일자(증빙일자)
  494. seTaxDate();
  495. //면세금액에 따른 금회면세 사용자 입력 가능유무
  496. if(jQuery("#conSupplyNamt").val() == "0"){
  497. //jQuery("#fundNamt").attr('disabled','disabled');
  498. //jQuery("#fundNamt").attr("style", "background-color: #dedede");
  499. //jQuery("#fundNamt").attr("style", "border:0px solid #6a6a6a");
  500. //jQuery("#fundNamt").attr("style", "width:100%");
  501. /* jQuery("#fundNamt").attr("style", "background-color: #dedede");
  502. jQuery("#fundNamt").attr("style", "border:0px solid #6a6a6a");
  503. jQuery("#fundNamt").attr("readonly",true); */
  504. }
  505. //하자이행보증정보 view유무
  506. setGuarOutList();
  507. }
  508. function setGuarOutList(){
  509. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  510. var preFundRateValue = Number(jQuery("#preFundRate").val()); //전회 누계기성율
  511. //var preFundRateValue = 90; //전회 누계기성율
  512. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  513. var totFundRateValue = Number(jQuery("#totFundRate").val()); //누계기성율
  514. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  515. var resFundAmtValue = Number(jQuery("#resFundAmt").val()); //잔여기성합계
  516. /* if(Number(checkRate1) > 100){
  517. jQuery('#warr1').show();
  518. jQuery('#warr2').show();
  519. }else if(Number(checkRate2) > 100){
  520. jQuery('#warr1').show();
  521. jQuery('#warr2').show();
  522. } */
  523. if(defEstGuarRateValue > 0 && resFundAmtValue <= 0){
  524. jQuery('#warr1').show();
  525. jQuery('#warr2').show();
  526. }else{
  527. jQuery('#warr1').hide();
  528. jQuery('#warr2').hide();
  529. }
  530. }
  531. //저장 후 기성시청 처리
  532. function btnAppReqProcess(){
  533. fMakeItemInfo();
  534. // if(fMakeItemInfo()){
  535. // //alert("저장처리");
  536. // var f = document.form1;
  537. // jQuery("#fevent").val("REQ_DATA");
  538. // submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "REQ_DATA", f, "SUCCESS");
  539. // }
  540. }
  541. function seTaxDate(){
  542. var newDay = new Date( get_year(), get_month(), "");
  543. var lastDay = newDay.getDate();
  544. var yyyymmdd = get_year() +'-'+ get_month() +"-"+ lastDay;
  545. if(jQuery('#date1').val() == ""){
  546. jQuery('#date1').val(yyyymmdd);
  547. }
  548. }
  549. function btnCtr(){
  550. //alert(jQuery("#statusCd").val());
  551. if(jQuery("#statusCd").val() == "01"){ //작성상태(01): 목록, 삭제, 저장, 기성신청 표시
  552. jQuery("#btnList").show();
  553. jQuery("#btnDelete").show();
  554. jQuery("#btnSave").show();
  555. jQuery("#btnAppReq").show();
  556. }
  557. if(jQuery("#statusCd").val() == "02"){ //기성신청요청(02) : 목록, 저장, 기성신청 표시
  558. jQuery("#btnList").show();
  559. jQuery("#btnDelete").hide();
  560. jQuery("#btnSave").show();
  561. jQuery("#btnAppReq").show();
  562. }
  563. if(jQuery("#statusCd").val() == "03"){ //기성신청(03) : 목록 표시
  564. jQuery("#btnList").show();
  565. jQuery("#btnDelete").hide();
  566. jQuery("#btnSave").hide();
  567. jQuery("#btnAppReq").hide();
  568. }
  569. if(jQuery("#statusCd").val() == "04"){ //기성신청(04) : 목록 표시
  570. jQuery("#btnList").show();
  571. jQuery("#btnDelete").hide();
  572. jQuery("#btnSave").hide();
  573. jQuery("#btnAppReq").hide();
  574. }
  575. if(jQuery("#statusCd").val() == "10"){ //기성완료(10) : 목록 표시
  576. jQuery("#btnList").show();
  577. jQuery("#btnDelete").hide();
  578. jQuery("#btnSave").hide();
  579. jQuery("#btnAppReq").hide();
  580. }
  581. if(jQuery("#statusCd").val() == "91"){ //반려(91) : 목록, 저장, 기성신청 표시
  582. jQuery("#btnList").show();
  583. jQuery("#btnDelete").hide();
  584. jQuery("#btnSave").show();
  585. jQuery("#btnAppReq").show();
  586. }
  587. }
  588. function taxDataSet(){
  589. var radioCheck = jQuery(':radio[name="chk_info"]:checked').val();
  590. //alert(radioCheck);
  591. if(radioCheck == "1"){
  592. jQuery("#taxAttachments").hide();
  593. }else{
  594. jQuery("#taxAttachments").show();
  595. }
  596. }
  597. //상태가 03:기성신청 일때 입력항목 리드온리
  598. function inputDataSet(){
  599. jQuery("#taxChargNm").attr("readonly",true);
  600. jQuery("#taxChargNm").css({'background-color' : '#f0f0f0'});
  601. jQuery("#taxChargNm").css({'border' : '0px solid #f0f0f0'});
  602. jQuery("#taxChargHp").attr("readonly",true);
  603. jQuery("#taxChargHp").css({'background-color' : '#f0f0f0'});
  604. jQuery("#taxChargHp").css({'border' : '0px solid #f0f0f0'});
  605. jQuery("#taxChargEmail").attr("readonly",true);
  606. jQuery("#taxChargEmail").css({'background-color' : '#f0f0f0'});
  607. jQuery("#taxChargEmail").css({'border' : '0px solid #f0f0f0'});
  608. jQuery("#fundTamt").attr("readonly",true);
  609. jQuery("#fundTamt").css({'background-color' : '#f0f0f0'});
  610. jQuery("#fundTamt").css({'border' : '0px solid #f0f0f0'});
  611. //jQuery("#fundNamt").attr("readonly",true);
  612. //jQuery("#fundNamt").css({'background-color' : '#f0f0f0'});
  613. //jQuery("#fundNamt").css({'border' : '0px solid #f0f0f0'});
  614. jQuery("#requSurtaxAmt").attr("readonly",true);
  615. jQuery("#requSurtaxAmt").css({'background-color' : '#f0f0f0'});
  616. jQuery("#requSurtaxAmt").css({'border' : '0px solid #f0f0f0'});
  617. //jQuery("#fundTamt").attr("disabled",true);
  618. //jQuery("#fundNamt").attr("disabled",true);
  619. }
  620. //저장 및 선급금 신청시 필수항목 Check
  621. function requiredItemsCheck(){
  622. var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
  623. var taxChargNm = jQuery('#taxChargNm').val(); //담당자명
  624. var taxChargHp = jQuery('#taxChargHp').val(); //담당자 핸드폰번호
  625. var taxChargEmail = jQuery('#taxChargEmail').val(); //담당자 이메일
  626. var resFundRate = jQuery('#resFundRate').val(); //잔여기성 기성율
  627. var fundRate = jQuery('#fundRate').val(); //금회_기성 기성율
  628. var resDeductTrate = jQuery('#resPayDeductTRate').val();
  629. var resPayDeductNrate = jQuery('#resPayDeductNRate').val();
  630. var resPayDeductRate = jQuery('#resPayDeductRate').val();
  631. var resPayDeductTamt = jQuery('#resPayDeductTamt').val();
  632. var resPayDeductNamt = jQuery('#resPayDeductNamt').val();
  633. var resPayDeductAmt = jQuery('#resPayDeductAmt').val();
  634. if(date1 == "" ){
  635. alert("입력필수입니다.");
  636. jQuery('#date1').focus();
  637. return false;
  638. }
  639. if(taxChargNm == ""){
  640. alert("담당자명은 입력필수입니다.");
  641. jQuery('#taxChargNm').focus();
  642. return false;
  643. }
  644. if(taxChargHp == ""){
  645. alert("담당자 핸드폰 번호는 입력필수입니다.");
  646. jQuery('#taxChargHp').focus();
  647. return false;
  648. }else{
  649. var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
  650. var strValue = taxChargHp;
  651. var chkFlg = rgEx.test(strValue);
  652. if(!chkFlg){
  653. alert("올바른 휴대폰번호가 아닙니다.");
  654. jQuery('#taxChargHp').focus();
  655. return false;
  656. }
  657. }
  658. if(taxChargEmail == ""){
  659. alert("담당자 이메일은 입력필수입니다.");
  660. jQuery('#taxChargEmail').focus();
  661. return false;
  662. }else{
  663. 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})(\]?)$/;
  664. if(!regEmail.test(taxChargEmail)) {
  665. alert('올바른 이메일 주소가 아닙니다.');
  666. jQuery('#taxChargEmail').focus();
  667. return false;
  668. }
  669. }
  670. //잔여기성율 마이너스 check
  671. if(Number(resFundRate) < 0){
  672. alert("잔여기성이 0보다 작을수 없습니다.");
  673. jQuery('#fundTamt').focus();
  674. return false;
  675. }
  676. //잔여기성율 마이너스 check
  677. if(Number(resDeductTrate) < 0){
  678. alert("선급금 잔여 과세율이 0보다 작을수 없습니다.");
  679. jQuery('#fundTamt').focus();
  680. return false;
  681. }
  682. //잔여기성율 마이너스 check
  683. if(Number(resPayDeductNrate) < 0){
  684. alert("선급금 잔여 면세율이 0보다 작을수 없습니다.");
  685. jQuery('#fundTamt').focus();
  686. return false;
  687. }
  688. //잔여기성율 마이너스 check
  689. if(Number(resPayDeductRate) < 0){
  690. alert("선급금 잔여율이 0보다 작을수 없습니다.");
  691. jQuery('#fundTamt').focus();
  692. return false;
  693. }
  694. //잔여기성율 마이너스 check
  695. if(Number(resPayDeductTamt) < 0){
  696. alert("선급금 잔여 과세금액이 0보다 작을수 없습니다.");
  697. jQuery('#fundTamt').focus();
  698. return false;
  699. }
  700. //잔여기성율 마이너스 check
  701. if(Number(resPayDeductNamt) < 0){
  702. alert("선급금 잔여 면세금액이 0보다 작을수 없습니다.");
  703. jQuery('#fundTamt').focus();
  704. return false;
  705. }
  706. //잔여기성율 마이너스 check
  707. if(Number(resPayDeductAmt) < 0){
  708. alert("선급금 잔여 금액이 0보다 작을수 없습니다.");
  709. jQuery('#fundTamt').focus();
  710. return false;
  711. }
  712. //금회기성율이 0% check
  713. if(Number(fundRate) == 0){
  714. alert("금회 기성금액을 입력하세요.");
  715. jQuery('#fundTamt').focus();
  716. return false;
  717. }
  718. if(jQuery("#acmpYyyymm").val() != date1.substring(0,7)){
  719. alert("기성년월과 작성년월이 다릅니다.");
  720. jQuery('#date1').focus();
  721. return false;
  722. }
  723. //2017.10.18 잔여기성이 0일때 : 계약부가세 != 청구누계부가세 + 선급발생부가세 2017.12.12부가세 버림이라 오차너무 많이 발생함.
  724. /*var chk_amt = Number(jQuery('#conSurtaxAmt').val().replace(/(\,|\:)/g,"")) - Number(jQuery('#ttotRequSurtaxAmt').val().replace(/(\,|\:)/g,"")) -Number(jQuery('#slPrepaySurtaxAmt').val().replace(/(\,|\:)/g,""));
  725. if (Number(jQuery('#resFundTamt').val()) == 0 && chk_amt != 0){
  726. alert("계약부가세와 청구부가세 누계를 확인하십시요.(오차:" + chk_amt + ")");
  727. jQuery('#requSurtaxAmt').focus();
  728. return false;
  729. }*/
  730. /* var fundTamtValue = jQuery("#fundTamt").val().replace(/(\,|\:)/g,""); //기성 금회 과세
  731. var requSurtaxAmt = Number(jQuery("#requSurtaxAmt").val().replace(/(\,|\:)/g,"")); //부가세
  732. if(fundTamtValue <= 0 && ( requSurtaxAmt == 0 || requSurtaxAmt == "") ){
  733. alert("부가세 0을 입력 할수 없습니다.");
  734. jQuery("#requSurtaxAmt").val(0);
  735. jQuery("#requSurtaxAmt").focus();
  736. return false;
  737. }
  738. */
  739. if(jQuery("#btnAppReqSelect").val() == "1"){ //선급금신청요청시에는 해당하는 첨부파일이 모드 등록되어있어야함.
  740. var defEstGuarRateValue = Number(jQuery("#defEstGuarRate").val()); //하자보수보증금율
  741. var preFundRateValue = Number(jQuery("#preFundRate").val()); //전회 누계기성율
  742. //var preFundRateValue = 90; //전회 누계기성율
  743. var checkRate1 = defEstGuarRateValue + preFundRateValue;
  744. var totFundRateValue = Number(jQuery("#totFundRate").val()); //누계기성율
  745. var checkRate2 = defEstGuarRateValue + totFundRateValue;
  746. var resFundAmtValue = Number(jQuery("#resFundAmt").val()); //잔여기성합계
  747. /* if(checkRate1 > 100 || checkRate2 > 100){
  748. //하자이행보증 정보가 존재하는지Check
  749. if(jQuery("#warrWgno").val() == ""){
  750. alert("하자이행보증 정보가 없습니다.");
  751. return false;
  752. }
  753. } */
  754. if(resFundAmtValue <= 0){
  755. //하자이행보증 정보가 존재하는지Check
  756. if(jQuery("#warrWgno").val() == ""){
  757. alert("하자이행보증 정보가 없습니다.");
  758. return false;
  759. }
  760. }
  761. /*
  762. var radioCheck = jQuery(':radio[name="chk_info"]:checked').val();
  763. if(radioCheck == "2"){ //순발행일때 세금계산서 첨부파일이 등록되어있어야함.
  764. var fileName2 = jQuery('#p_AttachFile2').val();
  765. if(fileName2 == ""){
  766. alert("세금계산서 첨부파일 필수입니다.");
  767. return false;
  768. }
  769. }
  770. var reqDivGubun = jQuery("#perpayReqDiv option:selected").val();
  771. if(reqDivGubun == "2" || reqDivGubun == "3"){
  772. var fileName1 = jQuery('#p_AttachFile1').val();
  773. if(fileName1 == ""){
  774. alert("선급금 포기각서 첨부파일 필수입니다.");
  775. return false;
  776. }
  777. }
  778. if(reqDivGubun == "1" || reqDivGubun == "2"){
  779. var subContId = jQuery('#subContId').val();
  780. if(subContId == ""){
  781. alert("보증정보 입력 필수입니다.");
  782. return false;
  783. }
  784. }
  785. */
  786. //var warrWamtValue = jQuery("#warrWamt").val().replace(/(\,|\:)/g,""); //보증금액
  787. //if(warrWamtValue == ""){
  788. //}
  789. }
  790. }
  791. //이전 기성차수의 누계기성(기성, 선급금) 합계와 당월 기성차수의 전회(기성, 선급금) 금액비교 check
  792. function payCompareCheck(){
  793. var befTotFundAmtValue = "<%=acmpData.get("BEF_TOT_FUND_AMT")%>"; //이전 기성차수 누계기성합계
  794. var befTotPayDeductValue = "<%=acmpData.get("BEF_TOT_PAY_DEDUCT_AMT")%>"; //이전 기성차수 누계선급금합계
  795. var preFundAmtValue = "<%=acmpData.get("PRE_FUND_AMT")%>"; //현재 기성차수 전회기성합계
  796. var prePayDeductAmtValue = "<%=acmpData.get("PRE_PAY_DEDUCT_AMT")%>"; //현재 기성차수 전회선급금합계
  797. //alert("befTotFundAmtValue : "+befTotFundAmtValue+", preFundAmtValue : "+preFundAmtValue+", befTotPayDeductValue : "+befTotPayDeductValue+", prePayDeductAmtValue : "+prePayDeductAmtValue);
  798. if(befTotFundAmtValue == "" || befTotFundAmtValue == null) befTotFundAmtValue = "0";
  799. if(befTotPayDeductValue == "" || befTotPayDeductValue == null) befTotPayDeductValue = "0";
  800. if(befTotFundAmtValue != preFundAmtValue){
  801. alert("전회기성금이 맞지 않습니다.\n관리자에게 문의하십시오.");
  802. return false;
  803. }
  804. if(befTotPayDeductValue != prePayDeductAmtValue){
  805. alert("전회선급금이 맞지 않습니다.\n관리자에게 문의하십시오.");
  806. return false;
  807. }
  808. }
  809. function doResult(resultObj) {
  810. try {
  811. if( resultObj.getRequestEvent() == "SAVE_DATA" ) {
  812. if( resultObj.getSuccess() ) {
  813. document.form1.isSubmit = false;
  814. if(jQuery("#btnAppReqSelect").val() == "0"){
  815. alert("저장되었습니다.");
  816. //jQuery("#btnList").click();
  817. jQuery("#btnSearch").click();
  818. }else{
  819. jQuery("#btnAppReqSelect").val("0");
  820. btnAppReqProcess();
  821. }
  822. }else {
  823. dlgErrorMsg(resultObj);
  824. }
  825. document.form1.isSubmit = false;
  826. }
  827. if( resultObj.getRequestEvent() == "DELETE_DATA" ) {
  828. if( resultObj.getSuccess() ) {
  829. alert("기성정보가 삭제되었습니다.");
  830. jQuery("#btnList").click();
  831. }else {
  832. dlgErrorMsg(resultObj);
  833. }
  834. document.form1.isSubmit = false;
  835. }
  836. if( resultObj.getRequestEvent() == "REQ_DATA" ) {
  837. if( resultObj.getSuccess() ) {
  838. alert("기성신청 하였습니다.");
  839. //jQuery("#btnList").click();
  840. jQuery("#btnSearch").click();
  841. }else {
  842. dlgErrorMsg(resultObj);
  843. }
  844. document.form1.isSubmit = false;
  845. }
  846. if( resultObj.getRequestEvent() == "GET_DATA" ) {
  847. if( resultObj.getSuccess() ) {
  848. var subContModId = resultObj.getValueObject().get("SUB_CONT_MOD_ID");
  849. if(subContModId != ""){
  850. jQuery("#subContModId").val(subContModId);
  851. var warrGubun = resultObj.getValueObject().get("WARR_GUBUN");
  852. jQuery("#warrGubun").val(warrGubun);
  853. var warrSeq = resultObj.getValueObject().get("WARR_SEQ");
  854. jQuery("#warrSeq").val(warrSeq);
  855. var causeCode = resultObj.getValueObject().get("CAUSECODE");
  856. jQuery("#causeCode").val("당초");
  857. var guarOnoffYn = resultObj.getValueObject().get("GUAR_ONOFF_YN");
  858. jQuery("#guarOnoffYn").val(guarOnoffYn);
  859. var warrGoffice = resultObj.getValueObject().get("WARR_GOFFICE");
  860. jQuery("#warrGoffice").val(warrGoffice);
  861. var guarStatus = resultObj.getValueObject().get("GUAR_STATUS");
  862. jQuery("#guarStatus").val(guarStatus);
  863. var paperDate = resultObj.getValueObject().get("PAPERDATE");
  864. jQuery("#paperDate").val(paperDate);
  865. var warrWgno = resultObj.getValueObject().get("WARR_WGNO");
  866. jQuery("#warrWgno").val(warrWgno);
  867. var warrWamt = resultObj.getValueObject().get("WARR_WAMT");
  868. jQuery("#warrWamt").val(warrWamt);
  869. jQuery("#warrWamt").each(function(index){
  870. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  871. });
  872. var warrSdateEdate = resultObj.getValueObject().get("WARR_SDATE_EDATE");
  873. jQuery("#warrSdateEdate").val(warrSdateEdate);
  874. }
  875. }else {
  876. dlgErrorMsg(resultObj);
  877. }
  878. document.form1.isSubmit = false;
  879. }
  880. if( resultObj.getRequestEvent() == "GET_ATTACHFILE" ) {
  881. if( resultObj.getSuccess() ) {
  882. document.form1.p_AttachFile.value = resultObj.getValueObject().get("AttachFile");
  883. }else {
  884. dlgErrorMsg(resultObj);
  885. }
  886. document.form1.isSubmit = false;
  887. }
  888. }
  889. catch(errorObject) {
  890. showErrorDlg("doResult()", errorObject);
  891. }
  892. }
  893. function doKeyPress() {
  894. if( event.keyCode == 13 ) {
  895. doSearch(document.all.sheet1)
  896. }
  897. }
  898. function calendar(thisDayObj){
  899. dlgCalendar(thisDayObj);
  900. }
  901. //첨부파일
  902. function doAttachFile(obj,No) {
  903. //alert(obj.value);
  904. if(obj.value == ''){
  905. //alert("After you have saved, you can attach a file.");
  906. alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
  907. }
  908. else if(obj.value != ''){
  909. if(No == 1){
  910. //viewFileList('PREPAYMENTS_GIVEUP', obj.value, document.form1.p_AttachFile1, "N", "N", "Y", "N");
  911. viewFileListNew1('RESOLUTION_'+obj.value, No, document.getElementById("fileMapIDDiv"), "Y", "payment/purchase/"+obj.value);
  912. }else{
  913. //alert(No);
  914. var upLoadFlg = "Y";
  915. if(jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "10"){ //상태값이 기성신청(03), 기성완료(10) 일때는 첨부파일 다운로드만 가능
  916. upLoadFlg = "N";
  917. }
  918. //viewFileListNew('RESOLUTION_'+obj.value, No, document.form1.fileMapID, upLoadFlg, "cont/cont-1001");
  919. viewFileListNew1('RESOLUTION_'+obj.value, No, document.getElementById("fileMapIDDiv"), upLoadFlg, "payment/purchase/"+obj.value);
  920. }
  921. }
  922. //alert();
  923. //기성첨부파일 목록 조회
  924. //getFileListForTextarea();
  925. }
  926. function viewFileListNew1(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename) {
  927. var win_id = "_viewFileList";
  928. var link = "/common/file/FileListNew.screen";
  929. link += "?pop_win_id="+win_id;
  930. link += "&extFunction=viewFileListClose1";
  931. link += "&file_gb=" + fileGB;
  932. link += "&id=" + id;
  933. if( obj.id != null )
  934. link += "&obj_id=" + obj.id;
  935. if( iframeID != null )
  936. link += "&iframeID=" + iframeID;
  937. if( isModify != null )
  938. link += "&is_modify=" + isModify;
  939. if( isDrectory != null )
  940. link += "&sys_gb=" + isDrectory;
  941. if( user_filename != null )
  942. link += "&user_filename=" + user_filename;
  943. fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
  944. }
  945. //첨부목록 조회
  946. function getFileListForTextarea(){
  947. document.form1.p_AttachFile.value = "";
  948. var f = document.form1;
  949. jQuery("#fevent").val("GET_ATTACHFILE");
  950. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
  951. }
  952. //보증정보 조회
  953. function callback_getContWarr(){
  954. //alert("보증정보 조회");
  955. fLayerPopClose('contOutWarrPop');
  956. var f = document.form1;
  957. jQuery("#fevent").val("GET_DATA");
  958. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "GET_DATA", f, "VALUEOBJECT");
  959. }
  960. function fileCheck(checkObj, val){
  961. var f = document.form1;
  962. //alert(checkObj.value);
  963. //alert(checkObj.checked);
  964. //alert(val);
  965. var obj = eval("document.getElementById('" + val + "')");
  966. if(obj.style.display == "none"){
  967. obj.style.display = "inline";
  968. checkObj.checked = true;
  969. }else{
  970. obj.style.display = "none";
  971. checkObj.checked = false;
  972. }
  973. }
  974. function open_apppend_file_popup_new(form, fileConnGB, fileConnID, isReadOnly, check_file_cd) {
  975. /* alert(form);
  976. alert(fileConnGB);
  977. alert(fileConnID);
  978. alert(isReadOnly);
  979. alert(check_file_cd); */
  980. if (!form) {
  981. dlgAlert('form 인자를 지정하여 주세요.');
  982. return false;
  983. }
  984. if (!fileConnGB) {
  985. dlgAlert('fileConnGB 인자를 지정하여 주세요.');
  986. return false;
  987. }
  988. if (!fileConnID) {
  989. dlgAlert('fileConnID 인자를 지정하여 주세요.');
  990. return false;
  991. }
  992. //var url = '/subcontract/append_file_popup_new.screen?fileConnGB=' + fileConnGB + '&fileConnID=' + fileConnID + '&check_file_cd='+ check_file_cd;
  993. var url = '/common/file/Append_file_popup_new.screen?fileConnGB=' + fileConnGB + '&fileConnID=' + fileConnID + '&check_file_cd='+ check_file_cd;
  994. if (isReadOnly) {
  995. url += '&readOnly=true';
  996. } else {
  997. if (!form.fileMapID) {
  998. dlgAlert('fileMapID 필드가 존재하지 않습니다.');
  999. return false;
  1000. }
  1001. }
  1002. //openPopup(url, "ItemWindow", "auto", 730, 200);
  1003. }
  1004. function fMakeItemInfo(){
  1005. var sColumDelimiter = "┃";
  1006. var sRowDelimiter = "↕";
  1007. var sSumDelimiter = "╂";
  1008. var sEncDelimiter = "⇔";
  1009. var sItemInfo = ""; //서명할 문자열 데이터
  1010. var infoDeptName = "현장명:"+jQuery("#deptName").val(); //현장명
  1011. var infoBuildName = "계약명:"+jQuery("#buildName").val(); //계약명
  1012. var infoConCurNm = "계약통화:"+jQuery("#conCurNm").val(); //계약통화
  1013. var infoCorpRegNo = "사업자번호:"+jQuery("#corpRegNo").val(); //사업자번호
  1014. var CorpRegNoVal = jQuery("#corpRegNo").val().replace(/-/gi, "");; //사업자번호
  1015. //alert(CorpRegNoVal);
  1016. var infoCorpKor = "계약업체명:"+jQuery("#corpKor").val(); //계약업체명
  1017. var infoBossName = "대표이사:"+jQuery("#bossName").val(); //업체대표이사
  1018. var infoStartEndWorkDate = "계약기간:"+jQuery("#startEndWorkDate").val(); //계약기간
  1019. var infoConAmt = "계약금액:"+jQuery("#conAmt").val(); //계약금액합계
  1020. var infoPerpayAmt = "선급금액:"+jQuery("#perpayAmt").val(); //선급금액합계
  1021. var infoSlPrepayAmt = "선급금액:"+jQuery("#slPrepayAmt").val(); //선급지금금액합계
  1022. var infoTaxMethod = ""; //세금계산서발행방법
  1023. if(jQuery('input:checkbox[id="chk_1"]').is(":checked")){ //역발행
  1024. infoTaxMethod = "세금계산서발행방법:역발행";
  1025. }else{
  1026. infoTaxMethod = "세금계산서발행방법:순발행";
  1027. }
  1028. var infoDate1 = "작성일자:"+jQuery("#date1").val(); //작성일자(증빙일자)
  1029. var infoTaxChargNm = "담당자명:"+jQuery("#taxChargNm").val(); //담당자명
  1030. var infoTaxChargHp = "핸드폰번호:"+jQuery("#taxChargHp").val(); //담당자 핸드폰번호
  1031. var infoTaxChargEmail = "이메일주소:"+jQuery("#taxChargEmail").val(); //담당자 이메일
  1032. var infoAcmpYyyymm = "기성년월:"+jQuery("#acmpYyyymm").val(); //기성년월
  1033. var infoAcmpNo = "기성차수:"+jQuery("#acmpNo").val(); //기성차수
  1034. var infoFundTamt = "금회_기성_과세:"+jQuery("#fundTamt").val(); //금회_기성_과세
  1035. var infoFundNamt = "금회_기성_면세:"+jQuery("#fundNamt").val(); //금회_기성_면세
  1036. var infoFundAmt = "금회_기성_합계:"+jQuery("#fundAmt").val(); //금회_기성_합계
  1037. var infoFundRate = "금회_기성_기성율:"+jQuery("#fundRate").val(); //금회_기성_기성율
  1038. var infoPayDeductTamt = "금회_선급공제_과세:"+jQuery("#payDeductTamt").val(); //금회_선급공제_과세
  1039. var infoPayDeductNamt = "금회_선급공제_면세:"+jQuery("#payDeductNamt").val(); //금회_선급공제_면세
  1040. var infoPayDeductAmt = "금회_선급공제_합계:"+jQuery("#payDeductAmt").val(); //금회_선급공제_합게
  1041. var infoPayDeductRate = "금회_선급공제_기성율:"+jQuery("#payDeductRate").val(); //금회_선급공제_기성율
  1042. var infoRequSupplyTamt = "금회_청구액_공급액_과세:"+jQuery("#requSupplyTamt").val(); //금회_청구액_공급액_과세
  1043. var infoRequSupplyNamt = "금회_청구액_공급액_면세:"+jQuery("#requSupplyNamt").val(); //금회_청구액_공급액_면세
  1044. var infoRequSupplyAmt = "금회_청구액_공급액_합계:"+jQuery("#requSupplyAmt").val(); //금회_청구액_공급액_합계
  1045. var infoRequSurtaxAmt = "금회_청구액_부가세_과세:"+jQuery("#requSurtaxAmt").val(); //금회_청구액_부가세_과세
  1046. var infoTrequSurtaxAmt = "금회_청구액_부가세_합계:"+jQuery("#trequSurtaxAmt").val(); //금회_청구액_부가세_합계
  1047. var infoRequAmt = "금회_청구액_합계_과세:"+jQuery("#requAmt").val(); //금회_청구액_부가세_과세
  1048. var infoTrequSupplyNamt = "금회_청구액_합계_면세:"+jQuery("#trequSupplyNamt").val(); //금회_청구액_부가세_면세
  1049. var infoTrequAmt = "금회_청구액_합계_합계:"+jQuery("#trequAmt").val(); //금회_청구액_부가세_합계
  1050. sItemInfo = sItemInfo + infoDeptName + sColumDelimiter;
  1051. sItemInfo = sItemInfo + infoBuildName + sColumDelimiter;
  1052. sItemInfo = sItemInfo + infoConCurNm + sColumDelimiter;
  1053. sItemInfo = sItemInfo + infoCorpRegNo + sColumDelimiter;
  1054. sItemInfo = sItemInfo + infoCorpKor + sColumDelimiter;
  1055. sItemInfo = sItemInfo + infoBossName + sColumDelimiter;
  1056. sItemInfo = sItemInfo + infoStartEndWorkDate + sColumDelimiter;
  1057. sItemInfo = sItemInfo + infoConAmt + sColumDelimiter;
  1058. sItemInfo = sItemInfo + infoPerpayAmt + sColumDelimiter;
  1059. sItemInfo = sItemInfo + infoSlPrepayAmt + sColumDelimiter;
  1060. sItemInfo = sItemInfo + infoTaxMethod + sColumDelimiter;
  1061. sItemInfo = sItemInfo + infoDate1 + sColumDelimiter;
  1062. sItemInfo = sItemInfo + infoTaxChargNm + sColumDelimiter;
  1063. sItemInfo = sItemInfo + infoTaxChargHp + sColumDelimiter;
  1064. sItemInfo = sItemInfo + infoTaxChargEmail + sColumDelimiter;
  1065. sItemInfo = sItemInfo + infoAcmpYyyymm + sColumDelimiter;
  1066. sItemInfo = sItemInfo + infoAcmpNo + sColumDelimiter;
  1067. sItemInfo = sItemInfo + infoFundTamt + sColumDelimiter;
  1068. sItemInfo = sItemInfo + infoFundNamt + sColumDelimiter;
  1069. sItemInfo = sItemInfo + infoFundAmt + sColumDelimiter;
  1070. sItemInfo = sItemInfo + infoFundRate + sColumDelimiter;
  1071. sItemInfo = sItemInfo + infoPayDeductTamt + sColumDelimiter;
  1072. sItemInfo = sItemInfo + infoPayDeductNamt + sColumDelimiter;
  1073. sItemInfo = sItemInfo + infoPayDeductAmt + sColumDelimiter;
  1074. sItemInfo = sItemInfo + infoPayDeductRate + sColumDelimiter;
  1075. sItemInfo = sItemInfo + infoRequSupplyTamt + sColumDelimiter;
  1076. sItemInfo = sItemInfo + infoRequSupplyNamt + sColumDelimiter;
  1077. sItemInfo = sItemInfo + infoRequSupplyAmt + sColumDelimiter;
  1078. sItemInfo = sItemInfo + infoRequSurtaxAmt + sColumDelimiter;
  1079. sItemInfo = sItemInfo + infoTrequSurtaxAmt + sColumDelimiter;
  1080. sItemInfo = sItemInfo + infoRequAmt + sColumDelimiter;
  1081. sItemInfo = sItemInfo + infoTrequSupplyNamt + sColumDelimiter;
  1082. sItemInfo = sItemInfo + infoTrequAmt;
  1083. //alert(sItemInfo);
  1084. if( sItemInfo == null || sItemInfo == "" ){
  1085. alert("서명할 데이타를 넣어주십시요");
  1086. return false;
  1087. }
  1088. unisign.SignDataNVerifyVID( sItemInfo, null, CorpRegNoVal, function( resultObject ) {
  1089. if( !resultObject || resultObject.resultCode != 0 ){
  1090. if( resultObject.resultCode == '14208'){
  1091. alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
  1092. } else if( resultObject.resultCode == '999'){
  1093. alert("사용자 DN 선택이 취소 되었습니다.");
  1094. } else {
  1095. alert( resultObject.resultMessage);
  1096. }
  1097. return ;
  1098. }
  1099. var signeddata = resultObject.signedData;
  1100. var userdn = resultObject.certAttrs.subjectName;
  1101. jQuery("#signeddata").val(signeddata);
  1102. jQuery("#CONT_SIGNDN").val(userdn); //20116.02.03 추가
  1103. var f = document.form1;
  1104. jQuery("#fevent").val("REQ_DATA");
  1105. submitXmlRequest("/portal/payment/ResolutionRequest_form.screen", "REQ_DATA", f, "SUCCESS");
  1106. });
  1107. }
  1108. //보증정보팝업 호출
  1109. function popContWarr(wG, wSeq, wCauseCd) {
  1110. var win_id = "contOutWarrPopup";
  1111. var param = "";
  1112. var param = "?subContModId=" + jQuery("#selectSubContModId").val();
  1113. var param = param + "&warrGubun=" + wG;
  1114. var param = param + "&warrSeq=" + wSeq;
  1115. var param = param + "&causeCode=" + wCauseCd;
  1116. var param = param + "&viewDiv=ACMP";
  1117. // var param = param + "&prepayId=" + jQuery("#prepayId").val();
  1118. var param = param + "&pop_win_id=" + win_id;
  1119. var url = "/portal/guar/contOutWarrPopup.screen"+param;
  1120. fLayerPop(win_id, url, 560,350, '','', 'NO');
  1121. }
  1122. //보증정보팝업 종료후 액션
  1123. function popContWarrClose(returnValue){
  1124. if(returnValue == null){
  1125. fLayerPopClose('contOutWarrPopup');
  1126. }else{
  1127. fLayerPopClose('contOutWarrPopup');
  1128. //location.reload();
  1129. jQuery("#btnSearch").click();
  1130. }
  1131. }
  1132. function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
  1133. var editFile = "";
  1134. if(obj==''){
  1135. alert("After you have saved, you can attach a file.");
  1136. }
  1137. else if(obj != ''){
  1138. if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
  1139. viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contOutWarrPopup");
  1140. }
  1141. }
  1142. </SCRIPT>
  1143. <modular:search id="form1">
  1144. <modular:key id="fevent" />
  1145. </modular:search>
  1146. <form id="form1" name="form1" method="post" modular:type="search">
  1147. <div style="display:none;" id="fileMapIDDiv" class="attach_file_view" onPropertyChange="JavaScript:getFileListForTextarea();">
  1148. </div>
  1149. <INPUT type="hidden" name="fevent" id="fevent" value="">
  1150. <INPUT type="hidden" name="selectSubContId" id="selectSubContId" value="<%=params.get("selectSubContId") %>">
  1151. <INPUT type="hidden" name="selectSubContModId" id="selectSubContModId" value="<%=params.get("selectSubContModId") %>">
  1152. <INPUT type="hidden" name="acmpId" id="acmpId" value="<%=params.get("acmpId") %>">
  1153. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=acmpData.get("SUB_CONT_MOD_ID") %>">
  1154. <INPUT type="hidden" name="conCorpId" id="conCorpId" value="<%=acmpData.get("CON_CORP_ID") %>"> <!-- 협력업체ID -->
  1155. <INPUT type="hidden" name="modNo" id="modNo" value="<%=acmpData.get("MOD_NO") %>"> <!-- 변경계약MAX차수 -->
  1156. <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=acmpData.get("STATUS_CD") %>"> <!-- 기성 상태값 -->
  1157. <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0"> <!-- 기성신청상태구분 -->
  1158. <INPUT type="hidden" name="inputVatDiv" id="inputVatDiv" value="<%=acmpData.get("INPUTVATDIV") %>">
  1159. <INPUT type="hidden" id="F_CON_SUPPLY_AMT" name="F_CON_SUPPLY_AMT" value='<%= Formatter2.currency(acmpData.get("F_CON_SUPPLY_AMT"), intDigit) %>'> <!-- 선급금대상계약금액 -->
  1160. <INPUT type="hidden" id="F_TAX_DY" name="F_TAX_DY" value='<%= acmpData.get("F_TAX_DY") %>'>
  1161. <!-- 임시 FILE MAP ID 값 -->
  1162. <INPUT type="hidden" name="fileMapID" id="fileMapID" value="" onPropertyChange="JavaScript:getFileListForTextarea();">
  1163. <INPUT type='hidden' id="signeddata" name="signeddata" value="">
  1164. <INPUT type='hidden' id="CONT_SIGNDN" name="CONT_SIGNDN" value="">
  1165. <!-- 검색 조건 계약명 -->
  1166. <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("buildName") %>">
  1167. <INPUT type='hidden' id="searchDeptName" name="searchDeptName" value="<%=params.get("deptName") %>">
  1168. <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("detailcd") %>">
  1169. <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=acmpData.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
  1170. <INPUT type='hidden' id="resHp" name="resHp" value="<%=acmpData.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
  1171. <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=acmpData.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
  1172. <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=acmpData.get("CON_DOC_NO") %>"> <!-- 발주계약번호 -->
  1173. <INPUT type='hidden' id="defEstGuarRate" name="defEstGuarRate" value="<%=acmpData.get("DEF_EST_GUAR_RATE") %>"> <!-- 하자보수보증금율 -->
  1174. <!-- 제목 및 버튼 -->
  1175. <table width="100%">
  1176. <colgroup>
  1177. <col width="500" />
  1178. <col width="*" />
  1179. </colgroup>
  1180. <tr>
  1181. <th>
  1182. <div align="left" id="title">
  1183. <ul>
  1184. <li>외주_기성현황 상세(<span style="font-size: 11px"><%=acmpData.get("STATUS_NM")%></span>)</li>
  1185. </ul>
  1186. </div>
  1187. </th>
  1188. <td align="right">
  1189. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSave">저장</a></span>
  1190. <span class="btnSearch center"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
  1191. <span class="btnSearch center"><a href="javascript:void(0);" id="btnAppReq">기성신청</a></span>
  1192. <span class="btnSearch center"><a href="javascript:void(0);" id="btnList">목록</a></span>
  1193. <span class="btnSearch center"><a href="javascript:void(0);" id="btnSearch" style="display: none;">조회</a></span>
  1194. </td>
  1195. </tr>
  1196. </table>
  1197. <%
  1198. if(!acmpData.get("RTN_REASON").equals("")){
  1199. %>
  1200. <div class="application-info magT10">
  1201. <div class="application-sub-title">
  1202. <span class="title">반려정보</span>
  1203. </div>
  1204. <div class="application-location">
  1205. </div>
  1206. </div>
  1207. <TABLE class="form-table">
  1208. <colgroup>
  1209. <col width="13%" />
  1210. <col width="*" />
  1211. </colgroup>
  1212. <TR>
  1213. <th style="text-align: left;">반려일</th>
  1214. <TD><%=acmpData.get("RTN_DATE")%></TD>
  1215. </TR>
  1216. <TR>
  1217. <th style="text-align: left;">반려사유</th>
  1218. <TD><%=acmpData.get("RTN_REASON")%></TD>
  1219. </TR>
  1220. </TABLE>
  1221. <%
  1222. }
  1223. %>
  1224. <div class="application-info magT10">
  1225. <div class="application-sub-title">
  1226. <span class="title">계약정보</span>
  1227. </div>
  1228. <div class="application-location">
  1229. </div>
  1230. </div>
  1231. <TABLE class="form-table">
  1232. <colgroup>
  1233. <col width="13%" />
  1234. <col width="20%" />
  1235. <col width="13%" />
  1236. <col width="20%" />
  1237. <col width="13%" />
  1238. <col width="*" />
  1239. </colgroup>
  1240. <TR>
  1241. <th style="text-align: left;">현장명</th>
  1242. <TD><%= InputText.get("deptName", acmpData.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1243. <th style="text-align: left;">계약명</th>
  1244. <TD><%= InputText.get("buildName", acmpData.get("BUILD_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1245. <th style="text-align: left;">통화</th>
  1246. <TD><%= InputText.get("conCurNm", acmpData.get("CON_CUR_NM"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1247. </TR>
  1248. <TR>
  1249. <th style="text-align: left;">사업자번호</th>
  1250. <TD><%= InputText.get("corpRegNo", acmpData.get("CORP_REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1251. <th style="text-align: left;">계약업체명</th>
  1252. <TD><%= InputText.get("corpKor", acmpData.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1253. <th style="text-align: left;">대표이사</th>
  1254. <TD><%= InputText.get("bossName", acmpData.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1255. </TR>
  1256. <TR>
  1257. <th style="text-align: left;">계약기간</th>
  1258. <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>
  1259. <th style="text-align: left;">계약금액</th>
  1260. <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>
  1261. <th style="text-align: left;">선급금액</th>
  1262. <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>
  1263. </TR>
  1264. </TABLE>
  1265. <div class="application-info magT15">
  1266. <div class="application-sub-title">
  1267. <span class="title">세금계산서 정보</span>
  1268. </div>
  1269. </div>
  1270. <TABLE class="form-table">
  1271. <colgroup>
  1272. <col width="13%" />
  1273. <col width="20%" />
  1274. <col width="13%" />
  1275. <col width="20%" />
  1276. <col width="13%" />
  1277. <col width="*" />
  1278. </colgroup>
  1279. <TR>
  1280. <th style="text-align: left;">세금계산서 발행방법</th>
  1281. <TD colspan="3">
  1282. <input type="radio" id="chk_1" name="chk_info" value="1" onclick="taxDataSet();" <%= check1 %> disabled='disabled' style="display: none;"/>
  1283. <input type="radio" id="chk_2" name="chk_info" value="2" onclick="taxDataSet();" <%= check2 %> disabled='disabled' style="display: none;"/>
  1284. <%= checkString %>
  1285. </TD>
  1286. <th class="required" style="text-align: left;">작성일자(증빙일자)</th>
  1287. <TD><%= InputText.get("date1", Formatter.formatDate(acmpData.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  1288. <A href="JavaScript:calendar('date1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  1289. </TD>
  1290. </TR>
  1291. <TR>
  1292. <th class="required" style="text-align: left;">담당자명</th>
  1293. <TD><%= InputText.get("taxChargNm", acmpData.get("TAX_CHARG_NM"), 100, 10, "string, left, PerSize", "string") %></TD>
  1294. <th class="required" style="text-align: left;">담당자 핸드폰번호</th>
  1295. <TD><%-- <%= InputText.get("taxChargHp", acmpData.get("TAX_CHARG_HP"), 5, 13, "string, left", "string") %> --%>
  1296. <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>
  1297. <th class="required" style="text-align: left;">담당자 이메일</th>
  1298. <TD><%= InputText.get("taxChargEmail", acmpData.get("TAX_CHARG_EMAIL"), 100, 45, "string, left, PerSize", "string") %></TD>
  1299. </TR>
  1300. </TABLE>
  1301. <div class="application-info magT15">
  1302. <div class="application-sub-title">
  1303. <span class="title">기성 정보</span>
  1304. </div>
  1305. </div>
  1306. <TABLE class="form-table">
  1307. <colgroup>
  1308. <col width="13%" />
  1309. <col width="20%" />
  1310. <col width="13%" />
  1311. <col width="20%" />
  1312. <col width="13%" />
  1313. <col width="*" />
  1314. </colgroup>
  1315. <TR>
  1316. <th style="text-align: left;">기성년월</th>
  1317. <TD><%= InputText.get("acmpYyyymm", params.get("acmpYyyymm"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
  1318. <%-- <TD><%= InputText.get("acmpYyyymm", params.get("acmpYyyymm"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD> --%>
  1319. <th style="text-align: left;">기성차수</th>
  1320. <TD><%= InputText.get("acmpNo", acmpData.get("ACMP_NO"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
  1321. <th style="text-align: left;">신청(서명)일시</th>
  1322. <TD><%= InputText.get("custSignDate", acmpData.get("SUPP_SIGN_DT") , 100, 30, "class=input_blank, readOnly=white, string, left, PerSize, tabIndex=-1", "string") %></TD>
  1323. </TR>
  1324. <TR>
  1325. <th style="text-align: left;">하도급직불여부</th>
  1326. <TD><%= InputText.get("SUPP_DIRECT_YN", acmpData.get("SUPP_DIRECT_YN"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
  1327. <th style="text-align: left;">노무비닷컴여부</th>
  1328. <TD><%= InputText.get("LABOR_USE_YN", acmpData.get("LABOR_USE_YN"), 100, 30, "class=input_blank, readOnly=white, string, center, PerSize, tabIndex=-1", "string") %></TD>
  1329. <TH colspan="2"></TH>
  1330. </TR>
  1331. </TABLE>
  1332. <img src="/img/com/blank.gif" height="10px" />
  1333. <TABLE class="form-table" style="table-layout: fixed;">
  1334. <colgroup>
  1335. <col width="2%" />
  1336. <col width="5%" />
  1337. <col width="6%" />
  1338. <col width="6%" />
  1339. <col width="6%" />
  1340. <col width="5%" />
  1341. <col width="6%" />
  1342. <col width="6%" />
  1343. <col width="6%" />
  1344. <col width="5%" />
  1345. <col width="6%" />
  1346. <col width="6%" />
  1347. <col width="6%" />
  1348. <col width="5%" />
  1349. <col width="6%" />
  1350. <col width="6%" />
  1351. <col width="6%" />
  1352. <col width="*" />
  1353. </colgroup>
  1354. <TR>
  1355. <th rowspan="2" colspan="2">구분</th>
  1356. <th rowspan="2" colspan="4">합계</th>
  1357. <th colspan="8">공급가액</th>
  1358. <th rowspan="2" colspan="4">부가세</th>
  1359. </TR>
  1360. <TR>
  1361. <th colspan="4">과세</th>
  1362. <th colspan="4">면세</th>
  1363. </TR>
  1364. <TR>
  1365. <th colspan="2">계약금</th>
  1366. <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>
  1367. <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>
  1368. <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>
  1369. <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>
  1370. </TR>
  1371. <TR>
  1372. <th colspan="2">선급금</th>
  1373. <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>
  1374. <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>
  1375. <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>
  1376. <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>
  1377. </TR>
  1378. <TR>
  1379. <th colspan="2">선급금 지급</th>
  1380. <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>
  1381. <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>
  1382. <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>
  1383. <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>
  1384. </TR>
  1385. </TABLE>
  1386. <img src="/img/com/blank.gif" height="10px" />
  1387. <table width="100%"><tr><td align="right"><span class="btnSearch center"><a href="javascript:void(0);" id="btnItem">기성입력</a></span></td></tr></table>
  1388. <TABLE class="form-table" style="table-layout: fixed;">
  1389. <colgroup>
  1390. <col width="2%" />
  1391. <col width="5%" />
  1392. <col width="8%" />
  1393. <col width="7%" />
  1394. <col width="8%" />
  1395. <col width="8%" />
  1396. <col width="7%" />
  1397. <col width="8%" />
  1398. <col width="8%" />
  1399. <col width="7%" />
  1400. <col width="8%" />
  1401. <col width="8%" />
  1402. <col width="7%" />
  1403. <col width="*" />
  1404. </colgroup>
  1405. <TR>
  1406. <th rowspan="2" colspan="2">구분</th>
  1407. <th colspan="3">전회까지</th>
  1408. <th colspan="3" class="required">금회</th>
  1409. <th colspan="3">누계기성</th>
  1410. <th colspan="3">잔여기성</th>
  1411. </TR>
  1412. <TR>
  1413. <th>과세</th>
  1414. <th>면세</th>
  1415. <th>합계</th>
  1416. <th>과세</th>
  1417. <th>면세</th>
  1418. <th>합계</th>
  1419. <th>과세</th>
  1420. <th>면세</th>
  1421. <th>합계</th>
  1422. <th>과세</th>
  1423. <th>면세</th>
  1424. <th>합계</th>
  1425. </TR>
  1426. <TR>
  1427. <th rowspan="2">기성</th><th colspan="1">율</th>
  1428. <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>
  1429. <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>
  1430. <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>
  1431. <TD><%= InputText.get("fundTRate", Formatter2.currency(acmpData.get("FUND_TRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1432. <TD><%= InputText.get("fundNRate", Formatter2.currency(acmpData.get("FUND_NRATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1433. <TD><%= InputText.get("fundRate", Formatter2.currency(acmpData.get("FUND_RATE"), 2), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1434. <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>
  1435. <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>
  1436. <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>
  1437. <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>
  1438. <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>
  1439. <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>
  1440. </TR>
  1441. <TR>
  1442. <th colspan="1">금액</th>
  1443. <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>
  1444. <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>
  1445. <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>
  1446. <TD><%= InputText.get("fundTamt", Formatter2.currency(acmpData.get("FUND_TAMT"),intDigit), 100, 16, "class=input byteChk ,float, right, perSize, tabIndex=-1, readOnly", "float") %></TD>
  1447. <TD><%= InputText.get("fundNamt", Formatter2.currency(acmpData.get("FUND_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1448. <TD><%= InputText.get("fundAmt", Formatter2.currency(acmpData.get("FUND_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1449. <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>
  1450. <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>
  1451. <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>
  1452. <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>
  1453. <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>
  1454. <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>
  1455. </TR>
  1456. <TR>
  1457. <th rowspan="2" >선급 공제</th><th colspan="1">율</th>
  1458. <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>
  1459. <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>
  1460. <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>
  1461. <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>
  1462. <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>
  1463. <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>
  1464. <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>
  1465. <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>
  1466. <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>
  1467. <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>
  1468. <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>
  1469. <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>
  1470. </TR>
  1471. <TR>
  1472. <th colspan="1">금액</th>
  1473. <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>
  1474. <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>
  1475. <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>
  1476. <TD><%= InputText.get("payDeductTamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1477. <TD><%= InputText.get("payDeductNamt", Formatter2.currency(acmpData.get("PAY_DEDUCT_NAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1478. <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>
  1479. <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>
  1480. <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>
  1481. <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>
  1482. <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>
  1483. <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>
  1484. <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>
  1485. </TR>
  1486. <TR>
  1487. <th rowspan="3" >청<br>구<br>액</th>
  1488. <th>공급액</th>
  1489. <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>
  1490. <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>
  1491. <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>
  1492. <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>
  1493. <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>
  1494. <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>
  1495. <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>
  1496. <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>
  1497. <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>
  1498. <TD class="bgEF"></TD>
  1499. <TD class="bgEF"></TD>
  1500. <TD class="bgEF"></TD>
  1501. </TR>
  1502. <TR>
  1503. <th>부가세</th>
  1504. <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>
  1505. <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>
  1506. <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>
  1507. <TD><%= InputText.get("requSurtaxAmt", Formatter2.currency(acmpData.get("REQU_SURTAX_AMT"),intDigit), 100, 16, "class=input byteChk ,float, right, perSize", "float") %></TD>
  1508. <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>
  1509. <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>
  1510. <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>
  1511. <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>
  1512. <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>
  1513. <TD class="bgEF" ></TD>
  1514. <TD class="bgEF" ></TD>
  1515. <TD class="bgEF" ></TD>
  1516. </TR>
  1517. <TR>
  1518. <th>합계</th>
  1519. <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>
  1520. <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>
  1521. <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>
  1522. <TD><%= InputText.get("requAmt", Formatter2.currency(acmpData.get("REQU_TAMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1523. <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>
  1524. <TD><%= InputText.get("trequAmt", Formatter2.currency(acmpData.get("REQU_AMT"),intDigit), 100, 16, "class=input_blank, string, right, perSize, tabIndex=-1, readOnly", "string") %></TD>
  1525. <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>
  1526. <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>
  1527. <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>
  1528. <TD class="bgEF" ></TD>
  1529. <TD class="bgEF" ></TD>
  1530. <TD class="bgEF" ></TD>
  1531. </TR>
  1532. </TABLE>
  1533. <img src="/img/com/blank.gif" height="10px" />
  1534. <TABLE class="form-table">
  1535. <colgroup>
  1536. <col width="7%" />
  1537. <col width="43%" />
  1538. <col width="7%" />
  1539. <col width="43%" />
  1540. </colgroup>
  1541. <TR>
  1542. <th>기성검사<br>첨부서류</th>
  1543. <TD>
  1544. <TABLE class="inner_table" border="0" >
  1545. <%
  1546. if(acmpFileRow.size() > 0){
  1547. int i_mod = 0;
  1548. for(int i = 0; acmpFileRow.size() > i; i++){
  1549. i_mod = i%3;
  1550. if(i_mod == 0){ %>
  1551. <TR>
  1552. <% } %>
  1553. <td width="2%">
  1554. <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");} %>>
  1555. </td>
  1556. <td width="20%">
  1557. <%-- <%=acmpFileRow.getRow(i).get("DETAILNM").replace(" ", "<BR>") %> --%>
  1558. <%=acmpFileRow.getRow(i).get("DETAILNM") %>
  1559. </td>
  1560. <td width="7%" height="24">
  1561. <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">
  1562. </td>
  1563. <% if(i_mod == 2) { %>
  1564. </TR>
  1565. <% } %>
  1566. <%
  1567. }
  1568. for(int i=i_mod+1; i<3; i++){ %>
  1569. <td></td>
  1570. <% }
  1571. if(i_mod == 0 || i_mod == 1){ %>
  1572. </TR>
  1573. <% }
  1574. }
  1575. %>
  1576. </TABLE>
  1577. </TD>
  1578. <th>준공검사<br>첨부서류</th>
  1579. <TD>
  1580. <TABLE class="inner_table" border="0" >
  1581. <%
  1582. if(compFileRow.size() > 0){
  1583. int i_mod = 0;
  1584. for(int i = 0; compFileRow.size() > i; i++){
  1585. i_mod = i%3;
  1586. if(i_mod == 0){ %>
  1587. <TR>
  1588. <% } %>
  1589. <td width="2%">
  1590. <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");} %> />
  1591. </td>
  1592. <td width="20%">
  1593. <%=compFileRow.getRow(i).get("DETAILNM") %>
  1594. </td>
  1595. <td width="7%" height="24">
  1596. <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">
  1597. </td>
  1598. <% if(i_mod == 2) { %>
  1599. </TR>
  1600. <% } %>
  1601. <%
  1602. }
  1603. for(int i=i_mod+1; i<3; i++){ %>
  1604. <td></td>
  1605. <% }
  1606. if(i_mod == 0 || i_mod == 1){ %>
  1607. </TR>
  1608. <% }
  1609. }
  1610. %>
  1611. </TABLE>
  1612. </TD>
  1613. </TR>
  1614. </TABLE>
  1615. <img src="/img/com/blank.gif" height="10px" />
  1616. <TABLE class="form-table">
  1617. <colgroup>
  1618. <col width="7%" />
  1619. <col width="43%" />
  1620. <col width="7%" />
  1621. <col width="43%" />
  1622. </colgroup>
  1623. <TR height="90">
  1624. <th>기성첨부</th>
  1625. <TD>
  1626. <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>
  1627. </TD>
  1628. <th>특기사항</th>
  1629. <TD>
  1630. <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>
  1631. </TD>
  1632. </TR>
  1633. </TABLE>
  1634. <%
  1635. /*
  1636. 보증 목록을 include 시킴 (2014-10-17) 김명호
  1637. */
  1638. %>
  1639. <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarOutList.jsp" %>
  1640. </FORM>
  1641. <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
  1642. <script>
  1643. </script>
  1644. </div>
  1645. <!-- 전자인증 모듈 설정 //-->
  1646. <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
  1647. <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
  1648. <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
  1649. <!-- 전자인증 모듈 설정 //-->