subconPayOutOffPopup.jsp 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. <%--
  2. - FileName : subconPayOutOffPopup.jsp
  3. - Author(s) : ok
  4. - Date : 2014.09.10
  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. <%@ include file="/jsp/work/taglib.jsp" %>
  15. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  16. <%
  17. ctx.init(request, response);
  18. HandlerStorage storage = ctx.getHandlerStorage();
  19. ValueObject params = storage.getParams();
  20. ValueObject user = storage.getUser();
  21. String event = storage.getEvent();
  22. //System.out.println("Outside params : " + event);
  23. RowSet WarrGofficeComboList = storage.getRowSet("WarrGofficeComboList"); //보증기관 ComboList Data
  24. RowSet WarrPayGbComboList = storage.getRowSet("WarrPayGbComboList"); //보증구문 ComboList Data 240808 추가
  25. ValueObject contOutWarr = storage.getValueObject("WarrContInfo"); //보증정보
  26. ValueObject attFile = storage.getValueObject("attFileList"); //첨부파일
  27. ValueObject attFile1 = storage.getValueObject("attFileList1"); //첨부파일
  28. String sWarrGubun = params.get("warrGubun");
  29. %>
  30. <SCRIPT language="JavaScript">
  31. var sGuarOnoffYn = "<%=contOutWarr.get("GUAR_ONOFF_YN")%>";
  32. function _onReady(){
  33. jQuery("#btnSave").click(function() {
  34. //필수 입력항목 check
  35. // alert(save());
  36. if(save()){
  37. var f = document.form1;
  38. jQuery("#fevent").val("FORM_SAVE");
  39. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_SAVE", f, "SUCCESS");
  40. }
  41. });
  42. jQuery("#btnTrans").click(function() {
  43. //필수 입력항목 check
  44. // alert(save());
  45. if(save()){
  46. var f = document.form1;
  47. jQuery("#fevent").val("FORM_SAVE");
  48. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_SAVE", f, "SUCCESS");
  49. }
  50. });
  51. jQuery("#btnAgain").click(function() {
  52. //필수 입력항목 check
  53. // alert(save());
  54. if(save()){
  55. var f = document.form1;
  56. jQuery("#fevent").val("FORM_SAVE");
  57. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_SAVE", f, "SUCCESS");
  58. }
  59. });
  60. }
  61. function doResult(resultObj) {
  62. try {
  63. if( resultObj.getRequestEvent() == "FORM_SAVE" ) {
  64. if( resultObj.getSuccess() ) {
  65. alert("저장되었습니다.");
  66. returnValue = new Array(0,"OK",<%=params.get("subContModId")%>);
  67. parent.popContWarrClose(returnValue);
  68. }else {
  69. dlgErrorMsg(resultObj);
  70. }
  71. document.form1.isSubmit = false;
  72. }
  73. }
  74. catch(errorObject) {
  75. showErrorDlg("doResult()", errorObject);
  76. }
  77. }
  78. function calendar(thisDayObj){
  79. dlgCalendar(thisDayObj);
  80. }
  81. //첨부파일
  82. function doAttachFile(obj,No,gwSeqNM) {
  83. parent.doAttachFilePop(obj, No, document.form1, gwSeqNM, "cont/purchase/<%=params.get("purContModId")%>/guar");
  84. }
  85. function inputDataSet(){
  86. if(jQuery("#guarOrganCode option:selected").val() == "99"){ //기타
  87. document.getElementById("warrGofficeEtc").style.display = "";
  88. jQuery("#warrGofficeEtc").attr("readonly",false);
  89. jQuery("#warrGofficeEtc").css({'background-color' : '#ffffff'});
  90. jQuery("#warrGofficeEtc").css({'border' : '1px solid #595a5a'});
  91. }else{
  92. document.getElementById("warrGofficeEtc").style.display = "none";
  93. jQuery("#warrGofficeEtc").attr("readonly",true);
  94. jQuery("#warrGofficeEtc").css({'background-color' : '#dedede'});
  95. jQuery("#warrGofficeEtc").css({'border' : '1px solid #bcbcbc'});
  96. }
  97. }
  98. /**********************************************
  99. 발행구분에 따른 입력 내용 보이기, 안보이기
  100. **********************************************/
  101. function showHideTable(bShow)
  102. {
  103. var form = document.form1;
  104. var sWarrGubun = form.warrGubun.value; // 보증종류
  105. var sGuarStatus = form.guarStatus.value; // 보증상태
  106. var sGuarOrganCode = form.guarOrganCode.value; // 기관코드
  107. //title 및 변경구분 세팅
  108. var sTitle = "";
  109. var sTitle2 = "";
  110. var sText = "";
  111. document.getElementById("offTableInfo").style.display = "";
  112. if("<%=params.get("USER")%>" == "CORP")
  113. document.getElementById("btnSave").style.display = "NONE"; //2015.9.17
  114. else
  115. document.getElementById("btnSave").style.display = "";
  116. document.getElementById("btnTrans").style.display = "none";
  117. document.getElementById("btnAgain").style.display = "none";
  118. if(sGuarStatus == "")
  119. {
  120. document.getElementById("btnDel").style.display = "none";
  121. }else
  122. {
  123. document.getElementById("btnDel").style.display = "none";
  124. }
  125. document.getElementById("btnCancel").style.display = "none";
  126. if(sGuarOrganCode == "99")
  127. {
  128. document.getElementById("warrGofficeEtc").style.display = "";
  129. }else
  130. {
  131. document.getElementById("warrGofficeEtc").style.display = "none";
  132. }
  133. sTitle = "오프라인 ";
  134. form.guarOrganCode.disabled = false;
  135. if(<%=sWarrGubun%> == 1)
  136. {
  137. sTitle2 = "계약이행증권";
  138. sText = "계약이행보증서";
  139. }else if(<%=sWarrGubun%> == 5)
  140. {
  141. sTitle2 = "하자이행증권";
  142. sText = "하자이행보증서";
  143. }else if(<%=sWarrGubun%> == 3)
  144. {
  145. sTitle2 = "선급금이행증권";
  146. sText = "선급금이행보증서";
  147. }else
  148. {
  149. sTitle2 = "근재책임보험증권";
  150. sText = "근로자재해보상책임보험";
  151. }
  152. // 제목 타이틀
  153. // document.getElementById("li_title").innerHTML = sTitle + sTitle2;
  154. }
  155. /********************************
  156. 보증정보 저장
  157. ********************************/
  158. function save()
  159. {
  160. var form = document.form1;
  161. /* 240813 보증기관 삭제(보증구분으로 대체)
  162. if(form.guarOrganCode.value == ""){
  163. alert("보증기관을 선택하세요");
  164. form.guarOrganCode.focus();
  165. return false;
  166. }
  167. // 오프라인인 경우
  168. if(form.guarOrganCode.value == "99"){
  169. if(!form.warrGofficeEtc.value){
  170. alert("보증기관명을 입력하세요");
  171. form.warrGofficeEtc.focus();
  172. return false;
  173. }
  174. }else{
  175. var iIndex = form.guarOrganCode.selectedIndex;
  176. var sText = form.guarOrganCode[iIndex].text;
  177. form.warrGofficeEtc.value = sText;
  178. }
  179. */
  180. var wgno = form.warrWgno1;
  181. var wamt = form.warrWamt1;
  182. var wcsn = form.warrCommsn1;
  183. var wfrom = form.dateStart1;
  184. var wto = form.dateEnd1;
  185. var wppd = form.paperDate1;
  186. var wsize = form.p_AttachFileGuar1;
  187. if(form.warrPayGb.value == '01'){
  188. if(wgno.value == ""){
  189. alert('증권번호를 입력하세요.');
  190. wgno.focus();
  191. return false;
  192. }
  193. if(wfrom.value.length <8){
  194. alert('보증시작일을 입력하세요');
  195. wfrom.focus();
  196. return false;
  197. }
  198. if(wto.value.length <8){
  199. alert('보증종료일을 입력하세요');
  200. wto.focus();
  201. return false;
  202. }
  203. if(wfrom.value > wto.value){
  204. alert('보증종료일이 시작일보다 빠릅니다.');
  205. wfrom.focus();
  206. return false;
  207. }
  208. if(wamt.value == "0" || wamt.value == ""){
  209. alert('보증금액을 입력하세요.');
  210. wamt.focus();
  211. return false;
  212. }
  213. if(wcsn.value == "0" || wcsn.value == ""){
  214. alert('수수료를 입력하세요.');
  215. wcsn.focus();
  216. return false;
  217. }
  218. if(wppd.value.length <8){
  219. alert('발급일을 입력하세요');
  220. wppd.focus();
  221. return false;
  222. }
  223. }
  224. if(wsize.value == null || wsize.value == "0" || wsize.value == ""){
  225. if(form.warrPayGb.value == "01" || form.warrPayGb.value == "02"){
  226. alert('첨부파일을 선택하세요.');
  227. return false;
  228. }
  229. }
  230. <%
  231. if (params.get("CAUSECODE").equals("04")){
  232. %>
  233. var wgno2 = form.warrWgno2;
  234. var wamt2 = form.warrWamt2;
  235. var wcsn2 = form.warrCommsn2;
  236. var wfrom2 = form.dateStart2;
  237. var wto2 = form.dateEnd2;
  238. var wppd2 = form.paperDate2;
  239. var wsize2 = form.p_AttachFileGuar2;
  240. if(wgno2.value == ""){
  241. alert('증권번호를 입력하세요.');
  242. wgno2.focus();
  243. return false;
  244. }
  245. if(wfrom2.value.length <8){
  246. alert('보증시작일을 입력하세요');
  247. wfrom2.focus();
  248. return false;
  249. }
  250. if(wto2.value.length <8){
  251. alert('보증종료일을 입력하세요');
  252. wto2.focus();
  253. return false;
  254. }
  255. if(wfrom2.value > wto.value){
  256. alert('보증종료일이 시작일보다 빠릅니다.');
  257. wfrom2.focus();
  258. return false;
  259. }
  260. if(wamt2.value == "0" || wamt2.value == ""){
  261. alert('보증금액을 입력하세요.');
  262. wamt2.focus();
  263. return false;
  264. }
  265. if(wcsn2.value == "0" || wcsn.value == ""){
  266. alert('수수료를 입력하세요.');
  267. wcsn2.focus();
  268. return false;
  269. }
  270. if(wppd2.value.length <8){
  271. alert('발급일을 입력하세요');
  272. wppd2.focus();
  273. return false;
  274. }
  275. if(wsize2.value == null || wsize2.value == "0" || wsize2.value == ""){
  276. alert('첨부파일을 선택하세요.');
  277. return false;
  278. }
  279. <%
  280. }
  281. %>
  282. form.guarStatus.value = "09";
  283. if(confirm("보증정보를 저장하시겠습니까?")) return true;
  284. }
  285. function doClose()
  286. {
  287. returnValue = null;
  288. parent.popContWarrClose(returnValue);
  289. }
  290. function onChangeWpb(){
  291. var form = document.form1;
  292. if(form.warrPayGb.value == '01'){ //보증구분이 지금보증일 경우
  293. jQuery("#warrWgno1").attr("readonly", false); //증권번호
  294. jQuery("#warrWgno1").css({'background-color' : '#ffffff'});
  295. jQuery("#dateStart1").attr("readonly", false); //보증기간 시작일
  296. jQuery("#dateStart1").css({'background-color' : '#ffffff'});
  297. jQuery("#dateEnd1").attr("readonly", false); //보증기간 종료일
  298. jQuery("#dateEnd1").css({'background-color' : '#ffffff'});
  299. jQuery("#paperDate1").attr("readonly", false); //발급일
  300. jQuery("#paperDate1").css({'background-color' : '#ffffff'});
  301. jQuery("#warrWamt1").attr("readonly", false); //보증금액
  302. jQuery("#warrWamt1").css({'background-color' : '#ffffff'});
  303. jQuery("#warrCommsn1").attr("readonly", false); //수수료
  304. jQuery("#warrCommsn1").css({'background-color' : '#ffffff'});
  305. }else{
  306. jQuery("#warrWgno1").attr("readonly", true); //증권번호
  307. jQuery("#warrWgno1").css({'background-color' : '#f0f0f0'});
  308. jQuery("#dateStart1").attr("readonly", true); //보증기간 시작일
  309. jQuery("#dateStart1").css({'background-color' : '#f0f0f0'});
  310. jQuery("#dateEnd1").attr("readonly", true); //보증기간 종료일
  311. jQuery("#dateEnd1").css({'background-color' : '#f0f0f0'});
  312. jQuery("#paperDate1").attr("readonly", true); //발급일
  313. jQuery("#paperDate1").css({'background-color' : '#f0f0f0'});
  314. jQuery("#warrWamt1").attr("readonly", true); //보증금액
  315. jQuery("#warrWamt1").css({'background-color' : '#f0f0f0'});
  316. jQuery("#warrCommsn1").attr("readonly", true); //수수료
  317. jQuery("#warrCommsn1").css({'background-color' : '#f0f0f0'});
  318. }
  319. }
  320. </SCRIPT>
  321. <STYLE>
  322. BODY {
  323. padding : 0 0 0 0;
  324. }
  325. </STYLE>
  326. <modular:search id="form1">
  327. <modular:key id="fevent" />
  328. </modular:search>
  329. <form id="form1" name="form1" method="post" modular:type="search">
  330. <INPUT type="hidden" name="fevent" id="fevent" value="<%= params.get("fevent") %>">
  331. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=params.get("subContModId") %>"> <!-- 보증증권 ID -->
  332. <INPUT type="hidden" name="warrGubun" id="warrGubun" value="<%=params.get("warrGubun") %>"> <!-- 보증증권 구분 -->
  333. <INPUT type="hidden" name="viewDiv" id="viewDiv" value="<%=params.get("viewDiv") %>"> <!-- 화면구분 -->
  334. <INPUT type="hidden" name="grtreqNo" id="grtreqNo" value="<%=contOutWarr.get("GRTREQNO") %>"> <!-- 원계약번호 -->
  335. <INPUT type="hidden" name="guarStatus" id="guarStatus" value="<%=contOutWarr.get("GUAR_STATUS") %>"> <!--보증 상태 -->
  336. <INPUT type="hidden" name="SUB_CONT_ID" id="SUB_CONT_ID" value="<%=contOutWarr.get("SUB_CONT_ID") %>"> <!--계약서 ID -->
  337. <INPUT type="hidden" name="MOD_NO" id="MOD_NO" value="<%=contOutWarr.get("MOD_NO") %>"> <!--계약 변경차수 -->
  338. <INPUT type="hidden" name="prepayId" id="prepayId" value="<%=params.get("prepayId") %>"> <!-- 보증일련번호 -->
  339. <INPUT type="hidden" name="guarOnOffYn" id="guarOnOffYn" value="<%=contOutWarr.get("GUAR_ONOFF_YN") %>"> <!-- 발행방법 -->
  340. <INPUT type="hidden" name="USER" id="USER" value="<%=params.get("USER")%>"> <!-- 업체는 저장버튼 제외. -->
  341. <!-- 제목 및 버튼 -->
  342. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  343. <colgroup>
  344. <col width="200" />
  345. <col width="*" />
  346. </colgroup>
  347. <tr>
  348. <td align="right">
  349. <% if(user.get("RIGHT_NAME").equals("OUTSIDE") ) {%>
  350. <span class="btnSearch center" id="btnSave"><a>저장</a></span>
  351. <span class="btnSearch center" style="display:none" id="btnDel"><a href="javascript:void();del('정말로 보증정보를 삭제 하시겠습니까?');">삭제</a></span>
  352. <span class="btnSearch center" style="display:none" id="btnTrans"><a>전송</a></span>
  353. <span class="btnSearch center" style="display:none" id="btnAgain"><a>재전송</a></span>
  354. <span class="btnSearch center" style="display:none" id="btnCancel"><a href="javascript:void();del('해당기관에 전송한 계약정보가 삭제됩니다.\n\n취소 신청하시겠습니까?');">취소</a></span>
  355. <%} %>
  356. </td>
  357. </tr>
  358. </table>
  359. <!-- 상세 정보 -->
  360. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:10px;">
  361. <colgroup>
  362. <col width="140" />
  363. <col width="*" />
  364. </colgroup>
  365. <TR height="25">
  366. <TH class="search_table_title" style="text-align: left;">현장명</TH>
  367. <TD class="search_table_data" style="margin-left:10px;text-align: left;">&nbsp;<%= InputText.get("deptName", contOutWarr.get("DEPT_NAME"), 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  368. </TR>
  369. <TR height="25">
  370. <TH class="search_table_title" style="text-align: left;">하도공사명</TH>
  371. <TD class="search_table_data" style="margin-left:10px;text-align: left;">&nbsp;<%= InputText.get("buildName", contOutWarr.get("BUILD_NAME"), 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  372. </TR>
  373. <TR height="25">
  374. <TH class="search_table_title" style="text-align: left;">계약번호</TH>
  375. <TD class="search_table_data" style="margin-left:10px;text-align: left;">&nbsp;<%= InputText.get("conDocNo", contOutWarr.get("CON_DOC_NO"), 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  376. </TR>
  377. <TR height="25">
  378. <TH class="search_table_title" style="text-align: left;">협력회사명</TH>
  379. <TD class="search_table_data" style="margin-left:10px;text-align: left;">&nbsp;<%= InputText.get("memberName", contOutWarr.get("MEMBER_NAME"), 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  380. </TR>
  381. <!-- TR height="25">
  382. <TH class="search_table_title" style="text-align: left;">발행구분</TH>
  383. <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>
  384. </TR -->
  385. <TR height="25">
  386. <TH class="search_table_title required" style="text-align: left;">보증구분</TH>
  387. <TD class="search_table_data" style="margin-left:10px;text-align: left;">&nbsp;<%= HTMLMaker.getSelectTag(WarrPayGbComboList, "DETAILCD", "DETAILNM", "warrPayGb", "width:35%;height=18;' onChange='onChangeWpb();", "<option value=''>선택</option>", contOutWarr.get("WARR_PAY_GB")) %>
  388. <%-- <%= InputText.get("warrPayGb", contOutWarr.get("WARR_PAY_GB"), 30, 40, "string, left, readOnly", "string") %> --%>
  389. </TD>
  390. </TR>
  391. </TABLE>
  392. <%
  393. if (params.get("CAUSECODE").equals("04")){
  394. %>
  395. <TABLE cellspacing="1" cellpadding="0" class="search_table" id="offTableInfo" name="offTableInfo" style="margin-top:10px;display:">
  396. <colgroup>
  397. <col width="140" />
  398. <col width="*" />
  399. </colgroup>
  400. <TR height="25">
  401. <TH class="search_table_title" style="text-align: left;">변경구분</TH>
  402. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("xxxxxxxx", "연장", 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %>
  403. <INPUT type="hidden" name="warrSeq1" id="warrSeq1" value="<%=params.get("warrSeq") %>"> <!-- 보증증권 일련번호 -->
  404. <INPUT type="hidden" name="CAUSECODE1" id="CAUSECODE1" value="02">
  405. <INPUT type="hidden" name="CAUSECOUNT" id="CAUSECOUNT" value="2">
  406. </TD>
  407. </TR>
  408. <TR height="25">
  409. <TH class="search_table_title" style="text-align: left;">증권번호</TH>
  410. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWgno1", contOutWarr.get("WARR_WGNO"), 55, 38, "string, left", "string") %></TD>
  411. </TR>
  412. <TR height="25">
  413. <TH class="search_table_title" style="text-align: left;">보증기간</TH>
  414. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("dateStart1", Formatter.formatDate(contOutWarr.get("WARR_SDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  415. <A href="JavaScript:calendar('dateStart1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  416. ~
  417. <%= InputText.get("dateEnd1", Formatter.formatDate(contOutWarr.get("WARR_EDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  418. <A href="JavaScript:calendar('dateEnd1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  419. </TD>
  420. </TR>
  421. <TR height="25">
  422. <TH class="search_table_title" style="text-align: left;">발급일</TH>
  423. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("paperDate1", Formatter.formatDate(contOutWarr.get("PAPERDATE"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  424. <A href="JavaScript:calendar('paperDate1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  425. </TD>
  426. </TR>
  427. <TR height="25">
  428. <TH class="search_table_title" style="text-align: left;">보증금액</TH>
  429. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWamt1", Formatter.formatCurrency(contOutWarr.get("WARR_WAMT")), 55, 14, "class=input byteChk ,number, right", "number") %>
  430. </TD>
  431. </TR>
  432. <TR height="25">
  433. <TH class="search_table_title" style="text-align: left;">수수료</TH>
  434. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrCommsn1", Formatter.formatCurrency(contOutWarr.get("WARR_COMMSN")), 55, 14, "class=input byteChk ,minus, right", "number") %>
  435. </TD>
  436. </TR>
  437. <TR height="25">
  438. <TH class="search_table_title" style="text-align: left;">첨부파일</TH>
  439. <TD class="search_table_data" style="text-align: left;">&nbsp;<TEXTAREA name="p_AttachFileGuar1" id="p_AttachFileGuar2" style="width:85%;height:20px" rows="1" class="input" readOnly><%=attFile1.get("fileRow") %></TEXTAREA>
  440. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.subContModId,1,'GUARCONT_OUT_<%=params.get("warrGubun")%>_<%=params.get("warrSeq")%>');" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  441. </TD>
  442. </TR>
  443. </TABLE>
  444. <TABLE cellspacing="1" cellpadding="0" class="search_table" id="offTableInfo" name="offTableInfo" style="margin-top:5px;display:">
  445. <colgroup>
  446. <col width="140" />
  447. <col width="*" />
  448. </colgroup>
  449. <TR height="25">
  450. <TH class="search_table_title" style="text-align: left;">변경구분</TH>
  451. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("xxxxxxxx", "증액", 50, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %>
  452. <INPUT type="hidden" name="warrSeq2" id="warrSeq2" value="<%=Integer.parseInt(params.get("warrSeq"))+1 %>"> <!-- 보증증권 일련번호 -->
  453. <INPUT type="hidden" name="CAUSECODE2" id="CAUSECODE2" value="03">
  454. </TD>
  455. </TR>
  456. <TR height="25">
  457. <TH class="search_table_title" style="text-align: left;">증권번호</TH>
  458. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWgno2", contOutWarr.get("WARR_WGNO"), 55, 38, "string, left", "string") %></TD>
  459. </TR>
  460. <TR height="25">
  461. <TH class="search_table_title" style="text-align: left;">보증기간</TH>
  462. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("dateStart2", Formatter.formatDate(contOutWarr.get("WARR_SDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  463. <A href="JavaScript:calendar('dateStart2');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  464. ~
  465. <%= InputText.get("dateEnd2", Formatter.formatDate(contOutWarr.get("WARR_EDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  466. <A href="JavaScript:calendar('dateEnd2');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  467. </TD>
  468. </TR>
  469. <TR height="25">
  470. <TH class="search_table_title" style="text-align: left;">발급일</TH>
  471. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("paperDate2", Formatter.formatDate(contOutWarr.get("PAPERDATE"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  472. <A href="JavaScript:calendar('paperDate2');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  473. </TD>
  474. </TR>
  475. <TR height="25">
  476. <TH class="search_table_title" style="text-align: left;">보증금액</TH>
  477. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWamt2", Formatter.formatCurrency(contOutWarr.get("WARR_WAMT")), 55, 14, "class=input byteChk ,number, right", "number") %>
  478. </TD>
  479. </TR>
  480. <TR height="25">
  481. <TH class="search_table_title" style="text-align: left;">수수료</TH>
  482. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrCommsn2", Formatter.formatCurrency(contOutWarr.get("WARR_COMMSN")), 55, 14, "class=input byteChk ,minus, right", "number") %>
  483. </TD>
  484. </TR>
  485. <TR height="25">
  486. <TH class="search_table_title" style="text-align: left;">첨부파일</TH>
  487. <TD class="search_table_data" style="text-align: left;">&nbsp;<TEXTAREA name="p_AttachFileGuar2" id="p_AttachFileGuar2" style="width:85%;height:20px" rows="1" class="input" readOnly><%=attFile.get("fileRow") %></TEXTAREA>
  488. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.subContModId,2,1,'GUARCONT_OUT_<%=params.get("warrGubun")%>_<%=Integer.parseInt(params.get("warrSeq"))+1%>');" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  489. </TD>
  490. </TR>
  491. </TABLE>
  492. <%}else{%>
  493. <TABLE cellspacing="1" cellpadding="0" class="search_table" id="offTableInfo" name="offTableInfo" style="margin-top:10px;display:">
  494. <colgroup>
  495. <col width="140" />
  496. <col width="*" />
  497. </colgroup>
  498. <TR height="25">
  499. <TH class="search_table_title" style="text-align: left;">변경구분</TH>
  500. <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") %>
  501. <INPUT type="hidden" name="warrSeq1" id="warrSeq1" value="<%=params.get("warrSeq") %>"> <!-- 보증증권 일련번호 -->
  502. <INPUT type="hidden" name="CAUSECODE1" id="CAUSECODE1" value="<%=params.get("CAUSECODE") %>">
  503. <INPUT type="hidden" name="CAUSECOUNT" id="CAUSECOUNT" value="1">
  504. </TD>
  505. </TR>
  506. <TR height="25">
  507. <TH class="search_table_title" style="text-align: left;">증권번호</TH>
  508. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWgno1", contOutWarr.get("WARR_WGNO"), 55, 38, "string, left, readonly", "string") %></TD>
  509. </TR>
  510. <TR height="25">
  511. <TH class="search_table_title" style="text-align: left;">보증기간</TH>
  512. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("dateStart1", Formatter.formatDate(contOutWarr.get("WARR_SDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  513. <A href="JavaScript:calendar('dateStart1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  514. ~
  515. <%= InputText.get("dateEnd1", Formatter.formatDate(contOutWarr.get("WARR_EDATE"), "-"), 20, 10, "Center, date, PerSize, readonly", "date", "") %>
  516. <A href="JavaScript:calendar('dateEnd1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  517. </TD>
  518. </TR>
  519. <TR height="25">
  520. <TH class="search_table_title" style="text-align: left;">발급일</TH>
  521. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("paperDate1", Formatter.formatDate(contOutWarr.get("PAPERDATE"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  522. <A href="JavaScript:calendar('paperDate1');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  523. </TD>
  524. </TR>
  525. <TR height="25">
  526. <TH class="search_table_title" style="text-align: left;">보증금액</TH>
  527. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrWamt1", Formatter.formatCurrency(contOutWarr.get("WARR_WAMT")), 55, 14, "class=input byteChk ,number, right, readonly", "number") %>
  528. </TD>
  529. </TR>
  530. <TR height="25">
  531. <TH class="search_table_title" style="text-align: left;">수수료</TH>
  532. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrCommsn1", Formatter.formatCurrency(contOutWarr.get("WARR_COMMSN")), 55, 14, "class=input byteChk ,minus, right, readonly", "number") %>
  533. </TD>
  534. </TR>
  535. <TR height="25">
  536. <TH class="search_table_title" style="text-align: left;">첨부파일</TH>
  537. <TD class="search_table_data" style="text-align: left;">&nbsp;<TEXTAREA name="p_AttachFileGuar1" id="p_AttachFileGuar1" style="width:85%;height:30px" rows="1" class="input" readOnly><%=attFile.get("fileRow") %></TEXTAREA>
  538. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.subContModId,1,'GUARCONT_OUT_<%=params.get("warrGubun")%>_<%=params.get("warrSeq")%>');" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  539. </TD>
  540. </TR>
  541. </TABLE>
  542. <%}%>
  543. </FORM>
  544. <script>
  545. window.onload = function() {
  546. showHideTable(false);
  547. };
  548. onChangeWpb();
  549. </script>