contPurWarrPopup.jsp 24 KB

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