PurResultDetail03.jsp 39 KB

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