ResultDetail01.jsp 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171
  1. <%--
  2. - FileName :
  3. - Author(s) :
  4. - Date :
  5. -
  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="java.net.URLEncoder"%>
  14. <%@ page import="com.udapsoft.waf.common.util.StringUtils" %>
  15. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  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. ValueObject vo = storage.getValueObject("ResultDetail01BizVo");
  24. RowSet fileRowSet = storage.getRowSet("RESULT_PDF");
  25. RowSet ADD_02 =storage.getRowSet("ROWSET");
  26. String pageEvent = storage.getEvent();
  27. %>
  28. <script language="javascript" src="/js/report.js"></script>
  29. <script type="text/javascript">
  30. <!--
  31. $(document).on("keyup", "input:text[numberOnly]", function()
  32. {
  33. $(this).val( $(this).val().replace(/[^0-9]/gi,"") ); //숫자만입력 정규식...
  34. $(this).val($(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(',')); //콤마찍기 정규식...귀찮ㄹ타
  35. });
  36. $(document).on("keyup", "input:text[number]", function()
  37. {
  38. $(this).val( $(this).val().replace(/[^0-9]/gi,"") ); //숫자만입력 정규식...
  39. });
  40. $(function(){
  41. $.gridInit = function()
  42. {
  43. var init_sheet = {};
  44. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10, SumPosition:1};
  45. init_sheet.Cols = [
  46. {Header:"삭제", Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center"},
  47. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Edit:"False", Hidden:"True"},
  48. {Header:"SEQ", Type:"Text", SaveName:"SEQ", Width:80, Align:"Center", Hidden:"True"},
  49. {Header:"SUB_CONT_MOD_ID", Type:"Text", SaveName:"SUB_CONT_MOD_ID", Width:80, Align:"Center", Hidden:"True"},
  50. {Header:"ACMP_YYYY", Type:"Text", SaveName:"ACMP_YYYY", Width:80, Align:"Center", Hidden:"True"},
  51. {Header:"SOC_CD", Type:"Text", SaveName:"SOC_CD", Width:80, Align:"Center", Hidden:"True"},
  52. {Header:"제출협회", Type:"Combo", SaveName:"SUB_SOC_CD", Width:80, Align:"Center", ComboText:"대한전문건설협회|대한기계설비공사협회|한국소방시설협회|한국정보통신공사협회|한국전기공사협회", ComboCode:"01|02|03|04|05", KeyField:"True", Edit:"True"},
  53. {Header:"공사(종)명", Type:"Text", SaveName:"CONT_NM", Width:80, Align:"Left", KeyField:"True"},
  54. {Header:"계약액", Type:"AutoSum", SaveName:"CONT_AMT", Width:80, Align:"Right", Format:"#,##0", KeyField:"True"},
  55. {Header:"착공년월일", Type:"Date", SaveName:"CONT_SDATE", Width:80, Align:"Right", KeyField:"True"},
  56. {Header:"준공년월일", Type:"Date", SaveName:"CONT_EDATE", Width:80, Align:"Right", KeyField:"True"},
  57. {Header:"전년도 기성액", Type:"AutoSum", SaveName:"PRV_PAY_AMT", Width:80, Align:"Right", Format:"#,##0"},
  58. {Header:"당년도 기성액", Type:"AutoSum", SaveName:"CUR_PAY_AMT", Width:80, Align:"Right", Format:"#,##0"},
  59. {Header:"하도급 금액", Type:"AutoSum", SaveName:"SCONT_AMT", Width:80, Align:"Right", Format:"#,##0", Hidden:"True"},
  60. {Header:"미기성 금액", Type:"AutoSum", SaveName:"PAY_NAMT", Width:80, Align:"Right", Format:"#,##0", CalcLogic:"|CONT_AMT|-|PRV_PAY_AMT|-|CUR_PAY_AMT|"}
  61. ];
  62. init_sheet.HeaderMode = {Sort:1};
  63. IBS_InitSheet(sheet1, init_sheet);
  64. sheet1.SetDataAutoTrim(0);
  65. // sheet1.SetEditable(false);
  66. sheet1.SetCountPosition(0);
  67. sheet1.SetCellText(sheet1.LastRow(), "CONT_NM", "합 계");
  68. sheet1.GetSumFontBold(1);
  69. sheet1.FitColWidth();
  70. }
  71. $.searchList = function()
  72. {
  73. $("#fevent").val("GET_LIST");
  74. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/ResultDetail03_sheet.screen";
  75. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  76. };
  77. $("#btn_sheet_add").click(function(){
  78. sheet1.DataInsert(-1);
  79. });
  80. $("#ADD_01").change(function(){
  81. var f = document.form1;
  82. if($("#ADD_01").val().trim() == "")
  83. {
  84. $("#ADD_02").empty().data("options");
  85. $("#ADD_02").append("<option value=''>-- 선택 --</option>");
  86. }
  87. else
  88. {
  89. $("#fevent").val("ADD_02");
  90. $("#ADD_01").val($("#ADD_01").val());
  91. submitXmlRequest("/portal/result/ResultDetail01_form.screen", "ADD_02", f, "ROWSET");
  92. }
  93. });
  94. $(".numberic").each(function(){
  95. $(this).val($(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  96. });
  97. $.callCalendar = function(id){
  98. var str_value = id;
  99. var re = new RegExp("_", "ig");
  100. var resultArray = str_value.match(re);
  101. if(resultArray.length == 1)
  102. {
  103. dlgCalendar(id);
  104. }
  105. else if(resultArray.length == 2)
  106. {
  107. id = id.substring(0, id.lastIndexOf("_"));
  108. dlgCalendar(id);
  109. }
  110. };
  111. $("#lic_date_img").click(function(){
  112. $.callCalendar($(this).attr("id"));
  113. });
  114. $("#btn_list").click(function(){
  115. //"/portal/result/ResultIngList.screen"
  116. $("#fevent").val("");
  117. if($("#p_page_gubun").val() == "target")
  118. {
  119. $("#form1").attr("action", "/portal/result/ResultTargetList.screen");
  120. }
  121. else if($("#p_page_gubun").val() == "info")
  122. {
  123. $("#form1").attr("action", $("#p_List").val());
  124. }
  125. $("#form1").attr("target", "_self");
  126. $("#form1").attr("method", "post");
  127. $("#form1").submit();
  128. });
  129. $("#btn_save").click(function(){
  130. var gubun = $("#p_page_gubun").val();
  131. if(confirm("저장 하시겠습니까?"))
  132. {
  133. if(gubun == "info")
  134. {
  135. //2016.1.11 반려일때만 금액수정 가능.
  136. if($("#prog_stat_cd").val() != "91"){
  137. $("#prog_stat_cd").val("10");
  138. }
  139. $("#fevent").val("UPDATE_DATA");
  140. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/ResultDetail03_sheet.screen";
  141. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  142. }
  143. else
  144. {
  145. //$("#prog_stat_cd").val("10"); 2016.1.11 반려일때만 금액수정 가능.
  146. $("#fevent").val("SAVE_LIST");
  147. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/ResultDetail03_sheet.screen";
  148. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  149. }
  150. }
  151. });
  152. //2016.1.21
  153. $("#viewSheet").click(function(){
  154. if ($("#viewSheet").is(":checked") == true)
  155. {
  156. $("#cur_cont_amt").attr("disabled", false);
  157. $("#cont_tamt").attr("disabled", false);
  158. $("#cur_pay_amt").attr("disabled", false);
  159. $("#prv_pay_amt").attr("disabled", false);
  160. $("#cur_pay_samt").attr("disabled", false);
  161. $("#prv_pay_samt").attr("disabled", false);
  162. }
  163. else
  164. {
  165. $("#cur_cont_amt").attr("disabled", true);
  166. $("#cont_tamt").attr("disabled", true);
  167. $("#cur_pay_amt").attr("disabled", true);
  168. $("#prv_pay_amt").attr("disabled", true);
  169. $("#cur_pay_samt").attr("disabled", true);
  170. $("#prv_pay_samt").attr("disabled", true);
  171. }
  172. });
  173. $("#btn_signOk").click(function(){
  174. if (typeof($('input[name=cont_type]:checked').val()) == 'undefined')
  175. {
  176. alert("공사유형을 선택하십시요.");
  177. return;
  178. }
  179. if ($("#main_field").val() == "")
  180. {
  181. alert("주력분야를 입력하십시요.");
  182. $("#main_field").focus();
  183. return;
  184. }
  185. //2016.1.25 업종 및 등록번호 필수 lic_nm reg_no
  186. if ($("#lic_nm").val() == "")
  187. {
  188. alert("업종(면허)명을 입력하십시요.");
  189. $("#lic_nm").focus();
  190. return;
  191. }
  192. if ($("#reg_no").val() == "")
  193. {
  194. alert("면허번호를 입력하십시요.");
  195. $("#reg_no").focus();
  196. return;
  197. }
  198. if ($("#ADD_01").val() == "")
  199. {
  200. alert("공종을 선택 하십시요.");
  201. $("#ADD_01").focus();
  202. return;
  203. }
  204. /* if ($("#issue_no").val() == "")
  205. {
  206. alert("일련번호를 입력하십시요.");
  207. $("#issue_no").focus();
  208. return;
  209. } */
  210. if(sheet1.LastRow() <= 1 && ($("#viewSheet").is(":checked") == true))
  211. {
  212. alert("복합공종 실적 내용을 입력해 주세요.");
  213. $("#isuDiv").attr("tabindex", -1).focus();
  214. return;
  215. }
  216. /*if(($("#viewSheet").is(":checked") == true)&&sheet1.GetCellValue(sheet1.LastRow(), "cont_tamt")!=$("#cont_tamt_o").val().replace(/,/gi, "")){
  217. alert("복합공종 도급금액 합계가 총계약금액과 일치하지 않습니다.");
  218. $("#cur_pay_amt").focus();
  219. return;
  220. }*/
  221. //2016.4.7
  222. if ($("#viewSheet").is(":checked") == true)
  223. {
  224. var sumAmt = sheet1.GetSumValue(0 ,"CONT_AMT");
  225. if( $("#cont_tamt_o").val().replace(/,/gi, "") != sumAmt){
  226. alert("총 계약금액과 복합공종 계약 합계금액이 일치 하지 않습니다.");
  227. return ;
  228. }
  229. sumAmt = sheet1.GetSumValue(0 ,"CUR_PAY_AMT");
  230. sumAmt = Number(sumAmt) - Number($("#cur_pay_amt_o").val().replace(/,/gi, ""));
  231. if( sumAmt < 0 || sumAmt > 3 ){
  232. alert("당년도 기성금액과 복합공종 기성 합계금액이 일치 하지 않습니다.");
  233. return ;
  234. }
  235. }
  236. var chk = "N";
  237. for (var i = 1; i < sheet1.LastRow(); i++ ){
  238. if (sheet1.GetCellValue(i, "SUB_SOC_CD") == $("#soc_cd").val()){
  239. chk = "Y";
  240. if (sheet1.GetCellValue(i, "CONT_AMT") != $("#cont_tamt").val().replace(/,/gi, "") || sheet1.GetCellValue(i, "CUR_PAY_AMT") != $("#cur_pay_amt").val().replace(/,/gi, "") )
  241. {
  242. alert("복합공종의 협회내용과 작성중인 협회금액이 일치하지 않습니다.");
  243. return;
  244. }
  245. }
  246. }
  247. if (chk == "N" && $("#viewSheet").is(":checked") == true) {
  248. alert("복합공종 내역에 작성중인 협회를 등록하십시요.");
  249. return;
  250. }
  251. fMakeItemInfo();
  252. });
  253. $("#btn_delete").click(function(){
  254. var f = document.form1;
  255. if(confirm("삭제 하시겠습니까?"))
  256. {
  257. submitXmlRequest("/portal/result/ResultDetail01_form.screen", "DELETE_DATA", f, "VALUEOBJECT");
  258. }
  259. });
  260. $("#btn_preview").click(function(){
  261. var f = document.form1;
  262. if(confirm("저장후 미리보기를 생성 하시겠습니까?"))
  263. {
  264. $("#fevent").val("UPDATE_DATA");
  265. $("#pdf").val("PREVIEW_PDF");
  266. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/ResultDetail03_sheet.screen";
  267. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  268. }
  269. });
  270. $("#contPopup").click(function(){
  271. var win_id = "ResultContPopup";
  272. var link = "/portal/result/ResultContPopup.screen";
  273. link += "?pop_win_id="+win_id+"&layerYn=Y";
  274. link += "&subContModId="+$("#p_sub_cont_mod_id").val();
  275. fLayerPop(win_id, link, 550,115, '', '', 'auto');
  276. });
  277. });
  278. $(document).ready(function(){
  279. $.gridInit(sheet1);
  280. $.searchList();
  281. if($("#COMPOSIT_YN").val()=="1"){
  282. $("#viewSheet").attr("checked",true);
  283. }else{
  284. $("#btn_sheet_add_area").css("display", "none");
  285. }
  286. var prog_stat_cd = "<%=vo.get("prog_stat_cd")%>";
  287. if($("#p_success_gubun").val() == "R")
  288. {
  289. $(':radio[name="p_reson"]').attr("disabled", true);
  290. $(':input').attr("readonly", true);
  291. $(':input[type="text"]').addClass("bg_gry");
  292. $(':input[type="text"]').addClass("input_blank");
  293. }
  294. //2016.4.7
  295. if(prog_stat_cd == "91" )
  296. {
  297. $("#reson_area").css("display", "table-row");
  298. //2016.1.11 금액관련 모두 수정가능
  299. }
  300. else
  301. {
  302. $("#reson_area").css("display", "none");
  303. //2016.4.7금액관련 모두 수정 불가
  304. if ($("#viewSheet").is(":checked") == false)
  305. {
  306. $("#cur_cont_amt").attr("disabled", true);
  307. $("#cont_tamt").attr("disabled", true);
  308. $("#cur_pay_amt").attr("disabled", true);
  309. $("#prv_pay_amt").attr("disabled", true);
  310. $("#cur_pay_samt").attr("disabled", true);
  311. $("#prv_pay_samt").attr("disabled", true);
  312. }
  313. }
  314. if(prog_stat_cd == "30" )
  315. {
  316. $("#viewSheet").css("display", "none");
  317. $("#btn_sheet_add_area").css("display", "none");
  318. sheet1.SetEditable(false);
  319. sheet1.FitColWidth();
  320. }
  321. if($("#p_page_gubun").val() == "info")
  322. {
  323. if($("#prog_stat_cd").val() == "10" || $("#prog_stat_cd").val() == "00" || $("#prog_stat_cd").val() == "91")
  324. {
  325. $("#signOk").css("display", "inline");
  326. $("#btn_preview_area").css("display", "inline");
  327. }
  328. else
  329. {
  330. $("#signOk").css("display", "none");
  331. $("#btn_save_area").css("display", "none");
  332. $("#btn_preview_area").css("display", "none");
  333. $("#btn_delete_area").css("display", "none");
  334. $("#issue_no").attr("readonly", "true");
  335. $("#lic_org").attr("readonly", "true");
  336. $("#lic_date").attr("readonly", "true");
  337. $("#lic_nm").attr("readonly", "true");
  338. $("#reg_no").attr("readonly", "true");
  339. $("#isu_charge_nm").attr("readonly", "true");
  340. $("#etc").attr("readonly", "true");
  341. $("#isu_req_hp1").attr("readonly", "true");
  342. $("#isu_req_hp2").attr("readonly", "true");
  343. $("#isu_req_hp3").attr("readonly", "true");
  344. }
  345. }
  346. else
  347. {
  348. $("#signOk").css("display", "none");
  349. $("#btn_preview_area").css("display", "none");
  350. $("#btn_delete_area").css("display", "none");
  351. }
  352. $("#viewSheet").click(function() {
  353. viewSheet();
  354. });
  355. $("#cont_type1").click(function(){
  356. $("#cont_type1").attr("checked",true);
  357. $("#cont_type2").attr("checked",false);
  358. });
  359. $("#cont_type2").click(function(){
  360. $("#cont_type1").attr("checked",false);
  361. $("#cont_type2").attr("checked",true);
  362. });
  363. });
  364. function viewSheet(){
  365. if($("#viewSheet").is(":checked") == true){
  366. sheet1.SetEditable(true);
  367. $("#btn_sheet_add_area").css("display", "inline");
  368. $("#COMPOSIT_YN").val("1");
  369. }else{
  370. if(sheet1.RowCount()!="0"){ //row가 남아있을때 확인
  371. if(confirm("작성된 내용을 삭제 하시겠습니까?")){
  372. sheet1.CheckAll(0,1);
  373. sheet1.SetEditable(false);
  374. $("#btn_sheet_add_area").css("display", "none");
  375. $("#COMPOSIT_YN").val("0");
  376. }
  377. }else{ //row 없을때
  378. sheet1.SetEditable(false);
  379. $("#btn_sheet_add_area").css("display", "none");
  380. $("#COMPOSIT_YN").val("0");
  381. }
  382. }
  383. }
  384. function sheet1_OnSaveEnd(code, msg)
  385. {
  386. var event = $("#fevent").val();
  387. var f = document.form1;
  388. document.form1.isSubmit = false;
  389. if(code >= "0")
  390. {
  391. if(event == "SAVE_LIST")
  392. {
  393. alert("등록 되었습니다.");
  394. location.href="/portal/result/ResultIngList.screen";
  395. }
  396. else if(event == "UPDATE_ISSUE")
  397. {
  398. alert("발급요청이 되었습니다.");
  399. location.href="/portal/result/ResultIngList.screen";
  400. }
  401. else if(event == "SIGN_OK")
  402. {
  403. alert("서명 되었습니다.");
  404. $("#fevent").val("GET_DETAIL_01");
  405. $("#form1").attr("action", "/portal/result/ResultDetail01.screen");
  406. $("#form1").submit();
  407. }
  408. else if($("#pdf").val()=="PREVIEW_PDF")
  409. {
  410. var reportInfo = new ReportInfo();
  411. reportInfo.title = "대한전문건설협회 실적증명";
  412. reportInfo.reportName = "/report/mrd/buyer/supplier/buld_application2.mrd";
  413. reportInfo.set("<%=vo.get("corp_id")%>"); // $1
  414. reportInfo.set("<%=vo.get("sub_cont_mod_id")%>"); // $2
  415. reportInfo.set("<%=vo.get("acmp_yyyy")%>"); // $3
  416. reportInfo.set("<%=vo.get("soc_cd")%>"); // $4
  417. reportInfo.width = 1000; // Default: 1024
  418. reportInfo.height = 700; // Default: 768
  419. reportInfo.showPopup();
  420. $("#pdf").val("");
  421. }
  422. else
  423. {
  424. alert("수정 되었습니다.");
  425. $("#fevent").val("GET_DETAIL_01");
  426. $("#form1").attr("action", "/portal/result/ResultDetail01.screen");
  427. $("#form1").submit();
  428. }
  429. }
  430. }
  431. function doResult(resultObj) {
  432. try
  433. {
  434. document.form1.isSubmit = false;
  435. if( resultObj.getRequestEvent() == "SAVE_DATA") //발급대상
  436. {
  437. if( resultObj.getSuccess() )
  438. {
  439. alert("등록 되었습니다.");
  440. location.href="/portal/result/ResultIngList.screen";
  441. }
  442. else
  443. {
  444. // dlgErrorMsg(resultObj.getMessage);
  445. alert(resultObj.getValueObject().get("errMsg"));
  446. }
  447. }
  448. else if(resultObj.getRequestEvent() == "UPDATE_DATA") //발급현황
  449. {
  450. if( resultObj.getSuccess() )
  451. {
  452. alert("수정 되었습니다.");
  453. $("#fevent").val("GET_DETAIL_01");
  454. $("#form1").attr("action", "/portal/result/ResultDetail01.screen");
  455. $("#form1").submit();
  456. }
  457. else
  458. {
  459. // dlgErrorMsg(resultObj.getMessage);
  460. alert(resultObj.getValueObject().get("errMsg"));
  461. }
  462. }
  463. else if(resultObj.getRequestEvent() == "UPDATE_ISSUE")
  464. {
  465. if( resultObj.getSuccess() )
  466. {
  467. alert("발급요청이 되었습니다.");
  468. location.href="/portal/result/ResultIngList.screen";
  469. }
  470. else
  471. {
  472. // dlgErrorMsg(resultObj.getMessage);
  473. alert(resultObj.getValueObject().get("errMsg"));
  474. }
  475. }
  476. else if( resultObj.getRequestEvent() == "DELETE_DATA")
  477. {
  478. if( resultObj.getSuccess() )
  479. {
  480. alert("삭제 되었습니다.");
  481. location.href="/portal/result/ResultTargetList.screen";
  482. }
  483. else
  484. {
  485. // dlgErrorMsg(resultObj.getMessage);
  486. alert(resultObj.getValueObject().get("errMsg"));
  487. }
  488. }
  489. else if( resultObj.getRequestEvent() == "PREVIEW_PDF")
  490. {
  491. if( resultObj.getSuccess() )
  492. {
  493. alert("미리보기가 생성 되었습니다.");
  494. var url="/common/file/FileDownloadServlet?mode=fpDown&filePath=/result/<%=vo.get("sub_cont_mod_id")%>/<%=vo.get("acmp_yyyy")%>&fileName=preview_<%=vo.get("corp_id")%>.pdf&fileRealName=preview_<%=vo.get("corp_id")%>.pdf";
  495. window.open(url, "_blank");
  496. }
  497. else
  498. {
  499. // dlgErrorMsg(resultObj.getMessage);
  500. alert(resultObj.getValueObject().get("errMsg"));
  501. }
  502. }
  503. else if ( resultObj.getRequestEvent() == "ADD_02" )
  504. {
  505. if ( resultObj.getSuccess() == true )
  506. {
  507. var rowSet = resultObj.getRowSet();
  508. $("#ADD_02").empty().data("options");
  509. $("#ADD_02").append("<option value=''>-- 선택 --</option>");
  510. for ( var i = 0; i < rowSet.getRowSize(); i++ )
  511. {
  512. $("#ADD_02").append("<option value='"+rowSet.getColValue( i, 0 )+"'>" + rowSet.getColValue( i, 1 )+"</option>");
  513. }
  514. if($("#ADD_01").val() == "")
  515. {
  516. $("#ADD_02").empty().data("options");
  517. $("#ADD_02").append("<option value=''>-- 선택 --</option>");
  518. }
  519. document.form1.isSubmit = false;
  520. var ADD_02 = "<%=params.get("ADD_02")%>";
  521. if(ADD_02.trim() != "")
  522. {
  523. $("#ADD_02").val(ADD_02).attr("selected", "selected");
  524. }
  525. } else {
  526. dlgErrorMsg(resultObj);
  527. }
  528. }
  529. }
  530. catch(errorObject) {
  531. showErrorDlg("doResult()", errorObject);
  532. }
  533. }
  534. function fMakeItemInfo(){
  535. var sColumDelimiter = "┃";
  536. var sRowDelimiter = "↕";
  537. var sSumDelimiter = "╂";
  538. var sEncDelimiter = "⇔";
  539. var isNull = "NULL";
  540. //해시
  541. var sContHash = "";
  542. var sTemplate = "01";
  543. var sMainVendcd = "<%=vo.get("isu_vendcd") %>";
  544. //var sMainVendcd = "1234567890"; // 원사업자번호
  545. var issue_no = "<%=vo.get("issue_no") %>";
  546. var lic_org = "<%=vo.get("lic_org") %>";
  547. var lic_nm = "<%=vo.get("lic_nm") %>";
  548. var reg_no = "<%=vo.get("reg_no") %>";
  549. var cur_cont_amt = "<%=vo.get("cur_cont_amt") %>";
  550. var cur_pay_amt = "<%=vo.get("cur_pay_amt") %>";
  551. var prv_pay_amt = "<%=vo.get("prv_pay_amt") %>";
  552. var cur_pay_samt = "<%=vo.get("cur_pay_samt") %>";
  553. var prv_pay_samt = "<%=vo.get("prv_pay_samt") %>";
  554. var etc = "<%=StringUtils.cvtHTML(vo.get("etc")) %>";
  555. sContHash=issue_no +sColumDelimiter
  556. +lic_org +sColumDelimiter
  557. +lic_nm +sColumDelimiter
  558. +reg_no +sColumDelimiter
  559. +cur_pay_amt +sColumDelimiter
  560. +prv_pay_amt +sColumDelimiter
  561. +cur_pay_samt +sColumDelimiter
  562. +prv_pay_samt +sColumDelimiter
  563. +etc +sRowDelimiter;
  564. var GrowCount = sheet1.LastRow();
  565. for(var i=1; i < GrowCount+1; i++)
  566. {
  567. var cont_nm = "";
  568. var cont_amt = "";
  569. var cont_sdate = "";
  570. var cont_edate = "";
  571. var prv_pay_amt = "";
  572. var cur_pay_amt = "";
  573. var scont_amt = "";
  574. var pay_namt = "";
  575. cont_nm = sheet1.GetCellValue(i,"CONT_NM");
  576. if(cont_nm.length > 0){
  577. cont_amt = sheet1.GetCellValue(i,"CONT_AMT");
  578. if(isEmptyVal(cont_amt))
  579. cont_amt = isNull;
  580. cont_sdate = sheet1.GetCellValue(i,"CONT_SDATE");
  581. if(isEmptyVal(cont_sdate))
  582. cont_sdate = isNull;
  583. cont_edate = sheet1.GetCellValue(i,"CONT_EDATE");
  584. if(isEmptyVal(cont_edate))
  585. cont_edate = isNull;
  586. prv_pay_amt = sheet1.GetCellValue(i,"PRV_PAY_AMT");
  587. if(isEmptyVal(prv_pay_amt))
  588. prv_pay_amt = isNull;
  589. cur_pay_amt = sheet1.GetCellValue(i,"CUR_PAY_AMT");
  590. if(isEmptyVal(cur_pay_amt))
  591. cur_pay_amt = isNull;
  592. scont_amt = sheet1.GetCellValue(i,"SCONT_AMT");
  593. if(isEmptyVal(scont_amt))
  594. scont_amt = isNull;
  595. pay_namt = sheet1.GetCellValue(i,"PAY_NAMT");
  596. if(isEmptyVal(pay_namt))
  597. pay_namt = isNull;
  598. sContHash = sContHash
  599. + sTemplate + sColumDelimiter
  600. + sMainVendcd + sColumDelimiter
  601. + cont_amt + sColumDelimiter
  602. + cont_sdate + sColumDelimiter
  603. + cont_edate + sColumDelimiter
  604. + prv_pay_amt + sColumDelimiter
  605. + cur_pay_amt + sColumDelimiter
  606. + scont_amt + sColumDelimiter
  607. + pay_namt + sRowDelimiter
  608. }
  609. }
  610. $("#CONT_HASH").val(sContHash);
  611. if(confirm("서명 하시겠습니까?")){
  612. SignData();
  613. }
  614. }
  615. function isEmptyVal( value ) {
  616. if(value.length == 0){
  617. return true;
  618. }
  619. if( value == "" ) {
  620. return true;
  621. }
  622. return false;
  623. }
  624. //-->
  625. </script>
  626. <modular:search id="form1">
  627. <modular:key id="fevent" />
  628. </modular:search>
  629. <form id="form1" name="form1" method="post" modular:type="search">
  630. <INPUT type="hidden" name="fevent" id="fevent" value="" />
  631. <INPUT type="hidden" name="pdf" id="pdf" value="" />
  632. <input type="hidden" name="p_page_gubun" id="p_page_gubun" value="<%=params.get("p_page_gubun") %>" />
  633. <input type="hidden" name="p_List" id="p_List" value="<%=params.get("p_List") %>" />
  634. <input type="hidden" name="p_sub_cont_mod_id" id="p_sub_cont_mod_id" value="<%=vo.get("sub_cont_mod_id") %>" />
  635. <input type="hidden" name="p_acmp_yyyy" id="p_acmp_yyyy" value="<%=vo.get("acmp_yyyy") %>" />
  636. <input type="hidden" name="p_corp_id" id="p_corp_id" value="<%=vo.get("corp_id") %>" />
  637. <input type="hidden" name="p_soc_cd" id="p_soc_cd" value= "<%=params.get("p_soc_cd") %>" />
  638. <input type="hidden" name="sub_cont_mod_id" id="sub_cont_mod_id" value="<%=vo.get("sub_cont_mod_id") %>" />
  639. <input type="hidden" name="acmp_yyyy" id="acmp_yyyy" value="<%=vo.get("acmp_yyyy") %>" />
  640. <input type="hidden" name="corp_id" id="corp_id" value="<%=vo.get("corp_id") %>" />
  641. <input type="hidden" name="soc_cd" id="soc_cd" value= "<%=params.get("p_soc_cd") %>" />
  642. <input type="hidden" name="dept_cd" id="dept_cd" value= "<%=vo.get("dept_cd") %>" />
  643. <input type="hidden" name="dept_nm" id="dept_nm" value= "<%=vo.get("dept_name") %>" />
  644. <input type="hidden" name="isu_vendcd" id="isu_vendcd" value= "<%=vo.get("isu_vendcd") %>" />
  645. <input type="hidden" name="con_amt" id="con_amt" value= "<%=vo.get("con_amt") %>" />
  646. <input type="hidden" name="prog_stat_cd" id="prog_stat_cd" value= "<%=vo.get("prog_stat_cd") %>" />
  647. <input type="hidden" name="p_success_gubun" id="p_success_gubun" value= "<%=params.get("p_success_gubun") %>" />
  648. <input type="hidden" name="p_yyyy" id="p_yyyy" value= "<%=params.get("p_yyyy") %>" />
  649. <input type="hidden" name="p_dept_nm" id="p_dept_nm" value= "<%=params.get("p_dept_nm") %>" />
  650. <input type="hidden" name="p_cont_nm" id="p_cont_nm" value= "<%=params.get("p_cont_nm") %>" />
  651. <input type="hidden" name="COMPOSIT_YN" id="COMPOSIT_YN" value= "<%=vo.get("COMPOSIT_YN") %>" />
  652. <input type="hidden" name="PRV_PAY_AMT_O" id="PRV_PAY_AMT_O" value= "<%=vo.get("PRV_PAY_AMT_O") %>" />
  653. <input type="hidden" name="CUR_PAY_NAMT_O" id="CUR_PAY_NAMT_O" value= "<%=vo.get("CUR_PAY_NAMT_O") %>" />
  654. <!--서명 데이터 정보 START-->
  655. <INPUT type='hidden' name="CONT_HASH" value="">
  656. <INPUT type='hidden' name="sItemInfo" value="">
  657. <INPUT type='hidden' name="CONT_SIGNDATA" value="">
  658. <INPUT type='hidden' name="CONT_SIGNDN" value="">
  659. <INPUT type='hidden' name="signeddata" value="">
  660. <INPUT type='hidden' name="signEnddt" value="">
  661. <div align="left" id="title" style="float: left;">
  662. <ul>
  663. <li>실적증명 상세(<%=vo.get("PROG_STAT_NM").equals("") ? "작성대상" : vo.get("PROG_STAT_NM")%>)</li>
  664. </ul>
  665. </div>
  666. <div style="float: right; margin-top: 16px;">
  667. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_list">목록</a></span>
  668. <!--<span class="btnSearch center" id="btn_preview_area"><a href="javascript:void(0);" id="btn_preview">미리보기</a></span>-->
  669. <span class="btnSearch center" id="btn_save_area"><a href="javascript:void(0);" id="btn_save">저장</a></span>
  670. <span class="btnSearch center" id="signOk"><a href="javascript:void(0);" id="btn_signOk">서명</a></span>
  671. <span class="btnSearch center" id="btn_delete_area"><a href="javascript:void(0);" id="btn_delete">삭제</a></span>
  672. </div>
  673. <!-- 기성실적증명서 정보 -->
  674. <div style="float: left;" class="application-info magT10">
  675. <div class="application-sub-title">
  676. <span class="title">기성실적증명서 정보</span>
  677. </div>
  678. <div class="application-location">
  679. </div>
  680. </div>
  681. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  682. <colgroup>
  683. <col width="15%" />
  684. <col width="35%" />
  685. <col width="15%" />
  686. <col width="35%" />
  687. </colgroup>
  688. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  689. <tr>
  690. <th style="text-align: left;">발 급 협 회</th>
  691. <td>
  692. 대한전문건설협회
  693. </td>
  694. <th style="text-align: left;">&nbsp;</th>
  695. <td>
  696. &nbsp;<%--<input type="text" name="issue_no" id="issue_no" value="<%=vo.get("issue_no") %>" /> --%>
  697. </td>
  698. </tr>
  699. <tr id="reson_area">
  700. <th style="text-align: left;">반려사유</th>
  701. <td colspan="3">
  702. <%=vo.get("return_reson").replace("\n", "<br/>") %>
  703. </td>
  704. </tr>
  705. </table>
  706. <!-- 신청인 -->
  707. <div style="float: left;" class="application-info magT10">
  708. <div class="application-sub-title">
  709. <span class="title">신청인</span>
  710. </div>
  711. <div class="application-location">
  712. </div>
  713. </div>
  714. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  715. <colgroup>
  716. <col width="15%" />
  717. <col width="35%" />
  718. <col width="15%" />
  719. <col width="35%" />
  720. </colgroup>
  721. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  722. <tr>
  723. <th style="text-align: left;">상 호</th>
  724. <td>
  725. <input type="text" name="isu_vendnm" id="isu_vendnm" value="<%=vo.get("ISU_VENDNM") %>" class="bg_gry input_blank" readonly="readonly"/>
  726. </td>
  727. <th style="text-align: left;">대 표 자</th>
  728. <td>
  729. <input type="text" name="isu_pres_nm" id="isu_pres_nm" value="<%=vo.get("isu_pres_nm") %>" class="bg_gry input_blank" readonly="readonly"/>
  730. </td>
  731. </tr>
  732. <tr>
  733. <th style="text-align: left;">영업소 소재지</th>
  734. <td colspan="3">
  735. <input type="text" name="isu_addr" id="isu_addr" value="<%=vo.get("ISU_ADDR") %>" style="width: 100%;" />
  736. </td>
  737. </tr>
  738. </table>
  739. <!-- 공사내역 -->
  740. <div style="float: left;" class="application-info magT10">
  741. <div class="application-sub-title">
  742. <span class="title">공사내역</span>
  743. <img alt="팝업" id="contPopup" name="contPopup" src="/img/buyer/button/bt_search_right.gif" style="vertical-align: middle; cursor: pointer;"/>
  744. </div>
  745. <div class="application-location">
  746. </div>
  747. </div>
  748. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  749. <colgroup>
  750. <col width="15%" />
  751. <col width="35%" />
  752. <col width="15%" />
  753. <col width="35%" />
  754. </colgroup>
  755. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  756. <tr>
  757. <th style="text-align: left;">공 사 명</th>
  758. <td>
  759. <input type="text" name="cont_nm" id="cont_nm" value="<%=vo.get("cont_nm") %>" style="width: 100%;"/>
  760. </td>
  761. <th style="text-align: left;">총 공 사 금 액</th>
  762. <td>
  763. 해당사항 없음
  764. </td>
  765. </tr>
  766. <tr>
  767. <th style="text-align: left;">현 장 소 재 지</th>
  768. <td>
  769. <input type="text" name="work_place" id="work_place" value="<%=vo.get("work_place") %>" class="bg_gry input_blank" readonly="readonly"/>
  770. </td>
  771. <th style="text-align: left;">인 허 가 기 관</th>
  772. <td>
  773. <input type="text" name="lic_org" id="lic_org" value="<%=vo.get("lic_org") %>" class="bg_gry input_blank" style="width: 100%;"/>
  774. </td>
  775. </tr>
  776. <tr>
  777. <th style="text-align: left;">공 사 유 형</th>
  778. <td>
  779. <%-- <input type="text" name="cont_type" id="cont_type" value="<%=vo.get("cont_type") %>" style="width: 100%;"/> --%>
  780. <LABEL for="cont_type1"><INPUT id="cont_type1" name="cont_type" type="radio" name="cont_type1" value="N" <%=vo.get("cont_type").equals("N") ? "checked=\"checked\"" : ""%>>신설공사</LABEL>
  781. <LABEL for="cont_type2"><INPUT id="cont_type2" name="cont_type" type="radio" name="cont_type2" value="M" <%=vo.get("cont_type").equals("M") ? "checked=\"checked\"" : ""%>>유지보수공사</LABEL>
  782. </td>
  783. <th style="text-align: left;">주 력 분 야</th>
  784. <td>
  785. <input type="text" name="main_field" id="main_field" value="<%=vo.get("main_field") %>" style="width: 100%;"/>
  786. </td>
  787. </tr>
  788. <tr>
  789. <th style="text-align: left;">계약연월일</th>
  790. <td >
  791. <input type="text" name="cont_cdate" id="cont_cdate" value="<%=vo.get("cont_cdate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;"/>
  792. </td>
  793. <th style="text-align: left;">인허가연월일</th>
  794. <td>
  795. <input type="text" name="lic_date" id="lic_date" value="<%=vo.get("lic_date") %>" readonly="readonly" class="bg_gry input_blank" style="width: 80px;"/>
  796. <img alt="달력" id="lic_date_img" name="date_img" src="/img/buyer/button/bt_calender.gif" style="vertical-align: middle; cursor: pointer;"/>
  797. </td>
  798. </tr>
  799. <tr>
  800. <th style="text-align: left;">착 공 연 월 일</th>
  801. <td>
  802. <input type="text" name="cont_sdate" id="cont_sdate" value="<%=vo.get("cont_sdate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;" />
  803. </td>
  804. <th style="text-align: left;">준공(예정) 연월일</th>
  805. <td>
  806. <input type="text" name="cont_edate" id="cont_edate" value="<%=vo.get("cont_edate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;" />
  807. </td>
  808. </tr>
  809. <tr>
  810. <th style="text-align: left;">업종(면허)명</th>
  811. <td>
  812. <input type="text" name="lic_nm" id="lic_nm" value="<%=vo.get("lic_nm") %>" style="width: 100%;"/>
  813. </td>
  814. <th style="text-align: left;">면 허 번 호</th>
  815. <td>
  816. <input type="text" name="reg_no" id="reg_no" value="<%=vo.get("reg_no") %>" style="width: 100%;"/>
  817. </td>
  818. </tr>
  819. <tr>
  820. <th style="text-align: left;">당년도계약액 또는 이월액</th>
  821. <td>
  822. <input type="text" name="cur_cont_amt" id="cur_cont_amt" value="<%=vo.get("cur_cont_amt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  823. </td>
  824. <th style="text-align: left;">계약금액(총계약금액)</th>
  825. <td>
  826. <input type="text" name="cont_tamt" id="cont_tamt" value="<%=vo.get("cont_tamt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20" /> 천원
  827. (<input type="text" name="cont_tamt_o" id="cont_tamt_o" value="<%=vo.get("cont_tamt_O") %>" style="text-align: right; width: 70px;" class="numberic bg_gry input_blank" readonly="readonly" /> )
  828. </td>
  829. </tr>
  830. <tr>
  831. <th style="text-align: left;">당년도기성액(총기성액)</th>
  832. <td>
  833. <input type="text" name="cur_pay_amt" id="cur_pay_amt" value="<%=vo.get("cur_pay_amt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  834. (<input type="text" name="cur_pay_amt_o" id="cur_pay_amt_o" value="<%=vo.get("cur_pay_amt_O") %>" style="text-align: right; width: 70px;" class="numberic bg_gry input_blank" readonly="readonly" /> )
  835. </td>
  836. <th style="text-align: left;">전년도까지 누계기성액</th>
  837. <td>
  838. <input type="text" name="prv_pay_amt" id="prv_pay_amt" value="<%=vo.get("prv_pay_amt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  839. </td>
  840. </tr>
  841. <tr>
  842. <th style="text-align: left;">당년도 기성지급액</th>
  843. <td>
  844. <input type="text" name="cur_pay_samt" id="cur_pay_samt" value="<%=vo.get("cur_pay_samt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  845. </td>
  846. <th style="text-align: left;">전년도까지 누계지급액</th>
  847. <td>
  848. <input type="text" name="prv_pay_samt" id="prv_pay_samt" value="<%=vo.get("prv_pay_samt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  849. </td>
  850. </tr>
  851. <tr>
  852. <th style="text-align: left;">기타</th>
  853. <td colspan="3">
  854. (공사의 규모, 공법, 공동도급 내역 등)<br/>
  855. <textarea rows="5" cols="100" name="etc" id="etc"><%=vo.get("etc") %></textarea>
  856. </td>
  857. </tr>
  858. <tr>
  859. <th style="text-align: left;">공종</th>
  860. <td>
  861. <%=CommCodeManager.getSelectCodeSearchList("RESULT_01","ADD_01","height=18;width:180px;","<option value=''>--선택--</option>", vo.get("ADD_01"),"","DETAILCD") %>
  862. </td>
  863. <th style="text-align: left;">세부공종(전문)</th>
  864. <td>
  865. <%= HTMLMaker.getSelectTag(ADD_02, "RESULT_CD", "RESULT_NAME" , "ADD_02", "style='width:28%;height=18;'", "<OPTION value=''>-- 선택 --</OPTION>", vo.get("ADD_02"), 0) %>
  866. </td>
  867. </tr>
  868. </table>
  869. <!-- 복합공종-->
  870. <div style="float: left;" class="application-info magT10">
  871. <div class="application-sub-title">
  872. <span class="title">복합공종(타공종 포함) 실적 내용 (단위:천원, 부가세 포함) <input type="checkbox" id="viewSheet"></span>
  873. </div>
  874. <div class="application-location">
  875. </div>
  876. </div>
  877. <div id="sheetDiv">
  878. <div style="float: right; margin-top: -23px; margin-bottom: 5px;" id="sheet1_btn">
  879. <span class="btnSearch center" id="btn_sheet_add_area"><a href="javascript:void(0);" id="btn_sheet_add">추가</a></span>
  880. <!-- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_sheet_delete">삭제</a></span> -->
  881. </div>
  882. <!-- 시트 -->
  883. <div style="width: 100%; height: 150px; margin-top: 5px; margin-bottom: 30px;">
  884. <!-- 데이터 영역 : 시작 -->
  885. <!-- ibsheet7 그리드 생성 -->
  886. <script>createIBSheet("sheet1","100%", "150px;");</script>
  887. <!-- 데이터 영역 : 종료 -->
  888. </div>
  889. </div>
  890. <!-- 공사내역 -->
  891. <div style="float: left;" id="isuDiv" class="application-info magT10">
  892. <div class="application-sub-title">
  893. <span class="title">발급요청자 정보</span>
  894. </div>
  895. <div class="application-location">
  896. </div>
  897. </div>
  898. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  899. <colgroup>
  900. <col width="15%" />
  901. <col width="35%" />
  902. <col width="15%" />
  903. <col width="35%" />
  904. </colgroup>
  905. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  906. <tr>
  907. <th style="text-align: left;">담당자명</th>
  908. <td>
  909. <input type="text" name="isu_charge_nm" id="isu_charge_nm" value="<%=vo.get("isu_charge_nm").equals("") ? user.get("user_name") : vo.get("isu_charge_nm") %>" />
  910. </td>
  911. <th style="text-align: left;">휴대전화</th>
  912. <td>
  913. <input type="text" name="isu_req_hp1" id="isu_req_hp1" value="<%=vo.get("isu_req_hp1").equals("") ? user.get("hp1") : vo.get("isu_req_hp1") %>" style="width: 80px;" maxlength="3" number="true"/> -
  914. <input type="text" name="isu_req_hp2" id="isu_req_hp2" value="<%=vo.get("isu_req_hp2").equals("") ? user.get("hp2") : vo.get("isu_req_hp2") %>" style="width: 120px;" maxlength="4" number="true"/> -
  915. <input type="text" name="isu_req_hp3" id="isu_req_hp3" value="<%=vo.get("isu_req_hp3").equals("") ? user.get("hp3") : vo.get("isu_req_hp3") %>" style="width: 120px;" maxlength="4" number="true"/>
  916. </td>
  917. </tr>
  918. </table>
  919. <%if(vo.get("prog_stat_cd").equals("30")){ %>
  920. <div id="file_area" style="width: 100%;">
  921. <!-- 첨부파일 -->
  922. <div style="float: left;" class="application-info magT10">
  923. <div class="application-sub-title">
  924. <span class="title">첨부파일</span>
  925. </div>
  926. <div class="application-location">
  927. </div>
  928. </div>
  929. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  930. <colgroup>
  931. <col width="15%" />
  932. <col width="*" />
  933. </colgroup>
  934. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  935. <tr>
  936. <th style="text-align: left;">첨부파일</th>
  937. <td colspan="3">
  938. <div id="auto_attach_file_view" class="attach_file_view">
  939. <ul>
  940. <%
  941. for(int i=0; i<fileRowSet.size(); i++)
  942. {
  943. %>
  944. <li>
  945. <a href="/common/file/FileDownloadServlet?mode=fpDown&filePath=<%=fileRowSet.getRow(i).get("FILE_PATH")%>&fileName=<%=URLEncoder.encode(fileRowSet.getRow(i).get("FILE_NAME"), "UTF-8")%>&fileRealName=<%=fileRowSet.getRow(i).get("REAL_FILE_NAME")%>"><%=i+1%> : <%=fileRowSet.getRow(i).get("FILE_NAME")%> (<%=fileRowSet.getRow(i).get("FILE_SIZE").trim() %>)</a>
  946. </li>
  947. <%
  948. }
  949. %>
  950. </ul>
  951. </div>
  952. </td>
  953. </tr>
  954. </table>
  955. </div>
  956. <%} %>
  957. </form>
  958. <!-- ------------------서명 요청 처리 로직-------- -->
  959. <SCRIPT LANGUAGE="JavaScript">
  960. function SignData()
  961. {
  962. var VendorCd = "<%=vo.get("isu_vendcd")%>";
  963. // VendorCd = '2234567890';
  964. var sOrgnData = $("#CONT_HASH").val();
  965. unisign.SignDataNVerifyVID( sOrgnData, null, VendorCd, function( resultObject ) {
  966. alert("sOrgnData : "+sOrgnData+", VendorCd : "+VendorCd+", : resultObject "+resultObject);
  967. if( !resultObject || resultObject.resultCode != 0 ){
  968. if( resultObject.resultCode == '14208'){
  969. alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
  970. } else if( resultObject.resultCode == '999'){
  971. alert("사용자 DN 선택이 취소 되었습니다.");
  972. } else {
  973. alert( resultObject.resultMessage);
  974. }
  975. return;
  976. }
  977. var signeddata = resultObject.signedData;
  978. var userdn = resultObject.certAttrs.subjectName;
  979. $("#CONT_SIGNDATA").val(signeddata);
  980. $("#CONT_SIGNDN").val(userdn);
  981. $("#fevent").val("SIGN_OK");
  982. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/ResultDetail03_sheet.screen";
  983. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  984. }
  985. );
  986. }
  987. </SCRIPT>
  988. <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
  989. </div>
  990. <!-- 전자인증 모듈 설정 //-->
  991. <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
  992. <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
  993. <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
  994. <!-- 전자인증 모듈 설정 //-->