1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147 |
- <%--
- - Author(s) : CHJ
- - Date : 2015.03.06
- - 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.udapsoft.common.code.*" %>
- <%@ 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="java.net.URLEncoder"%>
- <%@ page import="kr.co.udapsoft.ebid.buyer.common.file.FileManager"%>
- <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();
-
- ValueObject ContInfo = storage.getValueObject("ContInfo");
- RowSet getFileListRowSet = storage.getRowSet("getFileListRowSet");
- RowSet modGbRow = CommCodeManager.getCodeRowsetStatic("MOD_GB");
-
- String digit = (String)ContInfo.get("digit");
- int intDigit = Integer.parseInt(digit);
-
- ValueObject suppinfo = storage.getValueObject("suppinfo");
- ValueObject sign_info = storage.getValueObject("SIGN_INFO");
- %>
- <SCRIPT language="JavaScript">
- /*예약함수*/
- var sheet1;
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
- function _onReady(){
- gridInit(sheet1);
-
- //저장된 첨부파일 리스트 불러오기
- getFileListForTextarea();
-
- //도급
- jQuery("#p_bef_cont_amt").blur(function () {
- logic(this,"cont");
- });
- jQuery("#p_aft_cont_amt").blur(function () {
- logic(this,"cont");
- logic(this,"bug");
- });
-
-
- //예산
- jQuery("#p_bef_bug_amt").blur(function () {
- logic(this,"bug");
- });
- jQuery("#p_aft_bug_amt").blur(function () {
- logic(this,"bug");
- logic(this,"supp");
- });
-
- //계약
- jQuery("#p_bef_supp_amt").blur(function () {
- logic(this,"supp");
- });
- jQuery("#p_aft_supp_amt").blur(function () {
- logic(this,"supp");
- });
-
- //계약기간 변경후
- jQuery("#p_aft_cont_date").change(function () {
- if(jQuery("#p_aft_cont_date").val().length > 10){
- alert("10자 이상 입력하실 수 없습니다.");
- }else{
- if(jQuery("#p_aft_cont_date").val().length == 8){
- jQuery("#p_aft_cont_date").val(jQuery("#p_aft_cont_date").val().substring(0,4)+"-"+jQuery("#p_aft_cont_date").val().substring(4,6)+"-"+jQuery("#p_aft_cont_date").val().substring(6,8));
- }
- }
-
- var date = new Date();
-
- var bef_cont_date = "<%=ContInfo.get("BEF_CONT_DATE")%>";
- bef_cont_date = bef_cont_date.replace(/-/gi, "");
- bef_cont_date = new Date(parse(bef_cont_date));
- var p_aft_cont_date = new Date(parse(jQuery("#p_aft_cont_date").val().replace(/-/gi, "")));
-
- var p_cont_date_nm = p_aft_cont_date - bef_cont_date;
- p_cont_date_nm = (p_cont_date_nm/(24 * 3600 * 1000));
- jQuery("#p_chg_cont_date").val(p_cont_date_nm);
-
- p_cont_date_nm = p_cont_date_nm+"일";
- jQuery("#p_cont_date_nm").val(p_cont_date_nm);
-
- //document.getElementById("CHG_CONT_DATE_VIEW").innerHTML=c;
-
- });
-
-
- jQuery("#btnSave").click(function() {
- if(!valCheck()||!doCheck()){
- return;
- }
- var f = document.form1;
- jQuery("#flag").val("save");
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
- document.form1.isSubmit = false;
-
- });
-
- jQuery("#btnReject").click(function() {
- var f = document.form1;
- jQuery("#flag").val("reject");
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
- document.form1.isSubmit = false;
-
- });
-
- jQuery("#btnResolve").click(function() {
- if(!valCheck()||!doCheck()){
- return;
- }
- var f = document.form1;
- jQuery("#flag").val("resolve");
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
- document.form1.isSubmit = false;
-
- });
-
- jQuery("#btnList").click(function(){
- var f = document.form1;
- f.fevent.value ="";
- f.action = "/cont/purchase/ContChgRcvList.screen";
- f.target = "_self";
- f.submit();
- });
-
- //2019.09.17 사업자번호변경 추가
- $("#btnChgCorp").click(function(){
- var win_id = "corp";
- var link = "/common/corp/SuppChoicePop.screen";
- link += "?pop_win_id="+win_id+"&BID_KIND=P&OUT_ITEM_CD="+"<%=ContInfo.get("OUT_ITEM_CD")%>";
- link += "&MATERIAL_GB="+"<%=ContInfo.get("MATERIAL_GB")%>";
- fLayerPop(win_id, link, 800,400, '','', 'NO');
- });
- $.test = function(resultVal)
- {
- var aftVendCd = resultVal[1][0].replace(/(\d{3})(\d{2})(\d{5})/, '$1-$2-$3');
- $('#p_aft_corp_id').val(resultVal[0][0]);
- $('#p_aft_vend_cd').val(aftVendCd);
- $('#p_aft_member_nm').val(resultVal[2][0]);
- $('#p_aft_boss_nm').val(resultVal[3][0]);
-
- setTimeout(function(){fLayerPopClose('corp'); },100);
- };
-
- doPageInit("<%=ContInfo.get("MOD_GB")%>");
- }
-
- function doPageInit(obj){
- if(obj == "00"){//당초
- dAmt();
- dDate();
- dCorp();
- }else if(obj =="01"||obj =="02"){//증액,감액
- eAmt();
- dDate();
- dCorp();
- }else if(obj =="10"||obj =="20"){//연장,단축
- dAmt();
- eDate();
- dCorp();
- }else if(obj =="11"||obj =="12"||obj =="21"||obj =="22"){//연장증액,연장감액,단축증액,단축감액
- eAmt();
- eDate();
- dCorp();
- }else if(obj =="98"){//타절
- dAmt();
- dDate();
- eCorp();
- }else if(obj =="99"){//기타
- dAmt();
- dDate();
- dCorp();
- }else {
- dAmt();
- dDate();
- dCorp();
- }
- }
-
-
- /**
- * IBSheet object initialize
- */
- function gridInit(sheetName){
- var init_sheet = {};
- init_sheet.Cfg = {SearchMode:2, Page:100};
- init_sheet.Cols = [
- {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
- {Header:'변경계약요청ID', Type:"Text", SaveName:"PUR_CONT_REQ_ID", Width:0, Align:"Center", Hidden:"True"},
- {Header:'외주계약변경ID', Type:"Text", SaveName:"PUR_CONT_MOD_ID", Width:0, Align:"Center", Hidden:"True"},
- {Header:'자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:100, Align:"Center" , Edit:"false"},
- {Header:'자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:150, Align:"Left", Edit:"false"},
- {Header:'규격', Type:"Text", SaveName:"MATERIAL_SPEC", Width:150, Align:"Left" , Edit:"false"},
- {Header:'단위', Type:"Text", SaveName:"UNIT_KIND_NAME", Width:50, Align:"Center" , Edit:"false"},
- {Header:'계약수량', Type:"Text", SaveName:"CON_ITEM_QTY", Width:120, Align:"Right" , Edit:"false"},
- {Header:'변경수량', Type:"Text", SaveName:"CHG_ITEM_QTY", Width:120, Align:"Right" , Edit:"false"},
-
- ];
- init_sheet.HeaderMode = {Sort:1};
- IBS_InitSheet(sheetName, init_sheet);
- sheetName.SetDataAutoTrim(0);
- setGridSize();
- }
-
- function doSearch(){
- jQuery("#fevent").val("SHEET_SELECT");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/cont/purchase/ContChgRcvDetail_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
- }
-
-
- function parse(str) {
- if(!/^(\d){8}$/.test(str)) return "invalid date";
- var y = str.substr(0,4),
- m = str.substr(4,2),
- d = str.substr(6,2);
- return new Date(y,m-1,d);
- }
-
- function logic(obj,gb) {
- //정수자리 제한 검사
- var strArray = jQuery(obj).val().split(".");
- if(strArray[0].replace(/,/gi, "").length > 12){
- alert("소수점 아랫부분을 제외한 정수는 12자리까지만 입력 가능합니다.");
- jQuery(obj).focus();
- }
-
- //통화구분에 맞춰서 소수점 자리와, 천단위 쉼표를 맞춘다.
- if(jQuery("#digit").val() != ""){
- jQuery(obj).val(jQuery(obj).val().replace(/(\,|\:)/g,""));
- jQuery(obj).val(Number(jQuery(obj).val()).toFixed(jQuery("#digit").val()));
- jQuery(obj).val(jQuery(obj).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- jQuery(obj).val(jQuery(obj).val().replace("-,","-"))
- }
-
- if(gb=="cont"){
- var bef_cont_amt = jQuery("#p_bef_cont_amt").val().replace(/(\,|\:)/g,"");
- var aft_cont_amt = jQuery("#p_aft_cont_amt").val().replace(/(\,|\:)/g,"");
- var chg_cont_amt = aft_cont_amt-bef_cont_amt;
- chg_cont_amt = Number(chg_cont_amt).toFixed(jQuery("#digit").val());
- jQuery("#p_chg_cont_amt").val(Number(chg_cont_amt).toFixed(jQuery("#digit").val()));
- jQuery("#p_chg_cont_amt").val(jQuery("#p_chg_cont_amt").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- jQuery("#p_chg_cont_amt").val(jQuery("#p_chg_cont_amt").val().replace("-,","-"));
- }
- else if(gb=="bug"){
- //증감 구하기
- var bef_bug_amt = jQuery("#p_bef_bug_amt").val().replace(/(\,|\:)/g,"");
- var aft_bug_amt = jQuery("#p_aft_bug_amt").val().replace(/(\,|\:)/g,"");
- var chg_bug_amt = aft_bug_amt-bef_bug_amt;
- jQuery("#p_chg_bug_amt").val(Number(chg_bug_amt).toFixed(jQuery("#digit").val()));
- jQuery("#p_chg_bug_amt").val(jQuery("#p_chg_bug_amt").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- jQuery("#p_chg_bug_amt").val(jQuery("#p_chg_bug_amt").val().replace("-,","-"));
-
- //증감율 구하기
- if(jQuery("#p_aft_cont_amt").val() == "" || jQuery("#p_aft_cont_amt").val() == 0){
- jQuery("#p_chg_bug_rate").val("");
- }else{
- var aft_cont_amt = jQuery("#p_aft_cont_amt").val().replace(/(\,|\:)/g,"");
- if((aft_bug_amt/aft_cont_amt*100).toFixed(9).replace("NaN","0")!="0.0000000000"){
- var chg_bug_rate = "도급대비: "+((aft_bug_amt/aft_cont_amt*100).toFixed(1)).replace("NaN","0")+"%";
- }
- jQuery("#p_chg_bug_rate").val(chg_bug_rate);
- }
- }
- else{
- //증감 구하기
- var bef_supp_amt = jQuery("#p_bef_supp_amt").val().replace(/(\,|\:)/g,"");
- var aft_supp_amt = jQuery("#p_aft_supp_amt").val().replace(/(\,|\:)/g,"");
- var chg_supp_amt = aft_supp_amt-bef_supp_amt;
-
- jQuery("#p_chg_supp_amt").val(Number(chg_supp_amt).toFixed(jQuery("#digit").val()));
- jQuery("#p_chg_supp_amt").val(jQuery("#p_chg_supp_amt").val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- jQuery("#p_chg_supp_amt").val(jQuery("#p_chg_supp_amt").val().replace("-,","-"));
-
- //증감율 구하기
- if(jQuery("#p_aft_bug_amt").val() == "" || jQuery("#p_aft_bug_amt").val() == 0){
- jQuery("#p_chg_supp_rate").val("");
- }else{
- var aft_bug_amt = jQuery("#p_aft_bug_amt").val().replace(/(\,|\:)/g,"");
- if((aft_supp_amt/aft_bug_amt*100).toFixed(9).replace("NaN","0")!="0.0000000000"){
- var chg_supp_rate = "예산대비: "+((aft_supp_amt/aft_bug_amt*100).toFixed(1)).replace("NaN","0")+"%";
- }
- jQuery("#p_chg_supp_rate").val(chg_supp_rate);
- }
- }
- }
-
- function valCheck(){
- if ( stringByteSize4UTF($("#p_remark").val()) > 2000 ) {
- alert("변경사유는 500자까지 입력하실 수 있습니다.");
- jQuery("#p_remark").focus();
- return;
- }
- if ( stringByteSize4UTF($("#p_sp_remark").val()) > 2000 ) {
- alert("특이사항는 500자까지 입력하실 수 있습니다.");
- jQuery("#p_sp_remark").focus();
- return;
- }
- /* if ( stringByteSize4UTF($("#p_bef_etc").val()) > 300 ) {
- alert("기타변경 변경전은 100자까지 입력하실 수 있습니다.");
- jQuery("#p_bef_etc").focus();
- return;
- }
- if ( stringByteSize4UTF($("#p_aft_etc").val()) > 300 ) {
- alert("기타변경 변경후 100자까지 입력하실 수 있습니다.");
- jQuery("#p_aft_etc").focus();
- return;
- }
- if ( stringByteSize4UTF($("#p_chg_etc").val()) > 300 ) {
- alert("기타변경 증감은 100자까지 입력하실 수 있습니다.");
- jQuery("#p_chg_etc").focus();
- return;
- }*/
- if ( $("#p_po_prc").val() == null || $("#p_po_prc").val() =='') {
- alert("발주진행율 등록해주십시오");
- jQuery("#p_po_prc").focus();
- return;
- }
- if ( $("#p_res_prc").val() == null || $("#p_res_prc").val() =='' ) {
- alert("실적진행율 등록해주십시오");
- jQuery("#p_res_prc").focus();
- return;
- }
-
- return true;
- }
- function goListProc(){
- var f = document.form1;
- f.fevent.value ="";
- f.action = "/cont/purchase/ContChgRcvList.screen";
- f.target = "_self";
- f.submit();
- }
- function doResult(resultObj) {
- try {
- //계약서 삭제
- if( resultObj.getRequestEvent() == "FORM_DEL") {
- if( resultObj.getSuccess() ) {
- alert("정상적으로 삭제 처리 되었습니다.")
- goListProc();
- } else {
- dlgErrorMsg(resultObj);
- }
- }
-
-
- if( resultObj.getRequestEvent() == "FORM_SELECT") {
- if( resultObj.getSuccess() ) {
-
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }else if( resultObj.getRequestEvent() == "FORM_SAVE") {
- if( resultObj.getSuccess() ) {
- if(jQuery("#flag").val() == "save"){
- alert("저장 되었습니다.");
- refresh();
- }else if(jQuery("#flag").val() == "resolve"){
- document.form1.isSubmit = false;
- var f = document.form1;
- var sign_cont_mod_id = $("#PUR_CONT_MOD_ID").val();
- dlgSignForm('ebid_pcpoD', '/cont/purchase/contSign.screen?sign_cont_mod_id='+sign_cont_mod_id+'^acct_id='+"<%=user.get("ACCT_ID")%>");
- }
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
- else if(resultObj.getRequestEvent() == "GET_ATTACHFILE")
- {
- if( resultObj.getSuccess() ) {
- document.form1.p_AttachFile1.value = resultObj.getValueObject().get("AttachFile");
- doSearch();
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
- else if( resultObj.getRequestEvent() == "DUP_CHK") {
- if( resultObj.getSuccess() ) {
- var vo = resultObj.getValueObject();
- var cnt = vo.get("cnt");
- if(cnt > 0){
- if(jQuery("#flag").val() == "resolve"){
- alert("이미 결재중 입니다.");
- }else if(jQuery("#flag").val() == "fileDw"){
- jQuery("#signCheck").val("N");
- doAttachFile2(jQuery("#fileGB").val(), jQuery("#fileID").val());
- }else if(jQuery("#flag").val() == "fileCk"){
- jQuery("#signCheck").val("N");
- fileAfterCheck(jQuery("#ckVal").val());
- }
- return;
- }else{
- var f = document.form1;
-
- if(jQuery("#flag").val() == "resolve"){//결재
- //jQuery("#fevent").val("FORM_SAVE");
- if (confirm("저장후 결재 요청을 하시겠습니까?")){
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "FORM_SAVE", f);
- }else{
- return;
- }
- }else if(jQuery("#flag").val() == "reject"){//반려
- if (confirm("반려 하시겠습니까?")){
- var f = document.form1;
- jQuery("#fevent").val("FORM_DEL");
- submitXmlRequest("/cont/purchase/ContWrite_form.screen", "FORM_DEL", f);
- }
- }else if(jQuery("#flag").val() == "fileDw"){//결재중이 아니면 파일 수정가능
- jQuery("#signCheck").val("");
- doAttachFile2(jQuery("#fileGB").val(), jQuery("#fileID").val());
- }else if(jQuery("#flag").val() == "fileCk"){//결재중이 아니면 파일 수정가능
- jQuery("#signCheck").val("");
- fileAfterCheck(jQuery("#ckVal").val());
- }else{//저장
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "FORM_SAVE", f);
- }
- }
- }
- else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }else if(resultObj.getRequestEvent() == "CONT_CHG_DATA"){
- if(resultObj.getSuccess()){
- alert("접수되었습니다.");
- jQuery("#btnList").click();
- }else{
- dlgErrorMsg(resultObj);
- }
- }else if(resultObj.getRequestEvent() == "GET_CONT_CHG_ATTACHFILE"){
- if( resultObj.getSuccess() ) {
- document.form1.p_AttachFile3.value = resultObj.getValueObject().get("AttachFile");
- }else {
- dlgErrorMsg(resultObj);
- }
- document.form1.isSubmit = false;
- }
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
- function PopClose(win_id,result){
- if( result != null ){
- if(win_id == "_RejectPop"){
- if(result[0] == 0){
- setTimeout(function(){fLayerPopClose(win_id);},100);
- if(result[1].length> 0)alert(result[1]);
- jQuery("btnList").click();
- }else if(result[0] == 1){
- setTimeout(function(){ fLayerPopClose(win_id);},100);
- if(result[1].length> 0)alert(result[1]);
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/cont/purchase/ContChgRcvDetail.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
- }
- }else{
- setTimeout(function(){fLayerPopClose(win_id);},100);
- }
-
- }
-
- //첨부목록 조회
- function getFileListForTextarea(){
- document.form1.p_AttachFile1.value = "";
- var f = document.form1;
- jQuery("#fevent").val("GET_ATTACHFILE");
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "GET_ATTACHFILE", f, "VALUEOBJECT");
- }
- //결재
- function dlgSignForm( sign_class_cd, uri ) {
- var f = document.form1;
- var sheet1 = document.all.sheet1;
- var url = "/contPurchaseSign/contSign_form.screen";
- url += "?sign_class_cd=" + sign_class_cd;
- url += "&uri=" + uri;
- url += "&sign_cont_mod_id=" + $("#PUR_CONT_MOD_ID").val();
- url += "&acct_type=1";
- window.open(url, "_blank","width=200,height=100,SCROLLBARS=no");
- }
-
- function doCheck(){
- var value=document.form1.p_mode_gb.value;
- var result=false;
- if(value=="01"){ //증액
- if(noChgCorp()==true && noChgDate()==true){
- result=incAmt();
- }
- }else if(value=="02"){ //감액
- if(noChgCorp()==true && noChgDate()==true){
- result=decAmt();
- }
- }else if(value=="10"){ //연장
- if(noChgCorp()==true && noChgAmt()==true){
- result=incDate();
- }
- }else if(value=="11"){ //연장증액
- if(noChgCorp()==true && incAmt()==true){
- result=incDate();
- }
- }else if(value=="12"){ //연장감액
- if(noChgCorp()==true && decAmt()==true){
- result=incDate();
- }
- }else if(value=="20"){ //단축
- if(noChgCorp()==true && noChgAmt()==true){
- result=decDate();
- }
- }else if(value=="21"){ //단축증액
- if(noChgCorp()==true && incAmt()==true){
- result=decDate();
- }
- }else if(value=="22"){ //단축감액
- if(noChgCorp()==true && decAmt()==true){
- result=decDate();
- }
- }else if(value=="98"){ //타절
- if(chkChgCorp()==true){
- if(noChgAmt()==true){
- result=noChgDate();
- }
- }
- }else if(value=="99"){ //기타
- if(noChgCorp()==true){
- result=true;
- }
- }else if(value=="00"){ //당초
- if(noChgCorp()==true){
- result=true;
- }
- }
- return result;
- }
- function incAmt(){
- if($("#p_chg_supp_amt").val().replace(/,/gi, "")<=0){
- alert("변경후 계약금액을 확인해 주세요.");
- $("#p_aft_supp_amt").focus();
- return;
- }
- return true;
- }
-
- function decAmt(){
- if($("#p_chg_supp_amt").val().replace(/,/gi, "")>=0){
- alert("변경후 계약금액을 확인해 주세요.");
- $("#p_aft_supp_amt").focus();
- return;
- }
- return true;
- }
-
- function incDate(){
- var befDate=$("#p_bef_cont_date").val().replace(/-/gi, "");
- var aftDate=$("#p_aft_cont_date").val().replace(/-/gi, "");
- if(aftDate-befDate<=0){
- alert("변경후 계약기간을 확인해 주세요.");
- $("#p_aft_cont_date").focus();
- return;
- }
- return true;
- }
-
- function decDate(){
- var befDate=$("#p_bef_cont_date").val().replace(/-/gi, "");
- var aftDate=$("#p_aft_cont_date").val().replace(/-/gi, "");
- if(aftDate-befDate>=0){
- alert("변경후 계약기간을 확인해 주세요.");
- $("#p_aft_cont_date").focus();
- return;
- }
- return true;
- }
-
- function noChgAmt(){
- var vamt = $("#p_chg_supp_amt").val().replace(/,/gi, "") - 0;
- if(vamt!="0"){
- alert("변경후 계약금액이 변경되었습니다.");
- $("#p_aft_supp_amt").focus();
- return;
- }
- return true;
- }
-
- function noChgDate(){
- var befDate=$("#p_bef_cont_date").val().replace(/-/gi, "");
- var aftDate=$("#p_aft_cont_date").val().replace(/-/gi, "");
- if(aftDate-befDate!="0"){
- alert("변경후 계약기간이 변경되었습니다.");
- $("#p_aft_cont_date").focus();
- return;
- }
- return true;
- }
- function noChgCorp(){
- var befCorp=$("#p_bef_corp_id").val();
- var aftCorp=$("#p_aft_corp_id").val();
- if(befCorp!=aftCorp){
- alert("변경후 사업자번호가 변경되었습니다.");
- $("#p_aft_corp_id").focus();
- return;
- }
- return true;
- }
- function chkChgCorp(){
- var befCorp=$("#p_bef_corp_id").val();
- var aftCorp=$("#p_aft_corp_id").val();
- if(befCorp==aftCorp){
- alert("변경후 사업자번호가 동일합니다.");
- $("#p_aft_corp_id").focus();
- return;
- }
- return true;
- }
-
- function setGridSize() {sheet1.FitColWidth();}
-
- function doAttachFileDiv(obj) {
- if(obj==''){
- alert("저장을 한 후 파일을 첨부할 수 있습니다.");
- }
- else if(obj != ''){
- var edtYN ="N";
- if((document.getElementById("STATUS_CD").value=="00") || (document.getElementById("STATUS_CD").value=="03") ){edtYN="Y";}
- viewFileListNew('PUR_CONT_MOD_ID', obj.value, document.getElementById("p_AttachFile1"), edtYN, "cont/purchase/<%=ContInfo.get("PUR_CONT_MOD_ID")%>");
- }
- }
-
- function changeCheck(obj){
- if(obj.value=="00"){ //당초
- dAmt();
- dDate();
- dCorp();
- }else if(obj.value=="01"||obj.value=="02"){//증액,감액
- eAmt();
- dDate();
- dCorp();
- }else if(obj.value=="10"||obj.value=="20"){//연장,단축
- dAmt();
- eDate();
- dCorp();
- }else if(obj.value=="11"||obj.value=="12"||obj.value=="21"||obj.value=="22"){//연장증액,연장감액,단축증액,단축감액
- eAmt();
- eDate();
- dCorp();
- }else if(obj.value=="98"){//타절
- dAmt();
- dDate();
- eCorp();
- }else if(obj.value=="99"){//기타
- dAmt();
- dDate();
- dCorp();
- }else {//구매담당자가 생성한 경우 null
- dAmt();
- dDate();
- dCorp();
- }
- }
-
- function eAmt(){
- var f = document.form1;
- f.p_bef_bug_amt.readOnly=false;
- f.p_bef_cont_amt.readOnly=false;
- f.p_aft_cont_amt.readOnly=false;
- f.p_aft_bug_amt.readOnly=false;
- f.p_aft_supp_amt.readOnly=false;
- f.p_aft_cont_amt.style.background = "#FFFFFF";
- f.p_aft_bug_amt.style.background = "#FFFFFF";
- f.p_aft_supp_amt.style.background = "#FFFFFF";
- f.p_bef_bug_amt.style.background = "#FFFFFF";
- f.p_bef_cont_amt.style.background = "#FFFFFF";
- }
-
- function eDate(){
- var f = document.form1;
- f.calender_from.display = "none";
-
- document.getElementById("calender_from").style.display = "inline";
- }
-
- function dAmt(){
- var f = document.form1;
- f.p_bef_bug_amt.readOnly=true;
- f.p_bef_cont_amt.readOnly=true;
- f.p_aft_cont_amt.readOnly=true;
- f.p_aft_bug_amt.readOnly=true;
- f.p_aft_supp_amt.readOnly=true;
- f.p_aft_cont_amt.style.background = "rgb(218, 227, 244)";
- f.p_aft_bug_amt.style.background = "rgb(218, 227, 244)";
- f.p_aft_supp_amt.style.background = "rgb(218, 227, 244)";
- f.p_bef_bug_amt.style.background = "rgb(218, 227, 244)";
- f.p_bef_cont_amt.style.background = "rgb(218, 227, 244)";
- }
-
- function dDate(){
- document.getElementById("calender_from").style.display = "none";
- }
-
- function eCorp(){
- document.getElementById("p_aft_vend_cd").style.width = "70%";
- document.getElementById("btnChgCorp").style.display = "inline";
- }
-
- function dCorp(){
- document.getElementById("btnChgCorp").style.display = "none";
- document.getElementById("p_aft_vend_cd").style.width = "98%";
- }
-
- function refresh(){//저장
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/cont/purchase/ContChgRcvDetail.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
-
- function fileCheck(val){
- //alert(val);
- var f = document.form1;
- jQuery("#flag").val("fileCk");
- jQuery("#ckVal").val(val);
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
- document.form1.isSubmit = false;
- }
- function doAttachFile2(fileGB, id, editYN) {
- if(fileGB != ''){
- var file_div = "cont/purchase/contchgfile/<%=ContInfo.get("PUR_CONT_MOD_ID")%>/";
- var upLoadFlg = "Y";
- if((jQuery("#signCheck").val() != "") || (jQuery("#fileEditYN").val() == "N")){
- upLoadFlg = "N";
- }
- if(!((document.getElementById("STATUS_CD").value=="00") || (document.getElementById("STATUS_CD").value=="03")) ){
- upLoadFlg = "N";
- }
- viewFileListNew1(fileGB, id, document.form1.p_AttachFile4, upLoadFlg, file_div, null, null);
- }
- }
- function viewFileListNew1(fileGB, id, obj, isModify, isDrectory, iframeID, user_filename) {
-
- var win_id = "_viewFileList";
- var link = "/common/file/FileListNew.screen";
- link += "?pop_win_id="+win_id;
- link += "&extFunction=viewFileListClose1";
- link += "&file_gb=" + fileGB;
- link += "&id=" + id;
-
- if( obj.id != null )
- link += "&obj_id=" + obj.id;
- if( iframeID != null )
- link += "&iframeID=" + iframeID;
-
- if( isModify != null )
- link += "&is_modify=" + isModify;
- if( isDrectory != null )
- link += "&sys_gb=" + isDrectory;
- if( user_filename != null )
- link += "&user_filename=" + user_filename;
-
- fLayerPop(win_id, link, 750,430, '', '', 'NO', '200');
- }
-
- function fileAfterCheck(val){
- if(!jQuery("#signCheck").val() == ""){
- var obj = eval("document.getElementById('p_" + val + "')");
- alert("결재중엔 파일 수정이 불가합니다.");
- jQuery(obj).attr("checked",false);
- return;
- }else{
- var obj = eval("document.getElementById('" + val + "')");
- if(obj.style.display == "none"){
- obj.style.display = "inline";
- }else{
- obj.style.display = "none";
- }
- }
- }
-
- //첨부목록 조회
- function getContChgFileListForTextarea(){
- document.form1.p_AttachFile3.value = "";
- var f = document.form1;
- jQuery("#fevent").val("GET_CONT_CHG_ATTACHFILE");
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "GET_CONT_CHG_ATTACHFILE", f, "VALUEOBJECT");
- }
- function doDupChk(fileGB, id, editYN) {
- var f = document.form1;
- jQuery("#flag").val("fileDw");
- jQuery("#fileGB").val(fileGB);
- jQuery("#fileID").val(id);
- jQuery("#fileEditYN").val(editYN);
-
- submitXmlRequest("/cont/purchase/ContChgRcvDetail_form.screen", "DUP_CHK", f, "VALUEOBJECT");
- document.form1.isSubmit = false;
- }
-
- function open_bidamtpop(bidno, biddeg, vendorcd, vendor_name, esti_tot_amt, file_gb, div_po_yn, demanded_id) {
- var win_id = "_BidAmtPop";
- var link = "http://ebid.sgcenc.co.kr:80/bid/purchase/SignBidAmtPop.screen";
- link += "?pop_win_id=" + win_id; link += "&VENDOR_CD=" + vendorcd;
- link += "&BID_NO=" + bidno;
- link += "&BID_DEG=" + biddeg;
- link += "&FILE_GB=" + file_gb;
- link += "&VENDOR_NO=" + vendorcd;
- link += "&VENDOR_NAME=" + vendor_name;
- link += "&ESTI_TOT_AMT=" + esti_tot_amt;
- link += "&DIV_PO_YN=" + div_po_yn;
- link += "&DEMANDED_ID=" + demanded_id;
- window.open(link, win_id, "toolbar=no, width=1000, height=600, top=50, left=40, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new");
- }
-
- function doSignFile(doc_id, year) {
- var link = "";
- if(doc_id == ""){
- alert("결재 정보가 없습니다.");
- return;
- }
- var doc_chk = doc_id.substring(doc_id.length-3, doc_id.length);
- doc_chk = doc_chk * 1;
- if (year > "20151213"){
- link = "https://gw.sgcenc.co.kr/upload_approval/TEC/doc/" + year.substr(0,4) + "/" + doc_chk + "/"+ doc_id+".mht";
- } else {
- link = "https://gw.sgcenc.co.kr/upload_approval/TEC/doc/" + doc_chk + "/"+ doc_id+".mht";
- }
-
- window.open(link,"_viewDraft","");
- }
-
- function sheet1_OnSearchEnd(code, message) {
- if(code == 0) {
- getContChgFileListForTextarea();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
- </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_cd" value="<%= params.get("p_dept_cd") %>">
- <INPUT type="hidden" name="p_dept_nm" value="<%= params.get("p_dept_nm") %>">
- <INPUT type="hidden" name="p_dealer_nm" value="<%= params.get("p_dealer_nm") %>">
- <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="p_cont_req_status" value="<%= params.get("p_cont_req_status") %>">
- <!-- 검색 조건 끝-->
- <INPUT type="hidden" name="CONT_STATUS" value="<%=ContInfo.get("CONT_STATUS")%>">
- <INPUT type="hidden" name="pDemID" value="<%=ContInfo.get("DEM_ID")%>">
- <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="STATUS_CD_3000" value="<%=ContInfo.get("STATUS_CD_3000")%>">
- <input type="hidden" name="p_AttachFile2" id="p_AttachFile2" onPropertyChange="JavaScript:getFileListForTextarea();"/>
- <INPUT type="hidden" name="digit" id="digit" value="<%=ContInfo.get("DIGIT")%>">
- <INPUT type="hidden" name="flag" id="flag" value="">
- <INPUT type="hidden" name="chk_gb" id="chk_gb" value="">
- <INPUT type="hidden" name="p_chg_cont_date" id="p_chg_cont_date" value="<%=ContInfo.get("CONT_DATE_NM")%>">
- <INPUT type="hidden" id="fileDetailCd" value="">
- <INPUT type="hidden" id="fileDetailNm" value="">
- <INPUT type="hidden" id="signCheck" value="">
- <INPUT type="hidden" id="ckVal" value="">
- <INPUT type="hidden" id="fileGB" value="">
- <INPUT type="hidden" id="fileID" value="">
- <INPUT type="hidden" id="fileEditYN" value="">
- <input type="hidden" name="p_AttachFile4" id="p_AttachFile4" onPropertyChange="JavaScript:getContChgFileListForTextarea();"/>
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div align="left" id="title">
- <ul>
- <li>구매_변경계약접수</font></li>
- </ul>
- </div>
- </th>
- <td align="right">
- <%if(ContInfo.get("STATUS_CD").equals("00") || ContInfo.get("STATUS_CD").equals("03")){ %>
- <span class="btnSearch center" id="btnSave"><a href="javascript:void(0);">저장</a></span>
- <span class="btnSearch center" id="btnResolve"><a href="javascript:void(0);">접수</a></span>
- <span class="btnSearch center" id="btnReject"><a href="javascript:void(0);">반려</a></span>
- <%}%>
- <span class="btnSearch center" id="btnList"><a href="javascript:void(0);">목록</a></span>
- </td>
- </tr>
- </table>
- <%@ include file="/jsp/ko_KR/buyer/cont/purchase/ContChgRcvInfo.jsp" %>
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">변경계약 접수 정보</span>
- 변경구분
- <%= HTMLMaker.getSelectTag(modGbRow, "CODE", "NAME", "p_mode_gb", "style='width:100px; margin-bottom: 2px;' onchange='changeCheck(this);'", "", ContInfo.get("MOD_GB")) %>
- </div>
- </div>
- <!-- 변경계약요청정보 들어갈곳 -->
- <div class="tab_container">
- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; margin-left: 0px; margin-top: 0px;">
- <tr>
- <td align="left">
- <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form-table">
- <col width="7%" />
- <col width="8%" />
- <col width="20%" />
- <col width="20%" />
- <col width="20%" />
- <tr>
- <th colspan="2" style="text-align: center;">
- 구분
- </th>
- <th style="text-align: center;">
- 변경전
- </th>
- <th style="text-align: center;">
- 변경후
- </th>
- <th style="text-align: center;">
- 증감
- </th>
- <!-- <th style="text-align: center;">
- 증감율(%)
- </th> -->
- </tr>
- <tr>
- <th colspan="2" style="text-align: center;">
- 사업자번호
- </th>
- <td style="text-align: center;">
- <INPUT type="hidden" name="p_bef_corp_id" id="p_bef_corp_id" value="<%=ContInfo.get("BEF_C_CORP_ID")%>">
- <%=InputText.get("p_bef_vend_cd",StringUtils.getBizNo(ContInfo.get("BEF_C_VEND_CD")), 98,20, "PerSize, center,readonly") %>
- </td>
- <td style="text-align: center;">
- <INPUT type="hidden" name="p_aft_corp_id" id="p_aft_corp_id" value="<%=ContInfo.get("C_CORP_ID")%>">
- <INPUT type="hidden" name="p_aft_member_nm" id="p_aft_member_nm" value="<%=ContInfo.get("C_MEMBER_NAME")%>">
- <INPUT type="hidden" name="p_aft_boss_nm" id="p_aft_boss_nm" value="<%=ContInfo.get("C_BOSS_NAME")%>">
- <%=InputText.get("p_aft_vend_cd",StringUtils.getBizNo(ContInfo.get("C_VENDCD")), 98,20, "PerSize, center,readonly") %>
- <span class="btnSearch center" id="btnChgCorp" style="display:none;"><a href="javascript:void(0);">사업자번호변경</a></span>
- </td>
- <td>
- </td>
- </tr>
- <tr>
- <th rowspan="4" style="text-align: center;">
- 계약변경<br>요청내역<br>(부가세별도)
- </th>
- <th style="text-align: center;">
- 도급금액
- </th>
- <td id="td_bef_cont_amt" style="text-align: right;">
- <%=InputText.get("p_bef_cont_amt",Formatter2.currency(ContInfo.get("BEF_CONT_AMT"),intDigit), 98,20, "PerSize,string, right","string") %>
- </td>
- <td style="text-align: right;">
- <%=InputText.get("p_aft_cont_amt",Formatter2.currency(ContInfo.get("AFT_CONT_AMT"),intDigit), 98,20, "PerSize,string, right","string") %>
- </td>
- <td id="td_chg_cont_amt" style="text-align: right;">
- <%=InputText.get("p_chg_cont_amt",Formatter2.currency(ContInfo.get("CHG_CONT_AMT"),intDigit), 98,20, "PerSize,Number, right,readonly","Number") %>
- </td>
- </tr>
- <tr>
- <th style="text-align: center;">
- 예산금액
- </th>
- <td style="text-align: right;">
- <%=InputText.get("p_bef_bug_amt",Formatter2.currency(ContInfo.get("BEF_BUG_AMT"),intDigit), 98,20, "PerSize,string, right","string") %>
- </td>
- <td style="text-align: right;">
- <%=InputText.get("p_aft_bug_amt",Formatter2.currency(ContInfo.get("AFT_BUG_AMT"),intDigit), 98,20, "PerSize,string, right","string") %>
- </td>
- <td style="text-align: right;">
- <%=InputText.get("p_chg_bug_amt",Formatter2.currency(ContInfo.get("CHG_BUG_AMT"),intDigit), 98,20, "PerSize,Number, right,readonly","Number") %>
- </td>
- </tr>
- <tr>
- <th style="text-align: center;">
- 계약금액
- </th>
- <td style="text-align: right;">
- <%=InputText.get("p_bef_supp_amt",Formatter2.currency(ContInfo.get("BEF_SUPP_AMT"),intDigit), 98,20, "PerSize,string, right, readonly","string") %>
- </td>
- <td style="text-align: right;">
- <%=InputText.get("p_aft_supp_amt",Formatter2.currency(ContInfo.get("AFT_SUPP_AMT"),intDigit), 98,20, "PerSize,string, right","string") %>
- </td>
- <td style="text-align: right;">
- <%=InputText.get("p_chg_supp_amt",Formatter2.currency(ContInfo.get("CHG_SUPP_AMT"),intDigit), 98,20, "PerSize,Number, right,readonly","Number") %>
- </td>
- </tr>
- <tr>
- <th style="text-align: center;">
- 계약기간
- </th>
- <td style="text-align: center;">
- <%-- <input name="p_bef_cont_date" id="p_bef_cont_date" value="<%= ContInfo.get("BEF_CONT_DATE")%>" class="input" style="width: 98%;text-align: center;" readonly="readonly"/> --%>
- <%=InputText.get("p_bef_cont_date",Formatter2.currency(ContInfo.get("BEF_CONT_DATE")), 98,20, "PerSize, center,readonly") %>
- </td>
- <td style="text-align: center;">
- <%=InputText.get("p_aft_cont_date",Formatter2.currency(ContInfo.get("AFT_CONT_DATE")), 85,20, "PerSize, center,readonly") %>
- <IMG id="calender_from" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('p_aft_cont_date');">
- </td>
- <td style="text-align: center;">
- <%=InputText.get("p_cont_date_nm",Formatter2.currency(ContInfo.get("CONT_DATE_NM")), 98,20, "PerSize, center,readonly") %>
- </td>
- </tr>
- <tr>
- <th colspan="2" style="text-align: center;">
- 구매 발주진행율 누계
- </th>
- <TD><%= InputText.get("p_po_prc", ContInfo.get("PO_PRC"), 5, 5, "Right,Float","Float") %>%</TD>
- <th style="text-align: center;">
- 구매 발주실적율 누계
- </th>
- <TD><%= InputText.get("p_res_prc", ContInfo.get("RES_PRC"), 5, 5, "Right,Float","Float") %>%</TD>
- </tr>
- <tr>
- <th colspan="2" style="text-align: center;">
- 변경사유
- </th>
- <td colspan="3">
- <textarea name="p_remark" id="p_remark" style="width:99%;height:80px" rows="1" class="input" ><%= ContInfo.get("IN_CHG_INFO")%></textarea>
- </td>
- </tr>
- <tr>
- <th colspan="2" style="text-align: center;">
- 특기사항
- </th>
- <td colspan="3">
- <textarea name="p_sp_remark" id="p_sp_remark" style="width:99%;height:80px" rows="1" class="input" ><%= ContInfo.get("IN_SPE_INFO")%></textarea>
- </td>
- </tr>
-
- <tr >
- <th colspan="2" style="text-align: center;">
- 첨부파일
- </th>
- <td colspan="3" id="input01">
- <textarea name="p_AttachFile1" id="p_AttachFile1" style="width:95%;height:100px" rows="1" class="input" readOnly></textarea>
- <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>
- <tr >
- <th colspan="2" style="text-align: center;">변경시행결의<br>첨부파일</th>
- <td colspan="2">
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <%
- if(getFileListRowSet.size() > 0){
- int i_mod = 0;
- for(int i = 0; getFileListRowSet.size() > i; i++){
- i_mod = i%2;
- if(i_mod == 0){ %>
- <TR>
- <% } %>
- <td width="50%">
- <label for="p_<%=getFileListRowSet.getRow(i).get("DETAILCD") %>"><input type="checkbox" name="<%=getFileListRowSet.getRow(i).get("DETAILNM") %>" id="p_<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" value="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" style="cursor:pointer;" onClick="fileCheck('<%=getFileListRowSet.getRow(i).get("DETAILCD") %>')" <%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("checked");} %> <%if(getFileListRowSet.getRow(i).get("EDIT_YN").equals("N")){out.print("disabled");} %>> <%=getFileListRowSet.getRow(i).get("DETAILNM") %></label>
- </td>
- <td width="5%" height="24">
- <IMG src="/img/supplier/button/bt_attach_file.gif" id="<%=getFileListRowSet.getRow(i).get("DETAILCD") %>" alt="첨부파일 관리" align="top" style="display:<%if(!getFileListRowSet.getRow(i).get("DOC_CD").equals("")){out.print("inline");}else{out.print("none");} %>" onClick="doDupChk('<%=getFileListRowSet.getRow(i).get("FILE_GB") %>', '<%=getFileListRowSet.getRow(i).get("ID")%>', '<%=getFileListRowSet.getRow(i).get("EDIT_YN")%>');" class="button">
- </td>
- <% if(i_mod == 2) { %>
- </TR>
- <% } %>
- <%
- }
- for(int i=i_mod+1; i<2; i++){ %>
- <td></td>
- <% }
- if(i_mod == 0 || i_mod == 1){ %>
- </TR>
- <% }
- }
- %>
- </table>
- </TD>
- <td>
- <textarea name="p_AttachFile3" id="p_AttachFile3" style="width:98%;height:100px" rows="1" class="input" readOnly></textarea>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">변경계약 내역</span>
- </div>
- </div>
- <div id="sheet1_div" style="padding-top:5px; height: auto; min-height: 300px; overflow: auto;">
- <script>createIBSheet('sheet1','100%', '300px');</script>
- </div>
- </form>
|