PurResultDetail01.jsp 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  1. <%--
  2. - FileName : OutSupplierApprList.jsp
  3. - Author(s) : Sung Min Lee
  4. - Date : 2014.09.02
  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 = new RowSetImpl();
  26. String pageEvent = storage.getEvent();
  27. %>
  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, SumPosition:1};
  44. init_sheet.Cols = [
  45. {Header:"삭제", Type:"DelCheck", SaveName:"DEL_CHECK", Width:50, Align:"Center", Hidden:"True"},
  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:"Text", SaveName:"CONT_NM", Width:80, Align:"Center"},
  52. {Header:"계약액", Type:"AutoSum", SaveName:"CONT_AMT", Width:80, Align:"Right", Format:"#,##0"},
  53. {Header:"착공년월일", Type:"Date", SaveName:"CONT_SDATE", Width:80, Align:"Right"},
  54. {Header:"준공년월일", Type:"Date", SaveName:"CONT_EDATE", Width:80, Align:"Right"},
  55. {Header:"전년도 기성액", Type:"AutoSum", SaveName:"PRV_PAY_AMT", Width:80, Align:"Right", Format:"#,##0"},
  56. {Header:"당년도 기성액", Type:"AutoSum", SaveName:"CUR_PAY_AMT", Width:80, Align:"Right", Format:"#,##0"},
  57. {Header:"하도급 금액", Type:"AutoSum", SaveName:"SCONT_AMT", Width:80, Align:"Right", Format:"#,##0", Hidden:"True"},
  58. {Header:"미기성 금액", Type:"AutoSum", SaveName:"PAY_NAMT", Width:80, Align:"Right", Format:"#,##0"}
  59. ];
  60. init_sheet.HeaderMode = {Sort:1};
  61. IBS_InitSheet(sheet1, init_sheet);
  62. sheet1.SetEditable(false);
  63. sheet1.SetDataAutoTrim(0);
  64. // sheet1.SetEditable(false);
  65. sheet1.SetCountPosition(0);
  66. sheet1.SetCellText(sheet1.LastRow(), "CONT_NM", "합 계");
  67. sheet1.GetSumFontBold(1);
  68. sheet1.FitColWidth();
  69. }
  70. $.searchList = function()
  71. {
  72. $("#fevent").val("GET_LIST");
  73. var url = Modular.model.PageContext.CONTEXT_ROOT + "/portal/result/PurResultDetail03_sheet.screen";
  74. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  75. };
  76. $("#btn_sheet_add").click(function(){
  77. sheet1.DataInsert(-1);
  78. });
  79. $(".numberic").each(function(){
  80. $(this).val($(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
  81. });
  82. $.callCalendar = function(id){
  83. var str_value = id;
  84. var re = new RegExp("_", "ig");
  85. var resultArray = str_value.match(re);
  86. if(resultArray.length == 1)
  87. {
  88. dlgCalendar(id);
  89. }
  90. else if(resultArray.length == 2)
  91. {
  92. id = id.substring(0, id.lastIndexOf("_"));
  93. dlgCalendar(id);
  94. }
  95. };
  96. $("#btn_list").click(function(){
  97. //"/result/purchase/PurResultIngList.screen"
  98. $("#fevent").val("");
  99. $("#form1").attr("action", "<%=params.get("p_List") %>");
  100. $("#form1").attr("target", "_self");
  101. $("#form1").attr("method", "post");
  102. $("#form1").submit();
  103. });
  104. $("#btn_preview").click(function(){
  105. var reportInfo = new ReportInfo();
  106. reportInfo.title = "대한전문건설협회 실적증명";
  107. reportInfo.reportName = "/report/mrd/buyer/supplier/pur_buld_application2.mrd";
  108. reportInfo.set("<%=vo.get("corp_id")%>"); // $1
  109. reportInfo.set("<%=vo.get("pur_cont_mod_id")%>"); // $2
  110. reportInfo.set("<%=vo.get("acmp_yyyy")%>"); // $3
  111. reportInfo.set("<%=vo.get("soc_cd")%>"); // $4
  112. reportInfo.width = 1000; // Default: 1024
  113. reportInfo.height = 700; // Default: 768
  114. reportInfo.showPopup();
  115. $("#pdf").val("");
  116. });
  117. $("#btn_save").click(function(){
  118. var f = document.form1;
  119. fMakeItemInfo();
  120. if($(':radio[name="p_reson"]:checked').val() == undefined)
  121. {
  122. alert("발급 승인여부를 선택해 주세요.");
  123. return;
  124. }
  125. if(confirm($("#btn_save").text() + " 하시겠습니까?"))
  126. {
  127. if($(':radio[name="p_reson"]:checked').val() == "91" )
  128. {
  129. if($("#p_return_reson").val().trim() == "")
  130. {
  131. alert("반려사유를 입력해 주세요.");
  132. return $("#p_return_reson").focus();
  133. }
  134. $("#fevent").val("SAVE_STATUS");
  135. submitXmlRequest("/result/purchase/PurResultDetail01_form.screen", "SAVE_STATUS", f);
  136. }else{
  137. $("#fevent").val("SIGN_OK");
  138. submitXmlRequest("/result/purchase/PurResultDetail01_form.screen", "SIGN_OK", f);
  139. }
  140. }
  141. });
  142. //2016.1.25
  143. $("#btn_delete").click(function(){
  144. var f = document.form1;
  145. if(confirm( "반려 하시겠습니까?"))
  146. {
  147. $(':radio[name="p_reson"]:checked').val("91");
  148. $("#fevent").val("SAVE_STATUS");
  149. submitXmlRequest("/result/purchase/PurResultDetail01_form.screen", "SAVE_STATUS", f);
  150. }
  151. });
  152. $(':radio[name="p_reson"]').click(function(){
  153. if($(':radio[name="p_reson"]:checked').val() == "91" )
  154. {
  155. $("#reson_area").css("display", "table-row");
  156. $("#btn_save").text("반려");
  157. $("#p_return_reson").val("");
  158. $("#p_return_reson").removeClass();
  159. $("#p_return_reson").attr("readonly", false);
  160. $("#p_return_reson").focus();
  161. }
  162. else
  163. {
  164. $("#reson_area").css("display", "none");
  165. $("#btn_save").text("승인");
  166. $("#p_return_reson").val("");
  167. $("#p_return_reson").addClass("bg_gry");
  168. $("#p_return_reson").attr("readonly", true);
  169. }
  170. });
  171. });
  172. $(document).ready(function(){
  173. $.gridInit(sheet1);
  174. $.searchList();
  175. /* viewSheet(); */
  176. if($("#p_success_gubun").val() == "R")
  177. {
  178. $(':radio[name="p_reson"]').attr("disabled", true);
  179. $(':input').attr("readonly", true);
  180. $(':input[type="text"]').addClass("bg_gry");
  181. $(':input[type="text"]').addClass("input_blank");
  182. }
  183. if($(':radio[name="p_reson"]:checked').val() == "91" )
  184. {
  185. $("#reson_area").css("display", "table-row");
  186. $("#btn_save").text("반려");
  187. $("#p_return_reson").removeClass();
  188. $("#p_return_reson").attr("readonly", false);
  189. $("#p_return_reson").focus();
  190. }
  191. else
  192. {
  193. $("#reson_area").css("display", "none");
  194. $("#btn_save").text("저장");
  195. $("#p_return_reson").val("");
  196. $("#p_return_reson").addClass("bg_gry");
  197. $("#p_return_reson").attr("readonly", true);
  198. }
  199. if($("#p_page_gubun").val() == "info")
  200. {
  201. if($("#prog_stat_cd").val() == "20")
  202. {
  203. $("#btn_issue_req").css("display", "inline");
  204. $(':input').attr("readonly", true);
  205. $(':input[type="text"]').addClass("bg_gry");
  206. $(':input[type="text"]').addClass("input_blank");
  207. // $("#btn_save").css("display", "none");
  208. $("#btn_delete").css("display", "none"); //2016.1.25
  209. }
  210. else if($("#prog_stat_cd").val() == "30")
  211. {
  212. $("#btn_save_area").css("display", "none");
  213. }
  214. else if($("#prog_stat_cd").val() == "91")
  215. {
  216. $("#p_return_reson").removeClass();
  217. $("#p_return_reson").attr("readonly", false);
  218. $(':input').attr("readonly", false);
  219. $("#btn_issue_req").css("display", "none");
  220. $("#btn_delete").css("display", "none");
  221. }
  222. else if($("#prog_stat_cd").val() == "10")
  223. {
  224. $("#btn_issue_req").css("display", "none");
  225. $("#btn_save").css("display", "none");
  226. $("#btn_delete").css("display", "none");
  227. }
  228. else
  229. {
  230. $("#btn_issue_req").css("display", "none");
  231. $("#btn_delete").css("display", "none");
  232. $("#btn_save_area").css("display", "none");
  233. $("#issue_no").attr("readonly", "true");
  234. $("#lic_org").attr("readonly", "true");
  235. $("#lic_date").attr("readonly", "true");
  236. $("#lic_nm").attr("readonly", "true");
  237. $("#reg_no").attr("readonly", "true");
  238. $("#isu_charge_nm").attr("readonly", "true");
  239. $("#etc").attr("readonly", "true");
  240. $("#isu_req_hp1").attr("readonly", "true");
  241. $("#isu_req_hp2").attr("readonly", "true");
  242. $("#isu_req_hp3").attr("readonly", "true");
  243. }
  244. if($("#prog_stat_cd").val() == "91")
  245. {
  246. $("#p_return_reson").removeClass();
  247. $("#p_return_reson").attr("readonly", false);
  248. }
  249. else
  250. {
  251. $("#p_return_reson").val();
  252. }
  253. }
  254. else
  255. {
  256. $("#btn_issue_req").css("display", "none");
  257. }
  258. });
  259. function doResult(resultObj) {
  260. try
  261. {
  262. document.form1.isSubmit = false;
  263. if( resultObj.getRequestEvent() == "SAVE_STATUS")
  264. {
  265. if( resultObj.getSuccess() )
  266. {
  267. alert($("#btn_save").text() + " 되었습니다.");
  268. if($(':radio[name="p_reson"]:checked').val() == "91" )
  269. {
  270. location.href="/result/purchase/PurResultIngList.screen";
  271. }
  272. else
  273. {
  274. location.href="/result/purchase/PurResultFinishList.screen";
  275. }
  276. }
  277. else
  278. {
  279. // dlgErrorMsg(resultObj.getMessage);
  280. alert(resultObj.getValueObject().get("errMsg"));
  281. }
  282. }else if(resultObj.getRequestEvent() == "SIGN_OK"){
  283. if( resultObj.getSuccess() )
  284. {
  285. alert($("#btn_save").text() + " 되었습니다.");
  286. if($(':radio[name="p_reson"]:checked').val() == "91" )
  287. {
  288. location.href="/result/purchase/PurResultIngList.screen";
  289. }
  290. else
  291. {
  292. location.href="/result/purchase/PurResultFinishList.screen";
  293. }
  294. }
  295. else
  296. {
  297. alert("실패하였습니다.");
  298. //alert(resultObj.getValueObject().get("errMsg"));
  299. }
  300. }
  301. }
  302. catch(errorObject) {
  303. showErrorDlg("doResult()", errorObject);
  304. }
  305. }
  306. function fMakeItemInfo(){
  307. var sColumDelimiter = "┃";
  308. var sRowDelimiter = "↕";
  309. var sSumDelimiter = "╂";
  310. var sEncDelimiter = "⇔";
  311. var isNull = "NULL";
  312. //해시
  313. var sContHash = "";
  314. var sTemplate = "01";
  315. <%-- var sMainVendcd = "<%=vo.get("isu_vendcd") %>"; --%>
  316. var sMainVendcd = "1234567890"; // 원사업자번호
  317. var issue_no = "<%=vo.get("issue_no") %>";
  318. var lic_org = "<%=vo.get("lic_org") %>";
  319. var lic_nm = "<%=vo.get("lic_nm") %>";
  320. var reg_no = "<%=vo.get("reg_no") %>";
  321. var cur_cont_amt = "<%=vo.get("cur_cont_amt") %>";
  322. var cur_pay_amt = "<%=vo.get("cur_pay_amt") %>";
  323. var prv_pay_amt = "<%=vo.get("prv_pay_amt") %>";
  324. var cur_pay_samt = "<%=vo.get("cur_pay_samt") %>";
  325. var prv_pay_samt = "<%=vo.get("prv_pay_samt") %>";
  326. var etc = "<%=StringUtils.cvtHTML(vo.get("etc")) %>";
  327. sContHash=issue_no +sColumDelimiter
  328. +lic_org +sColumDelimiter
  329. +lic_nm +sColumDelimiter
  330. +reg_no +sColumDelimiter
  331. +cur_pay_amt +sColumDelimiter
  332. +prv_pay_amt +sColumDelimiter
  333. +cur_pay_samt +sColumDelimiter
  334. +prv_pay_samt +sColumDelimiter
  335. +etc +sRowDelimiter;
  336. var GrowCount = sheet1.LastRow();
  337. for(var i=1; i < GrowCount+1; i++)
  338. {
  339. var cont_nm = "";
  340. var cont_amt = "";
  341. var cont_sdate = "";
  342. var cont_edate = "";
  343. var prv_pay_amt = "";
  344. var cur_pay_amt = "";
  345. var scont_amt = "";
  346. var pay_namt = "";
  347. cont_nm = sheet1.GetCellValue(i,"CONT_NM");
  348. if(cont_nm.length > 0){
  349. cont_amt = sheet1.GetCellValue(i,"CONT_AMT");
  350. if(isEmptyVal(cont_amt))
  351. cont_amt = isNull;
  352. cont_sdate = sheet1.GetCellValue(i,"CONT_SDATE");
  353. if(isEmptyVal(cont_sdate))
  354. cont_sdate = isNull;
  355. cont_edate = sheet1.GetCellValue(i,"CONT_EDATE");
  356. if(isEmptyVal(cont_edate))
  357. cont_edate = isNull;
  358. prv_pay_amt = sheet1.GetCellValue(i,"PRV_PAY_AMT");
  359. if(isEmptyVal(prv_pay_amt))
  360. prv_pay_amt = isNull;
  361. cur_pay_amt = sheet1.GetCellValue(i,"CUR_PAY_AMT");
  362. if(isEmptyVal(cur_pay_amt))
  363. cur_pay_amt = isNull;
  364. scont_amt = sheet1.GetCellValue(i,"SCONT_AMT");
  365. if(isEmptyVal(scont_amt))
  366. scont_amt = isNull;
  367. pay_namt = sheet1.GetCellValue(i,"PAY_NAMT");
  368. if(isEmptyVal(pay_namt))
  369. pay_namt = isNull;
  370. sContHash = sContHash
  371. + sTemplate + sColumDelimiter
  372. + sMainVendcd + sColumDelimiter
  373. + cont_amt + sColumDelimiter
  374. + cont_sdate + sColumDelimiter
  375. + cont_edate + sColumDelimiter
  376. + prv_pay_amt + sColumDelimiter
  377. + cur_pay_amt + sColumDelimiter
  378. + scont_amt + sColumDelimiter
  379. + pay_namt + sRowDelimiter
  380. }
  381. }
  382. $("#CONT_HASH").val(sContHash);
  383. //if(confirm("서명 하시겠습니까?")){
  384. //SignData();
  385. //}
  386. }
  387. function isEmptyVal( value ) {
  388. if(value.length == 0){
  389. return true;
  390. }
  391. if( value == "" ) {
  392. return true;
  393. }
  394. return false;
  395. }
  396. //-->
  397. </script>
  398. <modular:search id="form1">
  399. <modular:key id="fevent" />
  400. </modular:search>
  401. <form id="form1" name="form1" method="post" modular:type="search">
  402. <INPUT type="hidden" name="fevent" id="fevent" value="" />
  403. <input type="hidden" name="p_page_gubun" id="p_page_gubun" value="<%=params.get("p_page_gubun") %>" />
  404. <input type="hidden" name="p_pur_cont_mod_id" id="p_pur_cont_mod_id" value="<%=vo.get("pur_cont_mod_id") %>" />
  405. <input type="hidden" name="p_acmp_yyyy" id="p_acmp_yyyy" value="<%=vo.get("acmp_yyyy") %>" />
  406. <input type="hidden" name="p_corp_id" id="p_corp_id" value="<%=vo.get("corp_id") %>" />
  407. <input type="hidden" name="p_soc_cd" id="p_soc_cd" value= "<%=params.get("p_soc_cd") %>" />
  408. <input type="hidden" name="pur_cont_mod_id" id="pur_cont_mod_id" value="<%=vo.get("pur_cont_mod_id") %>" />
  409. <input type="hidden" name="acmp_yyyy" id="acmp_yyyy" value="<%=vo.get("acmp_yyyy") %>" />
  410. <input type="hidden" name="corp_id" id="corp_id" value="<%=vo.get("corp_id") %>" />
  411. <input type="hidden" name="soc_cd" id="soc_cd" value= "<%=params.get("p_soc_cd") %>" />
  412. <input type="hidden" name="dept_cd" id="dept_cd" value= "<%=vo.get("dept_cd") %>" />
  413. <input type="hidden" name="dept_nm" id="dept_nm" value= "<%=vo.get("dept_name") %>" />
  414. <input type="hidden" name="isu_vendcd" id="isu_vendcd" value= "<%=vo.get("isu_vendcd") %>" />
  415. <input type="hidden" name="con_amt" id="con_amt" value= "<%=vo.get("con_amt") %>" />
  416. <input type="hidden" name="prog_stat_cd" id="prog_stat_cd" value= "<%=vo.get("prog_stat_cd") %>" />
  417. <input type="hidden" name="p_success_gubun" id="p_success_gubun" value= "<%=params.get("p_success_gubun") %>" />
  418. <input type="hidden" name="p_yyyy" id="p_yyyy" value= "<%=params.get("p_yyyy") %>" />
  419. <input type="hidden" name="p_dept_nm" id="p_dept_nm" value= "<%=params.get("p_dept_nm") %>" />
  420. <input type="hidden" name="p_cont_nm" id="p_cont_nm" value= "<%=params.get("p_cont_nm") %>" />
  421. <input type="hidden" name="p_status" id="p_status" value= "<%=params.get("p_status") %>" />
  422. <input type="hidden" name="CONT_HASH" id="CONT_HASH" value= "" />
  423. <input type="hidden" name="PRV_PAY_AMT_O" id="PRV_PAY_AMT_O" value= "<%=vo.get("PRV_PAY_AMT_O") %>" />
  424. <input type="hidden" name="CUR_PAY_NAMT_O" id="CUR_PAY_NAMT_O" value= "<%=vo.get("CUR_PAY_NAMT_O") %>" />
  425. <div align="left" id="title" style="float: left;">
  426. <ul>
  427. <li>실적증명 상세(<%=vo.get("PROG_STAT_NM").equals("") ? "작성대상" : vo.get("PROG_STAT_NM")%>)</li>
  428. </ul>
  429. </div>
  430. <div style="float: right; margin-top: 16px;">
  431. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_list">목록</a></span>
  432. <span class="btnSearch center" id="btn_preview_area"><a href="javascript:void(0);" id="btn_preview">미리보기</a></span>
  433. <span class="btnSearch center" id="btn_save_area"><a href="javascript:void(0);" id="btn_save">승인</a></span>
  434. <!-- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_issue_req">발급요청</a></span> -->
  435. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_delete">반려</a></span> <!--2016.1.25 완료된자료 반려 -->
  436. </div>
  437. <div style="float: left;" class="application-info magT10">
  438. <div class="application-sub-title">
  439. <span class="title">진행상태</span>
  440. </div>
  441. <div class="application-location">
  442. </div>
  443. </div>
  444. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  445. <colgroup>
  446. <col width="15%" />
  447. <col width="*%" />
  448. </colgroup>
  449. <tr>
  450. <th style="text-align: left; width: 100px;" >발급 승인여부</th>
  451. <td style="text-align: left;" colspan="3">
  452. <span><input type="radio" name="p_reson" id="p_reson1" value="30" <%=vo.get("prog_stat_cd").equals("30") ? "checked=\"checked\"" : "" %> /> 승인</span>
  453. <span style="margin-left: 50px;"><input type="radio" name="p_reson" id="p_reson2" value="91" <%=vo.get("prog_stat_cd").equals("91") ? "checked=\"checked\"" : "" %> /> 반려</span>
  454. </td>
  455. </tr>
  456. <tr id="reson_area" style="display: none;">
  457. <th style="text-align: left;">반려사유</th>
  458. <td colspan="3">
  459. <textarea name="p_return_reson" id="p_return_reson" rows="5" style="width: 100%;" ><%=vo.get("return_reson") %></textarea>
  460. </td>
  461. </tr>
  462. </table>
  463. <!-- 기성실적증명서 정보 -->
  464. <div style="float: left;" class="application-info magT10">
  465. <div class="application-sub-title">
  466. <span class="title">기성실적증명서 정보</span>
  467. </div>
  468. <div class="application-location">
  469. </div>
  470. </div>
  471. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  472. <colgroup>
  473. <col width="15%" />
  474. <col width="35%" />
  475. <col width="15%" />
  476. <col width="35%" />
  477. </colgroup>
  478. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  479. <tr>
  480. <th style="text-align: left;">발 급 협 회</th>
  481. <td>
  482. 대한전문건설협회
  483. </td>
  484. <th style="text-align: left;">&nbsp;</th>
  485. <td>
  486. &nbsp;<%-- <input type="text" name="issue_no" id="issue_no" value="<%=vo.get("issue_no") %>" /> --%>
  487. </td>
  488. </tr>
  489. </table>
  490. <!-- 신청인 -->
  491. <div style="float: left;" class="application-info magT10">
  492. <div class="application-sub-title">
  493. <span class="title">신청인</span>
  494. </div>
  495. <div class="application-location">
  496. </div>
  497. </div>
  498. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  499. <colgroup>
  500. <col width="15%" />
  501. <col width="35%" />
  502. <col width="15%" />
  503. <col width="35%" />
  504. </colgroup>
  505. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  506. <tr>
  507. <th style="text-align: left;">상 호</th>
  508. <td>
  509. <input type="text" name="isu_vendnm" id="isu_vendnm" value="<%=vo.get("ISU_VENDNM") %>" class="bg_gry input_blank" readonly="readonly"/>
  510. </td>
  511. <th style="text-align: left;">대 표 자</th>
  512. <td>
  513. <input type="text" name="isu_pres_nm" id="isu_pres_nm" value="<%=vo.get("isu_pres_nm") %>" class="bg_gry input_blank" readonly="readonly"/>
  514. </td>
  515. </tr>
  516. <tr>
  517. <th style="text-align: left;">영업소 소재지</th>
  518. <td colspan="3">
  519. <input type="text" name="isu_addr" id="isu_addr" value="<%=vo.get("ISU_ADDR") %>" class="bg_gry input_blank" readonly="readonly"/>
  520. </td>
  521. </tr>
  522. </table>
  523. <!-- 공사내역 -->
  524. <div style="float: left;" class="application-info magT10">
  525. <div class="application-sub-title">
  526. <span class="title">공사내역</span>
  527. </div>
  528. <div class="application-location">
  529. </div>
  530. </div>
  531. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  532. <colgroup>
  533. <col width="15%" />
  534. <col width="35%" />
  535. <col width="15%" />
  536. <col width="35%" />
  537. </colgroup>
  538. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  539. <tr>
  540. <th style="text-align: left;">공 사 명</th>
  541. <td>
  542. <input type="text" name="cont_nm" id="cont_nm" value="<%=vo.get("cont_nm") %>" class="bg_gry input_blank" readonly="readonly"/>
  543. </td>
  544. <th style="text-align: left;">총 공 사 금 액</th>
  545. <td>
  546. 해당사항 없음
  547. </td>
  548. </tr>
  549. <tr>
  550. <th style="text-align: left;">현 장 소 재 지</th>
  551. <td>
  552. <input type="text" name="work_place" id="work_place" value="<%=vo.get("work_place") %>" class="bg_gry input_blank" readonly="readonly"/>
  553. </td>
  554. <th style="text-align: left;">인 허 가 기 관</th>
  555. <td>
  556. <input type="text" name="lic_org" id="lic_org" value="<%=vo.get("lic_org") %>" style="width: 100%;"/>
  557. </td>
  558. </tr>
  559. <tr>
  560. <th style="text-align: left;">계약연월일</th>
  561. <td >
  562. <input type="text" name="cont_cdate" id="cont_cdate" value="<%=vo.get("cont_cdate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;"/>
  563. </td>
  564. <th style="text-align: left;">인허가연월일</th>
  565. <td>
  566. <input type="text" name="lic_date" id="lic_date" value="<%=vo.get("lic_date") %>" readonly="readonly" class="bg_gry input_blank" style="width: 80px;"/>
  567. </td>
  568. </tr>
  569. <tr>
  570. <th style="text-align: left;">착 공 연 월 일</th>
  571. <td>
  572. <input type="text" name="cont_sdate" id="cont_sdate" value="<%=vo.get("cont_sdate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;" />
  573. </td>
  574. <th style="text-align: left;">준공(예정) 연월일</th>
  575. <td>
  576. <input type="text" name="cont_edate" id="cont_edate" value="<%=vo.get("cont_edate") %>" class="bg_gry input_blank" readonly="readonly" style="width: 80px;" />
  577. </td>
  578. </tr>
  579. <tr>
  580. <th style="text-align: left;">업종(면허)명</th>
  581. <td>
  582. <input type="text" name="lic_nm" id="lic_nm" value="<%=vo.get("lic_nm") %>" style="width: 100%;"/>
  583. </td>
  584. <th style="text-align: left;">면허번호</th>
  585. <td>
  586. <input type="text" name="reg_no" id="reg_no" value="<%=vo.get("reg_no") %>" style="width: 100%;"/>
  587. </td>
  588. </tr>
  589. <tr>
  590. <th style="text-align: left;">당년도계약액 또는 이월액</th>
  591. <td>
  592. <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 bg_gry input_blank" readonly="readonly"/> 천원
  593. </td>
  594. <th style="text-align: left;">계약금액(총계약금액)</th>
  595. <td>
  596. <input type="text" name="cont_tamt" id="cont_tamt" value="<%=vo.get("cont_tamt") %>" style="text-align: right; width: 200px;" numberOnly="true" class="numberic bg_gry input_blank" readonly="readonly"/> 천원
  597. (<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" /> )
  598. </td>
  599. </tr>
  600. <tr>
  601. <th style="text-align: left;">당년도기성액(총기성액)</th>
  602. <td>
  603. <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 bg_gry input_blank" readonly="readonly"/> 천원
  604. (<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" /> )
  605. </td>
  606. <th style="text-align: left;">전년도까지 누계기성액</th>
  607. <td>
  608. <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 bg_gry input_blank" readonly="readonly"/> 천원
  609. </td>
  610. </tr>
  611. <tr>
  612. <th style="text-align: left;">당년도 기성지급액</th>
  613. <td>
  614. <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 bg_gry input_blank" readonly="readonly"/> 천원
  615. </td>
  616. <th style="text-align: left;">전년도까지 누계지급액</th>
  617. <td>
  618. <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 bg_gry input_blank" readonly="readonly"/> 천원
  619. </td>
  620. </tr>
  621. <tr>
  622. <th style="text-align: left;">기타</th>
  623. <td colspan="3">
  624. <!-- (공사의 규모, 공법, 공동조급 내역 등)<br/> -->
  625. <%=vo.get("etc").replace("\n", "<br/>") %>
  626. <%-- <textarea rows="5" cols="100" name="etc" id="etc" class="bg_gry"><%=vo.get("etc").replace("\n", "<br/>") %></textarea> --%>
  627. </td>
  628. </tr>
  629. <tr>
  630. <th style="text-align: left;">공종</th>
  631. <td>
  632. <%=CommCodeManager.getSelectCodeSearchList("RESULT_01","ADD_01","height=18;width:180px;","<option value=''>--선택--</option>", vo.get("ADD_01"),"","DETAILNM") %>
  633. </td>
  634. <th style="text-align: left;">세부공종(전문)</th>
  635. <td>
  636. <%=CommCodeManager.getSelectCodeSearchList("RESULT_01_D","ADD_02","height=18;width:180px;","<option value=''>--선택--</option>", vo.get("ADD_02"),"AND DETAILCD LIKE '" + vo.get("ADD_01") + "%' ","DETAILNM") %>
  637. </td>
  638. </tr>
  639. </table>
  640. <!-- 복합공종-->
  641. <div style="float: left;" class="application-info magT10">
  642. <div class="application-sub-title">
  643. <span class="title">복합공종(타공종 포함) 실적 내용 (단위:천원, 부가세 포함) <input type="checkbox" id="viewSheet" style="visibility: hidden;"></span>
  644. </div>
  645. <div class="application-location">
  646. </div>
  647. </div>
  648. <div id="sheetDiv">
  649. <div style="float: right; margin-top: -23px; margin-bottom: 5px;" id="sheet1_btn">
  650. <span class="btnSearch center" id="btn_sheet_add_area" style="display: none;"><a href="javascript:void(0);" id="btn_sheet_add">추가</a></span>
  651. <!-- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_sheet_delete">삭제</a></span> -->
  652. </div>
  653. <!-- 시트 -->
  654. <div style="width: 100%; height: 150px; margin-top: 5px; margin-bottom: 30px;">
  655. <!-- 데이터 영역 : 시작 -->
  656. <!-- ibsheet7 그리드 생성 -->
  657. <script>createIBSheet("sheet1","100%", "150px;");</script>
  658. <!-- 데이터 영역 : 종료 -->
  659. </div>
  660. </div>
  661. <!-- 공사내역 -->
  662. <div style="float: left;" class="application-info magT10">
  663. <div class="application-sub-title">
  664. <span class="title">발급요청자 정보</span>
  665. </div>
  666. <div class="application-location">
  667. </div>
  668. </div>
  669. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  670. <colgroup>
  671. <col width="15%" />
  672. <col width="35%" />
  673. <col width="15%" />
  674. <col width="35%" />
  675. </colgroup>
  676. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  677. <tr>
  678. <th style="text-align: left;">담당자명</th>
  679. <td>
  680. <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") %>" />
  681. </td>
  682. <th style="text-align: left;">휴대전화</th>
  683. <td>
  684. <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"/> -
  685. <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"/> -
  686. <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"/>
  687. </td>
  688. </tr>
  689. </table>
  690. <%if(vo.get("prog_stat_cd").equals("30")){ %>
  691. <div id="file_area" style="width: 100%;">
  692. <!-- 첨부파일 -->
  693. <div style="float: left;" class="application-info magT10">
  694. <div class="application-sub-title">
  695. <span class="title">첨부파일</span>
  696. </div>
  697. <div class="application-location">
  698. </div>
  699. </div>
  700. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" class=form-table>
  701. <colgroup>
  702. <col width="15%" />
  703. <col width="*" />
  704. </colgroup>
  705. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  706. <tr>
  707. <th style="text-align: left;">첨부파일</th>
  708. <td colspan="3">
  709. <div id="auto_attach_file_view" class="attach_file_view">
  710. <ul>
  711. <%
  712. for(int i=0; i<fileRowSet.size(); i++)
  713. {
  714. %>
  715. <li>
  716. <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>
  717. </li>
  718. <%
  719. }
  720. %>
  721. </ul>
  722. </div>
  723. </td>
  724. </tr>
  725. </table>
  726. </div>
  727. <%} %>
  728. </form>