PurResultDetail04.jsp 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828
  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. <%@ include file="/jsp/work/taglib.jsp" %>
  15. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  16. <%
  17. ctx.init(request, response);
  18. HandlerStorage storage = ctx.getHandlerStorage();
  19. ValueObject params = storage.getParams();
  20. ValueObject user = storage.getUser();
  21. ValueObject vo = storage.getValueObject("ResultDetail04BizVo");
  22. RowSet fileRowSet = storage.getRowSet("RESULT_PDF");
  23. String pageEvent = storage.getEvent();
  24. %>
  25. <script language="javascript" src="/js/report.js"></script>
  26. <script type="text/javascript">
  27. <!--
  28. $(document).on("keyup", "input:text[numberOnly]", function()
  29. {
  30. $(this).val( $(this).val().replace(/[^0-9]/gi,"") ); //숫자만입력 정규식...
  31. $(this).val($(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(',')); //콤마찍기 정규식...귀찮ㄹ타
  32. });
  33. $(document).on("keyup", "input:text[number]", function()
  34. {
  35. $(this).val( $(this).val().replace(/[^0-9]/gi,"") ); //숫자만입력 정규식...
  36. });
  37. $(document).ready(function(){
  38. var prog_stat_cd = "<%=vo.get("prog_stat_cd")%>";
  39. if($("#p_success_gubun").val() == "R")
  40. {
  41. $(':radio[name="p_reson"]').attr("disabled", true);
  42. $(':input').attr("readonly", true);
  43. $(':input').addClass("bg_gry");
  44. }
  45. //2016.4.7
  46. if(prog_stat_cd == "91" )
  47. {
  48. $("#reson_area").css("display", "table-row");
  49. //2016.1.11 금액관련 모두 수정가능
  50. }
  51. else
  52. {
  53. $("#reson_area").css("display", "none");
  54. //2016.4.7금액관련 모두 수정 불가
  55. if ($("#viewSheet").is(":checked") == false)
  56. {
  57. /*$("#cont_tamt").attr("disabled", true);
  58. $("#prv_trans_amt").attr("disabled", true);
  59. $("#cur_cont_amt").attr("disabled", true);
  60. $("#cur_pay_amt").attr("disabled", true);
  61. $("#sub_amt").attr("disabled", true);
  62. $("#cur_pay_namt").attr("disabled", true); 2017.01.*/
  63. }
  64. }
  65. if(prog_stat_cd == "30" )
  66. {
  67. //$("#viewSheet").css("display", "none");
  68. $("#btn_sheet_add_area").css("display", "none");
  69. }
  70. if($("#p_page_gubun").val() == "info")
  71. {
  72. if($("#prog_stat_cd").val() == "10" || $("#prog_stat_cd").val() == "00" || $("#prog_stat_cd").val() == "91")
  73. {
  74. $("#signOk").css("display", "inline");
  75. $("#btn_preview_area").css("display", "inline");
  76. }
  77. else
  78. {
  79. $("#issue_req").css("display", "none");
  80. $("#signOk").css("display", "none");
  81. $("#btn_preview_area").css("display", "none");
  82. $("#btn_save_area").css("display", "none");
  83. $("#btn_delete_area").css("display", "none");
  84. $("#sub_amt").attr("readonly", "true");
  85. $("#reg_no").attr("readonly", "true");
  86. $("#isu_charge_nm").attr("readonly", "true");
  87. $("#isu_req_hp1").attr("readonly", "true");
  88. $("#isu_req_hp2").attr("readonly", "true");
  89. $("#isu_req_hp3").attr("readonly", "true");
  90. }
  91. }
  92. else
  93. {
  94. $("#signOk").css("display", "none");
  95. $("#btn_preview_area").css("display", "none");
  96. $("#btn_delete_area").css("display", "none");
  97. }
  98. });
  99. $(function(){
  100. $.gridInit = function()
  101. {
  102. var init_sheet = {};
  103. init_sheet.Cfg = {SearchMode:2, MergeSheet:msHeaderOnly, Page:10};
  104. init_sheet.Cols = [
  105. {Header:"삭제", Type:"DelCheck", SaveName:"DEL_CHECK", Width:15, Align:"Center", Hidden:"True"}
  106. ];
  107. init_sheet.HeaderMode = {Sort:1};
  108. IBS_InitSheet(sheet1, init_sheet);
  109. sheet1.SetDataAutoTrim(0);
  110. // sheet1.SetEditable(false);
  111. sheet1.SetCountPosition(0);
  112. sheet1.FitColWidth();
  113. }
  114. $(".numberic").each(function(){
  115. $(this).val($(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  116. });
  117. $.callCalendar = function(id){
  118. var str_value = id;
  119. var re = new RegExp("_", "ig");
  120. var resultArray = str_value.match(re);
  121. if(resultArray.length == 1)
  122. {
  123. dlgCalendar(id);
  124. }
  125. else if(resultArray.length == 2)
  126. {
  127. id = id.substring(0, id.lastIndexOf("_"));
  128. dlgCalendar(id);
  129. }
  130. };
  131. $("[name=date_img]").click(function(){
  132. var id = $(this).attr("id").substring(0, $(this).attr("id").lastIndexOf("_"));
  133. dlgCalendar(id);
  134. });
  135. $("#btn_list").click(function(){
  136. //"/portal/result/PurResultIngList.screen"
  137. $("#fevent").val("");
  138. if($("#p_page_gubun").val() == "target")
  139. {
  140. $("#form1").attr("action", "/portal/result/PurResultTargetList.screen");
  141. }
  142. else if($("#p_page_gubun").val() == "info")
  143. {
  144. $("#form1").attr("action", $("#p_List").val() );
  145. }
  146. $("#form1").attr("target", "_self");
  147. $("#form1").attr("method", "post");
  148. $("#form1").submit();
  149. });
  150. $("#btn_save").click(function(){
  151. var f = document.form1;
  152. var gubun = $("#p_page_gubun").val();
  153. if(confirm("저장 하시겠습니까?"))
  154. {
  155. if(gubun == "info")
  156. {
  157. //2016.1.11 반려일때만 금액수정 가능.
  158. if($("#prog_stat_cd").val() != "91"){
  159. $("#prog_stat_cd").val("10");
  160. }
  161. $("#fevent").val("UPDATE_DATA");
  162. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/PurResultDetail03_sheet.screen";
  163. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  164. }
  165. else
  166. {
  167. //$("#prog_stat_cd").val("10");2016.1.11 반려일때만 금액수정 가능.
  168. $("#fevent").val("SAVE_LIST");
  169. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/PurResultDetail03_sheet.screen";
  170. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  171. }
  172. }
  173. });
  174. $("#btn_signOk").click(function(){
  175. if ($("#reg_no").val() == "")
  176. {
  177. alert("면허번호를 입력하십시요.");
  178. $("#reg_no").focus();
  179. return;
  180. }
  181. if ($("#issue_no").val() == "")
  182. {
  183. alert("일련번호를 입력하십시요.");
  184. $("#issue_no").focus();
  185. return;
  186. }
  187. fMakeItemInfo();
  188. });
  189. $("#btn_delete").click(function(){
  190. var f = document.form1;
  191. if(confirm("삭제 하시겠습니까?"))
  192. {
  193. submitXmlRequest("/portal/result/PurResultDetail01_form.screen", "DELETE_DATA", f, "VALUEOBJECT");
  194. }
  195. });
  196. $("#btn_preview").click(function(){
  197. var f = document.form1;
  198. if(confirm("저장후 미리보기를 생성 하시겠습니까?"))
  199. {
  200. $("#fevent").val("UPDATE_DATA");
  201. $("#pdf").val("PREVIEW_PDF");
  202. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/PurResultDetail03_sheet.screen";
  203. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  204. /* $("#fevent").val("PREVIEW_PDF");
  205. submitXmlRequest("/portal/result/PurResultDetail01_form.screen", "PREVIEW_PDF", f); */
  206. }
  207. });
  208. $("#contPopup").click(function(){
  209. var win_id = "ResultContPopup";
  210. var link = "/portal/result/PurResultContPopup.screen";
  211. link += "?pop_win_id="+win_id+"&layerYn=Y";
  212. link += "&subContModId="+$("#p_pur_cont_mod_id").val();
  213. fLayerPop(win_id, link, 550,115, '', '', 'auto');
  214. });
  215. });
  216. function sheet1_OnSaveEnd(code, msg)
  217. {
  218. var event = $("#fevent").val();
  219. var f = document.form1;
  220. document.form1.isSubmit = false;
  221. if(code >= "0")
  222. {
  223. if(event == "SAVE_LIST")
  224. {
  225. alert("저장이 완료되었습니다.");
  226. location.href="/portal/result/PurResultIngList.screen";
  227. }
  228. else if(event == "UPDATE_ISSUE")
  229. {
  230. alert("발급요청을 하였습니다.");
  231. location.href="/portal/result/PurResultIngList.screen";
  232. }
  233. else if(event == "SIGN_OK")
  234. {
  235. alert("서명 되었습니다.");
  236. $("#fevent").val("GET_DETAIL_04");
  237. $("#form1").attr("action", "/portal/result/PurResultDetail04.screen");
  238. $("#form1").submit();
  239. }
  240. else if($("#pdf").val()=="PREVIEW_PDF")
  241. {
  242. var reportInfo = new ReportInfo();
  243. reportInfo.title = "한국정보통신공사협회 실적증명";
  244. reportInfo.reportName = "/report/mrd/buyer/supplier/pur_info_application.mrd";
  245. reportInfo.set("<%=vo.get("corp_id")%>"); // $1
  246. reportInfo.set("<%=vo.get("pur_cont_mod_id")%>"); // $2
  247. reportInfo.set("<%=vo.get("acmp_yyyy")%>"); // $3
  248. reportInfo.set("<%=vo.get("soc_cd")%>"); // $4
  249. reportInfo.width = 1000; // Default: 1024
  250. reportInfo.height = 700; // Default: 768
  251. reportInfo.showPopup();
  252. $("#pdf").val("");
  253. }
  254. else
  255. {
  256. alert("수정이 완료되었습니다.");
  257. $("#fevent").val("GET_DETAIL_04");
  258. $("#form1").attr("action", "/portal/result/PurResultDetail04.screen");
  259. $("#form1").submit();
  260. }
  261. }
  262. }
  263. function doResult(resultObj) {
  264. try
  265. {
  266. document.form1.isSubmit = false;
  267. if( resultObj.getRequestEvent() == "SAVE_DATA")
  268. {
  269. if( resultObj.getSuccess() )
  270. {
  271. alert("등록 되었습니다.");
  272. location.href="/portal/result/PurResultIngList.screen";
  273. }
  274. else
  275. {
  276. // dlgErrorMsg(resultObj.getMessage);
  277. alert(resultObj.getValueObject().get("errMsg"));
  278. }
  279. }
  280. else if(resultObj.getRequestEvent() == "UPDATE_DATA")
  281. {
  282. if( resultObj.getSuccess() )
  283. {
  284. alert("수정 되었습니다.");
  285. $("#fevent").val("GET_DETAIL_04");
  286. $("#form1").attr("action", "/portal/result/PurResultDetail04.screen");
  287. $("#form1").submit();
  288. // location.href="/portal/result/PurResultIngList.screen";
  289. }
  290. else
  291. {
  292. // dlgErrorMsg(resultObj.getMessage);
  293. alert(resultObj.getValueObject().get("errMsg"));
  294. }
  295. }
  296. else if(resultObj.getRequestEvent() == "UPDATE_ISSUE")
  297. {
  298. if( resultObj.getSuccess() )
  299. {
  300. alert("발급요청이 되었습니다.");
  301. location.href="/portal/result/PurResultIngList.screen";
  302. }
  303. else
  304. {
  305. // dlgErrorMsg(resultObj.getMessage);
  306. alert(resultObj.getValueObject().get("errMsg"));
  307. }
  308. }
  309. else if( resultObj.getRequestEvent() == "DELETE_DATA")
  310. {
  311. if( resultObj.getSuccess() )
  312. {
  313. alert("삭제 되었습니다.");
  314. location.href="/portal/result/PurResultTargetList.screen";
  315. }
  316. else
  317. {
  318. // dlgErrorMsg(resultObj.getMessage);
  319. alert(resultObj.getValueObject().get("errMsg"));
  320. }
  321. }
  322. else if(resultObj.getRequestEvent() == "SIGN_OK")
  323. {
  324. alert("서명 되었습니다.");
  325. $("#fevent").val("GET_DETAIL_03");
  326. $("#form1").attr("action", "/portal/result/PurResultDetail04.screen");
  327. $("#form1").submit();
  328. }
  329. else if( resultObj.getRequestEvent() == "PREVIEW_PDF")
  330. {
  331. if( resultObj.getSuccess() )
  332. {
  333. alert("미리보기가 생성 되었습니다.");
  334. 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";
  335. window.open(url, "_blank");
  336. }
  337. else
  338. {
  339. // dlgErrorMsg(resultObj.getMessage);
  340. alert(resultObj.getValueObject().get("errMsg"));
  341. }
  342. }
  343. }
  344. catch(errorObject) {
  345. showErrorDlg("doResult()", errorObject);
  346. }
  347. }
  348. function fMakeItemInfo(){
  349. var sColumDelimiter = "┃";
  350. var sRowDelimiter = "↕";
  351. var sSumDelimiter = "╂";
  352. var sEncDelimiter = "⇔";
  353. var isNull = "NULL";
  354. //해시
  355. var sContHash = "";
  356. var sTemplate = "01";
  357. var sMainVendcd = "<%=vo.get("isu_vendcd") %>";
  358. //var sMainVendcd = "1234567890"; // 원사업자번호
  359. var issue_no = "<%=vo.get("issue_no") %>";
  360. var reg_no = "<%=vo.get("reg_no") %>";
  361. var prv_trans_amt = "<%=vo.get("prv_trans_amt") %>";
  362. var cur_pay_amt = "<%=vo.get("cur_pay_amt") %>";
  363. var sub_amt = "<%=vo.get("sub_amt") %>";
  364. var cur_pay_namt = "<%=vo.get("cur_pay_namt") %>";
  365. sContHash=issue_no +sColumDelimiter
  366. +reg_no +sColumDelimiter
  367. +prv_trans_amt +sColumDelimiter
  368. +cur_pay_amt +sColumDelimiter
  369. +sub_amt +sColumDelimiter
  370. +cur_pay_namt +sRowDelimiter;
  371. $("#CONT_HASH").val(sContHash);
  372. if(confirm("서명 하시겠습니까?")){
  373. SignData();
  374. }
  375. }
  376. function isEmptyVal( value ) {
  377. if(value.length == 0){
  378. return true;
  379. }
  380. if( value == "" ) {
  381. return true;
  382. }
  383. return false;
  384. }
  385. //-->
  386. </script>
  387. <modular:search id="form1">
  388. <modular:key id="fevent" />
  389. </modular:search>
  390. <form id="form1" name="form1" method="post" modular:type="search">
  391. <INPUT type="hidden" name="fevent" id="fevent" value="" />
  392. <INPUT type="hidden" name="pdf" id="pdf" value="" />
  393. <input type="hidden" name="p_page_gubun" id="p_page_gubun" value="<%=params.get("p_page_gubun") %>" />
  394. <input type="hidden" name="p_List" id="p_List" value="<%=params.get("p_List") %>" />
  395. <input type="hidden" name="p_pur_cont_mod_id" id="p_pur_cont_mod_id" value="<%=vo.get("pur_cont_mod_id") %>" />
  396. <input type="hidden" name="p_acmp_yyyy" id="p_acmp_yyyy" value="<%=vo.get("acmp_yyyy") %>" />
  397. <input type="hidden" name="p_corp_id" id="p_corp_id" value="<%=vo.get("corp_id") %>" />
  398. <input type="hidden" name="p_soc_cd" id="p_soc_cd" value= "<%=params.get("p_soc_cd") %>" />
  399. <input type="hidden" name="pur_cont_mod_id" id="pur_cont_mod_id" value="<%=vo.get("pur_cont_mod_id") %>" />
  400. <input type="hidden" name="acmp_yyyy" id="acmp_yyyy" value="<%=vo.get("acmp_yyyy") %>" />
  401. <input type="hidden" name="corp_id" id="corp_id" value="<%=vo.get("corp_id") %>" />
  402. <input type="hidden" name="soc_cd" id="soc_cd" value= "<%=params.get("p_soc_cd") %>" />
  403. <input type="hidden" name="dept_cd" id="dept_cd" value= "<%=vo.get("dept_cd") %>" />
  404. <input type="hidden" name="dept_nm" id="dept_nm" value= "<%=vo.get("dept_name") %>" />
  405. <input type="hidden" name="isu_vendcd" id="isu_vendcd" value= "<%=vo.get("isu_vendcd") %>" />
  406. <input type="hidden" name="con_amt" id="con_amt" value= "<%=vo.get("con_amt") %>" />
  407. <input type="hidden" name="prog_stat_cd" id="prog_stat_cd" value= "<%=vo.get("prog_stat_cd") %>" />
  408. <input type="hidden" name="p_success_gubun" id="p_success_gubun" value= "<%=params.get("p_success_gubun") %>" />
  409. <input type="hidden" name="p_yyyy" id="p_yyyy" value= "<%=params.get("p_yyyy") %>" />
  410. <input type="hidden" name="p_dept_nm" id="p_dept_nm" value= "<%=params.get("p_dept_nm") %>" />
  411. <input type="hidden" name="p_cont_nm" id="p_cont_nm" value= "<%=params.get("p_cont_nm") %>" />
  412. <input type="hidden" name="PRV_PAY_AMT_O" id="PRV_PAY_AMT_O" value= "<%=vo.get("PRV_PAY_AMT_O") %>" />
  413. <input type="hidden" name="CUR_PAY_NAMT_O" id="CUR_PAY_NAMT_O" value= "<%=vo.get("CUR_PAY_NAMT_O") %>" />
  414. <!--서명 데이터 정보 START-->
  415. <INPUT type='hidden' name="CONT_HASH" value="">
  416. <INPUT type='hidden' name="sItemInfo" value="">
  417. <INPUT type='hidden' name="CONT_SIGNDATA" value="">
  418. <INPUT type='hidden' name="CONT_SIGNDN" value="">
  419. <INPUT type='hidden' name="signeddata" value="">
  420. <INPUT type='hidden' name="signEnddt" value="">
  421. <div align="left" id="title" style="float: left;">
  422. <ul>
  423. <li>실적증명 상세(<%=vo.get("PROG_STAT_NM").equals("") ? "작성대상" : vo.get("PROG_STAT_NM")%>)</li>
  424. </ul>
  425. </div>
  426. <div style="float: right; margin-top: 16px;">
  427. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_list">목록</a></span>
  428. <!--<span class="btnSearch center" id="btn_preview_area"><a href="javascript:void(0);" id="btn_preview">미리보기</a></span>-->
  429. <span class="btnSearch center" id="btn_save_area"><a href="javascript:void(0);" id="btn_save">저장</a></span>
  430. <span class="btnSearch center" id="signOk"><a href="javascript:void(0);" id="btn_signOk">서명</a></span>
  431. <span class="btnSearch center" id="btn_delete_area"><a href="javascript:void(0);" id="btn_delete">삭제</a></span>
  432. </div>
  433. <!-- 기성실적증명서 정보 -->
  434. <div style="float: left;" class="application-info magT10">
  435. <div class="application-sub-title">
  436. <span class="title">기성실적증명서 정보</span>
  437. </div>
  438. <div class="application-location">
  439. </div>
  440. </div>
  441. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  442. <colgroup>
  443. <col width="15%" />
  444. <col width="35%" />
  445. <col width="15%" />
  446. <col width="35%" />
  447. </colgroup>
  448. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  449. <tr>
  450. <th style="text-align: left;">발 급 협 회</th>
  451. <td>
  452. 한국정보통신공사협회
  453. </td>
  454. <th style="text-align: left;">일 련 번 호</th>
  455. <td>
  456. <input type="text" name="issue_no" id="issue_no" value="<%=vo.get("issue_no") %>" />
  457. </td>
  458. </tr>
  459. <tr id="reson_area">
  460. <th style="text-align: left;">반려사유</th>
  461. <td colspan="3">
  462. <%=vo.get("return_reson").replace("\n", "<br/>") %>
  463. </td>
  464. </tr>
  465. </table>
  466. <!-- 신청인 -->
  467. <div style="float: left;" class="application-info magT10">
  468. <div class="application-sub-title">
  469. <span class="title">신청인</span>
  470. </div>
  471. <div class="application-location">
  472. </div>
  473. </div>
  474. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  475. <colgroup>
  476. <col width="15%" />
  477. <col width="35%" />
  478. <col width="15%" />
  479. <col width="35%" />
  480. </colgroup>
  481. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  482. <tr>
  483. <th style="text-align: left;">상 호</th>
  484. <td>
  485. <input type="text" name="isu_vendnm" id="isu_vendnm" value="<%=vo.get("ISU_VENDNM") %>" class="bg_gry input_blank" readonly="readonly"/>
  486. </td>
  487. <th style="text-align: left;">면허번호</th>
  488. <td>
  489. <input type="text" name="reg_no" id="reg_no" value="<%=vo.get("reg_no") %>" style="width: 100%;" />
  490. </td>
  491. </tr>
  492. <tr>
  493. <th style="text-align: left;">대표자</th>
  494. <td>
  495. <input type="text" name="isu_pres_nm" id="isu_pres_nm" value="<%=vo.get("isu_pres_nm") %>" class="bg_gry input_blank" readonly="readonly"/>
  496. </td>
  497. <th style="text-align: left;">전화번호</th>
  498. <td>
  499. <input type="text" name="isu_phone" id="isu_phone" value="<%=vo.get("isu_phone") %>" class="bg_gry input_blank" readonly="readonly"/>
  500. </td>
  501. </tr>
  502. <tr>
  503. <th style="text-align: left;">영업소 소재지</th>
  504. <td colspan="3">
  505. <input type="text" name="isu_addr" id="isu_addr" value="<%=vo.get("ISU_ADDR") %>" style="width: 100%;" />
  506. </td>
  507. </tr>
  508. </table>
  509. <!-- 공사내역 -->
  510. <div style="float: left;" class="application-info magT10">
  511. <div class="application-sub-title">
  512. <span class="title">공사내역</span>
  513. <img alt="팝업" id="contPopup" name="contPopup" src="/img/buyer/button/bt_search_right.gif" style="vertical-align: middle; cursor: pointer;"/>
  514. </div>
  515. <div class="application-location">
  516. </div>
  517. </div>
  518. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  519. <colgroup>
  520. <col width="15%" />
  521. <col width="35%" />
  522. <col width="15%" />
  523. <col width="35%" />
  524. </colgroup>
  525. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  526. <tr>
  527. <th style="text-align: left;">공사명</th>
  528. <td colspan="3">
  529. <input type="text" name="cont_nm" id="cont_nm" value="<%=vo.get("cont_nm") %>" style="width: 100%;" />
  530. </td>
  531. </tr>
  532. <tr>
  533. <th style="text-align: left;">계약연월</th>
  534. <td colspan="3">
  535. <input type="text" name="cont_cdate" id="cont_cdate" value="<%=vo.get("cont_cdate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;"/>
  536. <!-- <img alt="달력" id="cont_cdate_img" name="date_img" src="/img/buyer/icon/icon_calendar.gif" style="vertical-align: middle; cursor: pointer;"/> -->
  537. </td>
  538. </tr>
  539. <tr>
  540. <th style="text-align: left;">착공연월</th>
  541. <td>
  542. <input type="text" name="cont_sdate" id="cont_sdate" value="<%=vo.get("cont_sdate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;" />
  543. <!-- <img alt="달력" id="cont_sdate_img" name="date_img" src="/img/buyer/icon/icon_calendar.gif" style="vertical-align: middle; cursor: pointer;"/> -->
  544. </td>
  545. <th style="text-align: left;">준공연월</th>
  546. <td>
  547. <input type="text" name="cont_edate" id="cont_edate" value="<%=vo.get("cont_edate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;" />
  548. </td>
  549. </tr>
  550. <tr>
  551. <th style="text-align: left;">총 계약금액</th>
  552. <td>
  553. <input type="text" name="cont_tamt" id="cont_tamt" value="<%=vo.get("cont_tamt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" /> 천원
  554. (<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" /> )
  555. </td>
  556. <th style="text-align: left;">전년도 이월공사액</th>
  557. <td>
  558. <input type="text" name="prv_trans_amt" id="prv_trans_amt" value="<%=vo.get("prv_trans_amt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  559. </td>
  560. </tr>
  561. <tr>
  562. <th style="text-align: left;">당년도 계약액</th>
  563. <td>
  564. <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" /> 천원
  565. </td>
  566. <th style="text-align: left;">당년도 기성액</th>
  567. <td>
  568. <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"/> 천원
  569. (<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" /> )
  570. </td>
  571. </tr>
  572. <tr>
  573. <th style="text-align: left;">하도급금액</th>
  574. <td>
  575. <input type="text" name="sub_amt" id="sub_amt" value="<%=vo.get("sub_amt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  576. </td>
  577. <th style="text-align: left;">당년도 미기성액</th>
  578. <td>
  579. <input type="text" name="cur_pay_namt" id="cur_pay_namt" value="<%=vo.get("cur_pay_namt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic" maxlength="20"/> 천원
  580. </td>
  581. </tr>
  582. </table>
  583. <div id="sheetDiv" style="visibility: hidden;">
  584. <script>createIBSheet("sheet1","100%", "0px;");</script>
  585. </div>
  586. <!-- 공사내역 -->
  587. <div style="float: left;" class="application-info magT10">
  588. <div class="application-sub-title">
  589. <span class="title">발급요청자 정보</span>
  590. </div>
  591. <div class="application-location">
  592. </div>
  593. </div>
  594. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  595. <colgroup>
  596. <col width="15%" />
  597. <col width="35%" />
  598. <col width="15%" />
  599. <col width="35%" />
  600. </colgroup>
  601. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  602. <tr>
  603. <th style="text-align: left;">담당자명</th>
  604. <td>
  605. <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") %>" />
  606. </td>
  607. <th style="text-align: left;">휴대전화</th>
  608. <td>
  609. <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"/> -
  610. <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"/> -
  611. <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"/>
  612. </td>
  613. </tr>
  614. </table>
  615. <%if(vo.get("prog_stat_cd").equals("30")){ %>
  616. <div id="file_area" style="width: 100%;">
  617. <!-- 공사내역 -->
  618. <div style="float: left;" class="application-info magT10">
  619. <div class="application-sub-title">
  620. <span class="title">첨부파일</span>
  621. </div>
  622. <div class="application-location">
  623. </div>
  624. </div>
  625. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  626. <colgroup>
  627. <col width="15%" />
  628. <col width="*" />
  629. </colgroup>
  630. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  631. <tr>
  632. <th style="text-align: left;">첨부파일</th>
  633. <td colspan="3">
  634. <div id="auto_attach_file_view" class="attach_file_view">
  635. <ul>
  636. <%
  637. for(int i=0; i<fileRowSet.size(); i++)
  638. {
  639. %>
  640. <li>
  641. <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>
  642. </li>
  643. <%
  644. }
  645. %>
  646. </ul>
  647. </div>
  648. </td>
  649. </tr>
  650. </table>
  651. </div>
  652. <%} %>
  653. </form>
  654. <!-- ------------------서명 요청 처리 로직-------- -->
  655. <SCRIPT LANGUAGE="JavaScript">
  656. function SignData()
  657. {
  658. var VendorCd = "<%=vo.get("isu_vendcd")%>";
  659. // VendorCd = '2234567890';
  660. var sOrgnData = $("#CONT_HASH").val();
  661. unisign.SignDataNVerifyVID( sOrgnData, null, VendorCd, function( resultObject ) {
  662. if( !resultObject || resultObject.resultCode != 0 ){
  663. // alert( resultObject.resultMessage + "\n오류코드 : " + resultObject.resultCode );
  664. if( resultObject.resultCode == '14208'){
  665. alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
  666. } else if( resultObject.resultCode == '999'){
  667. alert("사용자 DN 선택이 취소 되었습니다.");
  668. } else {
  669. alert( resultObject.resultMessage);
  670. }
  671. return;
  672. }
  673. var signeddata = resultObject.signedData;
  674. var userdn = resultObject.certAttrs.subjectName;
  675. // alert(signeddata);//인증서 이름
  676. // alert(userdn);//인증서 이름
  677. $("#CONT_SIGNDATA").val(signeddata);
  678. $("#CONT_SIGNDN").val(userdn);
  679. $("#fevent").val("SIGN_OK");
  680. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/PurResultDetail03_sheet.screen";
  681. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  682. }
  683. );
  684. }
  685. </SCRIPT>
  686. <div id="CONTROL_LAYER" style="position:absolute; z-index:10; visibility:hidden;">
  687. <script>
  688. </script>
  689. </div>
  690. <!-- 전자인증 모듈 설정 //-->
  691. <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
  692. <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
  693. <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
  694. <!-- 전자인증 모듈 설정 //-->