1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663 |
- <%--
- - Author(s) : Hyung min Son
- - Date : 2014.06.23
- - Description: 외주_입찰계획 상세
- --%>
-
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@page import="kr.co.hsnc.common.config.WAFConfig"%>
- <%@ 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="com.udapsoft.waf.common.util.Formatter2"%>
- <%@ page import="com.udapsoft.waf.common.util.StringUtils"%>
- <%@ page import="kr.co.udapsoft.common.util.Crosscert"%>
- <%@ 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"));
- ValueObject sign_info = storage.getValueObject("SIGN_INFO");
-
- String gwurl = "http://gw.sgcenc.co.kr/";//WAFConfig.get("gw.url.address2");
-
- %>
- <SCRIPT language="JavaScript">
- document.body.onresize = addEvent( document.body.onresize, "autoResize()");
- /*예약함수*/
- var sheet1 = new ibsheetObject();
- var sheet2 = new ibsheetObject();
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
- var btn_act = "";
- var must_msg = "(은)는 필수 입력 항목입니다.";
- function _onReady(){
- /**
- * IBSheet object initialize
- */
- gridInit(sheet1);
- gridInit(sheet2);
-
- //결재 이후에 버튼 숨김..
- if("<%=Order.get("STATUS_CD")%>" == "02"){
- $("#btn_Save").hide();
- $("#btn_del").hide();
- $("#btn_Sign").hide();
- $("#report_emp_btn").hide();
- sheet2.SetColHidden("DEL_CHECK", true);
- }
- /**
- * Application Initialize
- */
- $("#btn_list").click(function() {
- jQuery("#fevent").val("");
- jQuery("#form1").attr("action", "/bid/outside/BidPlanList.screen");
- jQuery("#form1").attr("target", "_self");
- jQuery("#form1").attr("method", "post");
- jQuery("#form1").submit();
- });
- $("#btn_item").click(function() {
- var win_id = "ItemPop";
-
- var link = "/bid/outside/BidItemPopup.screen";
- link += "?pop_win_id="+win_id+"&BID_NO="+$("#BID_NO").val() + "&BID_DEG="+$("#BID_DEG").val() ;
- fLayerPop(win_id, link, 950,500, '','', 'NO');
- });
- $("#btn_Save").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
- btn_act = "to_Save";
- });
-
- $("#btn_del").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
- btn_act = "to_Del";
- });
-
- $("#btn_Sign").click(function() {
- var f = document.form1;
- submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
- btn_act = "to_sign";
- });
-
-
- $("#sitedesc_flag_1").click(function() {
- $("#SITEDESCCHRGPRSNNM").attr("disabled",false);
- $("#SITEDESCCHRGPRSNID").attr("disabled",false);
- $("#SITEDESCTELNO").attr("disabled",false);
- $("#SITEDESCDATE").attr("disabled",false);
- $("#SITEDESCDATE_HH").attr("disabled",false);
- $("#SITEDESCDATE_MI").attr("disabled",false);
- $("#SITEDESCEMAIL").attr("disabled",false);
- $("#SITEDESCPLACE").attr("disabled",false);
- $("#btn_sitedescchrgprsnid").show();
- $("#calendar_sitedescdate").show();
- });
-
- $("#sitedesc_flag_2").click(function() {
- $("#SITEDESCCHRGPRSNNM").attr("disabled",true);
- $("#SITEDESCCHRGPRSNNM").val("");
- $("#SITEDESCCHRGPRSNID").attr("disabled",true);
- $("#SITEDESCCHRGPRSNID").val("");
- $("#SITEDESCTELNO").attr("disabled",true);
- $("#SITEDESCTELNO").val("");
- $("#SITEDESCDATE").attr("disabled",true);
- $("#SITEDESCDATE").val("");
- $("#SITEDESCDATE_HH").attr("disabled",true);
- $("#SITEDESCDATE_HH").val("");
- $("#SITEDESCDATE_MI").attr("disabled",true);
- $("#SITEDESCDATE_MI").val("");
- $("#SITEDESCEMAIL").attr("disabled",true);
- $("#SITEDESCEMAIL").val("");
- $("#SITEDESCPLACE").attr("disabled",true);
- $("#SITEDESCPLACE").val("");
- $("#btn_sitedescchrgprsnid").hide();
- $("#calendar_sitedescdate").hide();
- });
-
- //보고자 조회
- doSearchSheet2();
-
- //라디오 박스 체크 여부 // N 일경우 비활성화
- if($("#sitedesc_flag_2").attr("checked") == "checked")
- $("#sitedesc_flag_2").click();
- if($("#sort_gb_4").attr("checked") == "checked")
- tbe_radio("N");
-
- //업체공지일자 변경
- $("#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;
- }
- }
- });
-
- $("#btn_row_del").click(function() {
- if(confirm("삭제 하시겠습니까?")){
- $("#fevent").val("SET_CORP_DELETE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#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=O&OUT_ITEM_CD="+outitem;
- fLayerPop(win_id, link, 800,400, '','', 'NO');
- });
-
- $.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_cd = sheet1.GetCellValue(r+1,"VENDOR_CD");
- if(vendor_cd == resultVal[0][i]){
- alert(resultVal[2][i]+"는 이미 등록된 업체 입니다.");
- return;
- }
- /*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,"RECM_DEPT_NM","외주팀");
- sheet1.SetCellValue(row,"VENDOR_NO",resultVal[1][i]);
- sheet1.SetCellValue(row,"VENDOR_NAME",resultVal[2][i]);
- sheet1.SetCellValue(row,"REPRE_NO",resultVal[3][i]);
- sheet1.SetCellValue(row,"CHARGE_NAME",resultVal[4][i]);
- sheet1.SetCellValue(row,"TEL_NUM",resultVal[5][i]);
- sheet1.SetCellValue(row,"CHAGE_HP",resultVal[6][i]);
- sheet1.SetCellValue(row,"CHARGE_EMAIL",resultVal[7][i]);
- sheet1.SetCellValue(row,"VENDOR_CD",resultVal[0][i]);
- sheet1.SetCellValue(row,"RECM_DEPT_ID","1725");
- sheet1.SetCellValue(row,"IMG_GB","1");
- }
- setGridSize();
- setTimeout(function(){fLayerPopClose('corp');},100);
- };
-
-
- $("#CMPT_CD").change(function() {
- if($("#CMPT_CD").val() == "01"){//공개경쟁
- /* var rowcnt = sheet1.RowCount();
- if(rowcnt> 0){
- sheet1.RemoveAll();
- } */
- $("#corp_list_title").hide();
- $("#btn_row_del").hide();
- $("#corp_add").hide();
- $("#sheet1_div").hide();
- $("#copr_list").hide();
- }else{
- $("#corp_list_title").show();
- $("#btn_row_del").show();
- $("#corp_add").show();
- $("#sheet1_div").show();
- $("#copr_list").show();
- autoResize();
- }
- });
- $("#CMPT_CD").change();
-
- $("#CONT_AMT").keyup(function(){act_rate();});
- $("#ACT_AMT").keyup(function(){act_rate();});
-
- $("#SUCC_CD").change(function() {
-
- if($("#SUCC_CD").val() == "02"){
- $("#sort_gb_4").removeAttr('disabled');
- $("#sort_gb_4").click();
- $("[name='TBE_FLAG']:not(:checked)").attr('disabled','disabled');
- tbe_radio("N");
- }else if($("#SUCC_CD").val() == "01"){
- $("#sort_gb_3").removeAttr('disabled');
- $("#sort_gb_3").click();
- $("[name='TBE_FLAG']:not(:checked)").attr('disabled','disabled');
- tbe_radio("Y");
- }else{
- $("#sort_gb_3").removeAttr('disabled');
- $("#sort_gb_4").removeAttr('disabled');
- }
- });
-
- $("#sort_gb_3").click(function(){
- if($("#LAST_EVAL_EMPNM").val()!=""){
- $("#EVAL_EMPNM").val($("#LAST_EVAL_EMPNM").val());
- $("#EVAL_EMPID").val($("#LAST_EVAL_EMPID").val());
- }else if($("#EVAL_EMPNM").val()==""){
- $("#EVAL_EMPNM").val("<%=Order.get("EMP_NM")%>");
- $("#EVAL_EMPID").val("<%=Order.get("EMP_NO")%>");
- }
- $("#SUCC_CD").val("01");
- tbe_radio("Y");
- });
- $("#sort_gb_4").click(function(){
- if($("#EVAL_EMPNM").val()!=""){
- $("#LAST_EVAL_EMPNM").val($("#EVAL_EMPNM").val());
- $("#LAST_EVAL_EMPID").val($("#EVAL_EMPID").val());
- }
- $("#SUCC_CD").val("02");
- tbe_radio("N");
- });
- $("#SITEDESCEMAIL").change(function() {
- if(!checkEmail($("#SITEDESCEMAIL").val())){
- alert("이메일 형식이 올바르지 않습니다.");
- $("#SITEDESCEMAIL").focus();
- }
- });
- $("#OBC_FRST_CONT_RATE").focusout(function(){
- if($("#OBC_FRST_CONT_RATE").val() > 0){
- $("#OBC_FRST_CONDI").val("보증서 제출일로부터 60일 내 지급");
- $("#OBC_FRST_CNT_CONDI").val("1회 (계약 금액 변경시 추가 청구 가능)");
- }else{
- $("#OBC_FRST_CONDI").val("");
- $("#OBC_FRST_CNT_CONDI").val("");
- }
- });
-
- $("#OBC_MID_CASH_RATE").focusout(function() {
- cash_bill_sum("OBC_MID_CASH_RATE","OBC_MID_BILL_RATE");
- });
- $("#OBC_MID_BILL_RATE").focusout(function() {
- cash_bill_sum("OBC_MID_BILL_RATE","OBC_MID_CASH_RATE");
- });
- $("#OBC_FIN_CASH_RATE").focusout(function() {
- cash_bill_sum("OBC_FIN_CASH_RATE","OBC_FIN_BILL_RATE");
- if($("#OBC_FIN_CASH_RATE").val() != "" || $("#OBC_FIN_BILL_RATE").val() != ""){
- //$("#OBC_FIN_CONDI").val("1회 준공 해당월 말일에 청구");
- }else{
- //$("#OBC_FIN_CONDI").val("");
- }
- });
- $("#OBC_FIN_BILL_RATE").focusout(function() {
- cash_bill_sum("OBC_FIN_BILL_RATE","OBC_FIN_CASH_RATE");
- if($("#OBC_FIN_CASH_RATE").val() != "" || $("#OBC_FIN_BILL_RATE").val() != ""){
- //$("#OBC_FIN_CONDI").val("1회 준공 해당월 말일에 청구");
- }else{
- //$("#OBC_FIN_CONDI").val("");
- }
- });
-
- $("#OBC_EMP_YN").click(function() {if($(':checkbox[name="OBC_EMP_YN"]:checked').val() != "Y")$("#OBC_EMP_YN").val("N"); });
- $("#OBC_PENSION_YN").click(function() {if($(':checkbox[name="OBC_PENSION_YN"]:checked').val() != "Y")$("#OBC_PENSION_YN").val("N"); });
- $("#OBC_HEALTH_YN").click(function() {if($(':checkbox[name="OBC_HEALTH_YN"]:checked').val() != "Y")$("#OBC_HEALTH_YN").val("N"); });
- $("#OBC_ELDER_YN").click(function() {if($(':checkbox[name="OBC_ELDER_YN"]:checked').val() != "Y")$("#OBC_ELDER_YN").val("N"); });
- $("#OBC_WORK_YN").click(function() {if($(':checkbox[name="OBC_WORK_YN"]:checked').val() != "Y")$("#OBC_WORK_YN").val("N"); });
- $("#OBC_RESIGN_YN").click(function() {if($(':checkbox[name="OBC_RESIGN_YN"]:checked').val() != "Y")$("#OBC_RESIGN_YN").val("N"); });
- $("#OBC_SAFE_YN").click(function() {if($(':checkbox[name="OBC_SAFE_YN"]:checked').val() != "Y")$("#OBC_SAFE_YN").val("N"); });
- $("#OBC_ENV_YN").click(function() {if($(':checkbox[name="OBC_ENV_YN"]:checked').val() != "Y")$("#OBC_ENV_YN").val("N"); });
- $("#OBC_SITE_YN").click(function() {if($(':checkbox[name="OBC_SITE_YN"]:checked').val() != "Y")$("#OBC_SITE_YN").val("N"); });
- $("#OBC_DUTY_YN").click(function() {if($(':checkbox[name="OBC_DUTY_YN"]:checked').val() != "Y")$("#OBC_DUTY_YN").val("N"); });
- $("#OBC_WARR_YN").click(function() {if($(':checkbox[name="OBC_WARR_YN"]:checked').val() != "Y")$("#OBC_WARR_YN").val("N"); });
-
- var Tbeflag = "<%=Order.get("TBE_FLAG")%>";
- if(Tbeflag == "Y"){
- $("#sort_gb_3").click();
- }else{
- $("#sort_gb_4").click();
- }
-
- $("#CPC_MID_RATE").focusout(function() {
- cash_bill_sum("CPC_MID_RATE","PBC_REST_RATE");
- });
-
- $("#PBC_REST_RATE").focusout(function() {
- cash_bill_sum("PBC_REST_RATE","CPC_MID_RATE");
- });
-
- $(document).on("blur", "#OBC_FRST_CONT_RATE", function() {
- var pattern=/^[0-9]{0,3}\.[0-9]{0,2}$/;
- var str=$("#OBC_FRST_CONT_RATE");
- if(pattern.test(str.val())){
- if(str.val()>100){
- str.val("");
- }
- }else{
- if(str.val()>100||str.val().indexOf(".")==0){
- str.val("");
- }else if(str.val()==100){
- return;
- }else{
- str.val(str.val().substring(0,str.val().indexOf(".")+3));
- }
- }
- });
-
- $(document).on("blur", "#CBC_FIRST_RATE", function() {
- var pattern=/^[0-9]{1,3}\.[0-9]{0,2}$/;
- var str=$("#CBC_FIRST_RATE");
- if(pattern.test(str.val())){
- if(str.val()>100){
- str.val("");
- }
- }else{
- if(str.val()>100||str.val().indexOf(".")==0){
- str.val("");
- }else if(str.val()==100){
- return;
- }else{
- str.val(str.val().substring(0,str.val().indexOf(".")+3));
- }
- }
- });
-
- $("#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/outside/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet2, url, $("#form1"), false);
- }
- });
- }
-
- function cash_bill_sum(col1,col2){
- var amt1 = Number($("#"+col1).val());
- if(amt1 > 100){
- alert("100%를 넘을 수 없습니다.");
- $("#"+col1).val("");
- $("#"+col1).focus();
- return;
- }
- var sum = 100-amt1;
- $("#"+col2).val(sum);
- if(amt1 == ""){
- $("#"+col1).val(0);
- }
- }
-
- function tbe_radio(val){
- if(val == "Y"){
- $("#EVAL_TEL").attr("disabled",false);
- $("#EVAL_EMPNM").attr("disabled",false);
- $("#btnevalemp").show();
- $("#calender_supp_req").show();
- }else if(val == "N"){
- $("#EVAL_TEL").attr("disabled",true);
- $("#EVAL_TEL").val("");
- $("#EVAL_EMPNM").attr("disabled",true);
- $("#EVAL_EMPNM").val("");
- $("#EVAL_EMPID").attr("disabled",true);
- $("#EVAL_EMPID").val("");
- $("#btnevalemp").hide();
- $("#calender_supp_req").hide();
- }
- }
-
- function act_amt_ck(){
- var val = $("#ACT_AMT").val();
- val = stripComma(val);
- if(Number(val) > 0){
- return false;
- }else{
- alert("실행금액은 0보다 커야 합니다.");
- return true;
- }
- }
-
-
- function SearchUser(NAME,CODE,DEPT_YN){
- var GB = "";
- if(CODE == "PUREMPNO"){
- CODE = "";
- NAME = "";
- GB = "PUREMP";
- }else if(CODE == "SITEDESCCHRGPRSNID"){
- CODE = "";
- NAME = "";
- GB = "SITEDESCCHRGPRSN";
- }else if(CODE == "EVAL_EMPID"){
- CODE = "";
- NAME = "";
- GB = "EVAL_EMP";
- }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=outside";
- fLayerPop(win_id, link, 700,400, '', '', '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] == "EVAL_EMP"){
- $("#EVAL_EMPID").val(result[9])//ACCT_ID
- $("#EVAL_EMPNM").val(result[1])//이름
- $("#EVAL_TEL").val(result[6])//연락처
- }else if(result[10] == "REPORT_EMP"){
- var rowcnt = sheet2.RowCount();
- if(rowcnt> 0){
- for(var r=0; r < rowcnt; r++)
- {
- var acct_id = sheet2.GetCellValue(r+1,"ACCT_ID");
- if(acct_id == result[9]){
- alert(result[1]+" " +result[5]+ "님은 이미 등록된 보고자 입니다.");
- return;
- }
- }
- }
- //sheetObj.DataAutoTrim = false;
- var row = sheet2.DataInsert(-1);
- sheet2.SetCellValue(row,"ACCT_ID",result[9]);
- sheet2.SetCellValue(row,"USER_NAME",result[1]);
- sheet2.SetCellValue(row,"BUSEO_NAME",result[3]);
- sheet2.SetCellValue(row,"GRADE_NAME",result[5]);
- }
- setTimeout(function(){fLayerPopClose('_searchUserPopup');},100);
- }
-
-
-
- function sheet1_OnChange(Row, Col, Value) {
- if(Col == 10){//전화번호 형식 체크
- if(Value != ""){
- if(!checkTelno(Value)){
- alert("전화번호 형식이 올바르지 않습니다.");
- sheet1.SetCellValue(Row,Col,"");
- }
- }
- }
- if(Col == 11){//이메일 형식 체크
- if(Value != ""){
- if(!checkEmail(Value)){
- alert("이메일 형식이 올바르지 않습니다.");
- sheet1.SetCellValue(Row,Col,"");
- }
- }
- }
- }
-
- function searchAccDept(p_dept_cd, p_dept_nm){
- var win_id = "_searchDept";
- var link = "/lib/dlgSearchAccDept.screen";
- link += "?pop_win_id="+win_id;
- //link += "&{{query}}";
- fLayerPop(win_id, link, 600,400, '', '', 'NO');
- }
- function searchAccDeptClose(result){
-
- if( result == null ){
- p_dept_cd.value = ""; //부서코드
- p_dept_nm.value = ""; //부서명
- }else{
- p_dept_cd.value = result[0]; //부서코드
- p_dept_nm.value = result[1]; //부서명
- }
- setTimeout(function(){fLayerPopClose('_searchDept');},100);
- }
- function searchAccDept(p_dept_cd, p_dept_nm){
- var win_id = "_searchDept";
- var link = "/lib/dlgSearchAccDept.screen";
- link += "?pop_win_id="+win_id;
- //link += "&{{query}}";
- fLayerPop(win_id, link, 600,400, '', '', 'NO');
- }
-
- function searchAccDeptClose(result){
- if( result == null ){
- }else{
- sheet1.SetCellValue($("#TEMP_ROW").val(),"RECM_DEPT_ID",result[0]); //부서코드
- sheet1.SetCellValue($("#TEMP_ROW").val(),"RECM_DEPT_NM", result[1]); //부서명
- }
-
- setTimeout(function(){ fLayerPopClose('_searchDept');},100);
- }
-
- function doSearchSheet(){
- $("#fevent").val("GET_CORP_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidPlan_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
- }
- function doSearchSheet2(){
- $("#fevent").val("GET_REPORT_EMP_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidPlan_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet2, url, jQuery("#form1"), 30, "");
- }
- function doSaveSheet2(){
- $("#fevent").val("REPORT_EMP_UPDATE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet2, url, $("#form1"), false);
- }
-
- /**
- * 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:"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:'추천부서', Type:"Text", SaveName:"RECM_DEPT_NM", Width:100, Align:"Center", Edit:false},
- {Header:'추천부서', Type:"Image", SaveName:"IMG_GB", Width:18, Align:"Center" , Edit:"false", Cursor:'pointer'},
- {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:100, Align:"Center", Edit:false},
- {Header:'담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:100, Align:"Center"},
- {Header:'전화번호', Type:"Text", SaveName:"TEL_NUM", Width:100, Align:"Center", Edit:false},
- {Header:'핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:100, Align:"Center"},
- {Header:'이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:100, Align:"Left"},
- {Header:'추천사유', Type:"Text", SaveName:"RECOMMEND_REASON", Width:150, Align:"Left"},
- {Header:'VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:0, Align:"Center", Hidden:"True"},
- {Header:'추천부서', Type:"Text", SaveName:"RECM_DEPT_ID", Width:0, Align:"Center", Hidden:"True"}
-
- ];
- }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);
- sheetName.SetImageList(1,"/img/buyer/button/bt_search_right.gif");
- //sheetName.SizeMode(0);
- setGridSize();
- }
-
- /**
- * IBSheet Event: Click
- */
- function sheet1_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
- }
-
- /**
- * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
- */
- function sheet1_OnSearchEnd(code, message) {
- if(code == 0) {
- setGridSize();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
-
- /**
- * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
- */
- function sheet2_OnSearchEnd(code, message) {
- if(code == 0) {
- //sheet2.FitColWidth();
- //견적대상 업체 조회
- doSearchSheet();
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
-
- /**
- * IBSheet size setting
- */
- function setGridSize() {
- sheet1.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() == "02"){//지명경쟁
- if(rowcnt < 2){
- alert("견적 대상 업체가 2개 이상 있어야 합니다.");
- $("#sheet1_div").focus();
- return true;
- }
- }
- return false;
- }
-
- function must_ck(){
- if(must_ck_val("CURRENCY_GB","통화구분"))return false;
- if(must_ck_val("CONT_AMT","도급금액"))return false;
- if(must_ck_val("ACT_AMT","실행예산"))return false;
- if(act_amt_ck())return false;
-
- if(must_ck_val("BID_MASTER_NM","입찰명"))return false;
- if(must_ck_val("CMPT_CD","경쟁방법"))return false;
- //if(cmpt_must_ck())return false; 2015-03-27 경쟁방법 validation 막음
- if(must_ck_val("SUCC_CD","낙찰자선정방법"))return false;
- if(must_ck_val("NOTI_DY","업체공지일자"))return false;
- if(must_ck_val("CONT_APP_REQ_DATE","시행결의요청일"))return false;
- if(must_ck_radio("SITEDESC_FLAG","견적설명여부"))return false;
- if($(':radio[name="SITEDESC_FLAG"]:checked').val() == "Y"){
- if(must_ck_val("SITEDESCCHRGPRSNNM",""))return false;
- if(must_ck_val("SITEDESCTELNO",""))return false;
- if(must_ck_val("SITEDESCDATE",""))return false;
- if(time_ck("SITEDESCDATE_HH","HH"))return false;
- if(time_ck("SITEDESCDATE_MI","MI"))return false;
- if(must_ck_val("SITEDESCPLACE",""))return false;
- }
-
- 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(must_ck_val("PUREMPNM",""))return false;
- if(must_ck_val("PO_EMPNM",""))return false;
- if(must_ck_val("OPEN_EMPNM",""))return false;
- 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("EVAL_TEL",""))return false;
- if(must_ck_val("EVAL_EMPNM",""))return false;
- }
- /* if($("#OBC_FIN_CONDI").val().length > 0){
- if(must_ck_val("OBC_FIN_PAYDAY",""))return false;
- } */
- if($("#CURRENCY_GB").val()==""){
- alert("통화구분은 필수입니다.");
- $("#CURRENCY_GB").focus();
- return false;
- }
-
- if(cash_bill_sum_check("OBC_MID_CASH_RATE","OBC_MID_BILL_RATE"))return false;
- if(cash_bill_sum_check("OBC_FIN_CASH_RATE","OBC_FIN_BILL_RATE"))return false;
-
- if($(':checkbox[name="OBC_EMP_YN"]:checked').val() != "Y")$("#OBC_EMP_YN").val("N");
- if($(':checkbox[name="OBC_PENSION_YN"]:checked').val() != "Y")$("#OBC_PENSION_YN").val("N");
- if($(':checkbox[name="OBC_HEALTH_YN"]:checked').val() != "Y")$("#OBC_HEALTH_YN").val("N");
- if($(':checkbox[name="OBC_ELDER_YN"]:checked').val() != "Y")$("#OBC_ELDER_YN").val("N");
- if($(':checkbox[name="OBC_WORK_YN"]:checked').val() != "Y")$("#OBC_WORK_YN").val("N");
- if($(':checkbox[name="OBC_RESIGN_YN"]:checked').val() != "Y")$("#OBC_RESIGN_YN").val("N");
- if($(':checkbox[name="OBC_SAFE_YN"]:checked').val() != "Y")$("#OBC_SAFE_YN").val("N");
- if($(':checkbox[name="OBC_ENV_YN"]:checked').val() != "Y")$("#OBC_ENV_YN").val("N");
- if($(':checkbox[name="OBC_SITE_YN"]:checked').val() != "Y")$("#OBC_SITE_YN").val("N");
- if($(':checkbox[name="OBC_DUTY_YN"]:checked').val() != "Y")$("#OBC_DUTY_YN").val("N");
- if($(':checkbox[name="OBC_WARR_YN"]:checked').val() != "Y")$("#OBC_WARR_YN").val("N");
- if($(':checkbox[name="OBC_DUTY_YN"]:checked').val() == "Y")if(must_ck_val("OBC_DUTY_RATE",""))return false;
- return true;
- }
-
- function cash_bill_sum_check(col1,col2){
- var cash = Number($("#"+col1).val());
- var bill = Number($("#"+col2).val());
- if(cash > 0 || bill > 0){
- if((cash+bill) != 100){
- alert("현금과 어음의 합은 100%가 되어야 합니다.");
- $("#"+col1).focus();
- return true;
- }
- }
-
- return false;
- }
-
- // 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 = sheet2.RowCount();
- var rst = 0;
- if(rowcnt < 1){
- alert("보고자는 필수입니다.");
- $("#sheet2_div").focus();
- return true;
- }
- if($("#CMPT_CD").val() == "03"){//수의계약
- if(rowcnt != 1){
- if (confirm("보고자가 1명이 아닙니다.\n진행하시겠습니까?")){
-
- }else{
- $("#sheet2_div").focus();
- return true;
- }
- }
-
- for(var r=0; r < rowcnt; r++){
- var acct_id = sheet2.GetCellValue(r+1,"ACCT_ID");
- if(acct_id == <%=Order.get("OUT_LEADER") %>){
- rst = rst+1;
- }
- }
-
- if(rst == 0){
- if (confirm("외주 팀장이 보고자에 없습니다.\n진행하시겠습니까?")){
-
- }else{
- $("#sheet2_div").focus();
- return true;
- }
- }
- }
- return false;
- }
-
- //첨부파일
- function doAttachFile(obj,No) {
- var file_div = "bid/outside/"+"<%=Order.get("BID_NO")%>"+"/";
- var fileName = "<%=Order.get("DEMANDED_NO")%>" + "(" + "<%=Order.get("DEMANDED_TITLE")%>" + ")_";
- if(obj==''){
- alert("After you have saved, you can attach a file.");
- }
- else if(obj != ''){
- if(No == 1){
- fileName += "내부자료";
- <%-- viewFileListNew("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "Y", file_div); --%>
- viewFileListNew("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "Y", file_div, null, null, null, null, "Y", fileName);
- }else{
- fileName += "외부자료";
- <%-- viewFileListNew("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "Y", file_div); --%>
- viewFileListNew("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "Y", file_div, null, null, null, null, "Y", fileName);
- }
- }
- }
-
- //견적대상업체 추가
- 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() == "CHK") {
- document.form1.isSubmit = false;
- if( resultObj.getSuccess() ) {
- if(btn_act == "to_sign"){
- if($("#CMPT_CD").val() == "01"){//공개경쟁
- var rowcnt = sheet1.RowCount();
- if(rowcnt> 0){
- sheet1.RemoveAll();
- }
- }
- if(must_ck()){
- if (confirm("결재 하시겠습니까?")){
- var f = document.form1;
- $("#fevent").val("MASTER_UPDATE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- }else if(btn_act == "to_Del"){
- if (confirm("삭제 하시겠습니까?")){
- var f = document.form1;
- $("#fevent").val("FORM_DELETE");
- submitXmlRequest("/bid/outside/BidPlan_form.screen", "FORM_DELETE", f);
- }
- }else if(btn_act == "to_Save"){
- if($("#CMPT_CD").val() == "01"){//공개경쟁
- var rowcnt = sheet1.RowCount();
- if(rowcnt> 0){
- sheet1.RemoveAll();
- }
- }
- var f = document.form1;
- $("#STATUS_CD").val("01");
- if(must_ck()){
- if (confirm("저장 하시겠습니까?")){
- $("#fevent").val("UPDATE");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/outside/BidPlan_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- }
- }
- else {
- alert("입찰실시중 입니다.");
- }
- }
-
-
- if( resultObj.getRequestEvent() == "FORM_DELETE") {
- if( resultObj.getSuccess() ) {
- alert("삭제 되었습니다.");
- $("#btn_list").click();
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
- } catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
-
- function sheet1_OnSaveEnd(code, msg)
- {
- var event = $("#fevent").val();
- if(event == "SET_CORP_DELETE"){
- if(code>= "0"){
- alert("삭제되었습니다.");
-
- }
- }else if(event == "MASTER_UPDATE"){
- if(code>= "0"){
- doSaveSheet2();
- }else{
- alert(msg);
- }
- }else{
- if(code>= "0"){
- doSaveSheet2();
- }else{
- alert("에러가 발생하였습니다.\n\n"+msg);
- }
- }
- }
-
- function sheet2_OnSaveEnd(code, msg)
- {
- var event = $("#fevent").val();
- if(event == "SET_REPORT_EMP_DELETE"){
- if(code>= "0"){
- alert("삭제되었습니다.");
- doSearchSheet2();
- }else{
- alert("에러가 발생하였습니다.\n"+msg);
- document.form1.isSubmit = false;
- }
- }else if(event == "REPORT_EMP_UPDATE"){
- if(code>= "0"){
- if(btn_act == "to_sign"){
- document.form1.isSubmit = false;
- var f = document.form1;
- var sign_bid_no = $("#BID_NO").val();
- var sign_bid_deg = $("#BID_DEG").val();
- dlgSignForm('ebid_oinqD', '/bid/outside/BidPlanSign.screen?sign_bid_no='+sign_bid_no+'^sign_bid_deg='+sign_bid_deg+'^acct_id='+"<%=user.get("ACCT_ID")%>");
- } else {
- alert("저장되었습니다.");
- refresh();
- }
- }else{
- alert(msg);
- }
- }
- }
-
- function refresh(){//저장
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/bid/outside/BidPlan.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
- function refresh2(){//결재
- if($(':radio[name=SITEDESC_FLAG]:checked').val() == "N"){//견적의뢰
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/bid/outside/BidIng.screen");
- }else if($(':radio[name=SITEDESC_FLAG]:checked').val() == "Y"){//견적설명의뢰
- $("#fevent").val("FORM_SELECT_SITE");
- $("#form1").attr("action", "/bid/outside/SiteExplanIng.screen");
- }
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
-
- function sheet1_OnSmartResize(Width, Height) {
- sheet1.FitColWidth();
- autoResize();
- }
- function autoResize(){
- sheet1.SetSheetHeight(300);
- }
-
- 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("");
- }
- $("#PUR_AMT").val(Math.round(Number(act) * 0.95)); //2018.04.25
- jQuery("#PUR_AMT").each(function(index){
- jQuery(this).val(jQuery(this).val().split(/(?=(?:\d{3})+(?:\.|$))/g).join(','));
- });
- }
-
- //결재
- function dlgSignForm( sign_class_cd, uri ) {
- var f = document.form1;
- var sheet1 = document.all.sheet1;
- var url = "/bidOutsideSign/BidPlanSign_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 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;
-
- //var popOption = "width=400, height=450, resizable=no, scrollbars=auto, status=no;"; //팝업창 옵션(optoin)
- if (year > "20151213"){
- link = "<%=gwurl%>upload_approval/TEC/doc/" + year.substr(0,4) + "/" + doc_chk + "/"+ doc_id+".mht";
- }
- else
- {
- link = "<%=gwurl%>upload_approval/TEC/doc/" + doc_chk + "/"+ doc_id+".mht";
- }
-
- window.open(link,"_viewDraft","");
- }
-
- function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
- if(Row == 0)return;
- if( Col == 4){//추천부서
- searchAccDept();
- $("#TEMP_ROW").val(Row);
- }
- }
-
- //2019.11.22 전산요구사항으로 추가
- function textareaResize(obj) {
- obj.style.height = "80px";
- obj.style.height = obj.scrollHeight+"px";
- }
- </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="">
- <!-- List Search -->
- <INPUT type="hidden" name="P_BID_MASTER_NM" id="P_BID_MASTER_NM" value="<%= params.get("P_BID_MASTER_NM") %>">
- <INPUT type="hidden" name="p_demanded_from_dt" id="p_demanded_from_dt" value="<%= params.get("p_demanded_from_dt") %>">
- <INPUT type="hidden" name="p_demanded_to_dt" id="p_demanded_to_dt" value="<%= params.get("p_demanded_to_dt") %>">
- <INPUT type="hidden" name="p_rceipt_from_dt" id="p_rceipt_from_dt" value="<%= params.get("p_rceipt_from_dt") %>">
- <INPUT type="hidden" name="p_rceipt_to_dt" id="p_rceipt_to_dt" value="<%= params.get("p_rceipt_to_dt") %>">
- <INPUT type="hidden" name="p_demanded_status" id="p_demanded_status" value="<%= params.get("p_demanded_status") %>">
- <INPUT type="hidden" name="p_dept_nm" id="p_dept_nm" value="<%= params.get("p_dept_nm") %>">
- <INPUT type="hidden" name="p_dept_cd" id="p_dept_cd" value="<%= params.get("p_dept_cd") %>">
- <!-- List Search -->
- <INPUT type='hidden' name="signClass" value="ebid_oinqD">
- <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
- <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="ONBID_YN" value="<%=Order.get("ONBID_YN")%>">
- <INPUT type='hidden' name="SAVE" value="">
- <INPUT type='hidden' name="DOC_ETC_IN" value="<%=Order.get("DOC_ETC_IN")%>">
- <INPUT type='hidden' name="CBC_DERECT_TERM_CD" value="02">
- <INPUT type='hidden' name="WARR_CONDI" value="준공일로부터">
- <INPUT type='hidden' name="LAST_EVAL_EMPNM" value="">
- <INPUT type='hidden' name="LAST_EVAL_EMPID" value="">
- <INPUT type='hidden' name="TEMP_ROW" value="">
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </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"><a href="javascript:void(0);" id="btn_Save">저장</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_del">삭제</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_Sign">결재</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_item">입찰내역</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_list">목록</a></span>
- </td>
- </tr>
- </table>
- <!-- 발주의뢰정보 : 시작 -->
- <div class="application-info magT10">
- <div class="application-sub-title">
- <span class="title">발주의뢰정보</span>
- </div>
- </div>
- <TABLE class="form-table">
- <colgroup>
- <col width="150"/>
- <col width="21%">
- <col width="150"/>
- <col width="20%">
- <col width="160"/>
- <col/>
- </colgroup>
- <TR height="25">
- <TH>현장</TH>
- <TD><%=Order.get("dept_nm") %></TD>
- <TH>발주의뢰번호</TH>
- <TD><a href="javascript:doSignFile('<%=sign_info.get("doc_id") %>','<%=sign_info.get("year") %>');"><%=Order.get("DEMANDED_NO")%></TD>
- <TH>발주의뢰명</TH>
- <TD><%=Order.get("DEMANDED_TITLE")%></TD>
- </TR>
- <TR height="25">
- <TH>발주의뢰일</TH>
- <TD><%= Order.get("REQUEST_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 class="required"> 외주예산 (원)</TH>
- <TD><%= InputText.get("PUR_AMT", Formatter2.currency(Order.get("PUR_AMT"),0), 13, 300, "desc=예산금액,Number,right,readOnly","Number") %></TD> <!-- 2015.3.2 외주예산추가 MKLEE -->
- </TR>
- <TR height="25">
- <TH class="required"> 도급금액 (원)</TH>
- <TD><%= InputText.get("CONT_AMT", Formatter2.currency(Order.get("CONT_AMT"),0), 13, 300, "desc=도급금액,Number,right","Number") %></TD>
- <TH class="required"> 실행예산 (원)</TH>
- <TD><%= InputText.get("ACT_AMT", Formatter2.currency(Order.get("ACT_AMT"),0), 13, 300, "desc=실행금액,Number,right","Number") %></TD>
- <TH>도급대비실행율(%)</TH>
- <TD><%= InputText.get("ACT_RATE", Order.get("ACT_RATE"), 50, 300, "class=input_blank,desc=실행금액,left,readOnly=white") %></TD>
- </TR>
-
- <TR height="25">
- <TH>공사기간</TH>
- <TD><%= InputText.get("DELI_FROM_DY", Order.get("DELI_FROM_DY"), 10, 10, "desc=공사기간,readOnly,center") %>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('DELI_FROM_DY');">
- <%if(!Order.get("DELI_FROM_DY").isEmpty()||!Order.get("DELI_TO_DY").isEmpty()){ %>~<%} %>
- <%= InputText.get("DELI_TO_DY", Order.get("DELI_TO_DY"), 10, 10, "desc=공사기간,readOnly,center") %>
- <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>
- <TH>공사장소</TH>
- <TD><%= Order.get("DELIVERY_PLACE") %></TD>
- <TH>공종</TH>
- <TD><%= Order.get("OUT_ITEM_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="2"><%=Order.get("BID_NO")%>-<%=Order.get("BID_DEG")%></TD>
- <TH>온라인입찰여부</TH>
- <TD><%=Order.get("ONBID_YN_NM")%></TD>
- </TR>
- <TR height="25">
- <TH class="required"> 입찰명</TH>
- <TD colspan="5"><%= InputText.get("BID_MASTER_NM", Order.get("BID_MASTER_NM"), 85, 300, "desc=입찰명") %></TD>
- </TR>
-
- <TR height="25">
- <TH class="required"> 경쟁방법</TH>
- <TD colspan="2">
- <%=CommCodeManager.getSelectCodeList("CMPT_CD","CMPT_CD","height=18;","<option value=''>--선택--</option>",Order.get("CMPT_CD")) %>
- </TD>
- <TH class="required"> 낙찰자선정방법</TH>
- <TD colspan="3"><%=CommCodeManager.getSelectCodeList("SUCC_CD","SUCC_CD","height=18;","<option value=''>--선택--</option>",Order.get("SUCC_CD")) %></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 class="required">업체공지일자</TH>
- <TD colspan="2"><%= InputText.get("NOTI_DY", Order.get("NOTI_DY"), 10, 10, "desc=업체공지일자,center,readOnly") %>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('NOTI_DY');"></TD>
- <TH class="required">시행결의요청일</TH>
- <TD colspan="2"><%= InputText.get("CONT_APP_REQ_DATE", Order.get("CONT_APP_REQ_DATE"), 10, 10, "desc=시행결의요청일,center,readOnly") %>
- <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('CONT_APP_REQ_DATE');"></TD>
- </TR>
- <TR height="25">
- <TH rowspan="3"> 견적설명회 정보</TH>
- <TH class="required"> 여부</TH>
- <TD>
- <LABEL for="sitedesc_flag_1"><INPUT id="sitedesc_flag_1" type="radio" name="SITEDESC_FLAG" value="Y" desc="견적설명여부" <%=Order.get("SITEDESC_FLAG").equals("Y") ? "checked=\"checked\"" : "" %>> 예</LABEL>
- <LABEL for="sitedesc_flag_2"><INPUT id="sitedesc_flag_2" type="radio" name="SITEDESC_FLAG" value="N" desc="견적설명여부" <%=Order.get("SITEDESC_FLAG").equals("N") ? "checked=\"checked\"" : "" %>> 아니오</LABEL>
- </TD>
- <TH class="required"> 담당자</TH>
- <TD>
- <%= InputText.get("SITEDESCCHRGPRSNNM", Order.get("SITEDESCCHRGPRSNNM"), 21, 50, "desc=견적설명담당자,readOnly") %><INPUT type='hidden' name="SITEDESCCHRGPRSNID" value="<%=Order.get("SITEDESCCHRGPRSNID")%>">
- <IMG id="btn_sitedescchrgprsnid" src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:SearchUser('SITEDESCCHRGPRSNNM','SITEDESCCHRGPRSNID','N');">
- </TD>
- </TR>
-
- <TR height="25">
- <TH class="required"> 담당자 전화번호</TH>
- <TD><%= InputText.get("SITEDESCTELNO", Order.get("SITEDESCTELNO"), 15, 20, "desc=견적설명 담당자 전화번호") %> ex)02-0000-0000</TD>
- <TH class="required"> 일시</TH>
- <TD>
- <%= InputText.get("SITEDESCDATE", Order.get("SITEDESCDATE"), 10, 10, "desc=견적설명일시,readOnly,center") %>
- <IMG name="calendar_sitedescdate" id="calendar_sitedescdate" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('SITEDESCDATE');">
- <%= InputText.get("SITEDESCDATE_HH", Order.get("SITEDESCDATE_HH"), 2, 2, "desc=견적설명일시,Number,center","Number") %> : <%= InputText.get("SITEDESCDATE_MI", Order.get("SITEDESCDATE_MI"), 2, 2,"desc=견적설명일시,Number,center","Number") %>
- </TD>
- </TR>
-
- <TR height="25">
- <TH>담당자 E-Mail</TH>
- <TD><%= InputText.get("SITEDESCEMAIL", Order.get("SITEDESCEMAIL"), 50, 50, "") %></TD>
- <TH class="required"> 장소</TH>
- <TD><%= InputText.get("SITEDESCPLACE", Order.get("SITEDESCPLACE"), 60, 50, "desc=견적설명장소") %></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,center") %>
- <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,center") %> :
- <%= InputText.get("BID_FROM_MI", Order.get("BID_FROM_MI"), 2, 2, "desc=견적제출기간,Time,center") %> ~
- <%= InputText.get("BID_TO_DT", Order.get("BID_TO_DT"), 10, 10, "desc=견적제출기간,readOnly,center") %>
- <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,center") %> :
- <%= InputText.get("BID_TO_MI", Order.get("BID_TO_MI"), 2, 2, "desc=견적제출기간,Time,center") %>
- </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" desc="외주담당자" 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=외주담당자 전화번호") %> ex)02-0000-0000
- </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" 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>
- <!-- <TD></TD>
- <TD></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="sheet2_div" style="width: 100%; height: 100%;">
- <script>createIBSheet('sheet2','100%', '100px');</script>
- </div>
- </TD>
- </TR>
-
- <TR height="25">
- <TH rowspan="2">기술검토(TBE)</TH>
- <TH class="required"> TBE 여부</TH>
- <TD colspan="3">
- <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>
- </TR>
-
- <TR height="25">
- <TH class="required"> TBE 심사자</TH>
- <TD>
- <%if(Order.get("EVAL_EMPNM").equals("")){%><!-- 심사자가 없을때 발주의뢰자의 이름과 번호 가져옴 -->
- <INPUT type='hidden' name="EVAL_EMPID" value="<%=Order.get("EMP_NO")%>">
- <%= InputText.get("EVAL_EMPNM", Order.get("EMP_NM"), 21, 60, "desc=TBE심사자,readOnly") %>
- <%}else{ %>
- <INPUT type='hidden' name="EVAL_EMPID" value="<%=Order.get("EVAL_EMPID")%>">
- <%= InputText.get("EVAL_EMPNM", Order.get("EVAL_EMPNM"), 21, 60, "desc=TBE심사자,readOnly") %>
- <%} %>
- <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>
- <TH class="required"> TBE 담당자 연락처</TH>
- <TD>
- <%= InputText.get("EVAL_TEL", Order.get("EVAL_TEL"), 15, 13, "desc=TBE 담당자 연락처") %> ex)02-0000-0000
- </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 class="required">통화구분</TH>
- <TD colspan="4">
- <%=CommCodeManager.getSelectCodeList("911","CURRENCY_GB","height=18;","<option value=''>--선택--</option>",Order.get("CURRENCY_GB")) %>
- </TD>
- </TR>
- <TR height="25">
- <TH>계약형태</TH>
- <TD colspan="4">
- <LABEL for="obc_cont_type_1"><INPUT id="obc_cont_type_1" type="radio" name="OBC_CONT_TYPE_CD" value="01" desc="계약형태" <%=Order.get("OBC_CONT_TYPE_CD").equals("01") ? "checked=\"checked\"" : "" %>>도면견적 기준</LABEL><!-- 총액계약(도면견적 기준,총액입찰) 2015.9.17-->
- <LABEL for="obc_cont_type_2"><INPUT id="obc_cont_type_2" type="radio" name="OBC_CONT_TYPE_CD" value="02" desc="계약형태" <%=Order.get("OBC_CONT_TYPE_CD").equals("02") ? "checked=\"checked\"" : "" %>>단가계약(공내역 물량 기준,단가입찰)</LABEL>
- </TD>
- </TR>
- <TR height="75">
- <TH rowspan="2">공사대금</TH>
- <TH>선급금</TH>
- <TD> 계약금액의 : <%= InputText.get("OBC_FRST_CONT_RATE", Order.get("OBC_FRST_CONT_RATE"), 6, 6, "Float,Right","Float") %>%<br>
- <%= InputText.get("OBC_FRST_CONDI", Order.get("OBC_FRST_CONDI"), 40, 250, "readOnly") %> <br>
- <%= InputText.get("OBC_FRST_CNT_CONDI", Order.get("OBC_FRST_CNT_CONDI"), 40, 250, "readOnly") %></TD>
- <TH>기성금</TH>
- <TD> 계약금액의 : <%= InputText.get("CPC_MID_RATE", Order.get("CPC_MID_RATE"), 4, 3, "Number,Right","Number") %>% , 현금 : <%= InputText.get("OBC_MID_CASH_RATE", Order.get("OBC_MID_CASH_RATE"), 4, 3, "Number,Right","Number") %>% , 어음 : <%= InputText.get("OBC_MID_BILL_RATE", Order.get("OBC_MID_BILL_RATE"), 4, 3, "Number,Right","Number") %>%<br>
- 세금계산서 발행일로부터 <%= InputText.get("OBC_MID_PAYDAY", Order.get("OBC_MID_PAYDAY"), 10, 50, "Number,Right","Number") %>일 내 지급<br>
- 어음일 경우, 어음 만기일은 목적물 수령일로부터 (<%= InputText.get("OBC_MID_BILL_DATE", Order.get("OBC_MID_BILL_DATE"), 10, 50, "Number,Right","Number") %>)일<br>
- <%= InputText.get("OBC_MID_REQ_MONTH", Order.get("OBC_MID_REQ_MONTH"), 10, 10, "Number,Right","Number") %>개월 당<%= InputText.get("OBC_MID_CNT", Order.get("OBC_MID_CNT"), 10, 10, "Number,Right","Number") %>회 말일에 청구
- </TD>
- </TR>
- <TR height="25">
- <TH>준공금</TH>
- <TD colspan="3"> 계약금액의 : <%= InputText.get("PBC_REST_RATE", Order.get("PBC_REST_RATE"), 4, 3, "Number,Right","Number") %>% , 현금 : <%= InputText.get("OBC_FIN_CASH_RATE", Order.get("OBC_FIN_CASH_RATE"), 4, 3, "Number,Right","Number") %>% , 어음 : <%= InputText.get("OBC_FIN_BILL_RATE", Order.get("OBC_FIN_BILL_RATE"), 4, 3, "Number,Right","Number") %>%
- <%--<br> 세금계산서 발행일로부터 <%= InputText.get("OBC_FIN_PAYDAY", Order.get("OBC_FIN_PAYDAY"), 10, 10, "desc=준공금 날짜,Number,Right","Number") %>일 내 지급<br>
- <%= InputText.get("OBC_FIN_CONDI", Order.get("OBC_FIN_CONDI"), 40, 250, "readOnly") %>--%>
- </TD>
- </TR>
- <TR height="25">
- <TH rowspan="2">보증조건</TH>
- <TH>선급금보증</TH>
- <TD>계약금액의<%= InputText.get("CBC_FIRST_RATE", Order.get("CBC_FIRST_RATE"), 6, 6, "Float,Right","Float") %>%</TD>
- <TH>계약이행 보증</TH>
- <TD>계약금액의<%= InputText.get("CONTFUL_RATE", Order.get("CONTFUL_RATE"), 4, 5, "Float,Right","Float") %>%</TD>
- </TR>
- <TR height="25">
- <TH>하자이행 보증</TH>
- <TD>준공금액의<%= InputText.get("WARR_RATE", Order.get("WARR_RATE"), 4, 5, "Float,Right","Float") %>%</TD>
- <TH>하자담보기간</TH>
- <TD>준공일로부터<%= InputText.get("CBC_DEFECT_DAY", Order.get("CBC_DEFECT_DAY"), 4, 3, "Number,Right","Number") %> 개월</TD>
- </TR>
- <TR height="25">
- <TH>기타조건</TH>
- <TH>하도급대금<br>연동 기준비율</TH>
- <TD><%= InputText.get("PAY_CON_RATE", Order.get("PAY_CON_RATE"), 4, 5, "Float,Right","Float") %>%</TD>
- <TH>지체상금</TH>
- <TD>일당 계약금액의<%= InputText.get("CBC_DAMAGE_RATE", Order.get("CBC_DAMAGE_RATE"), 4, 5, "float,Right","float") %>%, 최대<%= InputText.get("CBC_DAMAGE_MAXRATE", Order.get("CBC_DAMAGE_MAXRATE"), 4, 5, "float,Right","float") %>%</TD>
- </TR>
- <TR height="25">
- <TH rowspan="6">간접비 견적조건</TH>
- <TH>고용보험료</TH>
- <TD>노무비 * <%= InputText.get("OBC_EMP_RATE", Order.get("OBC_EMP_RATE"), 10, 50, "Left") %> %
- <LABEL for="OBC_EMP_YN">견적포함 <INPUT type="checkbox" id="OBC_EMP_YN" name="OBC_EMP_YN" value="Y" <%=Order.get("OBC_EMP_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- <TH>연금보험료</TH>
- <TD>직접노무비 <%= InputText.get("OBC_PENSION_RATE", Order.get("OBC_PENSION_RATE"), 10, 50, "Left") %> %   
- <LABEL for="OBC_PENSION_YN">견적포함 <INPUT type="checkbox" id="OBC_PENSION_YN" name="OBC_PENSION_YN" value="Y" <%=Order.get("OBC_PENSION_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- </TR>
- <TR height="25">
- <TH>건강보험료</TH>
- <TD>직접노무비 * <%= InputText.get("OBC_HEALTH_RATE", Order.get("OBC_HEALTH_RATE"), 10, 50, "Left") %> %
- <LABEL for="OBC_HEALTH_YN">견적포함 <INPUT type="checkbox" id="OBC_HEALTH_YN" name="OBC_HEALTH_YN" value="Y" <%=Order.get("OBC_HEALTH_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- <TH>노인장기보험료</TH>
- <TD>건강보험료 * <%= InputText.get("OBC_ELDER_RATE", Order.get("OBC_ELDER_RATE"), 10, 50, "Left") %> %   
- <LABEL for="OBC_ELDER_YN">견적포함 <INPUT type="checkbox" id="OBC_ELDER_YN" name="OBC_ELDER_YN" value="Y" <%=Order.get("OBC_ELDER_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- </TR>
- <TR height="25">
- <TH>산재보험료</TH>
- <TD>노무비 * <%= InputText.get("OBC_WORK_RATE", Order.get("OBC_WORK_RATE"), 10, 50, "Left") %> %  
- <LABEL for="OBC_WORK_YN">견적포함 <INPUT type="checkbox" id="OBC_WORK_YN" name="OBC_WORK_YN" value="Y" <%=Order.get("OBC_WORK_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- <TH>퇴직공제부금</TH>
- <TD>노무비 * <%= InputText.get("OBC_RESIGN_RATE", Order.get("OBC_RESIGN_RATE"), 10, 50, "Left") %> %
- <LABEL for="OBC_RESIGN_YN">견적포함 <INPUT type="checkbox" id="OBC_RESIGN_YN" name="OBC_RESIGN_YN" value="Y" <%=Order.get("OBC_RESIGN_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- </TR>
- <TR height="25">
- <TH>안전관리비</TH>
- <TD>노무비 * <%= InputText.get("OBC_SAFE_RATE", Order.get("OBC_SAFE_RATE"), 10, 50, "Left") %> %  
- <LABEL for="OBC_SAFE_YN">견적포함 <INPUT type="checkbox" id="OBC_SAFE_YN" name="OBC_SAFE_YN" value="Y" <%=Order.get("OBC_SAFE_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- <TH>환경관리비</TH>
- <TD>재료비 * <%= InputText.get("OBC_ENV_RATE", Order.get("OBC_ENV_RATE"), 10, 50, "Left") %> %
- <LABEL for="OBC_ENV_YN">견적포함 <INPUT type="checkbox" id="OBC_ENV_YN" name="OBC_ENV_YN" value="Y" <%=Order.get("OBC_ENV_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- </TR>
- <TR height="25">
- <TH>현장관리비</TH>
- <TD>직접비 * <%= InputText.get("OBC_SITE_RATE", Order.get("OBC_SITE_RATE"), 10, 50, "Left") %> %  
- <LABEL for="OBC_SITE_YN">견적포함 <INPUT type="checkbox" id="OBC_SITE_YN" name="OBC_SITE_YN" value="Y" <%=Order.get("OBC_SITE_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- <TH>매입부가세</TH>
- <TD>재료비 * 매입세율 <%= InputText.get("OBC_DUTY_RATE", Order.get("OBC_DUTY_RATE"), 5, 6, "desc=매입세율,float,Center","float") %> %
- <LABEL for="OBC_DUTY_YN">견적포함 <INPUT type="checkbox" id="OBC_DUTY_YN" name="OBC_DUTY_YN" value="Y" <%=Order.get("OBC_DUTY_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL></TD>
- </TR>
- <TR height="25">
- <TH>간접비 정산조건</TH>
- <TD>
- <LABEL for="obc_ind_type_1"><INPUT id="obc_ind_type_1" type="radio" name="OBC_IND_YN" value="Y" desc="간접비 정산조건" <%=Order.get("OBC_IND_YN").equals("Y") ? "checked=\"checked\"" : "" %>>실적정산</LABEL>
- <LABEL for="obc_ind_type_2"><INPUT id="obc_ind_type_2" type="radio" name="OBC_IND_YN" value="N" desc="간접비 정산조건" <%=Order.get("OBC_IND_YN").equals("N") ? "checked=\"checked\"" : "" %>>비례정산</LABEL>
- </TD>
- <TH>건설기계 수수료</TH>
- <TD>
- <LABEL for="OBC_WARR_YN">견적포함 <INPUT type="checkbox" id="OBC_WARR_YN" name="OBC_WARR_YN" value="Y" <%=Order.get("OBC_WARR_YN").equals("Y") ? "checked=\"checked\"" : "" %>></LABEL>
- </TD>
- </TR>
- </TABLE>
- <TABLE class="form-table" style="margin-top:5px">
- <colgroup>
- <col width="145"/>
- <col width="145"/>
- <col width="29%"/>
- <col width="145"/>
- <col/>
- </colgroup>
- <TR height="100">
- <TH>주요발주내용</TH>
- <TD colspan="2">
- <textarea name="MAIN_PR_CONTENTS" id="MAIN_PR_CONTENTS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget" onkeyup="textareaResize(this)"><%=Order.get("MAIN_PR_CONTENTS")%></textarea>
- </TD>
-
- <TH>입찰업체선정사유</TH>
- <TD>
- <textarea name="BID_SUPP_SELECT_REASON" id="BID_SUPP_SELECT_REASON" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget" onkeyup="textareaResize(this)"><%=Order.get("BID_SUPP_SELECT_REASON")%></textarea>
- </TD>
- </TR>
- <TR height="100">
- <TH>특이사항 내부</TH>
- <TD colspan="2">
- <textarea name="INNER_REMARKS" id="INNER_REMARKS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget" onkeyup="textareaResize(this)"><%=Order.get("INNER_REMARKS")%></textarea>
- </TD>
-
- <TH>특이사항 외부</TH>
- <TD>
- <textarea name="OUTER_REMARKS" id="OUTER_REMARKS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget" onkeyup="textareaResize(this)"><%=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=copr_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">
- <span class="btnSearch center"><a href="javascript:void(0);" id="corp_add">추가</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_row_del">삭제</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>
|