subconPayOutOnPopup.jsp 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  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. ValueObject contOutWarr = storage.getValueObject("WarrContInfo"); //보증정보
  24. //보증기관명 ComboList
  25. RowSet contorgbncodeComboList = storage.getRowSet("contorgbncodeComboList");
  26. //장기계속구분 ComboList
  27. RowSet longgbnComboList = storage.getRowSet("longgbnComboList");
  28. ValueObject attFile = storage.getValueObject("attFileList"); //첨부파일
  29. String sWarrGubun = params.get("warrGubun");
  30. %>
  31. <SCRIPT language="JavaScript">
  32. var sGuarOnoffYn = "Y";
  33. var sGuarStatus = "<%=contOutWarr.get("GUAR_STATUS")%>";
  34. function _onReady(){
  35. jQuery("#btnSave").click(function() {
  36. //필수 입력항목 check
  37. // alert(save());
  38. if(save()){
  39. var f = document.form1;
  40. jQuery("#fevent").val("FORM_SAVE_ON");
  41. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_SAVE_ON", f, "SUCCESS");
  42. }
  43. });
  44. jQuery("#btnTrans").click(function() {
  45. //필수 입력항목 check
  46. // alert(save());
  47. if(save()){
  48. var f = document.form1;
  49. jQuery("#fevent").val("FORM_SAVE_ON");
  50. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_SAVE_ON", f, "SUCCESS");
  51. }
  52. });
  53. jQuery("#btnAgain").click(function() {
  54. //필수 입력항목 check
  55. // alert(save());
  56. if(save()){
  57. var f = document.form1;
  58. jQuery("#fevent").val("FORM_SAVE_ON");
  59. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_SAVE_ON", f, "SUCCESS");
  60. }
  61. });
  62. jQuery("#btnCancel").click(function() {
  63. if(confirm("해당기관에 전송한 계약정보가 삭제됩니다.\n\n취소 신청하시겠습니까?")){
  64. // 보증정보 삭제
  65. var f = document.form1;
  66. jQuery("#fevent").val("FORM_DEL");
  67. submitXmlRequest("/portal/guar/subconPayOutPopup_form.screen", "FORM_DEL", f, "SUCCESS");
  68. }
  69. });
  70. //보증 상태에 따라서 버튼 오픈 유무 체크
  71. funBtnCheck();
  72. }
  73. function doResult(resultObj) {
  74. try {
  75. if( resultObj.getRequestEvent() == "FORM_SAVE_ON" ) {
  76. if( resultObj.getSuccess() ) {
  77. alert("저장되었습니다.");
  78. returnValue = new Array(0,"OK",<%=params.get("subContModId")%>);
  79. parent.popContWarrClose(returnValue);
  80. }else {
  81. dlgErrorMsg(resultObj);
  82. }
  83. document.form1.isSubmit = false;
  84. }
  85. if( resultObj.getRequestEvent() == "FORM_DEL" ) {
  86. if( resultObj.getSuccess() ) {
  87. alert("정상적으로 처리 되었습니다.");
  88. returnValue = new Array(0,"OK",<%=params.get("subContModId")%>);
  89. parent.popContWarrClose(returnValue);
  90. }else {
  91. dlgErrorMsg(resultObj);
  92. }
  93. document.form1.isSubmit = false;
  94. }
  95. }
  96. catch(errorObject) {
  97. showErrorDlg("doResult()", errorObject);
  98. }
  99. }
  100. function calendar(thisDayObj){
  101. dlgCalendar(thisDayObj);
  102. }
  103. //첨부파일
  104. function doAttachFile(obj,No) {
  105. parent.doAttachFilePop(obj, No, document.form1, "GUARCONT_OUT_<%=params.get("warrGubun")%>_<%=params.get("warrSeq")%>", "cont/outside/<%=params.get("subContModId")%>/guar");
  106. }
  107. /********************************
  108. 보증정보 저장
  109. ********************************/
  110. function save()
  111. {
  112. var form = document.form1;
  113. /* 여기부터 수정 할것 */
  114. var iReqDate = form.reqdate; // 발급희망일
  115. var iLongGbn = form.longgbn; // 장기계속구분
  116. var iContorderno = form.contorderno; // 원도급 계약번호
  117. var iContOrgbnCd = form.contorgbncode; // 기관분류
  118. // var iSite_ocst = form.site_ocst; // 발주처 사업자번호
  119. // var iDealer_nm = form.dealer_nm; // 발주처 기관명
  120. var iDepnm = form.depnm; // 부서명
  121. var iEmpnm = form.empnm; // 성명
  122. var iTelno = form.telno; // 전화번호
  123. var iHpno = form.hpno; // 핸드폰번호
  124. var iEmail = form.email; // 메일주소
  125. var iRateGbnCd = form.GUARRATEGBNCODE;// 보증서발급지분
  126. var iPrepayRefYn = form.PREPAYREFYN; // 선급금공제여부
  127. var iExistRefYn = form.EXIISTREFYN; // 기성금공제여부
  128. var iOrderOwner = form.orderowner; // 발주처대표자명
  129. var iToDate = "<%=contOutWarr.get("TODAY")%>";
  130. var iContstartdate = form.contstartdate; // 원도급 계약 시작일자
  131. var iContclosedate = form.contclosedate; // 원도급 계약 종료 일자
  132. var iCont_sdate = form.cont_sdate; // 하도급 계약 시작일자
  133. var iCont_edate = form.cont_edate; // 하도급 계약 종료 일자
  134. if(iReqDate.value.length < 8){
  135. alert("발급희망일을 정확히 입력하세요");
  136. document.getElementById("reqdate").focus();
  137. return false;
  138. }
  139. if(iReqDate.value < iToDate){
  140. alert("발급희망일을 오늘 날짜 이후로 입력해 주세요.");
  141. document.getElementById("reqdate").focus();
  142. return false;
  143. }
  144. //원도급 계약 시작일자가 하도급 계약 시작일자 안에 있어야 함
  145. if(iCont_sdate.value < iContstartdate.value){
  146. alert("하도급 계약 시작일은 원도급 계약 시작일 안에 있어야 합니다.");
  147. document.getElementById("contstartdate").focus();
  148. return false;
  149. }
  150. //원도급 계약 시작일자가 하도급 계약 시작일자 안에 있어야 함
  151. if(iCont_edate.value > iContclosedate.value){
  152. alert("하도급 계약 종료일은 원도급 계약 종료일 안에 있어야 합니다.");
  153. document.getElementById("contclosedate").focus();
  154. return false;
  155. }
  156. if(iRateGbnCd.value == ""){
  157. alert("보증서발급지분을 선택하세요.");
  158. return false;
  159. }
  160. /*
  161. if(iPrepayRefYn.value == ""){
  162. alert("선급금공제여부를 선택하세요.");
  163. return false;
  164. }
  165. if(iExistRefYn.value == ""){
  166. alert("기성금공제여부를 선택하세요.");
  167. return false;
  168. }
  169. */
  170. if(iContorderno.value == ""){
  171. alert("원도급 계약번호를 입력하세요.");
  172. return false;
  173. }
  174. if(document.form1.contamt.value == ""){
  175. alert("원도급 계약 금액을 입력하세요.");
  176. document.form1.contamt.focus();
  177. return false;
  178. }
  179. if(iLongGbn.value == ""){
  180. alert("장기계속구분을 선택하세요.");
  181. document.getElementById("longgbn").focus();
  182. return false;
  183. }
  184. /*
  185. if(iSite_ocst.value == ""){
  186. alert("발주처 사업자 번호를 입력하세요.");
  187. return false;
  188. }
  189. if(iDealer_nm.value == ""){
  190. alert("발주처 기관명을 입력하세요.");
  191. return false;
  192. }
  193. */
  194. if(iContOrgbnCd.value == ""){
  195. alert("기관분류를 선택하세요.");
  196. document.getElementById("contorgbncode").focus();
  197. return false;
  198. }
  199. if(iOrderOwner.value == ""){
  200. alert("발주처 대표자 명을 입력하세요.");
  201. document.getElementById("orderowner").focus();
  202. return false;
  203. }
  204. if(iDepnm.value == ""){
  205. alert("부서명을 입력하세요.");
  206. document.getElementById("depnm").focus();
  207. return false;
  208. }
  209. if(iEmpnm.value == ""){
  210. alert("성명을 입력하세요.");
  211. document.getElementById("empnm").focus();
  212. return false;
  213. }
  214. if(iTelno.value == ""){
  215. alert("전화번호를 입력하세요.");
  216. document.getElementById("telno").focus();
  217. return false;
  218. }
  219. if(iHpno.value == ""){
  220. alert("휴대전화번호를 입력하세요.");
  221. document.getElementById("hpno").focus();
  222. return false;
  223. }
  224. if(iEmail.value == ""){
  225. alert("이메일을 입력하세요.");
  226. document.getElementById("email").focus();
  227. return false;
  228. }
  229. form.guarStatus.value = "04";
  230. if(confirm("보증정보를 저장하시겠습니까?")) return true;
  231. }
  232. /****************************
  233. 보증지분율 설정
  234. ******************************/
  235. function setGuarRate(row_index, col_name)
  236. {
  237. var form = document.form1;
  238. // var ds_cnt = sDataset.CountRow;
  239. var w_gubun = form.GUARRATEGBNCODE;
  240. var w_cause = document.getElementById("CAUSECODE"+ row_index);
  241. var c_camt = "<%=contOutWarr.get("CONT_CAMT")%>";
  242. var l_camt = <%=contOutWarr.get("LAST_CAMT")%>;
  243. var gs_amt = <%=contOutWarr.get("CONTEXISTENCEAMT")%>;
  244. var sun_amt = <%=contOutWarr.get("SUM_SUN")%>;
  245. var df_amt = Number(c_camt) - Number(l_camt);
  246. //var df_amt = parseInt(c_camt - l_camt);
  247. // 보증지분구분[ 03:단독, 04:공동이행(전체-한도분할 안함), 05:공동이행(전체-한도분할 함), 06:공동이행(당사), 07:분담이행 ]
  248. // 변경구분 [ 01:당초, 02:연장, 03:증액 ]
  249. if(w_gubun.value == ""){
  250. return;
  251. }else if(w_gubun.value == "03"){ // 단독, 분담이행
  252. document.getElementById("GUARRATE"+ row_index).value = "100"; // 일성 보증지분율: 100%
  253. if(w_cause.value == "01"){
  254. calcul_1(c_camt, row_index);
  255. calcul_2(sun_amt, row_index);
  256. calcul_3(gs_amt, "Y", row_index);
  257. }else if(w_cause.value == "02"){
  258. calcul_1(l_camt, row_index);
  259. calcul_2(sun_amt, row_index);
  260. calcul_3(gs_amt, "X", row_index);
  261. }else if(w_cause.value == "03"){
  262. calcul_1(df_amt, row_index);
  263. calcul_2(sun_amt, row_index);
  264. calcul_3(gs_amt, "X", row_index);
  265. }
  266. }
  267. }
  268. /****************************
  269. 계약금 분담액 계산 입력
  270. ******************************/
  271. function calcul_1(amt, row_index)
  272. {
  273. var cal_rate = document.getElementById("GUARRATE"+ row_index).value;
  274. var cal_amt = parseInt(amt * cal_rate /100);
  275. document.getElementById("ADDCONTAMT"+ row_index).value = cal_amt;
  276. }
  277. /****************************
  278. 선급금 공제액 계산 입력
  279. ******************************/
  280. function calcul_2(amt, row_index)
  281. {
  282. var ref_flag = document.getElementById("PREPAYREFYN"+ row_index).value;
  283. if(ref_flag == "Y"){
  284. var cal_rate = document.getElementById("GUARRATE"+ row_index).value;
  285. var cal_amt = parseInt(amt * cal_rate /100);
  286. document.getElementById("ADDPREPAYAMT"+ row_index).value = cal_amt;
  287. }else{
  288. document.getElementById("ADDPREPAYAMT"+ row_index).value = "0";
  289. }
  290. }
  291. /****************************
  292. 기성금 공제액 계산 입력
  293. ******************************/
  294. function calcul_3(amt, mode, row_index)
  295. {
  296. var gs_flag = document.getElementById("EXIISTREFYN"+ row_index).value;
  297. if(mode == "X"){
  298. document.getElementById("ADDEXISAMT"+ row_index).value = "0";
  299. }else{
  300. if(gs_flag == "Y"){
  301. var cal_rate = document.getElementById("GUARRATE"+ row_index).value;
  302. var cal_amt = parseInt(amt * cal_rate /100);
  303. document.getElementById("ADDEXISAMT"+ row_index).value = cal_amt;
  304. }else{
  305. document.getElementById("ADDEXISAMT"+ row_index).value = "0";
  306. }
  307. }
  308. }
  309. /****************************
  310. 선급금 공제분 설정
  311. ******************************/
  312. function setPrepay(row_index, col_name)
  313. {
  314. var sun_amt = "<%=contOutWarr.get("SUM_SUN")%>";
  315. var flag = document.getElementById("PREPAYREFYN"+ row_index).value;
  316. if(flag == "Y" && sun_amt == "0"){
  317. alert("기지급 선급금이 없으므로 반영 할 수 없습니다.");
  318. document.getElementById("PREPAYREFYN"+ row_index).value = "N";
  319. return;
  320. }
  321. if(flag == "N"){
  322. document.getElementById("ADDPREPAYAMT"+ row_index).value = "0";
  323. document.getElementById("ADDPREPAYAMT"+ row_index).style.readOnly=true;
  324. // document.form1.ADDPREPAYAMT.value = "0";
  325. // document.form1.ADDPREPAYAMT.style.readOnly=true;
  326. }else{
  327. document.getElementById("ADDPREPAYAMT"+ row_index).style.readOnly=false;
  328. setGuarRate(row_index, "GUARRATEGBNCODE");
  329. }
  330. }
  331. /****************************
  332. 기성금 공제분 설정
  333. ******************************/
  334. function setGs(row_index, col_name)
  335. {
  336. var gs_amt = "<%=contOutWarr.get("CONTEXISTENCEAMT")%>";
  337. var gs_ref_yn = "<%=contOutWarr.get("GS_REF_FLAG")%>";
  338. var flag = document.getElementById("EXIISTREFYN"+ row_index).value;
  339. if(flag == "Y" && gs_amt == "0"){
  340. alert("기지급 기성금이 없으므로 반영 할 수 없습니다.");
  341. document.getElementById("EXIISTREFYN"+ row_index).value = "N";
  342. return;
  343. }else if(gs_ref_yn == "Y"){
  344. alert("이미 발급된 보증정보가 존재하므로\n\n현재 보증정보에서는 기성정보를 반영할 수 없습니다.");
  345. document.getElementById("EXIISTREFYN"+ row_index).value = "N";
  346. return;
  347. }
  348. if(flag == "N"){
  349. document.getElementById("ADDEXISAMT"+ row_index).value = "0";
  350. document.getElementById("ADDEXISAMT"+ row_index).style.readOnly=true;
  351. }else{
  352. document.getElementById("ADDEXISAMT"+ row_index).style.readOnly=false;
  353. setGuarRate(row_index, "GUARRATEGBNCODE");
  354. }
  355. }
  356. function funBtnCheck(){
  357. if((sGuarStatus == "") || (sGuarStatus == "02") || (sGuarStatus == "04"))
  358. {
  359. document.getElementById("btnSave").style.display = "";
  360. }else{
  361. document.getElementById("btnCancel").style.display = "";
  362. }
  363. }
  364. </SCRIPT>
  365. <STYLE>
  366. BODY {
  367. padding : 0 0 0 0;
  368. }
  369. </STYLE>
  370. <modular:search id="form1">
  371. <modular:key id="fevent" />
  372. </modular:search>
  373. <form id="form1" name="form1" method="post" modular:type="search">
  374. <INPUT type="hidden" name="fevent" id="fevent" value="<%= params.get("fevent") %>">
  375. <INPUT type="hidden" name="subContModId" id="subContModId" value="<%=params.get("subContModId") %>"> <!-- 보증증권 ID -->
  376. <INPUT type="hidden" name="warrGubun" id="warrGubun" value="<%=params.get("warrGubun") %>"> <!-- 보증증권 구분 -->
  377. <INPUT type="hidden" name="viewDiv" id="viewDiv" value="<%=params.get("viewDiv") %>"> <!-- 화면구분 -->
  378. <INPUT type="hidden" name="guarStatus" id="guarStatus" value="<%=contOutWarr.get("GUAR_STATUS") %>"> <!--보증 상태 -->
  379. <INPUT type="hidden" name="SUB_CONT_ID" id="SUB_CONT_ID" value="<%=params.get("SUB_CONT_ID") %>"> <!--계약서 ID -->
  380. <INPUT type="hidden" name="MOD_NO" id="MOD_NO" value="<%=params.get("MOD_NO") %>"> <!--계약 변경차수 -->
  381. <INPUT type="hidden" name="prepayId" id="prepayId" value="<%=params.get("prepayId") %>"> <!-- 보증일련번호 -->
  382. <INPUT type="hidden" name="guarOnOffYn" id="guarOnOffYn" value="Y"> <!-- 발행방법 -->
  383. <INPUT type="hidden" name="EXIST_FLAG" id="EXIST_FLAG" value="<%=contOutWarr.get("EXIST_FLAG") %>"> <!-- 저장 유무 -->
  384. <INPUT type="hidden" name="GUARRATEGBNCODE" id="GUARRATEGBNCODE" value="03"> <!-- 단독이행 -->
  385. <!-- 제목 및 버튼 -->
  386. <table id="t1" width="100%" border="0" cellspacing="0" cellpadding="0" class="ftit_table">
  387. <colgroup>
  388. <col width="200" />
  389. <col width="*" />
  390. </colgroup>
  391. <tr>
  392. <td align="right">
  393. <span class="btnSearch center" style="display:none" id="btnSave"><a>저장</a></span>
  394. <span class="btnSearch center" style="display:none" id="btnDel"><a href="javascript:void();del('정말로 보증정보를 삭제 하시겠습니까?');">삭제</a></span>
  395. <span class="btnSearch center" style="display:none" id="btnTrans"><a>전송</a></span>
  396. <span class="btnSearch center" style="display:none" id="btnAgain"><a>재전송</a></span>
  397. <span class="btnSearch center" style="display:none" id="btnCancel"><a>취소</a></span>
  398. </td>
  399. </tr>
  400. </table>
  401. <!-- 보증사 -->
  402. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:10px;">
  403. <colgroup>
  404. <col width="120" />
  405. <col width="*" />
  406. <col width="120" />
  407. <col width="*" />
  408. </colgroup>
  409. <TR height="25">
  410. <TH class="search_table_title required" style="text-align: left;">보증기관명</TH>
  411. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("warrGoffice", contOutWarr.get("WARR_GOFFICE"), 30, 40, "string, left, readOnly", "string") %>
  412. <INPUT type="hidden" name="guarOrganCode" id="guarOrganCode" value="3">
  413. </TD>
  414. <TH class="search_table_title" style="text-align: left;">발급희망일</TH>
  415. <TD class="search_table_data" style="text-align: left;">&nbsp;<%= InputText.get("reqdate", Formatter.formatDate(contOutWarr.get("REQDATE"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  416. <A href="JavaScript:calendar('reqdate');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A>
  417. </TD>
  418. </TR>
  419. </TABLE>
  420. <table width="100%" style="margin-top:3px;">
  421. <tr>
  422. <TD height="5" style="text-align: left;">※ 원도급정보</font> </TD>
  423. </tr>
  424. </table>
  425. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:3px;">
  426. <colgroup>
  427. <col width="120" />
  428. <col width="*" />
  429. <col width="120" />
  430. <col width="*" />
  431. </colgroup>
  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;margin-left:10px;">&nbsp;<%= HTMLMaker.getSelectTag(longgbnComboList, "DETAILCD", "DETAILNM", "longgbn", "width:50%;height=18;", "<option value=''>::장기계속구분선택::</option>", contOutWarr.get("longgbn")) %></TD>
  435. <TH class="search_table_title" style="text-align: left;">계약번호</TH>
  436. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contorderno", contOutWarr.get("contorderno"), 70, 30, "string, left, PerSize", "string") %></TD>
  437. </TR>
  438. <TR height="25">
  439. <TH class="search_table_title" style="text-align: left;">계약금액</TH>
  440. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contamt", contOutWarr.get("contamt"), 70, 30, "class=input byteChk ,number, right, PerSize", "number") %></TD>
  441. <TH class="search_table_title" style="text-align: left;">계약체결일자</TH>
  442. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contdate", Formatter.formatDate(contOutWarr.get("contdate"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  443. <A href="JavaScript:calendar('contdate');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A></TD>
  444. </TR>
  445. <TR height="25">
  446. <TH class="search_table_title" style="text-align: left;">계약시작일자</TH>
  447. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contstartdate", Formatter.formatDate(contOutWarr.get("contstartdate"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  448. <A href="JavaScript:calendar('contstartdate');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A></TD>
  449. <TH class="search_table_title" style="text-align: left;">계약종료일자</TH>
  450. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contclosedate", Formatter.formatDate(contOutWarr.get("contclosedate"), "-"), 29, 10, "Center, date, PerSize, readonly", "date", "") %>
  451. <A href="JavaScript:calendar('contclosedate');"><IMG src="/img/buyer/btn/bt_calender.gif" alt="달력" border="0" align="absmiddle"></A></TD>
  452. </TR>
  453. </TABLE>
  454. <table width="100%" style="margin-top:3px;">
  455. <tr>
  456. <TD height="5" style="text-align: left;">※ 발주처 정보</font> </TD>
  457. </tr>
  458. </table>
  459. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:3px;">
  460. <colgroup>
  461. <col width="120" />
  462. <col width="*" />
  463. <col width="120" />
  464. <col width="*" />
  465. </colgroup>
  466. <TR height="25">
  467. <TH class="search_table_title" style="text-align: left;">사업자번호</TH>
  468. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("DEALER_BSNO", contOutWarr.get("DEALER_BSNO"), 40, 30, "string, left, tabIndex=-1, readOnly", "string") %></TD>
  469. <TH class="search_table_title" style="text-align: left;">기관분류</TH>
  470. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= HTMLMaker.getSelectTag(contorgbncodeComboList, "DETAILCD", "DETAILNM", "contorgbncode", "width:50%;height=18;", "<option value=''>::기관분류선택::</option>", contOutWarr.get("contorgbncode")) %></TD>
  471. </TR>
  472. <TR height="25">
  473. <TH class="search_table_title" style="text-align: left;">기관명</TH>
  474. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("dealer_nm", contOutWarr.get("DEALER_NM"), 40, 30, "string, left, tabIndex=-1, readOnly", "string") %></TD>
  475. <TH class="search_table_title" style="text-align: left;">대표자명</TH>
  476. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("orderowner", contOutWarr.get("orderowner"), 40, 30, "string, left, tabIndex=-1", "string") %></TD>
  477. </TR>
  478. </TABLE>
  479. <table width="100%" style="margin-top:3px;">
  480. <tr>
  481. <TD height="5" style="text-align: left;">※ 보증신청정보</font> </TD>
  482. </tr>
  483. </table>
  484. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:3px;display:">
  485. <colgroup>
  486. <col width="120" />
  487. <col width="100" />
  488. <col width="80" />
  489. <col width="120" />
  490. <col width="*" />
  491. <col width="*" />
  492. </colgroup>
  493. <TR height="25">
  494. <TH class="search_table_title" style="text-align: center;" rowspan="2">보증신청계약번호</TH>
  495. <TH class="search_table_title" style="text-align: center;" rowspan="2">변경구분</TH>
  496. <TH class="search_table_title" style="text-align: center;" rowspan="2">지분율(%)<br>(계약/보증)</TH>
  497. <TH class="search_table_title" style="text-align: center;" rowspan="2">계약분담금액</TH>
  498. <TH class="search_table_title" style="text-align: center;" colspan="2">공제분반영여부</TH>
  499. </TR>
  500. <TR height="25">
  501. <TH class="search_table_title" style="text-align: center;">선급금</TH>
  502. <TH class="search_table_title" style="text-align: center;">기성금</TH>
  503. </TR>
  504. <%
  505. if (params.get("CAUSECODE").equals("04")){
  506. %>
  507. <TR height="25">
  508. <TD class="search_table_data" style="text-align: center;" rowspan="2"><%= InputText.get("GRTREQNO", contOutWarr.get("GRTREQNO"), 90, 30, "string, left, PerSize, readOnly", "string") %></TD>
  509. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("CAUSENAME1", "연장", 90, 30, "string, center, PerSize, readOnly", "string") %>
  510. <INPUT type="hidden" name="warrSeq1" id="warrSeq1" value="<%=params.get("warrSeq") %>"> <!-- 보증증권 일련번호 -->
  511. <INPUT type="hidden" name="CAUSECODE1" id="CAUSECODE1" value="02">
  512. <INPUT type="hidden" name="CAUSECOUNT" id="CAUSECOUNT" value="2">
  513. </TD>
  514. <TD class="search_table_data" style="text-align: center;">
  515. <%= InputText.get("CONTRATE1", contOutWarr.get("CONTRATE"), 60, 30, "string, center, PerSize, readOnly", "string") %><br/>
  516. <%= InputText.get("GUARRATE1", contOutWarr.get("GUARRATE"), 60, 30, "string, center, PerSize, readOnly", "string") %>
  517. </TD>
  518. <TD class="search_table_data" style="text-align: center;">
  519. <%= InputText.get("ADDCONTAMT1", contOutWarr.get("ADDCONTAMT"), 90, 30, "number, right, PerSize", "number") %>
  520. </TD>
  521. <TD class="search_table_data" style="text-align: center;">&nbsp;
  522. <SELECT class='input_select' id='PREPAYREFYN1' name='PREPAYREFYN1' style='width:50%;height=18;' onchange="setPrepay(1);">
  523. <OPTION value='Y' <%=contOutWarr.get("PREPAYREFYN").equals("Y") ? "selected=selected":""%>>반영</OPTION>
  524. <OPTION value='N' <%=contOutWarr.get("PREPAYREFYN").equals("N") ? "selected=selected":""%>>미반영</OPTION>
  525. </SELECT><br>
  526. <%= InputText.get("ADDPREPAYAMT1", contOutWarr.get("ADDPREPAYAMT"), 60, 30, "number, right, PerSize, readOnly", "number") %>
  527. </TD>
  528. <TD class="search_table_data" style="text-align: center;">&nbsp;
  529. <SELECT class='input_select' id='EXIISTREFYN1' name='EXIISTREFYN1' style='width:50%;height=18;' onchange="setGs(1);">
  530. <OPTION value='Y' <%=contOutWarr.get("EXIISTREFYN").equals("Y") ? "selected=selected":""%>>반영</OPTION>
  531. <OPTION value='N' <%=contOutWarr.get("EXIISTREFYN").equals("N") ? "selected=selected":""%>>미반영</OPTION>
  532. </SELECT><br>
  533. <%= InputText.get("ADDEXISAMT1", contOutWarr.get("ADDEXISAMT"), 60, 30, "number, right, PerSize, readOnly", "number") %>
  534. </TD>
  535. </TR>
  536. <TR height="25">
  537. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("CAUSENAME1", "증액", 90, 30, "string, center, PerSize, readOnly", "string") %>
  538. <INPUT type="hidden" name="warrSeq2" id="warrSeq2" value="<%=Integer.parseInt(params.get("warrSeq"))+1 %>"> <!-- 보증증권 일련번호 -->
  539. <INPUT type="hidden" name="CAUSECODE2" id="CAUSECODE2" value="03">
  540. </TD>
  541. <TD class="search_table_data" style="text-align: center;">
  542. <%= InputText.get("CONTRATE2", contOutWarr.get("CONTRATE"), 60, 30, "string, center, PerSize, readOnly", "string") %><br/>
  543. <%= InputText.get("GUARRATE2", contOutWarr.get("GUARRATE"), 60, 30, "string, center, PerSize, readOnly", "string") %>
  544. </TD>
  545. <TD class="search_table_data" style="text-align: center;">
  546. <%= InputText.get("ADDCONTAMT2", contOutWarr.get("ADDCONTAMT"), 90, 30, "number, right, PerSize", "number") %>
  547. </TD>
  548. <TD class="search_table_data" style="text-align: center;">&nbsp;
  549. <SELECT class='input_select' id='PREPAYREFYN2' name='PREPAYREFYN2' style='width:50%;height=18;' onchange="setPrepay(2);">
  550. <OPTION value='Y' <%=contOutWarr.get("PREPAYREFYN").equals("Y") ? "selected=selected":""%>>반영</OPTION>
  551. <OPTION value='N' <%=contOutWarr.get("PREPAYREFYN").equals("N") ? "selected=selected":""%>>미반영</OPTION>
  552. </SELECT><br>
  553. <%= InputText.get("ADDPREPAYAMT2", contOutWarr.get("ADDPREPAYAMT"), 60, 30, "number, right, PerSize, readOnly", "number") %>
  554. </TD>
  555. <TD class="search_table_data" style="text-align: center;">&nbsp;
  556. <SELECT class='input_select' id='EXIISTREFYN2' name='EXIISTREFYN2' style='width:50%;height=18;' onchange="setGs(2);">
  557. <OPTION value='Y' <%=contOutWarr.get("EXIISTREFYN").equals("Y") ? "selected=selected":""%>>반영</OPTION>
  558. <OPTION value='N' <%=contOutWarr.get("EXIISTREFYN").equals("N") ? "selected=selected":""%>>미반영</OPTION>
  559. </SELECT><br>
  560. <%= InputText.get("ADDEXISAMT2", contOutWarr.get("ADDEXISAMT"), 60, 30, "number, right, PerSize, readOnly", "number") %>
  561. </TD>
  562. </TR>
  563. <%
  564. }else{
  565. %>
  566. <TR height="25">
  567. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("GRTREQNO", contOutWarr.get("GRTREQNO"), 90, 30, "string, left, PerSize, readOnly", "string") %></TD>
  568. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("CAUSENAME1", contOutWarr.get("CAUSENAME"), 90, 30, "string, center, PerSize, readOnly", "string") %>
  569. <INPUT type="hidden" name="warrSeq1" id="warrSeq1" value="<%=params.get("warrSeq") %>"> <!-- 보증증권 일련번호 -->
  570. <INPUT type="hidden" name="CAUSECODE1" id="CAUSECODE1" value="<%=params.get("CAUSECODE") %>">
  571. <INPUT type="hidden" name="CAUSECOUNT" id="CAUSECOUNT" value="1">
  572. </TD>
  573. <TD class="search_table_data" style="text-align: center;">
  574. <%= InputText.get("CONTRATE1", contOutWarr.get("CONTRATE"), 60, 30, "string, center, PerSize, readOnly", "string") %><br/>
  575. <%= InputText.get("GUARRATE1", contOutWarr.get("GUARRATE"), 60, 30, "string, center, PerSize, readOnly", "string") %>
  576. </TD>
  577. <TD class="search_table_data" style="text-align: center;">
  578. <%= InputText.get("ADDCONTAMT1", contOutWarr.get("ADDCONTAMT"), 90, 30, "number, right, PerSize", "number") %>
  579. </TD>
  580. <TD class="search_table_data" style="text-align: center;">&nbsp;
  581. <SELECT class='input_select' id='PREPAYREFYN1' name='PREPAYREFYN1' style='width:50%;height=18;' onchange="setPrepay(1);">
  582. <OPTION value='Y' <%=contOutWarr.get("PREPAYREFYN").equals("Y") ? "selected=selected":""%>>반영</OPTION>
  583. <OPTION value='N' <%=contOutWarr.get("PREPAYREFYN").equals("N") ? "selected=selected":""%>>미반영</OPTION>
  584. </SELECT><br>
  585. <%= InputText.get("ADDPREPAYAMT1", contOutWarr.get("ADDPREPAYAMT"), 60, 30, "number, right, PerSize, readOnly", "number") %>
  586. </TD>
  587. <TD class="search_table_data" style="text-align: center;">&nbsp;
  588. <SELECT class='input_select' id='EXIISTREFYN1' name='EXIISTREFYN1' style='width:50%;height=18;' onchange="setGs(1);">
  589. <OPTION value='Y' <%=contOutWarr.get("EXIISTREFYN").equals("Y") ? "selected=selected":""%>>반영</OPTION>
  590. <OPTION value='N' <%=contOutWarr.get("EXIISTREFYN").equals("N") ? "selected=selected":""%>>미반영</OPTION>
  591. </SELECT><br>
  592. <%= InputText.get("ADDEXISAMT1", contOutWarr.get("ADDEXISAMT"), 60, 30, "number, right, PerSize, readOnly", "number") %>
  593. </TD>
  594. </TR>
  595. <%
  596. }
  597. %>
  598. </TABLE>
  599. <table width="100%" style="margin-top:3px;">
  600. <tr>
  601. <TD height="5" style="text-align: left;">※ 하도급 계약정보</font> </TD>
  602. </tr>
  603. </table>
  604. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:3px;">
  605. <colgroup>
  606. <col width="120" />
  607. <col width="*" />
  608. <col width="120" />
  609. <col width="*" />
  610. </colgroup>
  611. <TR height="25">
  612. <TH class="search_table_title" style="text-align: left;">현장명</TH>
  613. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("deptName", contOutWarr.get("SITE_NAME"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  614. <TH class="search_table_title" style="text-align: left;">계약명</TH>
  615. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("deptName", contOutWarr.get("CONT_NAME"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  616. </TR>
  617. <TR height="25">
  618. <TH class="search_table_title" style="text-align: left;">하도급 계약번호</TH>
  619. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("CONT_GNO", contOutWarr.get("CONT_GNO"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  620. <TH class="search_table_title" style="text-align: left;">업체명</TH>
  621. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("memberName", contOutWarr.get("CUST_NAME"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  622. </TR>
  623. <TR height="25">
  624. <TH class="search_table_title" style="text-align: left;">사업자번호</TH>
  625. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("SITE_GNO", contOutWarr.get("SITE_GNO"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  626. <TH class="search_table_title" style="text-align: left;">계약금액</TH>
  627. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("CONT_CAMT", contOutWarr.get("CONT_CAMT"), 40, 30, "class=input_blank ,number, right, readOnly=white", "number") %></TD>
  628. </TR>
  629. <TR height="25">
  630. <TH class="search_table_title" style="text-align: left;">계약시작일자</TH>
  631. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("cont_sdate", contOutWarr.get("cont_sdate"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  632. <TH class="search_table_title" style="text-align: left;">계약종료일자</TH>
  633. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("cont_edate", contOutWarr.get("cont_edate"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  634. </TR>
  635. <TR height="25">
  636. <TH class="search_table_title" style="text-align: left;">기성지급주기</TH>
  637. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("gs_day", contOutWarr.get("gs_day"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  638. <TH class="search_table_title" style="text-align: left;">당초지급보증서번호</TH>
  639. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("last_wgno", contOutWarr.get("last_wgno"), 40, 30, "class=input_blank, readOnly=white, string, left, tabIndex=-1", "string") %></TD>
  640. </TR>
  641. <TR height="25">
  642. <TH class="search_table_title" style="text-align: left;">기성검사일(당초)</TH>
  643. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contcheckdate", contOutWarr.get("contcheckdate"), 40, 30, "class=input_blank, readOnly=white, date, left, tabIndex=-1", "date") %></TD>
  644. <TH class="search_table_title" style="text-align: left;">기성금액(당초)</TH>
  645. <TD class="search_table_data" style="text-align: left;margin-left:10px;">&nbsp;<%= InputText.get("contexistenceamt", contOutWarr.get("contexistenceamt"), 40, 30, "class=input_blank ,number, right, readOnly=white", "number") %></TD>
  646. </TR>
  647. </TABLE>
  648. <table width="100%" style="margin-top:3px;">
  649. <tr>
  650. <TD height="5" style="text-align: left;">※ 건설담당자</font> </TD>
  651. </tr>
  652. </table>
  653. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:3px;display:">
  654. <colgroup>
  655. <col width="120" />
  656. <col width="120" />
  657. <col width="120" />
  658. <col width="120" />
  659. <col width="*" />
  660. </colgroup>
  661. <TR height="25">
  662. <TH class="search_table_title" style="text-align: left;">부서명</TH>
  663. <TH class="search_table_title" style="text-align: left;">성명</TH>
  664. <TH class="search_table_title" style="text-align: left;">전화번호</TH>
  665. <TH class="search_table_title" style="text-align: left;">휴대전화</TH>
  666. <TH class="search_table_title" style="text-align: left;">이메일</TH>
  667. </TR>
  668. <TR height="25">
  669. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("depnm", contOutWarr.get("depnm"), 90, 20, "string, left, PerSize", "string") %></TD>
  670. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("empnm", contOutWarr.get("empnm"), 90, 20, "string, left, PerSize", "string") %></TD>
  671. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("telno", contOutWarr.get("telno"), 90, 20, "string, left, PerSize", "string") %></TD>
  672. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("hpno", contOutWarr.get("hpno"), 90, 20, "string, left, PerSize", "string") %></TD>
  673. <TD class="search_table_data" style="text-align: center;"><%= InputText.get("email", contOutWarr.get("email"), 90, 40, "string, left, PerSize", "string") %></TD>
  674. </TR>
  675. </TABLE>
  676. <TABLE cellspacing="1" cellpadding="0" class="search_table" style="margin-top:10px;display:">
  677. <colgroup>
  678. <col width="120" />
  679. <col width="*" />
  680. </colgroup>
  681. <TR height="25">
  682. <TH class="search_table_title" style="text-align: left;">구비서류</TH>
  683. <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>
  684. <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;'>
  685. </TD>
  686. </TR>
  687. </TABLE>
  688. </FORM>
  689. <%if(contOutWarr.get("EXIST_FLAG").equals("I")){ %>
  690. <script type="text/javascript">
  691. <!--
  692. //처음 저장일때만 처리
  693. setGuarRate(1, "GUARRATEGBNCODE");
  694. <%if (params.get("CAUSECODE").equals("04")){%>
  695. setGuarRate(2, "GUARRATEGBNCODE"); //연장증액이 한번에 올경우 한번에 처리 하기 위해서 한번더 호출
  696. <%} %>
  697. //-->
  698. </script>
  699. <%} %>
  700. <br/>