guarList.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.udapsoft.common.code.*" %>
  3. <%@ page import="kr.co.hsnc.common.config.WAFConfig %>
  4. <%
  5. String guarUrl = WAFConfig.get("waf.guar.url");
  6. %>
  7. <script>
  8. /************************
  9. 보증 신청창 띄우기
  10. ************************/
  11. function popOpenGuar(wG, wSeq, wCauseCd, wOnOff, wGStatus, wOffid, wConRefNo, wChgNo){
  12. var sGuarKind = wG; //보증서종류
  13. var sGuarSeq = wSeq; //일련번호
  14. var sGuarOnoffYn = wOnOff; //온오프여부
  15. var sGuarStatus = wGStatus; //보증진행상태
  16. var sChgNo = wChgNo; //계약차수
  17. var style = "";
  18. var src = "";
  19. var sGrtType = ""; // 보증종목구분
  20. if(sGuarKind == "1") sGrtType = "002"; //계약
  21. else if(sGuarKind == "2") sGrtType = "006"; //지급
  22. else if(sGuarKind == "3") sGrtType = "004"; //선급금
  23. else if(sGuarKind == "4") sGrtType = "005"; //근재
  24. else if(sGuarKind == "5") sGrtType = "003"; //하자
  25. //검토대기나 완료일경우
  26. if(sGuarOnoffYn == "Y" && sGuarStatus.length > 0 && (sGuarStatus == "08" || sGuarStatus == "09")){
  27. var sOffId = wOffid; // 수신기관 ID
  28. var conRefNo = wConRefNo; // 계약번호
  29. var sGrtSeq = wSeq; // 보증차수
  30. var sMsgFuncCode = "53"; // 문서기능
  31. var sModule = "EB"; // 모듈구분코드
  32. if(sChgNo == "")
  33. sChgNo = "00";
  34. else if(sChgNo.length == 1)
  35. sChgNo = "0" + sChgNo;
  36. if(sGrtSeq.length == 1)
  37. sGrtSeq = "0" + sGrtSeq;
  38. //parameter 확인 요함
  39. src = "<%=guarUrl%>/transure/view/KSCFCView.jsp?offID="+sOffId+"&conRefNo="+conRefNo+"&conSeqNo="+sChgNo+"&grtSeq="+sGrtSeq+"&grtType="+sGrtType+"&msgFuncCode="+sMsgFuncCode+"&module="+sModule;
  40. style = "width=720,height=800, loactionbar=visible, menubar=visible, scrollbars=no";
  41. }
  42. var id = "WARR";
  43. openPopup(src, id, "yes", 720, 800);
  44. /*
  45. var clNew = window.open(src,id,style);
  46. if(clNew == null){
  47. alert(" ▒【보증신청】페이지는 팝업창으로 구성되어 있습니다. ▒\n\n\n'팝업이 차단되었습니다. 팝업 또는 추가 옵션을 보려면 여기를 클릭하십시오.' 라는\n\n 메세지가 보일경우에는 그 메세지를 클릭하셔서 '현재 사이트의 팝업을 항상 허용'이나\n\n'임시로 팝업허용'으로 설정해주시기 바랍니다.");
  48. }else{
  49. clNew.focus();
  50. }
  51. */
  52. }
  53. </script>
  54. <div class="application-info magT10" id="warr1">
  55. <div class="application-sub-title">
  56. <span class="title">보증정보</span>
  57. </div>
  58. <div class="application-location">
  59. </div>
  60. </div>
  61. <TABLE class="form-table" id="warr2">
  62. <colgroup>
  63. <col width="10%" />
  64. <col width="50" />
  65. <col width="10%" />
  66. <col width="10%" />
  67. <col width="10%" />
  68. <col width="10%" />
  69. <col width="10%" />
  70. <col width="10%" />
  71. <col width="*" />
  72. </colgroup>
  73. <TR height="25">
  74. <TH style="text-align:center;">제증권명</TH>
  75. <TH style="text-align:center;">상세</TH>
  76. <TH style="text-align:center;">변경구분</TH>
  77. <TH style="text-align:center;">발행방법</TH>
  78. <TH style="text-align:center;">발급기관</TH>
  79. <TH style="text-align:center;">진행상태</TH>
  80. <TH style="text-align:center;">발급일</TH>
  81. <TH style="text-align:center;">증권번호</TH>
  82. <TH style="text-align:center;">보증금액</TH>
  83. <TH style="text-align:center;">보증기간</TH>
  84. </TR>
  85. <%
  86. if (warrList.size()>0){
  87. for(int i=0;i<warrList.size();i++){
  88. %>
  89. <TR height="25">
  90. <TD><%=warrList.getRow(i).get("WARR_GUBUN_NM")%></TD>
  91. <TD style="text-align:center;">
  92. <%if ((warrList.getRow(i).get("GUAR_STATUS").equals("08") || warrList.getRow(i).get("GUAR_STATUS").equals("09")) && warrList.getRow(i).get("GUAR_ONOFF_YN").equals("Y")){ %>
  93. <IMG src="/img/buyer/button/bt_search_right.gif" onclick="javascript:popOpenGuar('<%=warrList.getRow(i).get("WARR_GUBUN")%>','<%=warrList.getRow(i).get("WARR_SEQ")%>','<%=warrList.getRow(i).get("CAUSECODE")%>','<%=warrList.getRow(i).get("GUAR_ONOFF_YN")%>','<%=warrList.getRow(i).get("GUAR_STATUS")%>','<%=warrList.getRow(i).get("WARR_GOFFICE_ID")%>','<%=warrList.getRow(i).get("GRTREQNO")%>','<%=warrList.getRow(i).get("MOD_NO")%>');" id="contPurWarr" alt="보증정보" border="0" align="absmiddle" style="cursor:pointer;" />
  94. <%}else{ %>
  95. <IMG src="/img/buyer/button/bt_search_right.gif" onclick="javascript:popContWarr('<%=warrList.getRow(i).get("WARR_GUBUN")%>','<%=warrList.getRow(i).get("WARR_SEQ")%>','<%=warrList.getRow(i).get("CAUSECODE")%>');" id="contPurWarr" alt="보증정보" border="0" align="absmiddle" style="cursor:pointer;" />
  96. <%} %>
  97. </TD>
  98. <TD style="text-align:center;"><%=warrList.getRow(i).get("CAUSECODE_NM")%></TD>
  99. <TD style="text-align:center;"><%=warrList.getRow(i).get("GUAR_ONOFF_NM")%></TD>
  100. <TD><%=warrList.getRow(i).get("WARR_GOFFICE")%></TD>
  101. <TD style="text-align:center;"><%=warrList.getRow(i).get("GUAR_STATUS_NM")%></TD>
  102. <TD style="text-align:center;"><%=Formatter.formatDate(warrList.getRow(i).get("PAPERDATE"), "-")%></TD>
  103. <TD><%=warrList.getRow(i).get("WARR_WGNO")%></TD>
  104. <TD style="text-align:right;"><%=Formatter.formatCurrency(warrList.getRow(i).get("WARR_WAMT"))%></TD>
  105. <TD style="text-align:center;"><%=Formatter.formatDate(warrList.getRow(i).get("WARR_SDATE"), "-") +" ~ "+ Formatter.formatDate(warrList.getRow(i).get("WARR_EDATE"), "-")%></TD>
  106. </TR>
  107. <%
  108. }
  109. }
  110. %>
  111. </table>
  112. <br />