1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630 |
- <%--
- - Author(s) : Hyung min Son
- - Date : 2014.07.30
- - Description: 재입찰
- --%>
- <%@page import="com.udapsoft.waf.common.util.StringUtils"%>
- <%@ page contentType="text/html; charset=utf-8"%>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage"%>
- <%@ page import="com.udapsoft.waf.common.ui.*"%>
- <%@ page import="kr.co.udapsoft.common.code.*"%>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <%@ page import="kr.co.hsnc.common.sql.*"%>
- <%@ page import="java.text.SimpleDateFormat"%>
- <%@ page import="java.util.Date"%>
- <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
- <%@ include file="/jsp/work/taglib.jsp"%>
- <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 Order = storage.getValueObject("Order");
- ValueObject filein = storage.getValueObject(Order.get("DOC_ETC_IN"));
- ValueObject fileout = storage.getValueObject(Order.get("DOC_ETC_OUT"));
- SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");
- String nowTime = sd.format(new Date());
- %>
- <SCRIPT language="JavaScript">
- document.body.onresize = addEvent( document.body.onresize, "autoResize()");
- /*예약함수*/
- var sheet1 = new ibsheetObject();
- var sheet2 = new ibsheetObject();
- var sheet3 = new ibsheetObject();
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
- var to_act;
-
- var must_msg = "(은)는 필수 입력 항목입니다.";
- function _onReady(){
- /**
- * IBSheet object initialize
- */
- gridInit(sheet1);
- gridInit(sheet2);
- gridInit(sheet3);
-
- /**
- * Application Initialize
- */
- $("#btn_list").click(function() {
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/bid/purchase/SuccessBidList.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
- });
- $("#btn_list2").click(function() {
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/bid/purchase/RebidList.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
- });
- $("#btn_cancel").click(function() {
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/bid/purchase/SuccessBid.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- });
-
- // 재견적의뢰
- $("#btn_rebid").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/purchase/Rebid_process.screen", "SIGN_CHECK", f, "VALUEOBJECT");
- to_act = "btn_rebid";
-
- });
- // 저장
- $("#btn_save").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/purchase/Rebid_process.screen", "SIGN_CHECK", f, "VALUEOBJECT");
- to_act = "btn_save";
- });
- // 결재
- $("#btn_deci").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/purchase/Rebid_process.screen", "SIGN_CHECK", f, "VALUEOBJECT");
- to_act = "btn_deci";
- });
- // 삭제
- $("#btn_delete").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/purchase/Rebid_process.screen", "SIGN_CHECK", f, "VALUEOBJECT");
- to_act = "btn_delete";
- });
-
- if($("#STATUS_CD").val() == "20" || $("#STATUS_CD").val() == "30"){
- $("#btn_cancel").hide();
- $("#btn_rebid").hide();
- $("#btn_save").show();
- $("#btn_deci").show();
- $("#btn_list").hide();
- $("#btn_list2").show();
- $("#btn_delete").show();
-
- sheet1.SetColHidden("CHECK",1);
- sheet1.SetColHidden("DEL_CHECK",0);
-
- //2020.03.19 재입찰시 담당자 정보 변경가능하도록 요청
- sheet1.SetColEditable("CHARGE_NAME",1);
- sheet1.SetColEditable("CHAGE_HP",1);
- sheet1.SetColEditable("CHARGE_EMAIL",1);
-
- }else if($("#STATUS_CD").val() == "25"){
- $("#btn_cancel").hide();
- $("#btn_rebid").hide();
- $("#btn_save").hide();
- $("#btn_deci").hide();
- $("#btn_list").hide();
- $("#btn_list2").show();
- $("#btn_delete").hide();
- sheet1.SetColHidden("CHECK",1);
- sheet1.SetColHidden("DEL_CHECK",1);
-
- $("#report_emp_btn").hide();
- sheet3.SetColHidden("DEL_CHECK", true);
- }else{
- $("#btn_cancel").show();
- $("#btn_rebid").show();
- $("#btn_save").hide();
- $("#btn_deci").hide();
- $("#btn_list").show();
- $("#btn_list2").hide();
- $("#btn_delete").hide();
-
- sheet1.SetColHidden("CHECK",0);
- sheet1.SetColHidden("DEL_CHECK",1);
-
- $("#report_emp_btn").hide();
- sheet3.SetColHidden("DEL_CHECK", true);
- }
-
-
- if("<%=Order.get("PBC_DEFECT_CONDI2")%>"!=""||"<%=Order.get("CBC_DEFECT_DAY2")%>"!=""||"<%=Order.get("CBC_DERECT_TERM_CD2")%>"!=""){
- $("#addGuar").attr("checked", true);
- $(".checkAdd").show();
- }
- $("#addGuar").click(function(){
- var chk = $("#addGuar").is(":checked");
- if(chk){
- $(".checkAdd").show();
- }else{
- $(".checkAdd").hide();
- $("#PBC_DEFECT_CONDI2").val("");
- $("#CBC_DEFECT_DAY2").val("");
- $("#CBC_DERECT_TERM_CD2").val("");
- }
- });
-
- $("#sort_gb_3").attr("disabled",true);
- $("#sort_gb_3").click(function() {
- $("#TBE_DATE").attr("disabled",false);
- $("#SUPP_REQ_DY").attr("disabled",false);
- $("#EVAL_EMPNM").attr("disabled",false);
- $("#btnevalemp").show();
- $("#calender_supp_req").show();
- });
- $("#sort_gb_4").attr("disabled",true);
- $("#sort_gb_4").click(function() {
- $("#TBE_DATE").attr("disabled",true);
- $("#TBE_DATE").val("");
- $("#SUPP_REQ_DY").attr("disabled",true);
- $("#SUPP_REQ_DY").val("");
- $("#EVAL_EMPNM").attr("disabled",true);
- $("#EVAL_EMPNM").val("");
- $("#EVAL_EMPID").attr("disabled",true);
- $("#EVAL_EMPID").val("");
- $("#btnevalemp").hide();
- $("#calender_supp_req").hide();
- });
-
- //보고자 조회
- doSearchSheet3();
-
- //라디오 박스 체크 여부 // N 일경우 비활성화
- if($("#sitedesc_flag_2").attr("checked") == "checked")
- $("#sitedesc_flag_2").click();
- if($("#sort_gb_4").attr("checked") == "checked")
- $("#sort_gb_4").click();
-
- //업체공지일자 변경
- $("#NOTI_DY").change(function() {
- if($("#BID_FROM_DT").val().length> 0){
- if($("#NOTI_DY").val()>= $("#BID_FROM_DT").val()){
- alert("업체공지일자는 견적제출일이전이어야 합니다.\n- 견적제출일:"+$("#BID_FROM_DT").val());
- $("#NOTI_DY").val("");
- return;
- }
- }
- if($("#SITEDESCDATE").val().length> 0){
- if($("#NOTI_DY").val()>= $("#SITEDESCDATE").val()){
- alert("업체공지일자는 견적설명일이전이어야 합니다.\n- 견적설명일:"+$("#SITEDESCDATE").val());
- $("#NOTI_DY").val("");
- return;
- }
- }
- });
- //견적제출기간 변경
- $("#BID_FROM_DT").change(function() {
- if($("#SITEDESCDATE").val().length> 0){
- if($("#BID_FROM_DT").val() < $("#SITEDESCDATE").val()){
- alert("견적제출기간은 견적설명일 이전 일 수 없습니다.\n- 견적설명일:"+$("#SITEDESCDATE").val());
- $("#BID_FROM_DT").val("");
- return;
- }
- }
- if($("#NOTI_DY").val().length> 0){
- if($("#BID_FROM_DT").val() < $("#NOTI_DY").val()){
- alert("견적제출기간은 업체공지일 이전 일 수 없습니다.\n- 업체공지일:"+$("#NOTI_DY").val());
- $("#BID_FROM_DT").val("");
- return;
- }
- }
- if($("#BID_TO_DT").val().length> 0){
- if($("#BID_TO_DT").val() < $("#BID_FROM_DT").val()){
- alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
- $("#BID_FROM_DT").val("");
- return;
- }
- }
- });
-
- //견적제출기간 변경
- $("#BID_TO_DT").change(function() {
- if($("#BID_FROM_DT").val().length> 0){
- if($("#BID_TO_DT").val() < $("#BID_FROM_DT").val()){
- alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
- $("#BID_TO_DT").val("");
- return;
- }
- }
- if($("#SITEDESCDATE").val().length> 0){
- if($("#BID_TO_DT").val() <= $("#SITEDESCDATE").val()){
- alert("견적제출기간은 견적설명일 이전 일 수 없습니다.\n- 견적설명일:"+$("#SITEDESCDATE").val());
- $("#BID_TO_DT").val("");
- return;
- }
- }
- });
-
- //견적제출기간 변경
- $("#DELI_START_DT").change(function() {
- if($("#DELI_END_DT").val().length> 0){
- if($("#DELI_START_DT").val()>= $("#DELI_END_DT").val()){
- alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
- $("#DELI_START_DT").val("");
- return;
- }
- }
- });
-
- //견적제출기간 변경
- $("#DELI_END_DT").change(function() {
- if($("#DELI_START_DT").val().length> 0){
- if($("#DELI_START_DT").val()>= $("#DELI_END_DT").val()){
- alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
- $("#DELI_END_DT").val("");
- return;
- }
- }
- });
-
- jQuery("#btn_row_del").click(function() {
- jQuery("#fevent").val("SET_CORP_DELETE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, jQuery("#form1"), false);
- });
-
- $("#corp_add").click(function(){
- var win_id = "corp";
- var outitem = "<%=Order.get("OUT_ITEM_CD")%>";
- var link = "/common/corp/SuppChoicePop.screen";
- link += "?pop_win_id="+win_id+"&BID_KIND=P&OUT_ITEM_CD="+outitem;
- link += "&MATERIAL_GB="+$("#MATERIAL_GB").val();
- fLayerPop(win_id, link, 800,430, '','', 'NO');
- });
-
-
- //2015.02.27 실행예산 수정 mklee
- //$("#ACT_AMT").keyup(function(){ act_rate();});
- $("#ACT_AMT, #CONT_AMT").keyup(function(){ act_rate();});
-
- $.test = function(resultVal)
- {
- for(var i=0; i < resultVal[0].length; i++)
- {
- var rowcnt = sheet1.RowCount();
- if(rowcnt> 0){
- for(var r=0; r < rowcnt; r++)
- {
-
- var vendor_no = sheet1.GetCellValue(r+1,"VENDOR_NO");
- if(vendor_no == resultVal[1][i]){
- alert(resultVal[2][i]+"는 이미 등록된 업체 입니다.");
- return;
- }
- var vendor_nm = sheet1.GetCellValue(r+1,"VENDOR_NAME");
- if(vendor_nm == resultVal[2][i]){
- alert(resultVal[2][i]+"는 이미 등록된 업체 입니다.");
- return;
- }
- }
- }
- //sheetObj.DataAutoTrim = false;
- var row = sheet1.DataInsert(-1);
- sheet1.SetCellValue(row,4,"구매팀"); //지명부서
- sheet1.SetCellValue(row,5,resultVal[1][i]); //사업자번호
- sheet1.SetCellValue(row,6,resultVal[2][i]); //업체명
- sheet1.SetCellValue(row,7,resultVal[3][i]); //대표자명
- sheet1.SetCellValue(row,8,resultVal[4][i]); //담당자명
- sheet1.SetCellValue(row,9,resultVal[6][i]); //핸드폰
- sheet1.SetCellValue(row,10,resultVal[7][i]);//이메일
- sheet1.SetCellValue(row,16,resultVal[0][i]);
- sheet1.SetCellValue(row,17,"1720");
- }
- setTimeout(function(){ fLayerPopClose('corp');},100);
- };
- $("#report_emp_add").click(function(){
- SearchUser('REPORT_EMP','REPORT_EMP','N');
- });
-
- $("#report_emp_del").click(function() {
- if(confirm("삭제 하시겠습니까?")){
- $("#fevent").val("SET_REPORT_EMP_DELETE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet3, url, $("#form1"), false);
- }
- });
- }
- //2015.02.27 mklee 실행대비율 자동계산 추가
- function act_rate(){
- var cont = $("#CONT_AMT").val();
- if(cont == "")
- cont = 0;
- else
- cont = cont.replace(/,/gi,"");
-
- var act = $("#ACT_AMT").val();
- if(act == "")
- act = 0;
- else
- act = act.replace(/,/gi,"");
-
- if(cont > 0 && act > 0){
- var rate = Number(act)/Number(cont) * 100;
- $("#ACT_RATE").val(Math.round(rate *10)/10);
- }else{
- $("#ACT_RATE").val("0");
- }
- }
-
-
- function doSearchSheet(){
- $("#fevent").val("GET_CORP_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
- }
-
- function doSearchSheetitem(){
- $("#fevent").val("GET_ITEM_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet2, url, jQuery("#form1"), 30, "");
- }
-
- function doSearchSheet3(){
- $("#fevent").val("GET_REPORT_EMP_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidPlan_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet3, url, jQuery("#form1"), 30, "");
- }
- function doSaveSheet3(){
- $("#fevent").val("REPORT_EMP_UPDATE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet3, url, $("#form1"), false);
- }
- function SearchUser(NAME,CODE,DEPT_YN){
- GB = "";
- if(CODE == "PUREMPNO"){
- CODE = "";
- NAME = "";
- GB = "PUREMP";
- }else if(CODE == "SITEDESCCHRGPRSNID"){
- CODE = "";
- NAME = "";
- GB = "SITEDESCCHRGPRSN";
- }else if(CODE == "REPORT_EMP"){
- CODE = "";
- NAME = "";
- GB = "REPORT_EMP";
- }
- var win_id = "_searchUserPopup";
- var link = "/lib/dlgSearchUserPop.screen";
- link += "?pop_win_id="+win_id;
- link += "&NAME="+NAME;
- link += "&CODE="+CODE;
- link += "&GB="+GB;
- if(DEPT_YN == "Y")
- link += "&deptNameYn=purchase";
- fLayerPop(win_id, link, 700,430, '', '', 'NO');
- }
-
- function SearchUserClose(result){
- if(result[10] == "PUREMP"){
- $("#PUREMPNO").val(result[9])//ACCT_ID
- $("#PUREMPNM").val(result[1])//이름
- $("#PO_EMPNM").val(result[6])//연락처
- }else if(result[10] == "SITEDESCCHRGPRSN"){
- $("#SITEDESCCHRGPRSNID").val(result[9])//ACCT_ID
- $("#SITEDESCCHRGPRSNNM").val(result[1])//이름
- $("#SITEDESCTELNO").val(result[6])//연락처
- $("#SITEDESCEMAIL").val(result[8])//이메일
- }else if(result[10] == "REPORT_EMP"){
- var rowcnt = sheet3.RowCount();
- if(rowcnt> 0){
- for(var r=0; r < rowcnt; r++)
- {
- var acct_id = sheet3.GetCellValue(r+1,"ACCT_ID");
- if(acct_id == result[9]){
- alert(result[1]+" " +result[5]+ "님은 이미 등록된 보고자 입니다.");
- return;
- }
- }
- }
- //sheetObj.DataAutoTrim = false;
- var row = sheet3.DataInsert(-1);
- sheet3.SetCellValue(row,"ACCT_ID",result[9]);
- sheet3.SetCellValue(row,"USER_NAME",result[1]);
- sheet3.SetCellValue(row,"BUSEO_NAME",result[3]);
- sheet3.SetCellValue(row,"GRADE_NAME",result[5]);
- }
- setTimeout(function(){ fLayerPopClose('_searchUserPopup');},100);
- }
- /**
- * IBSheet object initialize
- */
- function gridInit(sheetName){
- var init_sheet = {};
- if(sheetName.id == "sheet1"){
- init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly};
- init_sheet.Cols = [
- {Header:'재입찰|재입찰', Type:"CheckBox", SaveName:"CHECK", Width:0, Align:"Center"},
- {Header:'삭제|삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center"},
- {Header:'Status|Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
- {Header:'No.|No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
- {Header:'지명부서|지명부서', Type:"Text", SaveName:"RECM_DEPT_NM", Width:100, Align:"Left", Edit:false},
- {Header:'사업자번호|사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:100, Align:"Center", Format:"SaupNo", Edit:false},
- {Header:'업체명|업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:100, Align:"Left", Edit:false},
- {Header:'대표자명|대표자명', Type:"Text", SaveName:"REPRE_NO", Width:80, Align:"Left", Edit:false},
- {Header:'담당자명|담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:80, Align:"Left", Edit:false},
- {Header:'핸드폰|핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:100, Align:"Center", Edit:false},
- {Header:'이메일|이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:120, Align:"Left", Edit:false},
- {Header:'견적금액|견적금액', Type:"Text", SaveName:"ESTI_TOT_AMT", Width:140, Align:"Right", Edit:false, Cursor:"pointer"},
- {Header:'견적대비 \n실행율(%)|견적대비 \n실행율(%)', Type:"Text", SaveName:"ESTI_TOT_RATE", Width:60, Align:"Right", Edit:false},
- {Header:'DISQ_REASON|DISQ_REASONO', Type:"Text", SaveName:"DISQ_REASON", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_NO|BID_NO', Type:"Text", SaveName:"BID_NO", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_DEG|BID_DEG', Type:"Text", SaveName:"BID_DEG", Width:100, Align:"Center", Hidden:"True"},
- {Header:'VENDOR_CD|VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:100, Align:"Center", Hidden:"True"},
- {Header:'RECM_DEPT_ID|RECM_DEPT_ID', Type:"Text", SaveName:"RECM_DEPT_ID", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_RNNC_DT|BID_RNNC_DT', Type:"Text", SaveName:"BID_RNNC_DT", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_RNNC_ID|BID_RNNC_ID', Type:"Text", SaveName:"BID_RNNC_ID", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_RNNC_NM|BID_RNNC_NM', Type:"Text", SaveName:"BID_RNNC_NM", Width:100, Align:"Center", Hidden:"True"},
- {Header:'RECM_DEPT_ID|RECM_DEPT_ID', Type:"Text", SaveName:"RECM_DEPT_ID", Width:100, Align:"Center", Hidden:"True"},
- {Header:'SITEPARTI_YN|SITEPARTI_YN', Type:"Text", SaveName:"SITEPARTI_YN", Width:100, Align:"Center", Hidden:"True"},
- {Header:'SIGN_DT|SIGN_DT', Type:"Text", SaveName:"SIGN_DT", Width:100, Align:"Center", Hidden:"True"},
- {Header:'RNNC_REASON|SIGN_DT', Type:"Text", SaveName:"RNNC_REASON", Width:100, Align:"Center", Hidden:"True"},
- {Header:'평가점수|평가점수', Type:"Text", SaveName:"APPR_TOT_RATE", Width:50, Align:"Center", Edit:false},
- {Header:'입찰여부|입찰여부', Type:"Text", SaveName:"VALID_BID_YN_NM", Width:50, Align:"Center", Edit:false},
- {Header:'VALID_BID_YN|VALID_BID_YN', Type:"Text", SaveName:"VALID_BID_YN", Width:0, Align:"Center", Hidden:"True"}
- ];
- }else if(sheetName.id == "sheet2"){
- init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly};
- <%if ("Y".equals(Order.get("FOR_PO_YN"))) {%>
- init_sheet.Cols = [
- {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
- {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
- {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
- {Header:'자재코드|자재코드|자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:60, Align:"Center"},
- {Header:'자재명|자재명|자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:120, Align:"Left"},
- {Header:'규격|규격|규격', Type:"Text", SaveName:"STD", Width:60, Align:"Left"},
- {Header:'단위|단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:40, Align:"Center"},
- {Header:'변경전|도급|단가', Type:"Int", SaveName:"B_CONT_UNIT", Width:60, Align:"Right"},
- {Header:'변경전|실행|단가', Type:"Int", SaveName:"B_ACT_UNIT", Width:60, Align:"Right"},
- {Header:'변경전|견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"B_QTY", Width:60, Align:"Right"},
- {Header:'변경후|도급|단가', Type:"Int", SaveName:"C_CONT_UNIT", Width:60, Align:"Right"},
- {Header:'변경후|실행|단가', Type:"Int", SaveName:"C_ACT_UNIT", Width:60, Align:"Right"},
- {Header:'변경후|견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"C_QTY", Width:60, Align:"Right"},
- {Header:'상태|상태|상태', Type:"Text", SaveName:"CHG_MOD_CD", Width:40, Align:"Center"}
- ];
- <%} else {%>
- init_sheet.Cols = [
- {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
- {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
- {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
- {Header:'자재코드|자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:80, Align:"Center"},
- {Header:'자재명|자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:120, Align:"Left"},
- {Header:'규격|규격', Type:"Text", SaveName:"STD", Width:60, Align:"Left"},
- {Header:'단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:40, Align:"Center"},
- {Header:'도급|단가', Type:"Int", SaveName:"CONT_UNIT_AMT", Width:60, Align:"Right"},
- {Header:'도급|금액', Type:"Int", SaveName:"CONT_AMT", Width:60, Align:"Right", CalcLogic:"|CONT_UNIT_AMT|*|DEMANDED_QTY|"},
- {Header:'실행|단가', Type:"Int", SaveName:"ACT_UNIT_AMT", Width:60, Align:"Right"},
- {Header:'실행|금액', Type:"Int", SaveName:"ACT_AMT", Width:60, Align:"Right", CalcLogic:"|ACT_UNIT_AMT|*|DEMANDED_QTY|"},
- {Header:'견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"DEMANDED_QTY", Width:40, Align:"Right"},
- {Header:'투입요청일|투입요청일', Type:"Text", SaveName:"REQUEST_DATE", Width:40, Align:"Center", Format:"####-##-##"}
- ];
- <%}%>
- sheetName.SetEditable(false);
- }else{
- init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly,SizeMode:1};
- init_sheet.Cols = [
- {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center"},
- {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
- {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
- {Header:'계정ID', Type:"Text", SaveName:"ACCT_ID", Width:0, Align:"Center", Hidden:"True"},
- {Header:'이름', Type:"Text", SaveName:"USER_NAME", Width:100, Align:"Center", Edit:false},
- {Header:'부서명', Type:"Text", SaveName:"BUSEO_NAME", Width:150, Align:"Left", Edit:false},
- {Header:'직위명', Type:"Text", SaveName:"GRADE_NAME", Width:100, Align:"Center", Edit:false}
- ];
- }
- init_sheet.HeaderMode = {Sort:1};
- IBS_InitSheet(sheetName, init_sheet);
- sheetName.SetDataAutoTrim(0);
- setGridSize();
- }
-
- /**
- * IBSheet Event: Click
- */
- function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
- if(Row == 0)return;
- if(Col == 10){
- if(Value != ""){
- if(sheet1.GetCellValue(Row,"SITEPARTI_YN") == "Y" && sheet1.GetCellValue(Row, "SIGN_DT").length > 3){
- if(sheet1.GetCellValue(Row,"BID_RNNC_DT") == ""){
- $("#fevent").val("VENDOR_INFO_SELECT");
- var win_id = "_BidAmtPop";
- var link = "/bid/purchase/BidAmtPop.screen";
- link += "?pop_win_id="+win_id;
- link += "&ROW="+Row;
- link += "&VENDOR_CD="+sheet1.GetCellValue(Row,"VENDOR_CD");
- link += "&BID_NO="+sheet1.GetCellValue(Row,"BID_NO");
- link += "&BID_DEG="+sheet1.GetCellValue(Row,"BID_DEG");
- link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
- link += "&VENDOR_NO="+sheet1.GetCellValue(Row,"VENDOR_NO");
- link += "&VENDOR_NAME="+sheet1.GetCellValue(Row,"VENDOR_NAME");
- link += "&ESTI_TOT_AMT="+sheet1.GetCellValue(Row,"ESTI_TOT_AMT");
- link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
- fLayerPop(win_id, link, 1200,690, '', '', 'NO');
- }
- }else if(sheet1.GetCellValue(Row,"SITEPARTI_YN") == "Y" && sheet1.GetCellValue(Row,"BID_RNNC_DT") != ""){
- var win_id = "_BidGiveupPop";
- var link = "/bid/purchase/BidGiveupPop.screen";
- link += "?pop_win_id="+win_id;
- link += "&VENDOR_CD="+$("#VENDOR_CD").val();
- link += "&BID_NO="+$("#BID_NO").val();
- link += "&BID_DEG="+$("#BID_DEG").val();
- link += "&ROW="+Row;
- fLayerPop(win_id, link, 600,190, '', '', 'NO');
- }else if($("#ONBID_YN").val() == "오프라인"){
- var win_id = "_BidOfflineAmtPop";
- var link = "/bid/purchase/BidOfflineAmtPop.screen";
- link += "?pop_win_id="+win_id;
- link += "&ROW="+Row;
- link += "&VENDOR_CD="+sheet1.GetCellValue(Row,"VENDOR_CD");
- link += "&VENDOR_NO="+sheet1.GetCellValue(Row,"VENDOR_NO");
- if(sheet1.GetCellValue(Row,"ESTI_TOT_AMT") != "미참여"){
- link += "&ESTI_TOT_AMT="+sheet1.GetCellValue(Row,"ESTI_TOT_AMT");
- }else{
- link += "&ESTI_TOT_AMT=";
- }
- link += "&BID_NO="+$("#BID_NO").val();
- link += "&BID_DEG="+$("#BID_DEG").val();
- link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
- link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
- link += "&OBC_EMP_YN="+$("#OBC_EMP_YN").val();
- link += "&OBC_PENSION_YN="+$("#OBC_PENSION_YN").val();
- link += "&OBC_HEALTH_YN="+$("#OBC_HEALTH_YN").val();
- link += "&OBC_ELDER_YN="+$("#OBC_ELDER_YN").val();
- link += "&OBC_WORK_YN="+$("#OBC_WORK_YN").val();
- link += "&OBC_RESIGN_YN="+$("#OBC_RESIGN_YN").val();
- link += "&OBC_SAFE_YN="+$("#OBC_SAFE_YN").val();
- link += "&OBC_ENV_YN="+$("#OBC_ENV_YN").val();
- link += "&OBC_SITE_YN="+$("#OBC_SITE_YN").val();
- link += "&OBC_DUTY_YN="+$("#OBC_DUTY_YN").val();
- link += "&OBC_DUTY_RATE="+$("#OBC_DUTY_RATE").val();
- fLayerPop(win_id, link, 1200,600, '', '', 'NO');
- }
- }
- }
- }
-
- /**
- * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
- */
- function sheet1_OnSearchEnd(code, message) {
- var fevent = $("#fevent").val();
- if(code == 0) {
- setGridSize();
- sheet1.SetColFontColor("ESTI_TOT_AMT", "#0000ff");
- if(fevent == "GET_CORP_LIST")
- doSearchSheetitem();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
-
- //2020.03.19 재입찰시 담당자 정보 변경가능하도록 요청
- function sheet1_OnChange(Row, Col, Value) {
- if(Col == 9){//전화번호 형식 체크
- if(Value != ""){
- if(!checkTelno(Value)){
- alert("전화번호 형식이 올바르지 않습니다.");
- sheet1.SetCellValue(Row,Col,"");
- }
- }
- }
- if(Col == 10){//이메일 형식 체크
- if(Value != ""){
- if(!checkEmail(Value)){
- alert("이메일 형식이 올바르지 않습니다.");
- sheet1.SetCellValue(Row,Col,"");
- }
- }
- }
- }
-
- /**
- * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
- */
- function sheet2_OnSearchEnd(code, message) {
- if(code == 0) {
- sheet2.FitColWidth();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
- /**
- * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
- */
- function sheet3_OnSearchEnd(code, message) {
- if(code == 0) {
- //sheet3.FitColWidth();
- //견적대상 업체 조회
- doSearchSheet();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
-
- /**
- * IBSheet size setting
- */
- function setGridSize() {
- sheet1.FitColWidth();
- sheet2.FitColWidth();
- }
-
- function cmpt_must_ck(){
- var rowcnt = sheet1.RowCount();
- if($("#CMPT_CD").val() == "03"){//수의계약
- if(rowcnt != 1){
- alert("견적 대상 업체가 1개 이어야 합니다.");
- $("#sheet1_div").focus();
- return true;
- }
- }else if($("#CMPT_CD").val() == "01" || $("#CMPT_CD").val() == "02"){//지명경쟁 공개경쟁
- if(rowcnt < 2){
- alert("견적 대상 업체가 2개 이상 있어야 합니다.");
- $("#sheet1_div").focus();
- return true;
- }
- }
- return false;
- }
-
- function must_ck(){
- var now = new Date();
- hours = now.getHours();
- minutes = now.getMinutes();
- seconds = now.getSeconds();
- var nowDT = "<%=nowTime%>";
-
- if(must_ck_val("BID_FROM_DT",""))return false;
- if(time_ck("BID_FROM_HH","HH"))return false;
- if(time_ck("BID_FROM_MI","MI"))return false;
- if(must_ck_val("BID_TO_DT",""))return false;
- if(time_ck("BID_TO_HH","HH"))return false;
- if(time_ck("BID_TO_MI","MI"))return false;
- if(jQuery("#BID_FROM_DT").val() == jQuery("#BID_TO_DT").val()){
- var fromitme = jQuery("#BID_FROM_HH").val()+jQuery("#BID_FROM_MI").val();
- var toitme = jQuery("#BID_TO_HH").val()+jQuery("#BID_TO_MI").val();
- if(toitme <= fromitme){
- alert("견적제출기간 시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
- jQuery("#BID_FROM_HH").focus();
- return false;
- }
- }
- if(nowDT == jQuery("#BID_TO_DT").val()){
- if(jQuery("#BID_TO_HH").val() <= hours){
- alert("견적마감일시는 현재보다 커야 합니다.");
- jQuery("#BID_TO_HH").focus();
- return false;
- }
- }
- /* else if(nowDT > jQuery("#BID_TO_DT").val()){
- alert("견적제출 마감일시가 올바르지 않습니다.");
- jQuery("#BID_TO_DT").focus();
- return false;
- } */
- if(must_ck_val("PUREMPNM",""))return false;
- if(must_ck_val("PO_EMPNM",""))return false;
- if(must_ck_val("OPEN_EMPNM",""))return false;
- if(to_act == "btn_save" || to_act == "btn_deci"){
- if(report_emp_must_ck())return false;
- }
- /* if(must_ck_radio("TBE_FLAG","TBE여부"))return false;
- if($(':radio[name="TBE_FLAG"]:checked').val() == "Y"){
- if(must_ck_val("SUPP_REQ_DY",""))return false;
- if(must_ck_val("EVAL_EMPNM",""))return false;
- } TBE 변동 없음*/
- if($("#CURRENCY_GB").val()==""){
- alert("통화구분은 필수입니다.");
- $("#CURRENCY_GB").focus();
- return false;
- }
-
- if($(':radio[name="PBC_CBE_TYPE_CD"]:checked').val() == undefined){
- alert("CBE문서TYPE은 필수입니다.");
- $("#PBC_CBE_TYPE_CD").focus();
- return false;
- }
-
- if($(':checkbox[name="PBC_OPTION_YN"]:checked').val() == "Y"){
- if($("#PBC_OPTION_COMMENT").val() == ""){
- alert("업체 견적내용 반영일 경우 내용을 입력하셔야 합니다.");
- $("#PBC_OPTION_COMMENT").focus();
- return false;
- }
- }
-
- if($(':checkbox[name="CURRENCY_GB_YN"]:checked').val() != "Y")$("#CURRENCY_GB_YN").val("N");
- if($(':checkbox[name="PBC_INSTALL_YN"]:checked').val() != "Y")$("#PBC_INSTALL_YN").val("N");
- if($(':checkbox[name="PBC_COMMISS_YN"]:checked').val() != "Y")$("#PBC_COMMISS_YN").val("N");
- if($(':checkbox[name="PBC_SPETOOL_YN"]:checked').val() != "Y")$("#PBC_SPETOOL_YN").val("N");
- if($(':checkbox[name="PBC_TEST_YN"]:checked').val() != "Y")$("#PBC_TEST_YN").val("N");
- if($(':checkbox[name="PBC_DOC_YN"]:checked').val() != "Y")$("#PBC_DOC_YN").val("N");
- if($(':checkbox[name="PBC_PACK_YN"]:checked').val() != "Y")$("#PBC_PACK_YN").val("N");
- if($(':checkbox[name="PBC_LANDTRAN_YN"]:checked').val() != "Y")$("#PBC_LANDTRAN_YN").val("N");
- if($(':checkbox[name="DELIVERY_CONDITION_YN"]:checked').val() != "Y")$("#DELIVERY_CONDITION_YN").val("N");
- if($(':checkbox[name="PBC_FEE_YN"]:checked').val() != "Y")$("#PBC_FEE_YN").val("N");
- if($(':checkbox[name="PBC_OPTION_YN"]:checked').val() != "Y")$("#PBC_OPTION_YN").val("N");
- if($(':checkbox[name="PBC_OPTION_YN"]:checked').val() != "Y")$("#PBC_OPTION_YN").val("N");
-
- return true;
- }
-
-
- // value 값 체크
- function must_ck_val(obj,desc){
- if($("#"+obj).val().length == 0){
- if(desc.length> 0){
- alert(desc+must_msg);
- }else{
- alert($("#"+obj).attr("desc")+must_msg);
- }
- $("#"+obj).focus();
- return true;
- }
- return false;
- }
-
- // radio 박스 체크
- function must_ck_radio(obj,name){
- var value = $(':radio[name='+obj+']:checked').val();
- if(value == undefined){
- alert(name+must_msg);
- $("#"+obj).focus();
- return true;
- }
- return false;
- }
-
- function time_ck(obj,type){
- if(must_ck_val(obj,""))return true;
- if(!isNumber($("#"+obj).val())){
- alert("숫자만 입력 가능합니다.");
- $("#"+obj).focus();
- return true;
- }else{
- var time = Number($("#"+obj).val());
- if(type == "HH"){
- if(time < -1 || time> 23){
- alert("0~23 까지 입력 가능합니다.");
- $("#"+obj).focus();
- return true;
- }
- }else if(type == "MI"){
- if(time < -1 || time> 59){
- alert("0~59 까지 입력 가능합니다.");
- $("#"+obj).focus();
- return true;
- }
- }
- }
- if($("#"+obj).val().length == 1){
- var timelength = $("#"+obj).val();
- $("#"+obj).val("0"+timelength);
- }
- return false;
- }
- //보고자 체크
- function report_emp_must_ck(){
- var rowcnt = sheet3.RowCount();
- var rst = 0;
- if(rowcnt < 1){
- alert("보고자는 필수입니다.");
- $("#sheet3_div").focus();
- return true;
- }
- if($("#CMPT_CD").val() == "03"){//수의계약
- if(rowcnt != 1){
- if (confirm("보고자가 1명이 아닙니다.\n진행하시겠습니까?")){
-
- }else{
- $("#sheet3_div").focus();
- return true;
- }
- }
-
- for(var r=0; r < rowcnt; r++){
- var acct_id = sheet3.GetCellValue(r+1,"ACCT_ID");
- if(acct_id == <%=Order.get("PUR_LEADER") %>){
- rst = rst+1;
- }
- }
-
- if(rst == 0){
- if (confirm("구매 팀장이 보고자에 없습니다.\n진행하시겠습니까?")){
-
- }else{
- $("#sheet3_div").focus();
- return true;
- }
- }
- }
-
- return false;
- }
-
- //첨부파일
- function doAttachFile(obj,No) {
- var file_div = "bid/purchase/<%=Order.get("BID_NO")%>/";
- if(obj==''){
- alert("After you have saved, you can attach a file.");
- }else{
- if(No == 1){
- viewFileListNew("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "Y", file_div);
- }else{
- viewFileListNew("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "Y", file_div);
- }
- }
- }
-
-
- //결재
- function dlgSignForm( sign_class_cd, uri ) {
- var f = document.form1;
- var sheet1 = document.all.sheet1;
- var url = "/bidPurchaseSign/ReBidSign_form.screen";
- url += "?sign_class_cd=" + sign_class_cd;
- url += "&uri=" + uri;
- url += "&sign_bid_no=" + $("#BID_NO").val();
- url += "&sign_bid_deg=" + $("#BID_DEG").val();
- url += "&acct_type=1";
- window.open(url, "_blank","width=200,height=100,SCROLLBARS=no");
- }
-
- function sheet1_OnSaveEnd(code, msg)
- {
- var event = $("#fevent").val();
- if(event == "RE_BID_SAVE"){
- if(code>= "0"){
- document.form1.isSubmit = false;
- // var f = document.form1;
- // var sign_bid_no = $("#BID_NO").val();
- // var sign_bid_deg = $("#BID_DEG").val();
- // dlgSignForm('ebid_prebqD', '/bid/purchase/ReBidSign.screen?sign_bid_no='+sign_bid_no+'^sign_bid_deg='+sign_bid_deg+'^acct_id='+"<%=user.get("ACCT_ID")%>");
- alert("처리되었습니다.");
- $("#btn_list2").click();
- }else{
- alert("에러가 발생하였습니다.\n"+msg);
- }
- }else if(event == "RE_BID_UPDATE"){
- if(code>= "0"){
- doSaveSheet3();
- }else{
- alert("에러가 발생하였습니다.\n"+msg);
- }
-
- }else if(event == "RE_BID_DELETE"){
- if(code>= "0"){
- alert("삭제되었습니다.");
- $("#btn_list2").click();
- }else{
- alert("에러가 발생하였습니다.\n"+msg);
- }
- }
- }
- function sheet3_OnSaveEnd(code, msg)
- {
- var event = $("#fevent").val();
- if(event == "SET_REPORT_EMP_DELETE"){
- if(code>= "0"){
- alert("삭제되었습니다.");
- doSearchSheet3();
- }else{
- alert("에러가 발생하였습니다.\n"+msg);
- document.form1.isSubmit = false;
- }
- }else if(event == "REPORT_EMP_UPDATE"){
- if(code>= "0"){
- if(to_act == "btn_deci"){
- var f = document.form1;
- var sign_bid_no = $("#BID_NO").val();
- var sign_bid_deg = $("#BID_DEG").val();
- dlgSignForm('ebid_prebqD', '/bid/purchase/ReBidSign.screen?sign_bid_no='+sign_bid_no+'^sign_bid_deg='+sign_bid_deg+'^acct_id='+"<%=user.get("ACCT_ID")%>");
- }else{
- document.form1.isSubmit = false;
- alert("저장되었습니다.");
- }
- }else{
- alert("에러가 발생하였습니다.\n"+msg);
- }
-
- }
- }
-
- //견적대상업체 추가
- function doInsert(sheetObj) {
- sheetObj.DataAutoTrim = false;
- var rowIndex = sheet1.DataInsert(-1);
- sheet1.SetColProperty(rowIndex,3,info);
- sheet1.SetColProperty(rowIndex,4,info);
- sheet1.SetColProperty(rowIndex,5,info);
- sheet1.SetColProperty(rowIndex,6,info);
- sheet1.SetRowEditable(rowIndex,1);
- var info= {Edit:true};
- }
-
- function doResult(resultObj) {
- try {
- if( resultObj.getRequestEvent() == "SIGN_CHECK") {
- if( resultObj.getSuccess() ) {
- document.form1.isSubmit = false;
- var vo = resultObj.getValueObject();
- var cnt = vo.get("cnt");
- if(cnt == 0){
- if(to_act == "btn_rebid"){
- var rowcnt = sheet1.RowCount();
- var ck_list = 0;
- for(var r=2; r < rowcnt+2; r++)
- {
- if(sheet1.GetCellValue(r,"CHECK") == 1||sheet1.GetCellValue(r,"CHECK") == true){
- ck_list++;
- }
- }
-
- var msg = "재견적의뢰 하시겠습니까?";
- if(must_ck()){
- if(ck_list == 0){
- //msg = "선택된 업체가 없습니다.\n재견적의뢰 하시겠습니까?";
- alert("재견적의뢰할 업체를 선택해주세요.");
- return;
- }
- if (confirm(msg)){
- var f = document.form1;
- $("#fevent").val("RE_BID_SAVE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- }else if(to_act == "btn_save"){
- if(must_ck()){
- if(confirm("저장하시겠습니까?")){
- var f = document.form1;
- $("#fevent").val("RE_BID_UPDATE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- }else if(to_act == "btn_deci"){
- var rowcnt = sheet1.RowCount();
- var msg = "결재 하시겠습니까?";
- if(must_ck()){
- if(rowcnt == 0){
- //msg = "선택된 업체가 없습니다.\n재견적의뢰 하시겠습니까?";
- alert("재견적의뢰할 업체를 추가해주세요.");
- return;
- }
- if (confirm(msg)){
- var f = document.form1;
- $("#fevent").val("RE_BID_UPDATE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- }else if(to_act == "btn_delete"){
- if(confirm("삭제 하시겠습니까?")){
- $("#fevent").val("RE_BID_DELETE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/Rebid_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- }else{
- alert("결재중입니다.");
- }
- document.form1.isSubmit = false;
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
-
- } catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
-
- function sheet1_OnSmartResize(Width, Height) {
- sheet1.FitColWidth();
- sheet2.FitColWidth();
- autoResize();
-
- }
- function autoResize(){
- /* var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
- var iframeHeight= document.body.scrollHeight - t1_height;
- var iframeWidth= document.body.scrollWidth;
- */
-
- sheet1.SetSheetHeight(160);
- sheet2.SetSheetHeight(250);
- }
-
- function PopClose(win_id,result){
- if( result != null ){
- if(result[0] == 0){
- setTimeout(function(){fLayerPopClose(win_id); },100);
- if(result[1].length> 0)alert(result[1]);
- $("#btn_list").click();
- }
- }else{
- setTimeout(function(){ fLayerPopClose(win_id);},100);
- }
-
- }
- </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="">
- <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
- <INPUT type='hidden' name="DEMANDED_KIND" value="<%=Order.get("DEMANDED_KIND")%>">
- <INPUT type='hidden' name="BID_NO" value="<%=Order.get("BID_NO")%>">
- <INPUT type='hidden' name="BID_DEG" value="<%=Order.get("BID_DEG")%>">
- <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
- <INPUT type='hidden' name="SITEDESCDATE" value="<%=Order.get("SITEDESCDATE")%>">
- <INPUT type='hidden' name="SITEDESCDT" value="<%=Order.get("SITEDESCDT")%>">
- <INPUT type='hidden' name="NOTI_DY" value="<%=Order.get("NOTI_DY")%>">
- <INPUT type='hidden' name="DOC_ETC_IN" value="<%=Order.get("DOC_ETC_IN")%>">
- <INPUT type='hidden' name="DOC_ETC_OUT" value="<%=Order.get("DOC_ETC_OUT")%>">
- <INPUT type='hidden' name="MATERIAL_GB" value="<%=Order.get("MATERIAL_GB")%>">
- <INPUT type='hidden' name="FOR_PO_YN" value="<%=Order.get("FOR_PO_YN")%>">
- <INPUT type='hidden' name="NEW_DEMANDED_ID" value="<%=Order.get("NEW_DEMANDED_ID")%>">
- <INPUT type='hidden' name="BID_MASTER_NM" value="<%=Order.get("BID_MASTER_NM")%>">
- <INPUT type='hidden' name="PO_OUTER_REMARKS" value="<%=Order.get("PO_OUTER_REMARKS")%>">
- <INPUT type='hidden' name="PO_INNER_REMARKS" value="<%=Order.get("PO_INNER_REMARKS")%>">
- <INPUT type='hidden' name="FILE_GB_IN" value="<%=Order.get("FILE_GB_IN")%>">
- <INPUT type='hidden' name="FILE_GB_OUT" value="<%=Order.get("FILE_GB_OUT")%>">
-
- <INPUT type='hidden' name="DEMANDED_NO" value="<%=Order.get("DEMANDED_NO")%>">
- <INPUT type='hidden' name="CMPT_CD" value="<%=Order.get("CMPT_CD")%>">
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="*" />
- <col width="400" />
- </colgroup>
- <tr>
- <th>
- <div align="left" id="title">
- <ul>
- <li>구매_재입찰<font style="font-size: 11px"> (<%=Order.get("STATUS_NM")%>)
- </font></li>
- </ul>
- </div>
- </th>
- <td align="right">
- <span class="btnSearch center" id="btn_cancel"><a href="javascript:void(0);">취소</a></span>
- <span class="btnSearch center" id="btn_rebid"><a href="javascript:void(0);">재견적의뢰</a></span>
- <span class="btnSearch center" id="btn_save"><a href="javascript:void(0);">저장</a></span>
- <span class="btnSearch center" id="btn_deci"><a href="javascript:void(0);">결재</a></span>
- <span class="btnSearch center" id="btn_delete"><a href="javascript:void(0);">삭제</a></span>
- <span class="btnSearch center" id="btn_list"><a href="javascript:void(0);">목록</a></span>
- <span class="btnSearch center" id="btn_list2"><a href="javascript:void(0);">목록</a></span>
- </td>
- </tr>
- </table>
- <!-- 2015.3.3 재입찰사유 mklee -->
- <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="150" />
- <col width="40%" />
- <col width="150" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <TH>재입찰사유<br>(내부보고)
- </TH>
- <TD><textarea name="REBID_REASON" id="REBID_REASON" style="width: 95%; height: 98px; overflow-y: auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("REBID_REASON")%></textarea>
- </TD>
- <TH>재입찰사유<br>(외부공지)
- </TH>
- <TD><textarea name="REBID_OUTREASON" id="REBID_OUTREASON" style="width: 95%; height: 98px; overflow-y: auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("REBID_OUTREASON")%></textarea>
- </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="150" />
- <col width="23%">
- <col width="150" />
- <col width="23%">
- <col width="150" />
- <col />
- </colgroup>
- <TR height="25">
- <TH>현장</TH>
- <TD><%=Order.get("dept_nm")%></TD>
- <TH>발주의뢰번호</TH>
- <TD><%=Order.get("DEMANDED_NO")%></TD>
- <TH>발주의뢰명</TH>
- <TD><%=Order.get("DEMANDED_TITLE")%></TD>
- </TR>
- <TR height="25">
- <TH>발주의뢰일</TH>
- <TD><%=Order.get("DEMANDED_DATE")%></TD>
- <TH>발주의뢰부서</TH>
- <TD><%=Order.get("REQ_DEPT_NM")%></TD>
- <TH>발주의뢰자</TH>
- <TD><%=Order.get("EMP_NM")%></TD>
- </TR>
- <TR height="25">
- <TH>발주접수일자</TH>
- <TD><%=Order.get("RECEIPT_DATE")%></TD>
- <TH>Pay Item</TH>
- <TD><%=Order.get("PAY_ITEM_NM")%></TD>
- <TH>구매예산 (원)</TH>
- <TD><%= InputText.get("PUR_AMT", Formatter2.currency(Order.get("PUR_AMT"),0), 13, 300, "desc=구매예산,Number,right","Number") %>
- <%-- <%=Formatter2.currency(Order.get("PUR_AMT"), 0)%> --%>
- </TD>
- </TR>
- <TR height="25">
- <TH>도급금액 (원)</TH>
- <TD><%= InputText.get("CONT_AMT", Formatter2.currency(Order.get("CONT_AMT"),0), 13, 300, "desc=도급금액,Number,right","Number") %>
- <%-- <%=Formatter2.currency(Order.get("CONT_AMT"), 0)%> --%>
- </TD>
- <TH>실행예산 (원)</TH>
- <TD><%= InputText.get("ACT_AMT", Formatter2.currency(Order.get("ACT_AMT"),0), 13, 300, "desc=실행예산,Number,right","Number") %>
- <%-- <%=Formatter2.currency(Order.get("ACT_AMT"), 0)%> --%>
- </TD>
- <TH>도급대비실행율(%)</TH>
- <TD><%= InputText.get("ACT_RATE", Order.get("ACT_RATE"), 40, 300, "class=input_blank,desc=실행금액,left,readOnly=white") %>
- <%-- <%=Order.get("ACT_RATE")%> --%>
- </TD>
- </TR>
- <!-- 발주의뢰정보 : 종료 -->
- </table>
- <div class="application-info magT20">
- <div class="application-sub-title">
- <span class="title">입찰기본정보</span>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="145" />
- <col width="145" />
- <col width="29%" />
- <col width="145" />
- <col />
- </colgroup>
- <TR height="25">
- <TH>입찰번호-차수</TH>
- <TD colspan="2"><%=Order.get("BID_NO")%>-<%=Order.get("BID_DEG")%></TD>
- <TH>온라인입찰여부</TH>
- <TD><%=Order.get("ONBID_YN")%></TD>
- </TR>
- <TR height="25">
- <TH>입찰명</TH>
- <TD colspan="2"><%=Order.get("BID_MASTER_NM")%></TD>
- <TH>단가계약여부</TH>
- <TD><%=Order.get("DIV_PO_YN").equals("Y") ? "예" : "아니오"%></TD>
- </TR>
- <TR height="25">
- <TH>경쟁방법</TH>
- <TD colspan="2"><%=Order.get("CMPT_NM")%></TD>
- <TH>낙찰자선정방법</TH>
- <TD><%=Order.get("SUCC_NM")%></TD>
- </TR>
- <!-- 발주의뢰정보 : 종료 -->
- </table>
- <div class="application-info magT20">
- <div class="application-sub-title">
- <span class="title">입찰진행</span>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="145" />
- <col width="145" />
- <col width="29%" />
- <col width="145" />
- <col />
- </colgroup>
- <TR height="25">
- <TH>업체공지일자</TH>
- <TD colspan="4"><%=Order.get("NOTI_DY")%></TD>
- </TR>
- <TR height="25">
- <TH rowspan="3">견적설명회 정보</TH>
- <TH>여부</TH>
- <TD><%=Order.get("SITEDESC_FLAG")%></TD>
- <TH>담당자
- </TD>
- <TD>
- <%=Order.get("SITEDESCCHRGPRSNNM")%><INPUT type='hidden' name="SITEDESCCHRGPRSNID" id="SITEDESCCHRGPRSNID" value="<%=Order.get("SITEDESCCHRGPRSNID")%>">
- </TD>
- </TR>
- <TR height="25">
- <TH>담당자 전화번호</TH>
- <TD><%=Order.get("SITEDESCTELNO")%></TD>
- <TH>일시</TH>
- <TD><%=Order.get("SITEDESCDATE")%></TD>
- </TR>
- <TR height="25">
- <TH>담당자 E-Mail</TH>
- <TD><%=Order.get("SITEDESCEMAIL")%></TD>
- <TH>장소</TH>
- <TD><%=Order.get("SITEDESCPLACE")%></TD>
- </TR>
- <TR height="25">
- <TH rowspan="4">견적 의뢰</TH>
- <TH class="required">견적제출기간</TH>
- <TD colspan="3">
- <%=InputText.get("BID_FROM_DT", Order.get("BID_FROM_DT"),10, 10, "desc=견적제출기간,readOnly")%>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:dlgCalendar('BID_FROM_DT');">
- <%=InputText.get("BID_FROM_HH", Order.get("BID_FROM_HH"), 2, 2, "desc=견적제출기간,Time")%>
- : <%=InputText.get("BID_FROM_MI", Order.get("BID_FROM_MI"), 2, 2, "desc=견적제출기간,Time")%>
- ~ <%=InputText.get("BID_TO_DT", Order.get("BID_TO_DT"), 10, 10, "desc=견적제출기간,readOnly")%>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:dlgCalendar('BID_TO_DT');">
- <%=InputText.get("BID_TO_HH", Order.get("BID_TO_HH"), 2, 2,"desc=견적제출기간,Time")%>
- : <%=InputText.get("BID_TO_MI", Order.get("BID_TO_MI"), 2, 2,"desc=견적제출기간,Time")%>
- </TD>
- </TR>
- <TR height="25">
- <TH class="required">구매담당자</TH>
- <TD><%=InputText.get("PUREMPNM", Order.get("PUREMPNM"), 21, 60, "desc=구매매담당자,readOnly")%>
- <INPUT type='hidden' name="PUREMPNO" id="PUREMPNO" value="<%=Order.get("PUREMPNO")%>">
- <IMG src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:SearchUser('PUREMPNM','PUREMPNO','Y');">
- </TD>
- <TH class="required">구매담당자 전화번호</TH>
- <TD><%=InputText.get("PO_EMPNM", Order.get("PO_EMPNM"), 15, 13, "desc=구매담당자 전화번호")%>
- </TD>
- </TR>
- <TR height="25">
- <TH class="required">개찰자</TH>
- <TD colspan="3"><%=InputText.get("OPEN_EMPNM", Order.get("OPEN_EMPNM"), 21, 60, "desc=개찰자,readOnly")%>
- <INPUT type='hidden' name="OPEN_EMPID" id="OPEN_EMPID" value="<%=Order.get("OPEN_EMPID")%>">
- <IMG src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:SearchUser('OPEN_EMPNM','OPEN_EMPID','N');">
- </TD>
- </TR>
- <TR height="25">
- <TH class="required"> 보고자</TH>
- <TD colspan="3">
- <div id="report_emp_btn" style="width:410px; margin-top:5px; text-align: right; height: 25px; vertical-align: top;">
- <span class="btnSearch center"><a href="javascript:void(0);" id="report_emp_add">추가</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="report_emp_del">삭제</a></span>
- </div>
- <div id="sheet3_div" style="width: 100%; height: 100%;">
- <script>createIBSheet('sheet3','100%', '100px');</script>
- </div>
- </TD>
- </TR>
-
- <TR height="25" style="display:none;">
- <TH rowspan="2">기술검토(TBE)
- </TD>
- <TH class="required">TBE 여부</TH>
- <TD><LABEL for="sort_gb_3"><INPUT id="sort_gb_3" type="radio" name="TBE_FLAG" value="Y" desc="TBE 여부" <%=Order.get("TBE_FLAG").equals("Y") ? "checked=\"checked\"" : ""%>>예</LABEL>
- <LABEL for="sort_gb_4"><INPUT id="sort_gb_4" type="radio" name="TBE_FLAG" value="N" desc="TBE 여부" <%=Order.get("TBE_FLAG").equals("N") ? "checked=\"checked\"" : ""%>>아니오</LABEL>
- </TD>
- <TH class="required">TBE 일자</TH>
- <TD><%=InputText.get("SUPP_REQ_DY", Order.get("SUPP_REQ_DY"),10, 10, "desc=TBE일자,readOnly")%>
- <IMG name="calender_supp_req" id="calender_supp_req" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:dlgCalendar('SUPP_REQ_DY');">
- </TD>
- </TR>
- <TR height="25" style="display:none;">
- <TH class="required">TBE 심사자</TH>
- <TD colspan="3"><%=InputText.get("EVAL_EMPNM", Order.get("EVAL_EMPNM"), 21, 60, "desc=TBE심사자,readOnly")%>
- <INPUT type='hidden' name="EVAL_EMPID" value="<%=Order.get("EVAL_EMPID")%>">
- <IMG id=btnevalemp src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:SearchUser('EVAL_EMPNM','EVAL_EMPID','N');">
- </TD>
- </TR>
- <!-- 발주의뢰정보 : 종료 -->
- </table>
- <div class="application-info magT20">
- <div class="application-sub-title">
- <span class="title">입찰조건</span>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="160" />
- <col width="20%">
- <col width="160" />
- <col width="20%">
- <col width="160" />
- <col />
- </colgroup>
- <TR height="25">
- <TH class="required">통화구분</TH>
- <TD>
- <LABEL for="CURRENCY_GB_YN"><INPUT type="checkbox" id="CURRENCY_GB_YN" name="CURRENCY_GB_YN" value="Y" <%=Order.get("CURRENCY_GB_YN").equals("Y") ? "checked=\"checked\"" : ""%>> 업체변경가능</LABEL>
- <%=CommCodeManager.getSelectCodeList("911", "CURRENCY_GB", "height=18;", "<option value=''>--선택--</option>", Order.get("CURRENCY_GB"))%>
- </TD>
- <TH class="required">CBE문서 TYPE</TH>
- <TD colspan="3">
- <LABEL for="pbc_cbe_type_1"><INPUT id="pbc_cbe_type_1" type="radio" name="PBC_CBE_TYPE_CD" value="A" desc="CBE문서 TYPE" <%=Order.get("PBC_CBE_TYPE_CD").equals("A") ? "checked=\"checked\"" : ""%>>A type</LABEL>
- <LABEL for="pbc_cbe_type_2"><INPUT id="pbc_cbe_type_2" type="radio" name="PBC_CBE_TYPE_CD" value="B" desc="CBE문서 TYPE" <%=Order.get("PBC_CBE_TYPE_CD").equals("B") ? "checked=\"checked\"" : ""%>>B type</LABEL>
- </TD>
- </TR>
- <TR height="25">
- <TH>Installation</TH>
- <!-- 설치비 포함여부 -->
- <TD>
- <LABEL for="PBC_INSTALL_YN"><INPUT type="checkbox" id="PBC_INSTALL_YN" name="PBC_INSTALL_YN" value="Y" <%=Order.get("PBC_INSTALL_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- <TH>Spare Parts for Commissionig</TH>
- <!-- 시운전 포함여부 -->
- <TD>
- <LABEL for="PBC_COMMISS_YN"><INPUT type="checkbox" id="PBC_COMMISS_YN" name="PBC_COMMISS_YN" value="Y" <%=Order.get("PBC_COMMISS_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- <TH>Special Tool</TH>
- <!-- 설치비 특별공구 포함여부 -->
- <TD>
- <LABEL for="PBC_SPETOOL_YN"><INPUT type="checkbox" id="PBC_SPETOOL_YN" name="PBC_SPETOOL_YN" value="Y" <%=Order.get("PBC_SPETOOL_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- </TR>
- <TR height="25">
- <TH>Test & Inspection at Fabrication shop</TH>
- <!-- 샾(공장) 검사비용 포함여부 -->
- <TD>
- <LABEL for="PBC_TEST_YN"><INPUT type="checkbox" id="PBC_TEST_YN" name="PBC_TEST_YN" value="Y" <%=Order.get("PBC_TEST_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- <TH>Documentation</TH>
- <!-- vendor print (무조건 포함) 삭제? -->
- <TD>
- <LABEL for="PBC_DOC_YN"><INPUT type="checkbox" id="PBC_DOC_YN" name="PBC_DOC_YN" value="Y" <%=Order.get("PBC_DOC_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- <TH>Packing cost</TH>
- <!-- 포장비용 포함여부 -->
- <TD>
- <LABEL for="PBC_PACK_YN"><INPUT type="checkbox" id="PBC_PACK_YN" name="PBC_PACK_YN" value="Y" <%=Order.get("PBC_PACK_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- </TR>
- <TR height="25">
- <TH>Inland Transportaion</TH>
- <!-- 내륙운송비 -->
- <TD><LABEL for="PBC_LANDTRAN_YN"><INPUT type="checkbox" id="PBC_LANDTRAN_YN" name="PBC_LANDTRAN_YN" value="Y" <%=Order.get("PBC_LANDTRAN_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- <TH>Delivery Condition</TH>
- <!-- 인도조건 (현장도착도, 현장상차도,현장설치도, 설치시운전도) -->
- <TD colspan="3">
- <LABEL for="DELIVERY_CONDITION_YN"><INPUT type="checkbox" id="DELIVERY_CONDITION_YN" name="DELIVERY_CONDITION_YN" value="Y" <%=Order.get("DELIVERY_CONDITION_YN").equals("Y")? "checked=\"checked\"": ""%>>업체변경가능</LABEL>
- <%=CommCodeManager.getSelectCodeList("PUR_LEAD_GB", "DELIVERY_CONDITION", "height=18;", "<option value=''>--선택--</option>", Order.get("DELIVERY_CONDITION"))%></TD>
- </TR>
- <TR height="25">
- <TH>OPTIONAL PRICE</TH>
- <!-- 현장감독관 일당 & 기타일당 내역 -->
- <TD colspan="5">
- A. Supervision fee  
- <LABEL for="PBC_FEE_YN"><INPUT type="checkbox" id="PBC_FEE_YN" name="PBC_FEE_YN" value="Y" <%=Order.get("PBC_FEE_YN").equals("Y") ? "checked=\"checked\"": ""%>>업체 견적내용 반영</LABEL>
-   
- B. <%=InputText.get("PBC_OPTION_COMMENT", Order.get("PBC_OPTION_COMMENT"), 15, 50, "")%>  
- <LABEL for="PBC_OPTION_YN"><INPUT type="checkbox" id="PBC_OPTION_YN" name="PBC_OPTION_YN" value="Y"<%=Order.get("PBC_OPTION_YN").equals("Y") ? "checked=\"checked\"" : ""%>>업체 견적내용 반영</LABEL>
- </TD>
- </TR>
- <TR height="25">
- <TH>Liquidated Damages</TH>
- <!-- 지체상금 fix -->
- <TD colspan="5">
- <%=InputText.get("CBC_DAMAGE_RATE", Order.get("CBC_DAMAGE_RATE"), 5, 6, "Right,Float", "Float")%>% <%=CommCodeManager.getSelectCodeList("LIQ_DMG_CD","CBC_DAMAGE_CD","height=18;","",Order.get("CBC_DAMAGE_CD")) %>, Max
- <%=InputText.get("CBC_DAMAGE_MAXRATE", Order.get("CBC_DAMAGE_MAXRATE"), 5, 6, "Right,Float", "Float")%>%
- </TD>
- </TR>
- <TR height="25">
- <TH>선급금</TH>
- <TD>
- <%=InputText.get("CBC_FIRST_RATE", Order.get("CBC_FIRST_RATE"), 5, 3, "Right,Number", "Number")%>%
- <%=InputText.get("PBC_FIRST_CONDI", Order.get("PBC_FIRST_CONDI"), 20, 50, "")%>
- </TD>
- <TH>중도금</TH>
- <TD>
- <%=InputText.get("CPC_MID_RATE", Order.get("CPC_MID_RATE"), 5, 3, "Right,Number", "Number")%>%
- <%=InputText.get("PBC_MID_CONDI", Order.get("PBC_MID_CONDI"), 20, 50, "")%>
- </TD>
- <TH>잔금</TH>
- <TD>
- <%=InputText.get("PBC_REST_RATE", Order.get("PBC_REST_RATE"), 5, 3, "Right,Number", "Number")%>%
- <%=InputText.get("PBC_REST_CONDI", Order.get("PBC_REST_CONDI"), 20, 50, "")%>
- </TD>
- </TR>
- <TR height="25">
- <TH>First Payment Bond</TH>
- <!-- 선급금이행증권(yes, no) -->
- <TD>
- <%=InputText.get("PBC_FRSTGUAR_RATE", Order.get("PBC_FRSTGUAR_RATE"), 5, 3, "Right,Number", "Number")%>%
- <%=InputText.get("PBC_FRSTGUAR_CONDI", Order.get("PBC_FRSTGUAR_CONDI"), 20, 50, "")%></TD>
- <TH>Performance Bond</TH>
- <!-- 계약이행증권(yes, no) -->
- <TD>
- <%=InputText.get("CONTFUL_RATE", Order.get("CONTFUL_RATE"), 5, 3, "Right,Number", "Number")%>%
- <%=InputText.get("CONTFUL_CONDI", Order.get("CONTFUL_CONDI"), 20, 50, "")%>
- </TD>
- <TH>Guarantee Bond</TH>
- <!-- 하자이행증권(yes, no) -->
- <TD>
- <%=InputText.get("WARR_RATE", Order.get("WARR_RATE"), 5, 3, "Right,Number", "Number")%>%
- <%=InputText.get("WARR_CONDI", Order.get("WARR_CONDI"), 20, 50, "")%>
- </TD>
- </TR>
- <TR height="25">
- <TH>Guarantee Period</TH>
- <!-- 하자보수기간 -->
- <TD colspan="3">
- <%=InputText.get("PBC_DEFECT_CONDI", Order.get("PBC_DEFECT_CONDI"), 25, 50, "")%>
- <%=InputText.get("CBC_DEFECT_DAY", Order.get("CBC_DEFECT_DAY"), 2, 2, "Number", "Number")%>
- <%=CommCodeManager.getSelectCodeList("CBC_DERECT_TERM_CD", "CBC_DERECT_TERM_CD", "height=18;", "<option value=''>--선택--</option>", Order.get("CBC_DERECT_TERM_CD"))%>간
- <input type="checkbox" id="addGuar" style="margin-top:2px">
- <span class="checkAdd" style="display:none;"> or
- <%=InputText.get("PBC_DEFECT_CONDI2", Order.get("PBC_DEFECT_CONDI2"), 25, 50, "")%>
- <%=InputText.get("CBC_DEFECT_DAY2", Order.get("CBC_DEFECT_DAY2"), 2, 2, "Number", "Number")%>
- <%=CommCodeManager.getSelectCodeList("CBC_DERECT_TERM_CD", "CBC_DERECT_TERM_CD2", "height=18;", "<option value=''>--선택--</option>", Order.get("CBC_DERECT_TERM_CD2"))%>간 중 선도래일
- </span>
- </TD>
- <TH>Delivery Period</TH>
- <!-- 납기일 fix -->
- <TD>
- <%=InputText.get("DELI_FROM_DY", Order.get("DELI_FROM_DY"), 10, 10, "desc=Delivery Period From,center,readOnly")%>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:dlgCalendar('DELI_FROM_DY');"> ~
- <%=InputText.get("DELI_TO_DY", Order.get("DELI_TO_DY"), 10, 10, "desc=Delivery Period To,center,readOnly")%>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor: pointer;" onClick="JavaScript:dlgCalendar('DELI_TO_DY');">
- </TD>
- </TR>
- </TABLE>
- <TABLE class="form-table" style="margin-top: 10px">
- <col width="160px" />
- <col width="160px" />
- <col width="29%" />
- <col width="160px" />
- <col />
- <TR height="100">
- <TH>주요발주내용</TH>
- <TD colspan="2">
- <textarea name="MAIN_PR_CONTENTS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("MAIN_PR_CONTENTS")%></textarea>
- </TD>
- <TH>입찰업체선정사유</TH>
- <TD>
- <textarea name="BID_SUPP_SELECT_REASON" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("BID_SUPP_SELECT_REASON")%></textarea>
- </TD>
- </TR>
- <TR height="100">
- <TH>특이사항 내부</TH>
- <TD colspan="2">
- <textarea name="INNER_REMARKS" style="width: 98%; height: 80px; overflow-y: auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("INNER_REMARKS")%></textarea>
- </TD>
- <TH>특이사항 외부</TH>
- <TD>
- <textarea name="OUTER_REMARKS" style="width: 98%; height: 80px; overflow-y: auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("OUTER_REMARKS")%></textarea>
- </TD>
- </TR>
- <TR height="100">
- <TH>내부자료</TH>
- <TD colspan="2">
- <TEXTAREA name="p_AttachFile1" id="p_AttachFile1" style="width: 85%; height: 80px" rows="1" class="input" readOnly><%=filein.get(Order.get("DOC_ETC_IN"))%></TEXTAREA>
- <IMG id='search_spot_button' onClick="doAttachFile(document.form1.DEMANDED_ID,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor: pointer;'>
- </TD>
- <TH>외부자료</TH>
- <TD>
- <TEXTAREA name="p_AttachFile2" id="p_AttachFile2" style="width: 85%; height: 80px" rows="1" class="input" readOnly><%=fileout.get(Order.get("DOC_ETC_OUT"))%></TEXTAREA>
- <IMG id='search_spot_button' onClick="doAttachFile(document.form1.DEMANDED_ID,2);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor: pointer;'>
- </TD>
- </TR>
- </TABLE>
- <table id=item_list width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div class="application-info magT20">
- <div class="application-sub-title">
- <span class="title">견적의뢰내역</span>
- </div>
- </div>
- </th>
- <td align="right"></td>
- </tr>
- </table>
- <div id="sheet2_div"
- style="height: auto; min-height: 200px; overflow: auto;">
- <script>createIBSheet('sheet2','100%', '200px');</script>
- </div>
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div class="application-info magT15">
- <div class="application-sub-title">
- <span class="title">견적대상업체</span>
- </div>
- </div>
- </th>
- <td align="right"><span class="btnSearch center" id="corp_add"><a
- href="javascript:void(0);">추가</a></span></td>
- </tr>
- </table>
- <div id="sheet1_div"
- style="padding-top: 5px; height: auto; min-height: 200px; overflow: auto;">
- <script>createIBSheet('sheet1','100%', '200px');</script>
- </div>
- </form>
|