contOutWarrPopup.jsp 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. <%--
  2. - FileName : conOutWarrPopup.jsp
  3. - Author(s) : ok
  4. - Date : 2014.07.24
  5. - Copyright : Copyright (c) 2013 www.udapsoft.co.kr, Inc.
  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="kr.co.hsnc.common.util.Formatter"%>
  14. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  15. <%@ include file="/jsp/work/taglib.jsp" %>
  16. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  17. <%
  18. ctx.init(request, response);
  19. HandlerStorage storage = ctx.getHandlerStorage();
  20. ValueObject params = storage.getParams();
  21. ValueObject user = storage.getUser();
  22. String event = storage.getEvent();
  23. RowSet WarrGofficeComboList = CommCodeManager.getCodeRowsetStatic("GUARORGAN", "SUBSTR(CHG_CODE01,1,1)", "1");
  24. ValueObject contOutWarr = storage.getValueObject("WarrContInfo"); //보증정보
  25. ValueObject attFile = storage.getValueObject("attFileList"); //첨부파일
  26. String check1 = "";
  27. String check2 = "";
  28. if("Y".equals(contOutWarr.get("GUAR_ONOFF_YN"))){
  29. check1 = "checked";
  30. }else{
  31. check2 = "checked";
  32. }
  33. String sWarrGubun = params.get("warrGubun");
  34. String sWonWarr = params.get("wonWarr");
  35. String sLaborChk = params.get("laborChk"); //근재 때문에 계약이행 보증서를 발급받을때 근재가 있으면 전문건설을 선택하게 처리
  36. if(sLaborChk.isEmpty()){
  37. sLaborChk = "0";
  38. }
  39. %>
  40. <SCRIPT language="JavaScript">
  41. var sGuarOnoffYn = "<%=contOutWarr.get("GUAR_ONOFF_YN")%>";
  42. var sContStatus = "<%=contOutWarr.get("CONTSTATUS")%>";
  43. var sPreqStatusCd = "<%=params.get("PreqStatusCd")%>"; //하자이행 현재 상태 (10이 완료, 04결재중)
  44. var sPayStatusCd = "<%=contOutWarr.get("PAYSTATUS")%>"; //선급금 현재 상태 (10이 완료, 04결재중)
  45. function _onReady(){
  46. jQuery("#btnSave").click(function() {
  47. //필수 입력항목 check
  48. // alert(save());
  49. if(save()){
  50. var f = document.form1;
  51. jQuery("#fevent").val("FORM_SAVE");
  52. submitXmlRequest("/portal/guar/contOutWarrPopup_form.screen", "FORM_SAVE", f, "SUCCESS");
  53. }
  54. });
  55. jQuery("#btnTrans").click(function() {
  56. //필수 입력항목 check
  57. // alert(save());
  58. if(save()){
  59. var f = document.form1;
  60. jQuery("#fevent").val("FORM_SAVE");
  61. submitXmlRequest("/portal/guar/contOutWarrPopup_form.screen", "FORM_SAVE", f, "SUCCESS");
  62. }
  63. });
  64. jQuery("#btnAgain").click(function() {
  65. //필수 입력항목 check
  66. // alert(save());
  67. if(save()){
  68. var f = document.form1;
  69. jQuery("#fevent").val("FORM_SAVE");
  70. submitXmlRequest("/portal/guar/contOutWarrPopup_form.screen", "FORM_SAVE", f, "SUCCESS");
  71. }
  72. });
  73. jQuery("#btnDel").click(function() {
  74. if(confirm("정말로 보증정보를 삭제 하시겠습니까?")){
  75. // 보증정보 삭제
  76. var f = document.form1;
  77. jQuery("#fevent").val("FORM_DELETE");
  78. submitXmlRequest("/portal/guar/contOutWarrPopup_form.screen", "FORM_DELETE", f, "SUCCESS");
  79. }
  80. });
  81. jQuery("#btnCancel").click(function() {
  82. if(confirm("해당기관에 전송한 계약정보가 삭제됩니다.\n\n취소 신청하시겠습니까?")){
  83. // 보증정보 삭제
  84. var f = document.form1;
  85. jQuery("#fevent").val("FORM_DELETE");
  86. submitXmlRequest("/portal/guar/contOutWarrPopup_form.screen", "FORM_DELETE", f, "SUCCESS");
  87. }
  88. });
  89. }
  90. function doResult(resultObj) {
  91. try {
  92. if( resultObj.getRequestEvent() == "FORM_SAVE" ) {
  93. if( resultObj.getSuccess() ) {
  94. alert("저장되었습니다.");
  95. <%if(!params.get("sModule").equals("LM")){%>
  96. returnValue = new Array(0,"OK");
  97. parent.popContWarrClose(returnValue);
  98. <%}else{%>
  99. window.location.reload();
  100. <%}%>
  101. }else {
  102. dlgErrorMsg(resultObj);
  103. }
  104. document.form1.isSubmit = false;
  105. }
  106. if( resultObj.getRequestEvent() == "GET_DATA" ) {
  107. if( resultObj.getSuccess() ) {
  108. /* var subContModId = resultObj.getValueObject().get("SUB_CONT_MOD_ID");
  109. jQuery("#subContModId").val(subContModId); */
  110. }else {
  111. dlgErrorMsg(resultObj);
  112. }
  113. document.form1.isSubmit = false;
  114. }
  115. if( resultObj.getRequestEvent() == "FORM_DELETE" ) {
  116. if( resultObj.getSuccess() ) {
  117. alert("정상적으로 처리 되었습니다.");
  118. <%if(!params.get("sModule").equals("LM")){%>
  119. returnValue = new Array(0,"OK");
  120. parent.popContWarrClose(returnValue);
  121. <%}else{%>
  122. window.location.reload();
  123. <%}%>
  124. }else {
  125. dlgErrorMsg(resultObj);
  126. }
  127. document.form1.isSubmit = false;
  128. }
  129. }
  130. catch(errorObject) {
  131. showErrorDlg("doResult()", errorObject);
  132. }
  133. }
  134. function calendar(thisDayObj){
  135. dlgCalendar(thisDayObj);
  136. }
  137. //첨부파일
  138. function doAttachFile(obj,No) {
  139. <%if(!params.get("sModule").equals("LM")){ //경영정보쪽에서 띄울때는 parent 처리를 못함%>
  140. parent.doAttachFilePop(obj, No, document.form1, "GUARCONT_OUT_<%=params.get("warrGubun")%>_<%=params.get("warrSeq")%>", "cont/outside/<%=params.get("subContModId")%>/guar");
  141. <%}else{%>
  142. var editFile = "";
  143. if(obj==''){
  144. alert("After you have saved, you can attach a file.");
  145. }
  146. else if(obj != ''){
  147. if(document.form1.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
  148. viewFileListNew("GUARCONT_OUT_<%=params.get("warrGubun")%>_<%=params.get("warrSeq")%>", obj.value, document.form1.p_AttachFileGuar1, editFile, "cont/outside/<%=params.get("subContModId")%>/guar", "contOutWarrPopup");
  149. }
  150. <%}%>
  151. }
  152. function searchData(){
  153. var f = document.form1;
  154. jQuery("#fevent").val("GET_DATA");
  155. submitXmlRequest("/portal/payment/ContOutWarrPopup_form.screen", "GET_DATA", f, "VALUEOBJECT");
  156. }
  157. function inputDataSet(){
  158. if(jQuery("#guarOrganCode option:selected").val() == "99"){ //기타
  159. document.getElementById("warrGofficeEtc").style.display = "";
  160. jQuery("#warrGofficeEtc").attr("readonly",false);
  161. jQuery("#warrGofficeEtc").css({'background-color' : '#ffffff'});
  162. jQuery("#warrGofficeEtc").css({'border' : '1px solid #595a5a'});
  163. }else{
  164. document.getElementById("warrGofficeEtc").style.display = "none";
  165. jQuery("#warrGofficeEtc").attr("readonly",true);
  166. jQuery("#warrGofficeEtc").css({'background-color' : '#dedede'});
  167. jQuery("#warrGofficeEtc").css({'border' : '1px solid #bcbcbc'});
  168. }
  169. }
  170. function checkOnOff(chk){
  171. if(chk=='Y'){
  172. document.getElementById("offTableInfo").style.display="none";
  173. sGuarOnoffYn = "Y";
  174. showHideTable(true);
  175. }else{
  176. document.getElementById("offTableInfo").style.display="";
  177. sGuarOnoffYn = "N";
  178. showHideTable(false);
  179. }
  180. }
  181. /**********************************************
  182. 발행구분에 따른 입력 내용 보이기, 안보이기
  183. **********************************************/
  184. function showHideTable(bShow)
  185. {
  186. var form = document.form1;
  187. var sWarrGubun = form.warrGubun.value; // 보증종류
  188. var sGuarStatus = form.guarStatus.value; // 보증상태
  189. var sGuarOrganCode = form.guarOrganCode.value; // 기관코드
  190. //title 및 변경구분 세팅
  191. var sTitle = "";
  192. var sTitle2 = "";
  193. var sText = "";
  194. /* 온라인의 경우 */
  195. if(bShow)
  196. {
  197. if(sGuarStatus == "04") // 상태가 신청대기일 경우
  198. {
  199. document.getElementById("btnTrans").style.display = "none";
  200. document.getElementById("btnCancel").style.display = "none";
  201. document.getElementById("btnAgain").style.display = "";
  202. form.guarOrganCode.disabled = true;
  203. }else if(sGuarStatus == "05") // 상태가 발급중일 경우
  204. {
  205. document.getElementById("btnTrans").style.display = "none";
  206. document.getElementById("btnCancel").style.display = "";
  207. document.getElementById("btnAgain").style.display = "none";
  208. form.guarOrganCode.disabled = true;
  209. }else if(sGuarStatus == "10") // 상태가 반송중일 경우
  210. {
  211. document.getElementById("btnTrans").style.display = "none";
  212. document.getElementById("btnCancel").style.display = "";
  213. document.getElementById("btnAgain").style.display = "none";
  214. form.guarOrganCode.disabled = true;
  215. }else
  216. {
  217. document.getElementById("btnTrans").style.display = "";
  218. document.getElementById("btnCancel").style.display = "none";
  219. document.getElementById("btnAgain").style.display = "none";
  220. form.guarOrganCode.disabled = false;
  221. }
  222. document.getElementById("offTableInfo").style.display = "none";
  223. document.getElementById("btnSave").style.display = "none";
  224. document.getElementById("btnDel").style.display = "none";
  225. document.getElementById("warrGofficeEtc").style.display = "none";
  226. if(sWarrGubun == 4) // 보증서종류[근재]일 경우
  227. {
  228. form.guarOrganCode.selectedIndex=1;
  229. form.guarOrganCode.disabled = true;
  230. }
  231. sTitle = "온라인 ";
  232. }else /* 오프라인의 경우 */
  233. {
  234. document.getElementById("offTableInfo").style.display = "";
  235. document.getElementById("btnSave").style.display = "";
  236. document.getElementById("btnTrans").style.display = "none";
  237. document.getElementById("btnAgain").style.display = "none";
  238. if(sGuarStatus == "02")
  239. {
  240. document.getElementById("btnDel").style.display = "none";
  241. }else
  242. {
  243. document.getElementById("btnDel").style.display = "";
  244. }
  245. document.getElementById("btnCancel").style.display = "none";
  246. if(sGuarOrganCode == "99")
  247. {
  248. document.getElementById("warrGofficeEtc").style.display = "";
  249. }else
  250. {
  251. document.getElementById("warrGofficeEtc").style.display = "none";
  252. }
  253. //계약 완료일 경우 버튼 안보이게 처리
  254. if((sContStatus == "50") || (sPreqStatusCd == "04") || (sPreqStatusCd == "10") || (sPayStatusCd == "04") || (sPayStatusCd == "10"))
  255. {
  256. document.getElementById("btnDel").style.display = "none";
  257. document.getElementById("btnSave").style.display = "none";
  258. }
  259. sTitle = "오프라인 ";
  260. form.guarOrganCode.disabled = false;
  261. }
  262. if(<%=sWarrGubun%> == 1)
  263. {
  264. sTitle2 = "계약이행증권";
  265. sText = "계약이행보증서";
  266. if('<%=sWonWarr%>' == 'S'){
  267. form.guarOrganCode.selectedIndex = 2;
  268. form.guarOrganCode.disabled = true;
  269. }
  270. }else if(<%=sWarrGubun%> == 5)
  271. {
  272. sTitle2 = "하자이행증권";
  273. sText = "하자이행보증서";
  274. }else if(<%=sWarrGubun%> == 3)
  275. {
  276. sTitle2 = "선급금이행증권";
  277. sText = "선급금이행보증서";
  278. }else
  279. {
  280. sTitle2 = "근재책임보험증권";
  281. sText = "근로자재해보상책임보험";
  282. }
  283. // 제목 타이틀
  284. // document.getElementById("li_title").innerHTML = sTitle + sTitle2;
  285. /* 발행구분 radio 활성, 비활성 */
  286. /* 변경 구분이 단축/감액일경우는 오프라인 설청후 radio 비활성*/
  287. /* 변경 구분이 단축/감액일경우는 오프라인 설청후 radio 비활성 :: 조달에서 팝업 띄울때 오프라인 설정후 ]*/
  288. if(sGuarStatus == "05" || sGuarStatus == "09" || "<%=params.get("causeCode")%>" == "08" || "<%=params.get("causeCode")%>" == "09" || "<%=params.get("sModule")%>" == "EB")
  289. {
  290. document.getElementById("guarOnOffYn1").disabled = true;
  291. document.getElementById("guarOnOffYn2").disabled = true;
  292. }else
  293. {
  294. document.getElementById("guarOnOffYn1").disabled = false;
  295. document.getElementById("guarOnOffYn2").disabled = false;
  296. }
  297. //sContStatus 향후 이부분은 수정 필요
  298. if((sGuarStatus == "08") || (sGuarStatus == "09"))
  299. {
  300. document.getElementById("guarOnOffYn1").disabled = true;
  301. document.getElementById("guarOnOffYn2").disabled = true;
  302. <%
  303. if (params.get("warrGubun").equals("4")){
  304. %>
  305. document.getElementById("warrKamt1").disabled = true;
  306. document.getElementById("warrKamt2").disabled = true;
  307. <%
  308. }
  309. %>
  310. document.getElementById("dateStart").disabled = true;
  311. document.getElementById("dateEnd").disabled = true;
  312. document.getElementById("paperDate").disabled = true;
  313. document.getElementById("warrWgno").disabled = true;
  314. document.getElementById("guarOrganCode").disabled = true;
  315. document.getElementById("warrWamt").disabled = true;
  316. document.getElementById("btnCalendar1").style.display = "none";
  317. document.getElementById("btnCalendar2").style.display = "none";
  318. document.getElementById("btnCalendar3").style.display = "none";
  319. }else{
  320. document.getElementById("warrWgno").readOnly = false;
  321. document.getElementById("warrWamt").readOnly = false;
  322. <%
  323. if (params.get("warrGubun").equals("4")){
  324. %>
  325. document.getElementById("warrKamt1").readOnly = false;
  326. document.getElementById("warrKamt2").readOnly = false;
  327. <%
  328. }
  329. %>
  330. }
  331. //2017.06.19 온라인 하자보증 제한
  332. if(<%=sWarrGubun%> == 5){
  333. document.getElementById("guarOnOffYn1").disabled = true;
  334. }
  335. }
  336. /********************************
  337. 보증정보 저장
  338. ********************************/
  339. function save()
  340. {
  341. var form = document.form1;
  342. if(form.guarOrganCode.value == ""){
  343. alert("보증기관을 선택하세요");
  344. form.guarOrganCode.focus();
  345. return false;
  346. }
  347. if(sGuarOnoffYn == "Y"){ // 온라인인 경우
  348. var wOldGuarOrganCode = form.OldGuarOrganCode;
  349. if(form.guarOrganCode.selectedIndex==3){
  350. alert("온라인 보증서 발급시 전문건설공제 조합 또는 서울보증보험을 선택해 주시기 바랍니다.")
  351. form.guarOrganCode.focus();
  352. return false;
  353. }
  354. if((form.guarOrganCode.selectedIndex==2) && (wOldGuarOrganCode.value=="") && (form.MOD_NO.value!="0")) {
  355. alert("온라인 보증서 발급을 서울 보증서로 발급시 변경계약에 대한 보증서는 당초 보증서를 온라인으로 서울 보증서로 발급 받은 상태에서만 가능합니다.\n\n아닐경우 오프란인으로 처리 해 주시기 바랍니다.")
  356. form.guarOrganCode.focus();
  357. return false;
  358. }
  359. if((wOldGuarOrganCode.value!="") && (wOldGuarOrganCode.value!=form.guarOrganCode.selectedIndex)){
  360. alert("온라인 보증에 대해서 변경 사항에 대해서는 당초 보증 기관과 동일하게 선택해 주세요.");
  361. return false;
  362. }
  363. form.guarStatus.value = "05";
  364. if(confirm("해당보증기관에 계약정보를 전송하시겠습니까?")) return true;
  365. }else{ // 오프라인인 경우
  366. if(form.guarOrganCode.value == "99"){
  367. if(!form.warrGofficeEtc.value){
  368. alert("보증기관명을 입력하세요");
  369. form.warrGofficeEtc.focus();
  370. return false;
  371. }
  372. }else{
  373. var iIndex = form.guarOrganCode.selectedIndex;
  374. var sText = form.guarOrganCode[iIndex].text;
  375. form.warrGofficeEtc.value = sText;
  376. }
  377. var wgno = form.warrWgno;
  378. var wamt = form.warrWamt;
  379. var wfrom = form.dateStart;
  380. var wto = form.dateEnd;
  381. var wppd = form.paperDate;
  382. var wsize = form.p_AttachFileGuar1;
  383. if(wgno.value == ""){
  384. alert('증권번호를 입력하세요.');
  385. wgno.focus();
  386. return false;
  387. }
  388. if(wfrom.value.length <8){
  389. alert('보증시작일을 입력하세요');
  390. wfrom.focus();
  391. return false;
  392. }
  393. if(wto.value.length <8){
  394. alert('보증종료일을 입력하세요');
  395. wto.focus();
  396. return false;
  397. }
  398. if(wfrom.value > wto.value){
  399. alert('보증종료일이 시작일보다 빠릅니다.');
  400. wto.focus();
  401. return false;
  402. }
  403. if(wamt.value == "0" || wamt.value == ""){
  404. alert('보증금액을 입력하세요.');
  405. wamt.focus();
  406. return false;
  407. }
  408. if(wppd.value.length <8){
  409. alert('발급일을 입력하세요');
  410. wppd.focus();
  411. return false;
  412. }
  413. if(wsize.value == null || wsize.value == "0" || wsize.value == ""){
  414. alert('첨부파일을 선택하세요.');
  415. return false;
  416. }
  417. form.guarStatus.value = "09";
  418. if(confirm("보증정보를 저장하시겠습니까?")) return true;
  419. }
  420. }
  421. function doClose()
  422. {
  423. <%if(!params.get("sModule").equals("LM")){ //경영정보쪽에서 띄울때는 parent 처리를 못함%>
  424. returnValue = null;
  425. parent.popContWarrClose(returnValue);
  426. <%}else{%>
  427. window.close();
  428. <%}%>
  429. }
  430. </SCRIPT>
  431. <STYLE>
  432. BODY {
  433. padding : 0 0 0 0;
  434. }
  435. </STYLE>
  436. <modular:search id="form1">
  437. <modular:key id="fevent" />
  438. </modular:search>
  439. <form id="form1" name="form1" method="post" modular:type="search">
  440. <INPUT type="hidden" name="fevent" id="fevent" value="">
  441. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=params.get("subContModId") %>"> <!-- 보증증권 ID -->
  442. <INPUT type="hidden" name="warrGubun" id="warrGubun" value="<%=params.get("warrGubun") %>"> <!-- 보증증권 구분 -->
  443. <INPUT type="hidden" name="warrSeq" id="warrSeq" value="<%=params.get("warrSeq") %>"> <!-- 보증증권 일련번호 -->
  444. <INPUT type="hidden" name="viewDiv" id="viewDiv" value="<%=params.get("viewDiv") %>"> <!-- 화면구분 -->
  445. <INPUT type="hidden" name="grtreqNo" id="grtreqNo" value="<%=contOutWarr.get("GRTREQNO") %>"> <!-- 원계약번호 -->
  446. <INPUT type="hidden" name="causeCode" id="causeCode" value="<%=params.get("causeCode") %>"> <!--변경면구분 -->
  447. <INPUT type="hidden" name="guarStatus" id="guarStatus" value="<%=contOutWarr.get("GUAR_STATUS") %>"> <!--보증 상태 -->
  448. <INPUT type="hidden" name="SUB_CONT_ID" id="SUB_CONT_ID" value="<%=contOutWarr.get("SUB_CONT_ID") %>"> <!--계약서 ID -->
  449. <INPUT type="hidden" name="MOD_NO" id="MOD_NO" value="<%=contOutWarr.get("MOD_NO") %>"> <!--계약 변경차수 -->
  450. <INPUT type="hidden" name="OldGuarOrganCode" id="OldGuarOrganCode" value="<%=contOutWarr.get("OldGuarOrganCode") %>"> <!--이전 계약 기관 -->
  451. <INPUT type="hidden" name="prepayId" id="prepayId" value="<%=params.get("prepayId") %>"> <!-- 보증일련번호 -->
  452. <!-- 제목 및 버튼 -->
  453. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  454. <colgroup>
  455. <col width="200" />
  456. <col width="*" />
  457. </colgroup>
  458. <tr>
  459. <td align="right">
  460. <span class="btnSearch center" style="display:none" id="btnSave"><a>저장</a></span>
  461. <span class="btnSearch center" style="display:none" id="btnDel"><a>삭제</a></span>
  462. <span class="btnSearch center" style="display:none" id="btnTrans"><a>전송</a></span>
  463. <span class="btnSearch center" style="display:none" id="btnAgain"><a>재전송</a></span>
  464. <span class="btnSearch center" style="display:none" id="btnCancel"><a>취소</a></span>
  465. </td>
  466. </tr>
  467. </table>
  468. <!-- 상세 정보 -->
  469. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:10px;">
  470. <colgroup>
  471. <col width="140" />
  472. <col width="*" />
  473. </colgroup>
  474. <TR height="25">
  475. <TH class="search_table_title required" style="text-align: left;">발행방법</TH>
  476. <TD class="search_table_data" style="text-align:left;padding-left:7px">
  477. <input type="radio" name="guarOnOffYn" id="guarOnOffYn1" value="Y" onclick="checkOnOff('Y');" <%= check1 %> >온라인
  478. <input type="radio" name="guarOnOffYn" id="guarOnOffYn2" value="N" onclick="checkOnOff('N');" <%= check2 %> >오프라인
  479. </TD>
  480. </TR>
  481. <TR height="25">
  482. <TH class="search_table_title" style="text-align: left;">발행구분</TH>
  483. <TD class="search_table_data" style="margin-left:10px;text-align: left;">&nbsp;<%= InputText.get("warrGubunNm", contOutWarr.get("WARR_GUBUN_NM"), 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  484. </TR>
  485. <TR height="25">
  486. <TH class="search_table_title required" style="text-align: left;">보증기관명</TH>
  487. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= HTMLMaker.getSelectTag(WarrGofficeComboList, "DETAILCD", "DETAILNM", "guarOrganCode", "width:35%;height=18;' onChange='inputDataSet();", "<option value=''>선택</option>", contOutWarr.get("GUAR_ORGAN_CODE")) %>
  488. <%= InputText.get("warrGofficeEtc", contOutWarr.get("WARR_GOFFICE"), 30, 40, "string, left, readOnly", "string") %>
  489. </TD>
  490. </TR>
  491. <TR height="25">
  492. <TH class="search_table_title" style="text-align: left;">변경구분</TH>
  493. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("xxxxxxxx", contOutWarr.get("CAUSECODE_NM"), 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  494. </TR>
  495. </TABLE>
  496. <TABLE cellspacing="1" cellpadding="0" class="search_table" id="offTableInfo" name="offTableInfo" style="margin-top:10px;display:none">
  497. <colgroup>
  498. <col width="140" />
  499. <col width="*" />
  500. </colgroup>
  501. <TR height="25">
  502. <TH class="search_table_title" style="text-align: left;">증권번호</TH>
  503. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWgno", contOutWarr.get("WARR_WGNO"), 55, 38, "string, readonly, left", "string") %></TD>
  504. </TR>
  505. <TR height="25">
  506. <TH class="search_table_title" style="text-align: left;">보증기간</TH>
  507. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("dateStart", Formatter.formatDate(contOutWarr.get("WARR_SDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  508. <A href="JavaScript:calendar('dateStart');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle" id="btnCalendar1"></A>
  509. ~
  510. <%= InputText.get("dateEnd", Formatter.formatDate(contOutWarr.get("WARR_EDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  511. <A href="JavaScript:calendar('dateEnd');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle" id="btnCalendar2"></A>
  512. </TD>
  513. </TR>
  514. <TR height="25">
  515. <TH class="search_table_title" style="text-align: left;">보증금액</TH>
  516. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWamt", Formatter.formatCurrency(contOutWarr.get("WARR_WAMT")), 55, 14, "class=input byteChk, readonly ,number, right", "number") %>
  517. <INPUT type="hidden" name="warrWrate" id="warrWrate" value="<%=contOutWarr.get("WARR_WRATE") %>"> <!-- 보증율 -->
  518. </TD>
  519. </TR>
  520. <%
  521. if (params.get("warrGubun").equals("4")){
  522. %>
  523. <TR height="25">
  524. <TH class="search_table_title" style="text-align: left;">1인당배상책임액</TH>
  525. <TD class="search_table_data">&nbsp;<%= InputText.get("warrKamt1", Formatter.formatCurrency(contOutWarr.get("WARR_KAMT1")), 55, 14, "class=input byteChk, readonly ,number, right, readonly", "number") %></TD>
  526. </TR>
  527. <TR height="25">
  528. <TH class="search_table_title" style="text-align: left;">1사고당배상책임액</TH>
  529. <TD class="search_table_data">&nbsp;<%= InputText.get("warrKamt2", Formatter.formatCurrency(contOutWarr.get("WARR_KAMT2")), 55, 14, "class=input byteChk, readonly ,number, right, readonly", "number") %></TD>
  530. </TR>
  531. <%
  532. }
  533. %>
  534. <TR height="25">
  535. <TH class="search_table_title" style="text-align: left;">발급일</TH>
  536. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("paperDate", Formatter.formatDate(contOutWarr.get("PAPERDATE"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  537. <A href="JavaScript:calendar('paperDate');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle" id="btnCalendar3"></A>
  538. </TD>
  539. </TR>
  540. <TR height="25">
  541. <TH class="search_table_title" style="text-align: left;">첨부파일</TH>
  542. <TD class="search_table_data" style="text-align: left;">&nbsp;<TEXTAREA name="p_AttachFileGuar1" id="p_AttachFileGuar1" style="width:85%;height:80px" rows="1" class="input" readOnly><%=attFile.get("fileRow") %></TEXTAREA>
  543. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.subContModId,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  544. </TD>
  545. </TR>
  546. </TABLE>
  547. <%
  548. //서울 보증 온라인일경우 신청 번호를 보여준다.
  549. if((contOutWarr.get("GUAR_ONOFF_YN").equals("Y")) && (contOutWarr.get("GUAR_ORGAN_CODE").equals("2"))){
  550. //신청 대기일경웅에는 안보여준다.
  551. if(!contOutWarr.get("GUAR_STATUS").equals("04")){
  552. String I_CONTSEQ = contOutWarr.get("MOD_NO");
  553. String I_GRTSEQ = params.get("warrSeq");
  554. if(I_CONTSEQ.length()==1){
  555. I_CONTSEQ = "0" + contOutWarr.get("MOD_NO");
  556. }
  557. if(I_GRTSEQ.length()==1){
  558. I_GRTSEQ = "0" + I_GRTSEQ;
  559. }
  560. %>
  561. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:10px;">
  562. <colgroup>
  563. <col width="140" />
  564. <col width="*" />
  565. </colgroup>
  566. <TR height="25">
  567. <TH class="search_table_title" style="text-align: left;">서울보증신청번호</TH>
  568. <TD class="search_table_data" style="text-align:left;padding-left:5px">&nbsp;<%= contOutWarr.get("GRTREQNO") +"-"+ I_CONTSEQ + contOutWarr.get("GRTTYPE")+ I_GRTSEQ%></TD>
  569. </TR>
  570. </TABLE>
  571. <%
  572. }
  573. }
  574. //반송일 경우 반송 사유를 보여준다.
  575. if(contOutWarr.get("GUAR_STATUS").equals("10")){
  576. %>
  577. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:10px;">
  578. <colgroup>
  579. <col width="140" />
  580. <col width="*" />
  581. </colgroup>
  582. <TR height="25">
  583. <TH class="search_table_title" style="text-align: left;">보증상태</TH>
  584. <TD class="search_table_data" style="text-align:left;padding-left:5px">&nbsp;<%= contOutWarr.get("GUAR_STATUS_NM")%></TD>
  585. </TR>
  586. <TR height="25">
  587. <TH class="search_table_title" style="text-align: left;">반송사유</TH>
  588. <TD class="search_table_data" style="text-align:left;padding-left:5px">&nbsp;<%= contOutWarr.get("REJECTMENT")%></TD>
  589. </TR>
  590. <TR height="25">
  591. <TH class="search_table_title" style="text-align: left;">처리방법</TH>
  592. <TD class="search_table_data" style="text-align:left;padding-left:5px">&nbsp;해당 보증사에 확인을 해주시기 바랍니다.</TD>
  593. </TR>
  594. </TABLE>
  595. <%
  596. }
  597. //반송사유 끝
  598. %>
  599. </FORM>
  600. <script>
  601. checkOnOff('<%=contOutWarr.get("GUAR_ONOFF_YN")%>');
  602. </script>