advencePayRequest.jsp 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437
  1. <%--
  2. - FileName : advencePayment.jsp
  3. - Author(s) : ok
  4. - Date : 2014.06.26
  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. <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
  16. <%@ include file="/jsp/work/taglib.jsp"%>
  17. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  18. <%
  19. ctx.init(request, response);
  20. HandlerStorage storage = ctx.getHandlerStorage();
  21. ValueObject params = storage.getParams();
  22. ValueObject user = storage.getUser();
  23. String event = storage.getEvent();
  24. RowSet perpayReqDivComboList = storage.getRowSet("perpayReqDivComboList"); //신청구분 ComboList Data
  25. ValueObject prePayment = storage.getValueObject("prePayment"); //기본정보, 세금계산서정보, 선급금정보
  26. RowSet warrList = storage.getRowSet("contOutWarr"); //보증정보
  27. ValueObject file_giveup = storage.getValueObject("SUPP_PREPAYMENTS_GIVEUP");
  28. ValueObject file_taxbill = storage.getValueObject("SUPP_TAX_BILL");
  29. String check1 = "";
  30. String check2 = "";
  31. String check3 = "";
  32. String checkString = "";
  33. if("3".equals(prePayment.get("TAX_METHOD_CD"))){
  34. check3 = "checked";
  35. checkString = "Invoice";
  36. }else if("2".equals(prePayment.get("TAX_METHOD_CD"))){
  37. check2 = "checked";
  38. checkString = "순발행(업체직접 발행)";
  39. }else{
  40. check1 = "checked";
  41. checkString = "역발행(SGC이앤씨 발행)";
  42. }
  43. String digit = (String)prePayment.get("digit");
  44. int intDigit = Integer.parseInt(digit);
  45. /*보증 발급 완료된 갯수 */
  46. RowSet warrCount = storage.getRowSet("warrCount");
  47. %>
  48. <SCRIPT language="JavaScript">
  49. /*예약함수*/
  50. var sheet1;
  51. var sheet1Row;
  52. var sheet1PageNo = 1;
  53. var pageLastRowIndex = 1;
  54. var validationResult = false;
  55. var filterShow = false;
  56. var g_digit = <%= intDigit %>; // 소숫점 이하 자릿수
  57. function _onReady() {
  58. //리스트 페이지 이동
  59. jQuery("#btnList").click(function() {
  60. jQuery("#fevent").val("");
  61. if(jQuery("#resultListDiv").val() == "1"){
  62. jQuery("#form1").attr("action", "/portal/payment/AdvencePayRequestList.screen");
  63. }else{
  64. jQuery("#form1").attr("action", "/portal/payment/AdvencePayRequestResultList.screen");
  65. }
  66. jQuery("#form1").attr("target", "_self");
  67. jQuery("#form1").attr("method", "post");
  68. jQuery("#form1").submit();
  69. });
  70. jQuery("#btnDelete").click(function() {
  71. var f = document.form1;
  72. //필수 입력항목 check
  73. if (jQuery("#prepayId").val() == "") {
  74. alert("삭제되었습니다.");
  75. return;
  76. }
  77. //입력데이터 저장
  78. if (confirm("삭제 하시겠습니까?")) {
  79. jQuery("#fevent").val("DELETE_DATA");
  80. //submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "DELETE_DATA", f, "SUCCESS");
  81. }
  82. });
  83. //저장처리
  84. jQuery("#btnSave").click(function() {
  85. var f = document.form1;
  86. jQuery("#fevent").val("SAVE_DATA");
  87. //필수 입력항목 check
  88. if (requiredItemsCheck() == false) {
  89. return;
  90. }
  91. //입력데이터 저장
  92. if (confirm("저장 하시겠습니까?")) {
  93. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  94. }
  95. });
  96. //선급신청요청
  97. jQuery("#btnAppReq").click(function() {
  98. var f = document.form1;
  99. jQuery("#btnAppReqSelect").val("1"); //0:저장처리, 1:기성신청처리
  100. jQuery("#fevent").val("SAVE_DATA");
  101. //필수 입력항목 check
  102. if (requiredItemsCheck() == false) {
  103. return;
  104. }
  105. if (confirm(jQuery("#btnAppReq").text() + " 하시겠습니까?")) {
  106. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen", "SAVE_DATA", f, "SUCCESS");
  107. }
  108. });
  109. //jQuery("#reqPrepaySupplyTamt, #reqPrepaySupplyNamt").blur(function () {
  110. jQuery("#reqPrepaySupplyTamt").blur(function () {
  111. var reqPrepaySupplyTamt = jQuery("#reqPrepaySupplyTamt").val();
  112. reqPrepaySupplyTamt = reqPrepaySupplyTamt.replace(/(\,|\:)/g,"");
  113. if(reqPrepaySupplyTamt == ""){
  114. reqPrepaySupplyTamt = 0;
  115. }else{
  116. reqPrepaySupplyTamt = doFloor(reqPrepaySupplyTamt, g_digit);
  117. }
  118. reqPrepaySupplyTamt = Number(reqPrepaySupplyTamt).toFixed(g_digit); //신청금액 과세
  119. var subPrepaySupplyTamt = jQuery("#subPrepaySupplyTamt").val();
  120. subPrepaySupplyTamt = subPrepaySupplyTamt.replace(/(\,|\:)/g,"");
  121. subPrepaySupplyTamt = Number(subPrepaySupplyTamt).toFixed(g_digit); //선급금액 과세
  122. if(Number(subPrepaySupplyTamt) < Number(reqPrepaySupplyTamt)){
  123. alert('선급금보다 신청금액이 큽니다.');
  124. reqPrepaySupplyTamt = subPrepaySupplyTamt;
  125. jQuery("#reqPrepaySupplyTamt").val(subPrepaySupplyTamt);
  126. jQuery("#giveSupplyTamt").val("0");
  127. jQuery('#reqPrepaySupplyTamt').focus();
  128. }else{
  129. jQuery("#reqPrepaySupplyTamt").val(reqPrepaySupplyTamt);
  130. var giveSupplyTamt = subPrepaySupplyTamt - reqPrepaySupplyTamt;
  131. jQuery("#giveSupplyTamt").val(Number(giveSupplyTamt).toFixed(g_digit));
  132. jQuery("#giveSupplyTamt, #reqPrepaySupplyTamt").each(function(index){
  133. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  134. });
  135. }
  136. var conSupplyNamtValue = jQuery("#conSupplyNamt").val();
  137. conSupplyNamtValue = conSupplyNamtValue.replace(/(\,|\:)/g, "");
  138. var conSupplyTamtValue = jQuery("#conSupplyTamt").val();
  139. conSupplyTamtValue = conSupplyTamtValue.replace(/(\,|\:)/g, "");
  140. var dsafas = reqPrepaySupplyTamt / subPrepaySupplyTamt ;
  141. //2016.8.2 면세만 있는경우 수식오류 ->면세로 비율계산
  142. if (subPrepaySupplyTamt == 0) {
  143. dsafas = Number(jQuery("#reqPrepaySupplyNamt").val().replace(/(\,|\:)/g, "")) / Number(jQuery("#subPrepaySupplyNamt").val().replace(/(\,|\:)/g, "")) ;
  144. }
  145. var prepaySupplyNamt1 = jQuery("#subPrepaySupplyNamt").val().replace(/(\,|\:)/g, "");
  146. var reqPrepaySupplyNamtValue = prepaySupplyNamt1 * dsafas;
  147. //jQuery("#reqPrepaySupplyNamt").val(Math.floor(reqPrepaySupplyNamtValue));
  148. reqPrepaySupplyNamtValue = doFloor(reqPrepaySupplyNamtValue, g_digit);
  149. jQuery("#reqPrepaySupplyNamt").val(Number(reqPrepaySupplyNamtValue).toFixed(g_digit));
  150. jQuery("#reqPrepaySupplyNamt").each(function(index) {
  151. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  152. });
  153. var reqPrepaySupplyNamt = jQuery("#reqPrepaySupplyNamt").val();
  154. reqPrepaySupplyNamt = reqPrepaySupplyNamt.replace(/(\,|\:)/g,"");
  155. if(reqPrepaySupplyNamt == ""){
  156. reqPrepaySupplyNamt = 0;
  157. }
  158. //reqPrepaySupplyNamt = Number(reqPrepaySupplyNamt).toFixed(g_digit); //신청금액 면세
  159. reqPrepaySupplyNamt = doFloor(reqPrepaySupplyNamt, g_digit);
  160. var subPrepaySupplyNamt = jQuery("#subPrepaySupplyNamt").val();
  161. subPrepaySupplyNamt = subPrepaySupplyNamt.replace(/(\,|\:)/g,"");
  162. subPrepaySupplyNamt = Number(subPrepaySupplyNamt).toFixed(g_digit); //선급금액 면세
  163. if(Number(subPrepaySupplyNamt) < Number(reqPrepaySupplyNamt)){
  164. alert('신청금액 면세가 선급금액 면세보다 큽니다.');
  165. jQuery("#reqPrepaySupplyNamt").val(subPrepaySupplyNamt);
  166. jQuery("#giveSupplyNamt").val("0");
  167. jQuery('#reqPrepaySupplyNamt').focus();
  168. }else{
  169. jQuery("#reqPrepaySupplyNamt").val(reqPrepaySupplyNamt);
  170. var giveSupplyNamt = subPrepaySupplyNamt - reqPrepaySupplyNamt;
  171. jQuery("#giveSupplyNamt").val(Number(giveSupplyNamt).toFixed(g_digit));
  172. jQuery("#giveSupplyNamt, #reqPrepaySupplyNamt").each(function(index){
  173. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  174. });
  175. }
  176. //부가세
  177. if( jQuery("#bugase").val() == "INPUT_VAT" ){ //분계유형에따른 부가세 계산
  178. var reqPrepaySurtaxAmt = (reqPrepaySupplyTamt * 10) / 100;
  179. }else{
  180. var reqPrepaySurtaxAmt = 0; //금회 실지급 부가세
  181. }
  182. reqPrepaySurtaxAmt = doFloor(reqPrepaySurtaxAmt, g_digit);
  183. var subPrepaySurtaxAmt = jQuery("#subPrepaySurtaxAmt").val();
  184. subPrepaySurtaxAmt = subPrepaySurtaxAmt.replace(/(\,|\:)/g,""); //선급금액 부과세
  185. //var giveSurtaxAmt = Math.floor(subPrepaySurtaxAmt) - Math.floor(reqPrepaySurtaxAmt);
  186. var giveSurtaxAmt = Number(subPrepaySurtaxAmt).toFixed(g_digit) - Number(reqPrepaySurtaxAmt).toFixed(g_digit);
  187. //jQuery("#reqPrepaySurtaxAmt").val(Math.floor(reqPrepaySurtaxAmt));
  188. jQuery("#reqPrepaySurtaxAmt").val(Number(reqPrepaySurtaxAmt).toFixed(g_digit));
  189. jQuery("#reqPrepaySurtaxAmt").each(function(index){
  190. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  191. });
  192. jQuery("#giveSurtaxAmt").val(Number(giveSurtaxAmt).toFixed(g_digit));
  193. jQuery("#giveSurtaxAmt").each(function(index){
  194. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  195. });
  196. //신청금액을 구한다.
  197. var reqPrepayAmt = Number(reqPrepaySupplyTamt) + Number(reqPrepaySupplyNamt) + Number(reqPrepaySurtaxAmt);
  198. var perpayAmt = jQuery("#perpayAmt").val();
  199. perpayAmt = perpayAmt.replace(/(\,|\:)/g,""); //선급금액
  200. //var giveAmt = perpayAmt - Math.floor(reqPrepayAmt);
  201. var giveAmt = perpayAmt - Number(reqPrepayAmt).toFixed(g_digit);
  202. //jQuery("#reqPrepayAmt").val( Math.floor(reqPrepayAmt));
  203. jQuery("#reqPrepayAmt").val(Number(reqPrepayAmt).toFixed(g_digit));
  204. jQuery("#reqPrepayAmt").each(function(index){
  205. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  206. });
  207. jQuery("#giveAmt").val(Number(giveAmt).toFixed(g_digit));
  208. jQuery("#giveAmt").each(function(index){
  209. jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  210. });
  211. //요율
  212. var conAmt = jQuery("#conAmt").val();
  213. conAmt = conAmt.replace(/(\,|\:)/g,"");
  214. var reqPrepayPercent = (reqPrepayAmt / conAmt) * 100; //신청금액 요율
  215. //var givePercent = (giveAmt / conAmt) * 100; //포기금액 요율
  216. jQuery("#reqPrepayPercent").val(reqPrepayPercent.toFixed(2));
  217. var prepayAmtPercent = Number(jQuery("#prepayAmtPercent").val());
  218. var givePercent = prepayAmtPercent.toFixed(2) - reqPrepayPercent.toFixed(2)
  219. jQuery("#givePercent").val(givePercent.toFixed(2));
  220. //입력한 선급금 과세가 빈값일 경우 0으로 셋팅
  221. if(reqPrepaySupplyTamt == ""){
  222. reqPrepaySupplyTamt = "0";
  223. jQuery("#reqPrepaySupplyTamt").val("0");
  224. }
  225. //입력한 선급금 면세가 빈값일 경우 0으로 셋팅
  226. if(reqPrepaySupplyNamt == ""){
  227. reqPrepaySupplyNamt = "0";
  228. jQuery("#reqPrepaySupplyNamt").val("0");
  229. }
  230. if(Number(reqPrepaySupplyTamt) == 0 && Number(reqPrepaySupplyNamt) == 0){ //선급포기
  231. jQuery("#perpayReqDiv").val("3");
  232. jQuery("#btnAppReq").text("선급포기");
  233. //포기일때 보증정보는 필요없으므로 숨김처ㅣ
  234. warrCtr('H'); //S:보이기, H:숨기기
  235. }else if(Number(reqPrepaySupplyTamt) == Number(subPrepaySupplyTamt) && Number(reqPrepaySupplyNamt) == Number(subPrepaySupplyNamt)) { //신청
  236. jQuery("#perpayReqDiv").val("1");
  237. jQuery("#btnAppReq").text("선급신청");
  238. //포기일때 보증정보는 필요없으므로 숨김처ㅣ
  239. warrCtr('S'); //S:보이기, H:숨기기
  240. }else{
  241. jQuery("#perpayReqDiv").val("2");
  242. jQuery("#btnAppReq").text("선급신청");
  243. //포기일때 보증정보는 필요없으므로 숨김처ㅣ
  244. warrCtr('S'); //S:보이기, H:숨기기
  245. }
  246. giveDataSet();
  247. //}//end if
  248. });
  249. pageinit();
  250. }
  251. //페이지 초기처리
  252. function pageinit() {
  253. //resultListDiv에따른 페이지 셋팅
  254. resultListDivSet();
  255. //작성일자(증빙일자)
  256. seTaxDate();
  257. //신청구분 선택불가
  258. appDivSet();
  259. //입력항목 초기처리
  260. //inputDataSet();
  261. //발행방법에 따른 페이지 셋팅
  262. taxDataSet();
  263. //버튼표시 셋팅
  264. btnCtr();
  265. //상태에 따른 입력항목 readOnly
  266. inputReadOnlyset();
  267. giveDataSet();
  268. jQuery("#reqPrepaySupplyTamt").blur();
  269. if(!(jQuery("#statusCd").val() == "11" || jQuery("#statusCd").val() == "10")){
  270. openPopUpPrePay();
  271. }
  272. }
  273. function resultListDivSet(){
  274. if(jQuery("#resultListDiv").val() != "1"){ //외주_선금금현황
  275. jQuery("#resultListDivTitle").text("외주_선급금완료 상세");
  276. }
  277. }
  278. function appDivSet() {
  279. jQuery("#perpayReqDiv").attr("disabled", true);
  280. //jQuery("#reqPrepaySupplyTamt, #reqPrepaySupplyNamt").blur();
  281. }
  282. function seTaxDate() {
  283. var newDay = new Date(get_year(), get_month(), "");
  284. var lastDay = newDay.getDate();
  285. var yyyymmdd = get_year() + '-' + get_month() + "-" + lastDay;
  286. if (jQuery('#date1').val() == "") {
  287. jQuery('#date1').val(yyyymmdd);
  288. }
  289. }
  290. function btnCtr() {
  291. //alert(jQuery("#statusCd").val());
  292. if (jQuery("#statusCd").val() == "00" || jQuery("#statusCd").val() == "") { //00:작성상태는 목록, 저장버튼 표시
  293. jQuery("#spanSave").show();
  294. jQuery("#spanDelete").hide();
  295. jQuery("#spanAppReq").hide();
  296. jQuery("#spanList").show();
  297. }
  298. if (jQuery("#statusCd").val() == "01") { //01:작성상태는 목록, 저장, 선급신청버튼 표시
  299. jQuery("#spanSave").show();
  300. jQuery("#spanDelete").hide();
  301. jQuery("#spanAppReq").show();
  302. jQuery("#spanList").show();
  303. }
  304. if (jQuery("#statusCd").val() == "02") { //02:선급신청요청상태는 목록, 저장, 선급신청 버튼 표시
  305. jQuery("#spanSave").show();
  306. jQuery("#spanDelete").hide();
  307. jQuery("#spanAppReq").show();
  308. jQuery("#spanList").show();
  309. }
  310. if (jQuery("#statusCd").val() == "21") { //21:선급포기요청상태는 목록, 저장, 선급신청 버튼 표시
  311. jQuery("#spanSave").hide();
  312. jQuery("#spanDelete").hide();
  313. jQuery("#spanAppReq").hide();
  314. jQuery("#spanList").show();
  315. }
  316. if (jQuery("#statusCd").val() == "20") { //21:선급포기요청상태는 목록, 저장, 선급신청 버튼 표시
  317. jQuery("#spanSave").hide();
  318. jQuery("#spanDelete").hide();
  319. jQuery("#spanAppReq").hide();
  320. jQuery("#spanList").show();
  321. }
  322. if (jQuery("#statusCd").val() == "03") { //03:선급신청상태는 목록 버튼 표시
  323. jQuery("#spanSave").hide();
  324. jQuery("#spanDelete").hide();
  325. jQuery("#spanAppReq").hide();
  326. jQuery("#spanList").show();
  327. }
  328. if (jQuery("#statusCd").val() == "04") { //04:결재중상태는 목록 버튼 표시
  329. jQuery("#spanSave").hide();
  330. jQuery("#spanDelete").hide();
  331. jQuery("#spanAppReq").hide();
  332. jQuery("#spanList").show();
  333. }
  334. if (jQuery("#statusCd").val() == "10") { //10:선급완료상태는 목록 버튼 표시
  335. jQuery("#spanSave").hide();
  336. jQuery("#spanDelete").hide();
  337. jQuery("#spanAppReq").hide();
  338. jQuery("#spanList").show();
  339. }
  340. if (jQuery("#statusCd").val() == "11") { //11:선급포기완료상태는 목록 버튼 표시
  341. jQuery("#spanSave").hide();
  342. jQuery("#spanDelete").hide();
  343. jQuery("#spanAppReq").hide();
  344. jQuery("#spanList").show();
  345. }
  346. if (jQuery("#statusCd").val() == "91") { //91:반려상태는 목록, 저장, 선급신청 버튼 표시
  347. jQuery("#spanSave").show();
  348. jQuery("#spanDelete").hide();
  349. jQuery("#spanAppReq").show();
  350. jQuery("#spanList").show();
  351. }
  352. }
  353. function inputReadOnlyset() {
  354. if (jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "04" || jQuery("#statusCd").val() == "10" || jQuery("#statusCd").val() == "11") { //03:선급신청상태는 목록 버튼 표시
  355. jQuery("#userName").attr("readonly", true);
  356. jQuery("#userName").css({'background-color' : '#F0F0F0'});
  357. jQuery("#userName").css({'border' : '1px solid #bcbcbc'});
  358. jQuery("#hp").attr("readonly", true);
  359. jQuery("#hp").css({'background-color' : '#F0F0F0'});
  360. jQuery("#hp").css({'border' : '1px solid #bcbcbc'});
  361. jQuery("#eMail").attr("readonly", true);
  362. jQuery("#eMail").css({'background-color' : '#F0F0F0'});
  363. jQuery("#eMail").css({'border' : '1px solid #bcbcbc'});
  364. jQuery("#reqPrepaySupplyTamt").attr("readonly", true);
  365. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#F0F0F0'});
  366. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
  367. jQuery("#reqPrepaySupplyNamt").attr("readonly", true);
  368. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#F0F0F0'});
  369. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  370. }
  371. }
  372. function taxDataSet() {
  373. var radioCheck = jQuery(':radio[name="chk_info"]:checked').val(); //세금계산서 발행방법
  374. if (radioCheck == "1") { //역발행
  375. jQuery("#taxAttachments").hide();
  376. jQuery("#taxTrRow").hide();
  377. } else {
  378. jQuery("#taxAttachments").show();
  379. jQuery("#taxTrRow").show();
  380. }
  381. }
  382. function giveDataSet() {
  383. if (jQuery("#perpayReqDiv option:selected").val() == "1") {
  384. jQuery("#giveAttachments").hide();
  385. jQuery("#p_Attach1").show();
  386. } else {
  387. jQuery("#giveAttachments").show();
  388. jQuery("#p_Attach1").hide();
  389. }
  390. }
  391. function inputDataSet() {
  392. jQuery("#perpayReqDiv").attr("disabled", true);
  393. if (jQuery("#perpayReqDiv option:selected").val() == "1") {
  394. jQuery("#giveAmt").val("0"); //선급_포기금액_합계
  395. jQuery("#reqPrepayAmt").attr("readonly", true);
  396. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  397. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  398. jQuery("#reqPrepayAmt").val(jQuery("#perpayAmt").val());
  399. jQuery("#giveSupplyTamt").val("0"); //선급_포기금액_과세
  400. jQuery("#reqPrepaySupplyTamt").attr("readonly", true);
  401. jQuery("#reqPrepaySupplyTamt").css({
  402. 'background-color' : '#dedede'
  403. });
  404. jQuery("#reqPrepaySupplyTamt").css({
  405. 'border' : '1px solid #bcbcbc'
  406. });
  407. jQuery("#reqPrepaySupplyTamt").val(
  408. jQuery("#subPrepaySupplyTamt").val());
  409. jQuery("#giveSupplyNamt").val("0"); //선급_포기금액_면세
  410. jQuery("#reqPrepaySupplyNamt").attr("readonly", true);
  411. jQuery("#reqPrepaySupplyNamt").css({
  412. 'background-color' : '#dedede'
  413. });
  414. jQuery("#reqPrepaySupplyNamt").css({
  415. 'border' : '1px solid #bcbcbc'
  416. });
  417. jQuery("#reqPrepaySupplyNamt").val(
  418. jQuery("#subPrepaySupplyNamt").val());
  419. jQuery("#giveSurtaxAmt").val("0"); //선급_포기금액_부가세
  420. jQuery("#reqPrepaySurtaxAmt").attr("readonly", true);
  421. jQuery("#reqPrepaySurtaxAmt").css({
  422. 'background-color' : '#dedede'
  423. });
  424. jQuery("#reqPrepaySurtaxAmt").css({
  425. 'border' : '1px solid #bcbcbc'
  426. });
  427. jQuery("#reqPrepaySurtaxAmt").val(
  428. jQuery("#subPrepaySurtaxAmt").val());
  429. jQuery("#givePercent").val("0.0");
  430. var reqPrepayAmt = jQuery("#reqPrepayAmt").val();
  431. reqPrepayAmt = reqPrepayAmt.replace(/(\,|\:)/g, "");
  432. var conAmt = jQuery("#conAmt").val();
  433. conAmt = conAmt.replace(/(\,|\:)/g, "");
  434. var givePercent = (reqPrepayAmt / conAmt) * 100;
  435. jQuery("#reqPrepayPercent").val(givePercent.toFixed(2));
  436. giveDataSet();
  437. warrCtr('S'); //S:보이기, H:숨기기
  438. } else if (jQuery("#perpayReqDiv option:selected").val() == "2") {
  439. jQuery("#reqPrepayAmt").attr("readonly", true);
  440. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  441. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc' });
  442. jQuery("#reqPrepaySupplyTamt").attr("readonly", false);
  443. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#ffffff'});
  444. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #595a5a'});
  445. if (jQuery("#conSupplyNamt").val() == "0") {
  446. jQuery("#reqPrepaySupplyNamt").attr("readonly", true);
  447. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  448. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  449. } else {
  450. jQuery("#reqPrepaySupplyNamt").attr("readonly", false);
  451. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#ffffff'});
  452. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #595a5a'});
  453. }
  454. jQuery("#reqPrepaySurtaxAmt").attr("readonly", true);
  455. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  456. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  457. jQuery("#reqPrepaySupplyTamt").val(jQuery("#orgReqPrepaySupplyTamt").val());
  458. jQuery("#reqPrepaySupplyNamt").val(jQuery("#orgReqPrepaySupplyNamt").val());
  459. //jQuery("#reqPrepaySupplyTamt").blur();
  460. giveDataSet();
  461. warrCtr('S'); //S:보이기, H:숨기기
  462. } else if (jQuery("#perpayReqDiv option:selected").val() == "3") {
  463. jQuery("#reqPrepayAmt").val("0"); //선급_신청금액_합계
  464. jQuery("#reqPrepayAmt").attr("readonly", true);
  465. jQuery("#reqPrepayAmt").css({'background-color' : '#dedede'});
  466. jQuery("#reqPrepayAmt").css({'border' : '1px solid #bcbcbc'});
  467. jQuery("#giveAmt").val(jQuery("#perpayAmt").val());
  468. jQuery("#reqPrepaySupplyTamt").val("0"); //선급_신청금액_과세
  469. jQuery("#reqPrepaySupplyTamt").attr("readonly", true);
  470. jQuery("#reqPrepaySupplyTamt").css({'background-color' : '#dedede'});
  471. jQuery("#reqPrepaySupplyTamt").css({'border' : '1px solid #bcbcbc'});
  472. jQuery("#giveSupplyTamt").val(jQuery("#subPrepaySupplyTamt").val());
  473. jQuery("#reqPrepaySupplyNamt").val("0"); //선급_신청금액_면세
  474. jQuery("#reqPrepaySupplyNamt").attr("readonly", true);
  475. jQuery("#reqPrepaySupplyNamt").css({'background-color' : '#dedede'});
  476. jQuery("#reqPrepaySupplyNamt").css({'border' : '1px solid #bcbcbc'});
  477. jQuery("#giveSupplyNamt").val(jQuery("#subPrepaySupplyNamt").val());
  478. jQuery("#reqPrepaySurtaxAmt").val("0"); //선급_신청금액_부가세
  479. jQuery("#reqPrepaySurtaxAmt").attr("readonly", true);
  480. jQuery("#reqPrepaySurtaxAmt").css({'background-color' : '#dedede'});
  481. jQuery("#reqPrepaySurtaxAmt").css({'border' : '1px solid #bcbcbc'});
  482. jQuery("#giveSurtaxAmt").val(jQuery("#subPrepaySurtaxAmt").val());
  483. jQuery("#reqPrepayPercent").val("0.0");
  484. var giveAmt = jQuery("#giveAmt").val();
  485. giveAmt = giveAmt.replace(/(\,|\:)/g, "");
  486. var conAmt = jQuery("#conAmt").val();
  487. conAmt = conAmt.replace(/(\,|\:)/g, "");
  488. var givePercent = (giveAmt / conAmt) * 100;
  489. jQuery("#givePercent").val(givePercent.toFixed(1));
  490. giveDataSet();
  491. //포기일때 보증정보는 필요없으므로 숨김처ㅣ
  492. warrCtr('H'); //S:보이기, H:숨기기
  493. }
  494. }
  495. function warrCtr(gubun) {
  496. if (gubun == "H") { //숨김
  497. //var warrWamt = jQuery("#warrWamt").val().replace(/(\,|\:)/g, "");
  498. //if(warrWamt == "0" || warrWamt == ""){
  499. //jQuery('#warr1').slideUp();
  500. //jQuery('#warr2').slideUp();
  501. //}else{
  502. //alert("보증정보가 존재합니다.");
  503. //jQuery("#reqPrepaySupplyTamt").val(jQuery("#warrWamt").val());
  504. //}
  505. } else {
  506. //jQuery('#warr1').show("slow");
  507. //jQuery('#warr2').show("slow");
  508. }
  509. }
  510. //저장 및 선급금 신청시 필수항목 Check
  511. function requiredItemsCheck() {
  512. var date1 = jQuery('#date1').val(); //작성일자(증빙일자)
  513. var userName = jQuery('#userName').val(); //담당자명
  514. var hp = jQuery('#hp').val(); //담당자 핸드폰번호
  515. var eMail = jQuery('#eMail').val(); //담당자 이메일
  516. if (date1 == "") {
  517. alert("입력필수입니다.");
  518. jQuery('#date1').focus();
  519. return false;
  520. }
  521. if (userName == "") {
  522. alert("담당자명은 입력필수입니다.");
  523. jQuery('#userName').focus();
  524. return false;
  525. }
  526. if (hp == "") {
  527. alert("담당자 핸드폰 번호는 입력필수입니다.");
  528. jQuery('#hp').focus();
  529. return false;
  530. } else {
  531. var rgEx = /(01[016789])[-](\d{4}|\d{3})[-]\d{4}$/g;
  532. var strValue = hp;
  533. var chkFlg = rgEx.test(strValue);
  534. if (!chkFlg) {
  535. alert("올바른 휴대폰번호가 아닙니다.");
  536. jQuery('#hp').focus();
  537. return false;
  538. }
  539. }
  540. if (eMail == "") {
  541. alert("담당자 이메일은 입력필수입니다.");
  542. jQuery('#eMail').focus();
  543. return false;
  544. } else {
  545. 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})(\]?)$/;
  546. if (!regEmail.test(eMail)) {
  547. alert('올바른 이메일 주소가 아닙니다.');
  548. jQuery('#eMail').focus();
  549. return false;
  550. }
  551. }
  552. if (jQuery("#btnAppReqSelect").val() == "1") { //선급금신청요청시에는 해당하는 첨부파일이 모두 등록되어있어야함.
  553. //세금계산서 첨부파일 Check
  554. /* if(jQuery("#chk_2").is(":checked") == true){
  555. if(jQuery("#p_AttachFile1").val() == ""){
  556. alert("선금금 포기각서 첨부파일 핍수입니다.");
  557. return false;
  558. }
  559. } */
  560. //01:작성중, 02:선급금 신청요청, 21:선금금 포기요청, 03:선급금 신청, 04:결재중, 10:선금완료, 11:포기완료, 91:반려
  561. if (jQuery("#perpayReqDiv").val() == "1") { //선급신청
  562. jQuery("#selectStatusCd").val("03");
  563. if(<%=warrCount.size() %>!=<%=warrList.size() %>){
  564. alert("해당 보증서의 진행 상태가 모두 발급 완료 상태일때 서명을 진행 하실수 있습니다.");
  565. return false;
  566. }
  567. //선급신청일경우 보증정보의 증권번호가 존재하고, 보증금액이 선급 신청금액의 합계와 같아야함.
  568. /* if(jQuery("#warrWgno").val() == ""){
  569. alert("보증정보는 필수입니다.");
  570. return false;
  571. }
  572. var warrWamtValue = jQuery("#warrWamt").val().replace(/(\,|\:)/g, "");
  573. var reqPrepayAmtValue = jQuery("#reqPrepayAmt").val().replace(/(\,|\:)/g, "");
  574. if(reqPrepayAmtValue != warrWamtValue){
  575. alert("선급금신청금액과 보증금액이 다릅니다.");
  576. return false;
  577. }
  578. if(jQuery.trim(jQuery("#p_AttachFile1").text()) != ""){
  579. alert("선금금 포기각서가 존재합니다.");
  580. return false;
  581. } */
  582. } else if (jQuery("#perpayReqDiv").val() == "2") { //부분신청
  583. jQuery("#selectStatusCd").val("20");
  584. if(<%=warrCount.size() %>!=<%=warrList.size() %>){
  585. alert("해당 보증서의 진행 상태가 모두 발급 완료 상태일때 서명을 진행 하실수 있습니다.");
  586. return false;
  587. }
  588. //선급신청일경우 보증정보의 증권번호가 존재하고, 보증금액이 선급 신청금액의 합계와 같아야함.
  589. /* if(jQuery("#warrWgno").val() == ""){
  590. alert("보증정보는 필수입니다.");
  591. return false;
  592. }
  593. var warrWamtValue = jQuery("#warrWamt").val().replace(/(\,|\:)/g, "");
  594. var reqPrepayAmtValue = jQuery("#reqPrepayAmt").val().replace(/(\,|\:)/g, "");
  595. if(reqPrepayAmtValue != warrWamtValue){
  596. alert("선급금신청금액과 보증금액이 다릅니다.");
  597. return false;
  598. }*/
  599. if(jQuery.trim(jQuery("#p_AttachFile1").text()) == ""){
  600. alert("선금금 포기각서 첨부파일 필수입니다.");
  601. return false;
  602. }
  603. } else if (jQuery("#perpayReqDiv").val() == "3") { //포기신청
  604. jQuery("#selectStatusCd").val("21");
  605. if(jQuery.trim(jQuery("#p_AttachFile1").text()) == ""){
  606. alert("선금금 포기각서 첨부파일 필수입니다.");
  607. return false;
  608. }
  609. } else {
  610. alert("신청구분을 선택하세요");
  611. return false;
  612. }
  613. }
  614. }
  615. function doResult(resultObj) {
  616. try {
  617. if (resultObj.getRequestEvent() == "SAVE_DATA") {
  618. if (resultObj.getSuccess()) {
  619. document.form1.isSubmit = false;
  620. if (jQuery("#btnAppReqSelect").val() == "0") {
  621. alert("저장되었습니다.");
  622. //jQuery("#btnList").click();
  623. reSearch();
  624. } else {
  625. jQuery("#btnAppReqSelect").val("0");
  626. btnAppReqProcess();
  627. }
  628. } else {
  629. dlgErrorMsg(resultObj);
  630. }
  631. document.form1.isSubmit = false;
  632. }
  633. if (resultObj.getRequestEvent() == "DELETE_DATA") {
  634. if (resultObj.getSuccess()) {
  635. alert("삭제되었습니다.");
  636. jQuery("#btnList").click();
  637. } else {
  638. dlgErrorMsg(resultObj);
  639. }
  640. document.form1.isSubmit = false;
  641. }
  642. if (resultObj.getRequestEvent() == "REQ_DATA") {
  643. if (resultObj.getSuccess()) {
  644. alert("신청하였습니다.");
  645. jQuery("#btnList").click();
  646. } else {
  647. dlgErrorMsg(resultObj);
  648. }
  649. document.form1.isSubmit = false;
  650. }
  651. } catch (errorObject) {
  652. showErrorDlg("doResult()", errorObject);
  653. }
  654. }
  655. //저장 후 기성시청 처리
  656. function btnAppReqProcess() {
  657. fMakeItemInfo();
  658. // if (fMakeItemInfo()) { //서명데이터 처리
  659. // var f = document.form1;
  660. // jQuery("#fevent").val("REQ_DATA");
  661. // submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen","REQ_DATA", f, "SUCCESS");
  662. // }
  663. }
  664. //상세화면 재조회
  665. function reSearch() {
  666. jQuery("#fevent").val("");
  667. jQuery("#form1").attr("action", "/portal/payment/AdvencePayRequest.screen");
  668. jQuery("#form1").attr("target", "_self");
  669. jQuery("#form1").attr("method", "post");
  670. jQuery("#form1").submit();
  671. }
  672. function doKeyPress() {
  673. if (event.keyCode == 13) {
  674. doSearch(document.all.sheet1)
  675. }
  676. }
  677. function calendar(thisDayObj) {
  678. dlgCalendar(thisDayObj);
  679. }
  680. //첨부파일
  681. function doAttachFile(obj, No) {
  682. if (obj.value == '') {
  683. //alert("After you have saved, you can attach a file.");
  684. alert("데이터를 저장 후, 파일을 첨부할 수가 있습니다.");
  685. } else if (obj.value != '') {
  686. var upLoadFlg = "Y";
  687. if (jQuery("#statusCd").val() == "03" || jQuery("#statusCd").val() == "04" || jQuery("#statusCd").val() == "10" || jQuery("#statusCd").val() == "11") { //선급금 상태값이 03:선급금신청, 04:결재중, 10:선급완료, 11:폰기완료면 다운만
  688. upLoadFlg = "N";
  689. }
  690. if (No == 1) {
  691. viewFileListNew('SUPP_PREPAYMENTS_GIVEUP', obj.value, document.getElementById("p_AttachFile1"), upLoadFlg, "prepay/outside/"+obj.value);
  692. } else {
  693. viewFileListNew('SUPP_TAX_BILL', obj.value, document.getElementById("p_AttachFile2"), upLoadFlg, "prepay/outside/"+obj.value);
  694. }
  695. }
  696. }
  697. /**
  698. * 첨부파일 예약 함수
  699. */
  700. function fileDown(file_id){
  701. var url="/common/file/FileDownloadServlet";
  702. url += "?file_id=" + file_id;
  703. window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
  704. }
  705. function fMakeItemInfo() {
  706. var sColumDelimiter = "┃";
  707. var sRowDelimiter = "↕";
  708. var sSumDelimiter = "╂";
  709. var sEncDelimiter = "⇔";
  710. var sItemInfo = ""; //서명할 문자열 데이터
  711. var infoDeptName = "현장명:" + jQuery("#deptName").val(); //현장명
  712. var infoBuildName = "계약명:" + jQuery("#buildName").val(); //계약명
  713. var infoConCurNm = "계약통화:" + jQuery("#conCurCd").val(); //계약통화
  714. var infoCorpRegNo = "사업자번호:" + jQuery("#vendCd").val(); //사업자번호
  715. var CorpRegNoVal = jQuery("#vendCd").val().replace(/-/gi, "");
  716. //사업자번호
  717. //alert(CorpRegNoVal);
  718. var infoCorpKor = "계약업체명:" + jQuery("#memberName").val(); //계약업체명
  719. var infoBossName = "대표이사:" + jQuery("#bossName").val(); //업체대표이사
  720. var infoStartEndWorkDate = "계약기간:" + jQuery("#startEndWorkDate").val(); //계약기간
  721. var infoConAmt = "계약금액:" + jQuery("#conAmt").val(); //계약금액합계
  722. var infoPerpayAmt = "선급금액:" + jQuery("#perpayAmt").val(); //선급금액합계
  723. var infoTaxMethod = ""; //세금계산서발행방법
  724. if (jQuery('input:checkbox[id="chk_1"]').is(":checked")) { //역발행
  725. infoTaxMethod = "세금계산서발행방법:역발행";
  726. } else {
  727. infoTaxMethod = "세금계산서발행방법:순발행";
  728. }
  729. var infoDate1 = "작성일자:" + jQuery("#date1").val(); //작성일자(증빙일자)
  730. var infoTaxChargNm = "담당자명:" + jQuery("#userName").val(); //담당자명
  731. var infoTaxChargHp = "핸드폰번호:" + jQuery("#hp").val(); //담당자 핸드폰번호
  732. var infoTaxChargEmail = "이메일주소:" + jQuery("#eMail").val(); //담당자 이메일
  733. var infoPerpayReqDiv = "신청구분:"; //신청구분
  734. if (jQuery("#perpayReqDiv").val() == "1") { //신청
  735. infoPerpayReqDiv = infoPerpayReqDiv + "선급신청";
  736. } else if (jQuery("#perpayReqDiv").val() == "2") { //부분신청
  737. infoPerpayReqDiv = infoPerpayReqDiv + "부분신청";
  738. } else if (jQuery("#perpayReqDiv").val() == "3") { //포기
  739. infoPerpayReqDiv = infoPerpayReqDiv + "포기신청";
  740. }
  741. var infoReqPrepayAmt = "선급_신청금액_합계:" + jQuery("#reqPrepayAmt").val();
  742. var infoReqPrepaySupplyTamt = "선급_신청금액_과세:"
  743. + jQuery("#reqPrepaySupplyTamt").val();
  744. var infoReqPrepaySupplyNamt = "선급_신청금액_면세:"
  745. + jQuery("#reqPrepaySupplyNamt").val();
  746. var infoReqPrepaySurtaxAmt = "선급_신청금액_부가세:"
  747. + jQuery("#reqPrepaySurtaxAmt").val();
  748. sItemInfo = sItemInfo + infoDeptName + sColumDelimiter;
  749. sItemInfo = sItemInfo + infoBuildName + sColumDelimiter;
  750. sItemInfo = sItemInfo + infoConCurNm + sColumDelimiter;
  751. sItemInfo = sItemInfo + infoCorpRegNo + sColumDelimiter;
  752. sItemInfo = sItemInfo + infoCorpKor + sColumDelimiter;
  753. sItemInfo = sItemInfo + infoBossName + sColumDelimiter;
  754. sItemInfo = sItemInfo + infoStartEndWorkDate + sColumDelimiter;
  755. sItemInfo = sItemInfo + infoConAmt + sColumDelimiter;
  756. sItemInfo = sItemInfo + infoPerpayAmt + sColumDelimiter;
  757. sItemInfo = sItemInfo + infoTaxMethod + sColumDelimiter;
  758. sItemInfo = sItemInfo + infoDate1 + sColumDelimiter;
  759. sItemInfo = sItemInfo + infoTaxChargNm + sColumDelimiter;
  760. sItemInfo = sItemInfo + infoTaxChargHp + sColumDelimiter;
  761. sItemInfo = sItemInfo + infoTaxChargEmail + sColumDelimiter;
  762. sItemInfo = sItemInfo + infoPerpayReqDiv + sColumDelimiter;
  763. sItemInfo = sItemInfo + infoReqPrepayAmt + sColumDelimiter;
  764. sItemInfo = sItemInfo + infoReqPrepaySupplyTamt + sColumDelimiter;
  765. sItemInfo = sItemInfo + infoReqPrepaySupplyNamt + sColumDelimiter;
  766. sItemInfo = sItemInfo + infoReqPrepaySurtaxAmt;
  767. //alert(sItemInfo);
  768. // 환경설정 함수 콜
  769. if (sItemInfo == null || sItemInfo == "") {
  770. alert("서명할 데이타를 넣어주십시요");
  771. return ;
  772. }
  773. unisign.SignDataNVerifyVID( sItemInfo, null, CorpRegNoVal, function( resultObject ) {
  774. if( !resultObject || resultObject.resultCode != 0 ){
  775. if( resultObject.resultCode == '14208'){
  776. alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
  777. } else if( resultObject.resultCode == '999'){
  778. alert("사용자 DN 선택이 취소 되었습니다.");
  779. } else {
  780. alert( resultObject.resultMessage);
  781. }
  782. return ;
  783. }
  784. var signeddata = resultObject.signedData;
  785. var userdn = resultObject.certAttrs.subjectName;
  786. jQuery("#signeddata").val(signeddata);
  787. var f = document.form1;
  788. jQuery("#fevent").val("REQ_DATA");
  789. submitXmlRequest("/portal/payment/AdvencePayRequest_form.screen","REQ_DATA", f, "SUCCESS");
  790. });
  791. }
  792. //보증정보팝업 호출
  793. function popContWarr(wG, wSeq, wCauseCd) {
  794. var win_id = "contOutWarrPopup";
  795. var param = "";
  796. var param = "?subContModId=" + jQuery("#subContModId").val();
  797. var param = param + "&warrGubun=" + wG;
  798. var param = param + "&warrSeq=" + wSeq;
  799. var param = param + "&causeCode=" + wCauseCd;
  800. var param = param + "&viewDiv=PREPAY";
  801. var param = param + "&prepayId=" + jQuery("#prepayId").val();
  802. var param = param + "&pop_win_id=" + win_id;
  803. var url = "/portal/guar/contOutWarrPopup.screen"+param;
  804. fLayerPop(win_id, url, 560,350, '','', 'NO');
  805. }
  806. //보증정보팝업 종료후 액션
  807. function popContWarrClose(returnValue){
  808. if(returnValue == null){
  809. fLayerPopClose('contOutWarrPopup');
  810. }else{
  811. fLayerPopClose('contOutWarrPopup');
  812. //location.reload();
  813. reSearch();
  814. }
  815. }
  816. //팝업에서 첨부파일 저장을 위해 필요
  817. function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
  818. var editFile = "";
  819. if(obj==''){
  820. alert("After you have saved, you can attach a file.");
  821. }
  822. else if(obj != ''){
  823. if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
  824. viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contOutWarrPopup");
  825. }
  826. }
  827. function openPopUpPrePay() { //변경계약 팝업
  828. if(jQuery("#firstPop").val() == ""){
  829. var url = "/html/portal_prepay_note_popup.html";
  830. fLayerPop("popup",url,640,445,'','', 'NO');
  831. }
  832. }
  833. $.check = function(returnValue){//팝업 후 서명처리
  834. if(returnValue==true){
  835. var stampMsg = '확인하셨습니까?';
  836. if (confirm(stampMsg)){
  837. jQuery("#firstPop").val("Y");
  838. fLayerPopClose('popup');
  839. }
  840. //submit
  841. }
  842. }
  843. </SCRIPT>
  844. <modular:search id="form1">
  845. <modular:key id="fevent" />
  846. </modular:search>
  847. <form id="form1" name="form1" method="post" modular:type="search">
  848. <INPUT type="hidden" name="fevent" id="fevent" value="">
  849. <INPUT type="hidden" name="selectSubContModId" id="selectSubContModId" value="<%=params.get("selectSubContModId") %>">
  850. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=prePayment.get("SUB_CONT_MOD_ID") %>">
  851. <INPUT type="hidden" name="prepayId" id="prepayId" value="<%=prePayment.get("PREPAY_ID") %>">
  852. <INPUT type="hidden" name="corpId" id="corpId" value="<%=prePayment.get("CON_CORP_ID") %>">
  853. <INPUT type="hidden" name="orgReqPrepaySupplyTamt" id="orgReqPrepaySupplyTamt" value="<%=prePayment.get("REQ_PREPAY_SUPPLY_TAMT") %>">
  854. <INPUT type="hidden" name="orgReqPrepaySupplyNamt" id="orgReqPrepaySupplyNamt" value="<%=prePayment.get("REQ_PREPAY_SUPPLY_NAMT") %>">
  855. <INPUT type="hidden" name="statusCd" id="statusCd" value="<%=prePayment.get("STATUS_CD") %>">
  856. <INPUT type="hidden" name="subContId" id="subContId" value="<%=prePayment.get("SUB_CONT_ID") %>">
  857. <%-- <INPUT type="hidden" name="warrGubun" id="warrGubun" value="<%=warrList.get("WARR_GUBUN") %>">
  858. <INPUT type="hidden" name="warrSeq" id="warrSeq" value="<%=warrList.get("WARR_SEQ") %>"> --%>
  859. <INPUT type="hidden" name="btnAppReqSelect" id="btnAppReqSelect" value="0">
  860. <INPUT type="hidden" name="firstPop" id="firstPop" value="<%=params.get("firstPop")%>">
  861. <!-- 기성신청상태구분 -->
  862. <INPUT type="hidden" name="selectStatusCd" id="selectStatusCd" value="">
  863. <!-- 기성신청상태 -->
  864. <INPUT type='hidden' id="signeddata" name="signeddata" value="">
  865. <!-- 리스트 페이지 검색 조건 -->
  866. <INPUT type='hidden' id="searchBuildName" name="searchBuildName" value="<%=params.get("searchBuildName") %>"> <!-- 계약명 -->
  867. <INPUT type='hidden' id="searchStatusCd" name="searchStatusCd" value="<%=params.get("searchStatusCd") %>"> <!-- 상태값 -->
  868. <INPUT type='hidden' id="resultListDiv" name="resultListDiv" value="<%=params.get("resultListDiv") %>">
  869. <INPUT type='hidden' id="signDt_from" name="signDt_from" value="<%=params.get("signDt_from") %>">
  870. <INPUT type='hidden' id="signDt_to" name="signDt_to" value="<%=params.get("signDt_to") %>">
  871. <INPUT type='hidden' id="resUserName" name="resUserName" value="<%=prePayment.get("RES_USER_NAME") %>"> <!-- 계약담당자 -->
  872. <INPUT type='hidden' id="resHp" name="resHp" value="<%=prePayment.get("RES_HP") %>"> <!-- 계약담당자 핸드폰번호 -->
  873. <INPUT type='hidden' id="resEmail" name="resEmail" value="<%=prePayment.get("RES_EMAIL") %>"> <!-- 계약담당자 이메일 -->
  874. <INPUT type='hidden' id="conDocNo" name="conDocNo" value="<%=prePayment.get("CON_DOC_NO") %>"> <!-- 발주계약번호 -->
  875. <INPUT type="hidden" name="bugase" id="bugase" value="<%=prePayment.get("CHG_CODE10") %>">
  876. <!-- 제목 및 버튼 -->
  877. <table width="100%">
  878. <colgroup>
  879. <col width="500" />
  880. <col width="*" />
  881. </colgroup>
  882. <tr>
  883. <th>
  884. <div align="left" id="title">
  885. <ul>
  886. <li><span id="resultListDivTitle">외주_선급금 상세</span>(<span style="font-size: 11px"><%=prePayment.get("STATUS_NM")%></span>)</li>
  887. </ul>
  888. </div>
  889. </th>
  890. <td align="right">
  891. <span id="spanSave" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnSave">저장</a></span>
  892. <span id="spanDelete" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnDelete">삭제</a></span>
  893. <span id="spanAppReq" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnAppReq">선급신청요청</a></span>
  894. <span id="spanList" class="btnSearch center" style="display: none"><a href="javascript:void(0);" id="btnList">목록</a></span>
  895. </td>
  896. </tr>
  897. </table>
  898. <%
  899. if(!prePayment.get("RTN_REASON").equals("")){
  900. %>
  901. <div class="application-info magT10">
  902. <div class="application-sub-title">
  903. <span class="title">반려정보</span>
  904. </div>
  905. <div class="application-location"></div>
  906. </div>
  907. <TABLE class="form-table">
  908. <colgroup>
  909. <col width="13%" />
  910. <col width="*" />
  911. </colgroup>
  912. <TR height="25">
  913. <th style="text-align: left;">반려일</th>
  914. <TD><%=prePayment.get("RTN_DATE")%></TD>
  915. </TR>
  916. <TR>
  917. <th style="text-align: left;">반려사유</th>
  918. <TD><%=prePayment.get("RTN_REASON")%></TD>
  919. </TR>
  920. </TABLE>
  921. <%
  922. }
  923. %>
  924. <div class="application-info magT10">
  925. <div class="application-sub-title">
  926. <span class="title">기본정보</span>
  927. </div>
  928. <div class="application-location"></div>
  929. </div>
  930. <TABLE class="form-table">
  931. <colgroup>
  932. <col width="13%" />
  933. <col width="20%" />
  934. <col width="13%" />
  935. <col width="20%" />
  936. <col width="13%" />
  937. <col width="*" />
  938. </colgroup>
  939. <TR height="25">
  940. <th style="text-align: left;">현장명</th>
  941. <TD><%= InputText.get("deptName", prePayment.get("DEPT_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  942. <th style="text-align: left;">계약명</th>
  943. <TD><%= InputText.get("buildName", prePayment.get("BUILD_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  944. <th style="text-align: left;">통화</th>
  945. <TD><%= InputText.get("conCurCd", prePayment.get("CON_CUR_CD"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  946. </TR>
  947. <TR>
  948. <th style="text-align: left;">사업자번호</th>
  949. <TD><%= InputText.get("vendCd", prePayment.get("CORP_REG_NO"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  950. <th style="text-align: left;">계약업체명</th>
  951. <TD><%= InputText.get("memberName", prePayment.get("CORP_KOR"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  952. <th style="text-align: left;">대표이사</th>
  953. <TD><%= InputText.get("bossName", prePayment.get("BOSS_NAME"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  954. </TR>
  955. <TR>
  956. <th style="text-align: left;">공사기간</th>
  957. <TD><%= InputText.get("startEndWorkDate", prePayment.get("START_END_WORK_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  958. <th style="text-align: left;">계약금액</th>
  959. <TD><%= InputText.get("conConAmt", Formatter2.currency(prePayment.get("CON_SUPPLY_AMT"), intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  960. <th style="text-align: left;">선급금액</th>
  961. <TD><%= InputText.get("conPrepayAmt", Formatter2.currency(prePayment.get("PREPAY_SUPPLY_AMT"), intDigit)+" (부가세 별도)", 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  962. </TR>
  963. </TABLE>
  964. <div class="application-info magT15">
  965. <div class="application-sub-title">
  966. <span class="title">세금계산서 정보</span>
  967. </div>
  968. </div>
  969. <TABLE class="form-table">
  970. <colgroup>
  971. <col width="13%" />
  972. <col width="20%" />
  973. <col width="13%" />
  974. <col width="20%" />
  975. <col width="13%" />
  976. <col width="*" />
  977. </colgroup>
  978. <TR>
  979. <th style="text-align: left;">세금계산서 발행방법</th>
  980. <TD colspan="3">
  981. <input type="radio" id="chk_1" name="chk_info" value="1" onclick="taxDataSet();" <%= check1 %> disabled='disabled' style="display: none;"/>
  982. <input type="radio" id="chk_2" name="chk_info" value="2" onclick="taxDataSet();" <%= check2 %> disabled='disabled' style="display: none;"/>
  983. <%= checkString %>
  984. </TD>
  985. <th style="text-align: left;">작성일자(증빙일자)</th>
  986. <TD><%= InputText.get("date1", Formatter.formatDate(prePayment.get("TAX_DY"), "-"), 30, 10, "Center, date, PerSize, readonly", "date", "") %>
  987. <A href="JavaScript:calendar('date1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  988. </TD>
  989. </TR>
  990. <TR>
  991. <th class="required" style="text-align: left;">담당자명</th>
  992. <TD><%= InputText.get("userName", prePayment.get("USER_NAME"), 100, 6, "string, left, perSize", "string") %></TD>
  993. <th class="required" style="text-align: left;">담당자 핸드폰번호</th>
  994. <TD><input type="text" id="hp" name="hp" value="<%=prePayment.get("HP") %>" style="width: 44%" size="13" maxlength="13" alt="left">&nbsp;ex)010-0000-0000</TD>
  995. <th class="required" style="text-align: left;">담당자 이메일</th>
  996. <TD><%= InputText.get("eMail", prePayment.get("EMAIL"), 100, 40, "string, left, perSize", "string") %></TD>
  997. </TR>
  998. </TABLE>
  999. <!-- 세금계산서정보 : 끝 -->
  1000. <div class="application-info magT15">
  1001. <div class="application-sub-title">
  1002. <span class="title">선급금정보</span>
  1003. </div>
  1004. </div>
  1005. <TABLE class="form-table">
  1006. <colgroup>
  1007. <col width="13%" />
  1008. <col width="20%" />
  1009. <col width="13%" />
  1010. <col width="20%" />
  1011. <col width="13%" />
  1012. <col width="*" />
  1013. </colgroup>
  1014. <TR>
  1015. <th style="text-align: left;">신청구분</th>
  1016. <TD colspan="3"><%= HTMLMaker.getSelectTag(perpayReqDivComboList, "DETAILCD", "DETAILNM", "perpayReqDiv", "width:30%;height=18;' onChange='inputDataSet();", "", prePayment.get("REQ_DIV_CD")) %></TD>
  1017. <th style="text-align: left;">신청(서명)일시</th>
  1018. <TD><%= InputText.get("custSignDate", prePayment.get("CUST_SIGN_DATE"), 100, 30, "class=input_blank, readOnly=white, string, left, perSize, tabIndex=-1", "string") %></TD>
  1019. </TR>
  1020. </TABLE>
  1021. <img src="/img/com/blank.gif" height="10px" />
  1022. <TABLE class="form-table" style="table-layout: fixed;">
  1023. <colgroup>
  1024. <col width="5%">
  1025. <col width="6%">
  1026. <col width="17%">
  1027. <col width="9%">
  1028. <col width="9%">
  1029. <col width="9%">
  1030. <col width="9%">
  1031. <col width="17%">
  1032. <col width="*">
  1033. </colgroup>
  1034. <TR>
  1035. <th rowspan="2" colspan="2">구분</th>
  1036. <th rowspan="2">합계</Th>
  1037. <th colspan="4">공급가액</Th>
  1038. <th rowspan="2">부가세</Th>
  1039. <th rowspan="2">요율</Th>
  1040. </TR>
  1041. <TR>
  1042. <th colspan="2">과세</Th>
  1043. <th colspan="2">면세</Th>
  1044. </TR>
  1045. <TR>
  1046. <th rowspan="2">계약</Th>
  1047. <th>계약금액</Th>
  1048. <TD align="right"><%= InputText.get("conAmt", Formatter2.currency(prePayment.get("CON_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1049. <TD colspan="2" align="right"><%= InputText.get("conSupplyTamt", Formatter2.currency(prePayment.get("CON_SUPPLY_TAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1050. <TD colspan="2" align="right"><%= InputText.get("conSupplyNamt", Formatter2.currency(prePayment.get("CON_SUPPLY_NAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1051. <TD align="right"><%= InputText.get("conSurtaxAmt", Formatter2.currency(prePayment.get("CON_SURTAX_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1052. <TD align="right"><%= InputText.get("conAmtPercent", "100.0", 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1053. </TR>
  1054. <TR>
  1055. <th>선급금액</Th>
  1056. <TD align="right"><%= InputText.get("perpayAmt", Formatter2.currency(prePayment.get("PREPAY_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1057. <TD colspan="2" align="right"><%= InputText.get("subPrepaySupplyTamt", Formatter2.currency(prePayment.get("SUB_PREPAY_SUPPLY_TAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1058. <TD colspan="2" align="right"><%= InputText.get("subPrepaySupplyNamt", Formatter2.currency(prePayment.get("SUB_PREPAY_SUPPLY_NAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1059. <TD align="right"><%= InputText.get("subPrepaySurtaxAmt", Formatter2.currency(prePayment.get("SUB_PREPAY_SURTAX_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1060. <TD align="right"><%= InputText.get("prepayAmtPercent", prePayment.get("PREPAY_AMT_PERCENT"), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1061. </TR>
  1062. <TR>
  1063. <th rowspan="2">선급</Th>
  1064. <th>신청금액</Th>
  1065. <TD align="right"><%= InputText.get("reqPrepayAmt", Formatter2.currency(prePayment.get("REQ_PREPAY_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1066. <TD colspan="2" align="right"><%= InputText.get("reqPrepaySupplyTamt", Formatter2.currency(prePayment.get("REQ_PREPAY_SUPPLY_TAMT"), intDigit), 100, 16, "class=input byteChk ,float, right, perSize", "float") %></TD>
  1067. <TD colspan="2" align="right"><%= InputText.get("reqPrepaySupplyNamt", Formatter2.currency(prePayment.get("REQ_PREPAY_SUPPLY_NAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1068. <TD align="right"><%= InputText.get("reqPrepaySurtaxAmt", Formatter2.currency(prePayment.get("REQ_PREPAY_SURTAX_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1069. <TD align="right"><%= InputText.get("reqPrepayPercent", prePayment.get("REQ_PREPAY_PERCENT"), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1070. </TR>
  1071. <TR>
  1072. <th>포기금액</Th>
  1073. <TD align="right"><%= InputText.get("giveAmt", Formatter2.currency(prePayment.get("GIVE_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1074. <TD colspan="2" align="right"><%= InputText.get("giveSupplyTamt", Formatter2.currency(prePayment.get("GIVE_SUPPLY_TAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1075. <TD colspan="2" align="right"><%= InputText.get("giveSupplyNamt", Formatter2.currency(prePayment.get("GIVE_SUPPLY_NAMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1076. <TD align="right"><%= InputText.get("giveSurtaxAmt", Formatter2.currency(prePayment.get("GIVE_SURTAX_AMT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1077. <TD align="right"><%= InputText.get("givePercent", Formatter2.currency(prePayment.get("GIVE_PERCENT"), intDigit), 100, 16, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1078. </TR>
  1079. </TABLE>
  1080. <div class="application-info magT15">
  1081. <div class="application-sub-title">
  1082. <span class="title">첨부파일</span>
  1083. </div>
  1084. </div>
  1085. <!-- 첨부파일 : 시작 -->
  1086. <TABLE class="form-table">
  1087. <colgroup>
  1088. <col width="5%">
  1089. <col width="6%">
  1090. <col width="11%">
  1091. <col width="11%">
  1092. <col width="11%">
  1093. <col width="11%">
  1094. <col width="11%">
  1095. <col width="11%">
  1096. <col width="*">
  1097. </colgroup>
  1098. <TR>
  1099. <th colspan="2">구분</Th>
  1100. <th colspan="5">첨부파일명</Th>
  1101. <th colspan="2">다운로드</Th>
  1102. </TR>
  1103. <TR>
  1104. <TD colspan="2">선급금 포기각서<span id="p_Attach1">(해당없음)</span></TD>
  1105. <%-- <TD colspan="5" align="left"><TEXTAREA name="p_AttachFile1" id="p_AttachFile1" style="width: 100%; height: 99%; border: 0;" rows="1" class="input" readOnly><%=file_giveup.get("SUPP_PREPAYMENTS_GIVEUP") %></TEXTAREA></TD> --%>
  1106. <TD colspan="5" align="left">
  1107. <table width="100%">
  1108. <colgroup>
  1109. <col width="99%" />
  1110. </colgroup>
  1111. <tr>
  1112. <td>
  1113. <div id="p_AttachFile1" class="attach_file_view">
  1114. <%=FileManager.getFileListForDiv("SUPP_PREPAYMENTS_GIVEUP", prePayment.get("PREPAY_ID")) %>
  1115. </div>
  1116. </td>
  1117. <tr>
  1118. </table>
  1119. </TD>
  1120. <TD colspan="2" align="center"><span id="giveAttachments"><IMG id='search_spot_button' onClick="doAttachFile(document.form1.prepayId,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor: pointer;'></TD>
  1121. </TR>
  1122. <TR id="taxTrRow">
  1123. <TD colspan="2" align="center">세금계산서</TD>
  1124. <%-- <TD colspan="5" align="left"><TEXTAREA name="p_AttachFile2" id="p_AttachFile2" style="width: 100%; height: 99%; border: 0;" rows="1" class="input" readOnly><%=file_taxbill.get("SUPP_TAX_BILL") %></TEXTAREA></TD> --%>
  1125. <TD colspan="5" align="left">
  1126. <table width="100%">
  1127. <colgroup>
  1128. <col width="99%" />
  1129. </colgroup>
  1130. <tr>
  1131. <td>
  1132. <div id="p_AttachFile2" class="attach_file_view">
  1133. <%=FileManager.getFileListForDiv("SUPP_TAX_BILL", prePayment.get("PREPAY_ID")) %>
  1134. </div>
  1135. </td>
  1136. <tr>
  1137. </table>
  1138. </TD>
  1139. <TD colspan="2" align="center"><span id="taxAttachments"><IMG id='search_spot_button' onClick="doAttachFile(document.form1.prepayId,2);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor: pointer;'></TD>
  1140. </TR>
  1141. </TABLE>
  1142. <!-- 첨부파일 : 끝 -->
  1143. <%-- <%if (warrList.size() > 0) {%>
  1144. <div id="warr1" class="application-info magT15" style="display: none">
  1145. <div class="application-sub-title">
  1146. <span class="title">보증정보</span>
  1147. </div>
  1148. </div>
  1149. <TABLE id="warr2" class="form-table" style="table-layout: fixed;display: none;">
  1150. <colgroup>
  1151. <col width="10%" />
  1152. <col width="50" />
  1153. <col width="10%" />
  1154. <col width="10%" />
  1155. <col width="10%" />
  1156. <col width="10%" />
  1157. <col width="10%" />
  1158. <col width="10%" />
  1159. <col width="10%" />
  1160. <col width="*" />
  1161. </colgroup>
  1162. <TR>
  1163. <TH style="text-align:center;">제증권명</TH>
  1164. <TH style="text-align:center;">등록</TH>
  1165. <TH style="text-align:center;">변경구분</TH>
  1166. <TH style="text-align:center;">발행방법</TH>
  1167. <TH style="text-align:center;">발급기관</TH>
  1168. <TH style="text-align:center;">진행상태</TH>
  1169. <TH style="text-align:center;">발급일</TH>
  1170. <TH style="text-align:center;">증권번호</TH>
  1171. <TH style="text-align:center;">보증금액</TH>
  1172. <TH style="text-align:center;">보증기간</TH>
  1173. </TR>
  1174. <TR>
  1175. <TD><%= InputText.get("warrGubunNm", warrList.getRow(0).get("WARR_GUBUN_NM"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1176. <TD style="text-align:center;"><IMG src="/img/buyer/button/bt_search_right.gif" onclick="javascript:popContWarr('<%=warrList.getRow(0).get("WARR_GUBUN")%>','<%=warrList.getRow(0).get("WARR_SEQ")%>','<%=warrList.getRow(0).get("CAUSECODE")%>');" id="warrList" alt="보증정보" border="0" align="absmiddle" style="cursor:pointer;" /></TD>
  1177. <TD style="text-align:center;"><%=InputText.get("causecodeNm", warrList.getRow(0).get("CAUSECODE_NM"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1178. <TD style="text-align:center;"><%=InputText.get("guarOnoffNm", warrList.getRow(0).get("GUAR_ONOFF_NM"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1179. <TD style="text-align:center;"><%=InputText.get("warrGoffice", warrList.getRow(0).get("WARR_GOFFICE"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1180. <TD style="text-align:center;"><%=InputText.get("guarStatusNm", warrList.getRow(0).get("GUAR_STATUS_NM"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1181. <TD style="text-align:center;"><%=InputText.get("paperdate", Formatter.formatDate(warrList.getRow(0).get("PAPERDATE"), "-"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1182. <TD style="text-align:center;"><%=InputText.get("warrWgno", warrList.getRow(0).get("WARR_WGNO"), 98, 6, "class=input_blank, readOnly=white, string, center, perSize, tabIndex=-1", "string") %></TD>
  1183. <TD style="text-align:right;"><%=InputText.get("warrWamt", Formatter.formatCurrency(warrList.getRow(0).get("WARR_WAMT")), 98, 6, "class=input_blank, readOnly=white, string, right, perSize, tabIndex=-1", "string") %></TD>
  1184. <TD style="text-align:center;"><%=Formatter.formatDate(warrList.getRow(0).get("WARR_SDATE"), "-") +" ~ "+ Formatter.formatDate(warrList.getRow(0).get("WARR_EDATE"), "-")%></TD>
  1185. </TR>
  1186. </TABLE>
  1187. <!-- 보증정보 : 끝 -->
  1188. <% } %> --%>
  1189. <%
  1190. /*
  1191. 보증 목록을 include 시킴 (2014-10-17) 김명호
  1192. */
  1193. %>
  1194. <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarOutList.jsp" %>
  1195. </FORM>
  1196. <script>
  1197. </script>
  1198. <!-- 전자인증 모듈 설정 //-->
  1199. <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
  1200. <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
  1201. <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
  1202. <!-- 전자인증 모듈 설정 //-->