123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889 |
- <%--
- - Author(s) : Kim Myung HO
- - Date : 2014.07.07
- - Description: 계약 작성
- --%>
-
- <%@page import="java.sql.Clob"%>
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
- <%@ page import="com.udapsoft.waf.common.ui.*" %>
- <%@ page import="com.udapsoft.waf.common.util.*" %>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <%@ page import="kr.co.hsnc.common.sql.*" %>
- <%@ page import="kr.co.hsnc.common.config.WAFConfig" %>
- <%@ include file="/jsp/work/taglib.jsp" %>
- <%@ page import="kr.co.hsnc.common.util.Formatter"%>
- <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
- <%@page import="java.net.URLEncoder"%>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- HandlerStorage storage = ctx.getHandlerStorage();
- ValueObject params = storage.getParams();
- ValueObject user = storage.getUser();
- String event = storage.getEvent();
-
- // System.out.println("event ======== : " + ContInfo.get("DOC_ETC_IN"));
-
- // RowSet CorpRowSet = storage.getRowSet("CorpRowSet");
- ValueObject ContInfo = storage.getValueObject("ContInfo");
- /*계약서식 정보 */
- RowSet template = storage.getRowSet("template");
- /*계약서식 FILE */
- RowSet autofile_list = storage.getRowSet("AUTOFILE_LIST");
-
- /*보증 정보 LIst */
- RowSet warrList = storage.getRowSet("warrList");
-
- /*보증 발급 완료된 갯수 */
- RowSet warrCount = storage.getRowSet("warrCount");
- /*표준 미연동 계약 정보 */
- //ValueObject pricesysInfo = storage.getValueObject("pricesysInfo");
-
- %>
- <LINK href="/css/cont/cont_style.css" rel="stylesheet" type="text/css">
- <script language="javascript" src="/js/cont/cont_util.js"></script>
- <script language="javascript" src="/js/cont/lib.validate.js"></script>
- <SCRIPT language="JavaScript">
- /*예약함수*/
- function _onReady(){
- /* STAMP_DUTY, PROMISE_DOC 인클루드 페이지 기능 */
- gridInit2(sheet2);
- gridInit3(sheet3);
- gridInit4(sheet4);
- doSearchStamp();
- doSearchPromise();
- doSearchPricesys();
-
- if(jQuery("#STATUS_CD").val() == '20' && jQuery("#p_issue_gb").val() == '20'){
- jQuery("#p_issue_gb").attr("disabled",true);
- jQuery("#p_promise_gb").attr("disabled",false);
- jQuery("#btnAdd").show();
- jQuery("#btnSaveStamp").show();
- jQuery("#btnPromiseAdd").show();
- jQuery("#btnSavePromise").show();
- }else{
- jQuery("#p_issue_gb").attr("disabled",true);
- jQuery("#btnAdd").hide();
- jQuery("#btnSaveStamp").hide();
- jQuery("#btnPromiseAdd").hide();
- jQuery("#btnSavePromise").hide();
- }
-
- jQuery("#btnAdd").click(function() {
- var rowIdx = sheet2.DataInsert(-1);
- sheet2.SetCellValue(rowIdx, "STAMP_DUTY_ISSUE_GB", "20");
- });
-
- jQuery("#btnPromiseAdd").click(function() {
- var rowIdx = sheet3.DataInsert(-1);
- if(jQuery("#p_promise_gb").val()=="10"){
- sheet3.SetCellValue(rowIdx, "PROMISE_DOC_TYPE_GB", "10");
- }else{
- sheet3.SetCellValue(rowIdx, "PROMISE_DOC_TYPE_GB", "20");
- }
- });
-
- jQuery("#btnSaveStamp").click(function() {
-
- /* for(i=1; i <= sheet2.RowCount(); i++){
- if(sheet2.GetCellValue(i, "STATUS")!="D"){
- if(sheet2.GetCellValue(i, "STAMP_DUTY_NO")==""){
- alert(i+"행의 고유식별번호가 없습니다.");
- return false;
- }
- if(sheet2.GetCellValue(i, "STAMP_DUTY_TAX")=="" || sheet2.GetCellValue(i, "STAMP_DUTY_TAX")<=0){
- alert(i+"행의 인지세가 없거나 인지세가 0보다 작거나 같습니다.\n인지세는 0보다 커야합니다.");
- return false;
- }
- if(sheet2.GetCellValue(i, "STAMP_DUTY_DATE")==""){
- alert(i+"행의 발행일자가 없습니다.");
- return false;
- }
- }
- } */
-
- if (confirm("저장하시겠습니까?")) {
- jQuery("#fevent").val("SAVE_STAMP_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/cont/purchase/StampList_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet2, url, jQuery("#form1"), false);
- }
- });
-
- jQuery("#btnSavePromise").click(function() {
-
- if(jQuery('#p_promise_gb').val() == '00' && sheet3.GetTotalRows() != 0 ){
- for(i=1; i <= sheet3.RowCount(); i++){
- if(sheet3.GetCellValue(i, "STATUS")!="D"){
- alert("서약서를 미발행으로 등록하려면\n서약서가 등록되어있거나 등록해서는 안됩니다.\n서약서를 삭제하여 주십시오.");
- return;
- }
- }
- }
-
- if (confirm("저장하시겠습니까?")) {
- doSavePromise();
- }
-
- });
-
- jQuery("#btnPricesysAdd").click(function() {
- if(jQuery("#p_pricesys_gb").val()=="01"){ //미연동일 경우 팝업으로 입력
- popPricesys();
- }else{ //연동일 경우 행추가 해서 입력
- if(sheet4.RowCount() == 1){
- return;
- }
- var rowIdx = sheet4.DataInsert(-1);
- sheet4.SetCellValue(rowIdx, "PRICE_SYS_YN", "02");
- sheet4.SetCellValue(rowIdx, "OBJECT_NM", "별도 협의");
- sheet4.SetCellValue(rowIdx, "SYS_REASON", "별도 협의");
- sheet4.SetCellValue(rowIdx, "FILE_YN", "");
- }
- });
-
- jQuery("#btnSavePricesys").click(function() {
- if (confirm("저장하시겠습니까?")) {
- jQuery("#fevent").val("SAVE_PRICESYS_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/cont/purchase/PricesysList_sheet.screen";
- Modular.view.IBSheet7.doSave(sheet4, url, jQuery("#form1"), false);
- }
- });
- /**
- * Application Initialize
- */
- jQuery("#btnSignOk").click(function() {
- var stampMsg = '서명 하시겠습니까?';
-
- if(jQuery('#p_issue_gb').val() == '00' && sheet2.GetTotalRows() != 0 ){
- alert("인지세 발급 구분이 미발행일시 등록 된 인지세가 없어야 합니다. 삭제하여 주십시오.");
- return;
- }else{
-
- if(<%=warrCount.size() %>!=<%=warrList.size() %>){
- alert("해당 보증서의 진행 상태가 모두 발급 완료 상태일때 서명을 진행 하실수 있습니다.");
- return;
- }
-
- if(!stampDutyRowCheck()){
- return;
- }
-
- if( !stampDutyCheck() ) {
- return;
- }
-
- if(!promiseRowCheck()){
- return;
- }
-
- if(!promiseCheck()){
- return;
- }
-
- if(jQuery('#p_issue_gb').val() != '00' && sheet2.GetTotalRows() == 0){
- alert("등록 된 인지세가 없습니다.");
- return;
- }else if( jQuery('#p_issue_gb').val() != '00' && sheet2.GetTotalRows() != 0 ){
-
- var ordAmt = parseInt(jQuery('#ord_amt').val().replace(/,/gi,""));
- var stampDutyTax = sheet2.GetCellValue(sheet2.LastRow(), "STAMP_DUTY_TAX");
- if( ordAmt <= 10000000 ){
- if( stampDutyTax != 0 ) {
- stampMsg = '계약금액에 따른 인지세가 틀립니다.\n\n1천만원 이하 : 0원\n\n서명 하시겠습니까?';
- }
- }else if( ordAmt > 10000000 && ordAmt <= 30000000 ) {
- if( stampDutyTax != 20000 ) {
- stampMsg = '계약금액에 따른 인지세가 틀립니다.\n\n1천만원 초과 ~ 3천만원이하 : 2만원\n\n서명 하시겠습니까?';
- }
- }else if( ordAmt > 30000000 && ordAmt <= 50000000 ) {
- if( stampDutyTax != 40000 ) {
- stampMsg = '계약금액에 따른 인지세가 틀립니다.\n\n3천만원 초과 ~ 5천만원이하 : 4만원\n\n서명 하시겠습니까?';
- }
- }else if( ordAmt > 50000000 && ordAmt <= 100000000 ) {
- if( stampDutyTax != 70000 ) {
- stampMsg = '계약금액에 따른 인지세가 틀립니다.\n\n5천만원 초과 ~ 1억원이하 : 7만원\n\n서명 하시겠습니까?';
- }
- }else if( ordAmt > 100000000 && ordAmt <= 1000000000 ) {
- if( stampDutyTax != 150000 ) {
- stampMsg = '계약금액에 따른 인지세가 틀립니다.\n\n1억원 초과 ~ 10억원이하 : 15만원\n\n서명 하시겠습니까?';
- }
- }else if( ordAmt > 1000000000 ) {
- if( stampDutyTax != 350000 ) {
- stampMsg = '계약금액에 따른 인지세가 틀립니다.\n\n10억원 초과 : 35만원\n\n서명 하시겠습니까?';
- }
- }
- }
- }
- if (confirm(stampMsg)){
- SignData();
- }
- });
- //계약 내역 팝업
- jQuery("#btnItem").click(function() {
- var win_id = "ItemPop";
- var link = "/cont/purchase/ItemPopup.screen";
- link += "?pop_win_id="+win_id+"&PUR_CONT_MOD_ID="+$("#PUR_CONT_MOD_ID").val()+"&PUR_CONT_ID="+$("#PUR_CONT_ID").val()+"&editYN=N";
- fLayerPop(win_id, link, 950,500, '','', 'NO');
- });
- jQuery("#btnEditCall").click(function() {
-
- <%if(warrList.size() > 0) {%>
- if(<%=warrCount.size() %>==<%=warrList.size() %>){
- alert("모든 보증서가 발급 완료 상태일때는 수정 요청을 하실수 없습니다.");
- return;
- }
- <% } %>
-
-
- if (confirm("수정 요청 하시겠습니까?")){
- var win_id = "editcall_pop";
- var link = "/portal/cont/EditCallReasonPurPopup.screen";
- link += "?pop_win_id="+win_id+"&PUR_CONT_MOD_ID="+$("#PUR_CONT_MOD_ID").val();
- fLayerPop(win_id, link, 600,180, '','', 'NO');
- }
- });
- }
-
- //자동로그인 기능
- function f_gologin(login_id,login_pw){
- var f = document.form1;
- if('<%= user.get("ACCT_TYPE_CODE")%>' != "ADMIN"){
- dlgAlert("User who logged in as administrator only can do automatic log-in.");
- return;
- }
-
- f.login_id.value = login_id;
- f.login_pw.value = login_pw;
-
- if( !submitXmlRequest("/sign_on_check", "", document.form1) ) {
- alert("Log-in is being processed.");
- };
-
- }
- function goListProc(){
- var f = document.form1;
- f.fevent.value ="";
- <%if (params.get("p_cont_status").equals("50")){%>
- f.action = "/portal/cont/PurContResultList.screen";
- <%}else{%>
- f.action = "/portal/cont/PurContList.screen";
- <%}%>
- f.target = "_self";
- f.submit();
- }
- function doResult(resultObj) {
- try {
- if( resultObj.getRequestEvent() == "SIGN_OK") {
- if( resultObj.getSuccess() ) {
- alert("서명이 정상적으로 처리 되었습니다.")
- goListProc();
- } else {
- dlgErrorMsg(resultObj);
- }
- }
- if( resultObj.getRequestEvent() == "EDIT_CALL") {
- if( resultObj.getSuccess() ) {
- alert("수정 요청이 처리 되었습니다.");
- goListProc();
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
- //수정요청 팝업 종료후 액션
- function EditCallReasonClose(returnValue){
- if(returnValue == null){
- fLayerPopClose('editcall_pop');
- }else{
- if(returnValue[0] == 0){
- fLayerPopClose('editcall_pop');
- goListProc();
- }
- }
- }
-
- //첨부파일
- function doAttachFileDiv(obj) {
- if(obj==''){
- alert("저장을 한 후 파일을 첨부할 수 있습니다.");
- }
- else if(obj != ''){
- viewFileListNew('PUR_CONT_MOD_ID', obj.value, document.getElementById("attach_file_view"), "N", "cont/purchase/<%=ContInfo.get("PUR_CONT_MOD_ID")%>");
- }
- }
- /**
- * 첨부파일 예약 함수
- */
- function fileDown(file_id){
- var url="/common/file/FileDownloadServlet";
- url += "?file_id=" + file_id;
-
- window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
- }
- function doAttachFilePop(obj, No, fObj, fileGB, fileDir) {
- var editFile = "";
- if(obj==''){
- alert("After you have saved, you can attach a file.");
- }
- else if(obj != ''){
- //if(fObj.guarStatus.value != "02"){editFile="N";}else{editFile="Y";}
- if((fObj.guarStatus.value == "02") || (fObj.guarStatus.value == "04")){editFile="Y";}else{editFile="N";}
- viewFileListNew(fileGB, obj.value, fObj.p_AttachFileGuar1, editFile, fileDir, "contPurWarrPopup");
- }
- }
-
- //보증정보팝업 호출
- function popContWarr(wG, wSeq, wCauseCd) {
-
- var win_id = "contPurWarrPopup";
- var param = "";
- var param = "?purContModId=" + jQuery("#PUR_CONT_MOD_ID").val();
- var param = param + "&warrGubun=" + wG;
- var param = param + "&warrSeq=" + wSeq;
- var param = param + "&causeCode=" + wCauseCd;
- var param = param + "&wonWarr=" + jQuery("#WON_WARR").val();
- var param = param + "&viewDiv=CONT";
- var param = param + "&pop_win_id=" + win_id;
- var url = "/portal/guar/contPurWarrPopup.screen"+param;
-
- fLayerPop(win_id, url, 560, 350, '','', 'YES');
- }
- //보증정보팝업 종료후 액션
- function popContWarrClose(returnValue){
- if(returnValue == null){
- fLayerPopClose('contPurWarrPopup');
- }else{
- fLayerPopClose('contPurWarrPopup');
- location.reload();
- }
- }
-
- //미연동 계약서 팝업 호출
- function popPricesys() {
-
- var win_id = "PurPricesysPopup";
- var param = "";
- var param = "?purContModId=" + jQuery("#PUR_CONT_MOD_ID").val();
- //var param = param + "&viewDiv=CONT";
- var param = param + "&pop_win_id=" + win_id;
- var param = param + "&fevent=FORM_SELECT";
- var url = "/portal/cont/PurPricesysPopup.screen"+param;
-
- fLayerPop(win_id, url, 1000, 270, '','', 'YES');
- }
-
- //미연동 계약서 팝업 종료후 액션
- function popPricesysClose(returnValue){
- if(returnValue == null){
- fLayerPopClose('PurPricesysPopup');
- }else{
- fLayerPopClose('PurPricesysPopup');
- location.reload();
- }
- }
-
- function stampDutyCheck(){
-
- for(i=1; i <= sheet2.RowCount(); i++){
- if(sheet2.GetCellValue(i, "STATUS")!="D"){
- if(sheet2.GetCellValue(i, "STAMP_DUTY_NO")==""){
- alert("인지세 "+i+"행의 고유식별번호가 없습니다.");
- return false;
- }
- if(sheet2.GetCellValue(i, "STAMP_DUTY_TAX")=="" || sheet2.GetCellValue(i, "STAMP_DUTY_TAX")<=0){
- alert("인지세 "+i+"행의 인지세가 없거나 인지세가 0보다 작거나 같습니다.\n인지세는 0보다 커야합니다.");
- return false;
- }
- if(sheet2.GetCellValue(i, "STAMP_DUTY_DATE")==""){
- alert("인지세 "+i+"행의 발행일자가 없습니다.");
- return false;
- }
- if(sheet2.GetCellValue(i, "FILE_ID")==""){
- alert("인지세 "+i+"행의 인지세사본이 없습니다.");
- return false;
- }
- }
- }
- return true;
- }
-
- function promiseCheck(){
- for(i=1; i <= sheet3.RowCount(); i++){
- var sText = sheet3.GetComboInfo(i, "PROMISE_DOC_TYPE_GB", "Text");
- var sCode = sheet3.GetComboInfo(i, "PROMISE_DOC_TYPE_GB", "Code");
- var arrText = sText.split("|");
- var arrCode = sCode.split("|");
- if(sheet3.GetCellValue(i, "STATUS")!="D"){
- if(sheet3.GetCellValue(i, "FILE_ID")==""){
- for(j=0; j<arrCode.length; j++){
- if(sheet3.GetCellValue(i, "PROMISE_DOC_TYPE_GB")==arrCode[j]){
- alert(i+"행의 "+arrText[j]+" 사본이 없습니다.");
- break;
- }
- }
- //alert(i+"행의 "+sheet3.GetCellValue(i, "PROMISE_DOC_TYPE_GB")+" 사본이 없습니다.");
- return false;
- }
- }
- }
- return true;
- }
-
- </SCRIPT>
- <modular:search id="form1">
- <modular:key id="fevent" />
- </modular:search>
- <form id="form1" name="form1" method="post" modular:type="search">
- <INPUT type="hidden" name="fevent" id="fevent" value="<%= params.get("fevent") %>">
- <INPUT type="hidden" name="acct_id" value="<%= params.get("acct_id") %>">
- <!-- 검색 조건 시작 -->
- <INPUT type="hidden" name="p_dept_nm" value="<%= params.get("p_dept_nm") %>">
- <INPUT type="hidden" name="p_cont_status" value="<%=params.get("p_cont_status")%>">
- <INPUT type="hidden" name="ContFromDt" value="<%=params.get("ContFromDt")%>">
- <INPUT type="hidden" name="ContToDt" value="<%=params.get("ContToDt")%>">
- <INPUT type="hidden" name="p_build_nm" value="<%= params.get("p_build_nm") %>">
- <!-- 검색 조건끝 -->
- <INPUT type="hidden" name="CONT_STATUS" value="<%=ContInfo.get("CONT_STATUS")%>">
- <INPUT type="hidden" name="PUR_CONT_MOD_ID" value="<%=ContInfo.get("PUR_CONT_MOD_ID")%>">
- <INPUT type="hidden" name="STATUS_CD" value="<%=ContInfo.get("STATUS_CD")%>">
- <INPUT type="hidden" name="PUR_CONT_ID" value="<%=ContInfo.get("PUR_CONT_ID")%>">
- <INPUT type="hidden" name="DEMANDED_ID" value="<%=ContInfo.get("DEMANDED_ID")%>">
- <INPUT type="hidden" name="O_CORP_ID" value="<%=ContInfo.get("O_CORP_ID")%>">
- <INPUT type="hidden" name="C_VENDCD" value="<%=ContInfo.get("C_VENDCD")%>">
- <!-- 계약서PDF정보 START-->
- <INPUT type="hidden" name="TEMPLATE_CD" value="<%=ContInfo.get("TEMPLATE_CD") %>">
- <INPUT type="hidden" name="CON_DOC_NO" value="<%=ContInfo.get("CON_DOC_NO") %>">
- <INPUT type="hidden" name="MOD_NO" value="<%=ContInfo.get("MOD_NO") %>">
- <INPUT type="hidden" name="PDF_FILE_CNT" value="<%=template.size()%>">
- <INPUT type="hidden" name="TRUE_RANDOM" value="<%=ContInfo.get("TRUE_RANDOM") %>">
- <!-- 계약서PDF정보 END-->
- <!--서명 데이터 정보 START-->
- <INPUT type='hidden' name="CONT_HASH" value="<%=ContInfo.get("CONT_HASH") %>">
- <INPUT type='hidden' name="CONT_SIGNDATA" value="">
- <INPUT type='hidden' name="CONT_SIGNDN" value="">
- <INPUT type='hidden' name="signeddata" value="">
- <%-- <INPUT type="hidden" id="stamp_duty_issue_gb" name="stamp_duty_issue_gb" value="<%=ContInfo.get("STAMP_DUTY_ISSUE_GB") %>"> --%>
- <INPUT type="hidden" id="STAMP_DUTY_ID" name="STAMP_DUTY_ID" value="<%=ContInfo.get("STAMP_DUTY_ID") %>">
- <INPUT type="hidden" name="WON_WARR" value="<%=params.get("WON_WARR") %>">
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div align="left" id="title">
- <ul>
- <li>계약 정보(구매)</li>
- </ul>
- </div>
- </th>
- <td align="right">
- <%
- if(ContInfo.get("STATUS_CD").equals("20")){
- %>
- <span class="btnSearch center" id="btnSignOk"><a href="javascript:void(0);">서명</a></span>
- <span class="btnSearch center" id="btnEditCall"><a href="javascript:void(0);">수정요청</a></span>
- <%
- }
- %>
- <span class="btnSearch center" id="btnItem"><a href="javascript:void(0);">계약상품내역</a></span>
- <span class="btnSearch center" id="btnList"><a href="javascript:goListProc();">목록</a></span>
- </td>
- </tr>
- </table>
- <!-- 계약 정보 : 시작 -->
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">기본정보</span>
- </div>
- <div class="application-location">
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="130px" />
- <col width="23%"/>
- <col width="130px" />
- <col width="23%"/>
- <col width="130px" />
- <col width="23%"/>
- </colgroup>
- <TR height="25">
- <TH style="text-align: left;">현장명</TH>
- <TD colspan="3"><%=ContInfo.get("DEPT_NAME")%></TD>
- <TH style="text-align: left;">전자계약 여부</TH>
- <TD><%=ContInfo.get("ELEC_CON_YN").equals("Y") ? "온라인" : "오프라인" %></TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;">계약명</TH>
- <TD colspan="5"><%=ContInfo.get("CST_DOC_NAME")%></TD>
- </TR>
- </TABLE>
- <%@ include file="/jsp/ko_KR/supplier/portal/cont/stampDuty.jsp" %>
- <%@ include file="/jsp/ko_KR/supplier/portal/cont/priceSys.jsp" %>
- <%@ include file="/jsp/ko_KR/supplier/portal/cont/promiseDocList.jsp" %>
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">당사정보(원사업자) </span>
- </div>
- <div class="application-location">
- <%if (!ContInfo.get("O_SIGN_DATE").equals("")){%>
- 서명일시 : <%= ContInfo.get("O_SIGN_DATE") %>
- <%}%>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="130px" />
- <col width="23%"/>
- <col width="130px" />
- <col width="23%"/>
- <col width="130px" />
- <col width="23%"/>
- </colgroup>
- <TR height="25">
- <TH style="text-align: left;">업체명</TH>
- <TD><%=ContInfo.get("O_MEMBER_NAME")%></TD>
- <TH style="text-align: left;">주소</TH>
- <TD><%=ContInfo.get("O_ADDRESS")%></TD>
- <TH style="text-align: left;">대표자명</TH>
- <TD><%=ContInfo.get("O_BOSS_NAME")%></TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;">담당부서</TH>
- <TD><%=ContInfo.get("O_DIVISION")%></TD>
- <TH style="text-align: left;">담당자명</TH>
- <TD>
- <%=ContInfo.get("O_USER_NAME")%>
- </TD>
- <TH style="text-align: left;">직급</TH>
- <TD><%=ContInfo.get("O_POSITION")%></TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;">담당자 연락처</TH>
- <TD><%=ContInfo.get("O_TEL_NUM")%></TD>
- <TH style="text-align: left;">담당자 HP</TH>
- <TD><%=ContInfo.get("O_HP")%></TD>
- <TH style="text-align: left;">담당자 EMAIL</TH>
- <TD><%=ContInfo.get("O_EMAIL")%></TD>
- </TR>
- <!-- 계약정보 : 종료 -->
- </table>
-
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">계약업체정보(수급 사업자) </span>
- </div>
- <div class="application-location">
- <%if (!ContInfo.get("C_SIGN_DATE").equals("")){%>
- 서명일시 : <%= ContInfo.get("C_SIGN_DATE") %>
- <%}%>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="130px" />
- <col width="23%"/>
- <col width="130px" />
- <col width="23%"/>
- <col width="130px" />
- <col width="23%"/>
- </colgroup>
- <TR height="25">
- <TH style="text-align: left;">업체명</TH>
- <TD><%=ContInfo.get("C_MEMBER_NAME")%></TD>
- <TH style="text-align: left;">주소</TH>
- <TD><%=ContInfo.get("C_ADDRESS")%></TD>
- <TH style="text-align: left;">대표자명</TH>
- <TD><%=ContInfo.get("C_BOSS_NAME")%></TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;">담당부서</TH>
- <TD><%=ContInfo.get("C_DIVISION")%></TD>
- <TH style="text-align: left;">담당자명</TH>
- <TD><%=ContInfo.get("C_USER_NAME")%></TD>
- <TH style="text-align: left;">직급</TH>
- <TD><%=ContInfo.get("C_POSITION")%></TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;">담당자 연락처</TH>
- <TD><%=ContInfo.get("C_TEL_NUM")%></TD>
- <TH style="text-align: left;">담당자 HP</TH>
- <TD><%=ContInfo.get("C_HP")%></TD>
- <TH style="text-align: left;">담당자 EMAIL</TH>
- <TD><%=ContInfo.get("C_EMAIL") %></TD>
- </TR>
- <!-- 계약정보 : 종료 -->
- </table>
- <%if ((!ContInfo.get("MODI_REQ_REASON").equals("")) && (ContInfo.get("STATUS_CD").equals("40"))){ //수정 요청 내용이 있을경우 %>
- <div class="application-info magT15">
- <div class="application-sub-title">
- <span class="title">수정요청 사유</span>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="130px" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <TH style="text-align: left;">사유</TH>
- <TD><%=ContInfo.get("MODI_REQ_REASON") %></TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;">요청일</TH>
- <TD><%=ContInfo.get("MODI_REQ_DT") %></TD>
- </TR>
- </TABLE>
- <% } %>
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">계약정보</span>
- </div>
- <div class="application-location">
- </div>
- </div>
- <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid black;padding-top:5px">
- <tr>
- <td align="center" bgcolor="#efefef">
- <table width="770px" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td style="text-align:center;">
- <%
- for(int i = 0 ; i < template.size(); i ++){
- %>
- <input type="hidden" name="template_seq" value="<%=template.getRow(i).get("SEQ")%>">
- <input type="hidden" name="template_name" value="<%=template.getRow(i).get("TEMPLATE_NAME")%>">
- <input type="hidden" name="template_style" value="<%=template.getRow(i).get("TEMPLATE_STYLE")%>">
- <input type="hidden" name="option_yn" value="<%=template.getRow(i).get("OPTION_YN")%>">
- <% if(i==0){ %>
- <span class="tab_on" id="tab_<%=template.getRow(i).get("SEQ")%>" onClick="tabView(<%=template.getRow(i).get("SEQ")%>)">
- <input type="hidden" name="check_yn_<%=template.getRow(i).get("SEQ")%>" value="A">
- <%=template.getRow(i).get("TEMPLATE_NAME")%>
- </span>
- <% }else{ %>
- <span class="tab_off" id="tab_<%=template.getRow(i).get("SEQ")%>" onClick="tabView(<%=template.getRow(i).get("SEQ")%>)">
- <%if(template.getRow(i).get("OPTION_YN").equals("A")){%>
- <input type="hidden" name="check_yn_<%=template.getRow(i).get("SEQ")%>" value="A">
- <%}else if(template.getRow(i).get("OPTION_YN").equals("Y")){ %>
- <input type="checkbox" name="check_yn_<%=template.getRow(i).get("SEQ")%>" value="Y" <%if(template.getRow(i).get("CHECK_YN").equals("Y")){%>checked="checked"<%}%>>
- <%} %>
- <%=template.getRow(i).get("TEMPLATE_NAME")%>
- </span>
- <% } %>
- <%} %>
- </td>
- </tr>
- </table>
- <div id="__html" style="width:770px;border:1px solid black;padding:10px 10px 10px 10px;background-color:#FFFFFF;text-align:left;" >
- <%
- for(int i = 0 ; i < template.size(); i ++){
- String template_html = ClobUtils.getClob((Clob)template.getRow(i).getObject("TEMPLATE_HTML"));
- String divHidden = template.getRow(i).get("SEQ").equals("0")?"":"none";
- %>
- <div style="display:<%=divHidden%>; padding-top: 10px;overflow:hidden;overflow-y:auto;<%=template.getRow(i).get("TEMPLATE_STYLE") %>" id="__html_<%=template.getRow(i).get("SEQ")%>">
- <%= template_html%>
- </div>
- <%} %>
- </div>
- <br>
- </td>
- </tr>
- </table>
- <div class="application-info magT15">
- <div class="application-sub-title">
- <span class="title">계약서류</span>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="130px" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <TH style="text-align: left;">자동생성</TH>
- <TD>
- <table width="100%">
- <colgroup>
- <col width="100%" />
- </colgroup>
- <TR height="25">
- <TD>
- <div id="auto_attach_file_view" class="attach_file_view">
- <ul>
- <%
- for(int i=0;i<autofile_list.size();i++){
- %>
- <li><a href="/common/file/FileDownloadServlet?mode=fpDown&filePath=/cont/<%=autofile_list.getRow(i).get("FILE_PATH")%>&fileName=<%=URLEncoder.encode(autofile_list.getRow(i).get("FILE_NAME"), "UTF-8") +"."+ autofile_list.getRow(i).get("FILE_EXT")%>&fileRealName=<%=autofile_list.getRow(i).get("UNIQUE_FILE_NAME")%>"><%=i+1%> : <%=autofile_list.getRow(i).get("FILE_NAME")%> (<%=autofile_list.getRow(i).get("FILE_SIZE").trim() %>)</a></li>
- <%
- }
- %>
- </ul>
- </div>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR height="25">
- <TH style="text-align: left;"> 직접첨부</TH>
- <TD>
- <table width="100%">
- <colgroup>
- <col width="50%" />
- <col width="50%" />
- </colgroup>
- <tr>
- <td>
- <div id="attach_file_view" class="attach_file_view">
- <!-- 첨부 파일 화면에 바로보일때 사용 -->
- <%=FileManager.getFileListForDiv("PUR_CONT_MOD_ID", ContInfo.get("PUR_CONT_MOD_ID")) %>
- </div>
- </td>
- <td>
- <!-- IMG id='search_spot_button' onClick="doAttachFileDiv(document.form1.PUR_CONT_MOD_ID,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;' -->
- </td>
- </tr>
- </table>
- </TD>
- </TR>
- </TABLE>
-
- <%
- /*
- 보증 목록을 include 시킴 (2014-10-17) 김명호
- */
- if(warrList.size() > 0) {
- %>
- <%@ include file="/jsp/ko_KR/supplier/portal/common/guar/guarPurList.jsp" %>
- <%
- }
- %>
- </form>
- <!-- =========사인 요청 상태이후 (20)에는 입력을 받지 못하게 처리 (김명호 : 2014-07-21)============== -->
- <script>
- //window.addEventListener("onload",convertHtml)
- window.onload = function() {
- convertHtml();
- };
- function convertHtml(){
- if(!document.getElementById("__html"))return;
- var elements = document.getElementById("__html").getElementsByTagName("input");
- for(var i = 0; i < elements.length; i++){
- var element = elements[i];
- setDisabled(element);
- }
- var elements = document.getElementById("__html").getElementsByTagName("textarea");
- for(var i = 0; i < elements.length; i++){
- var element = elements[i];
- element.className = "input_readonly";
- element.readOnly = true;
- }
- var elements = document.getElementById("__html").getElementsByTagName("img");
- for(var i = 0; i < elements.length; i++){
- var element = elements[i];
- element.style.display="none";
- }
- /*협력사에서 안보이는 부분숨기는 처리*/
- var elements = getElementsByClass("cl_no_view");
- for(var i = 0; i < elements.length; i++){
- var element = elements[i];
- element.style.display="none";
- }
- }
- </script>
- <!-- ------------------서명 요청 처리 로직-------- -->
- <SCRIPT LANGUAGE="JavaScript">
- function SignData()
- {
- debugger;
- var VendorCd = document.form1.C_VENDCD.value;
- var sOrgnData = $("#CONT_HASH").val();
- var sColumDelimiter = "┃";
- sOrgnData= sOrgnData +sColumDelimiter
- + VendorCd +sColumDelimiter;
-
- unisign.SignDataNVerifyVID( sOrgnData, null, VendorCd, function( resultObject ) {
- if( !resultObject || resultObject.resultCode != 0 ){
- if( resultObject.resultCode == '14208'){
- alert("주민번호/사업자번호를 확인할 수 없는 인증서입니다.");
- } else if( resultObject.resultCode == '999'){
- alert("사용자 DN 선택이 취소 되었습니다.");
- } else {
- alert( resultObject.resultMessage);
- }
-
- return ;
- }
-
- var signeddata = resultObject.signedData;
- var userdn = resultObject.certAttrs.subjectName;
-
- alert("신원확인 성공");
- $("#CONT_SIGNDATA").val(signeddata);
- $("#CONT_SIGNDN").val(userdn);
- var f = document.form1;
- jQuery("#fevent").val("SIGN_OK");
- submitXmlRequest("/portal/cont/PurContDetail_form.screen", "SIGN_OK", f);
- });
-
- }
- //-->
- </SCRIPT>
- <FRAME src="" name="main" width="1" height="1"></FRAMESET>
- <!-- 전자인증 모듈 //-->
- <br/><br/>
- <script>
- </script>
- <iframe id="fileDown" name="fileDown" style="display:none"></iframe>
- <!-- 전자인증 모듈 설정 //-->
- <link rel="stylesheet" type="text/css" href="/CrossCert/CC_WSTD_home/unisignweb/rsrc/css/certcommon.css?v=1" />
- <script type="text/javascript" src="/CrossCert/CC_WSTD_home/unisignweb/js/unisignwebclient.js?v=1"></script>
- <script type="text/javascript" src="/CrossCert/UniSignWeb_Multi_Init_Nim.js?v=1"></script>
- <!-- 전자인증 모듈 설정 //-->
|