ResultDetail02.jsp 32 KB

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