123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936 |
- <%--
- - Author(s) : Hyung min Son
- - Date : 2014.07.14
- - Description: 견적서 개찰(구매) 상세
- --%>
-
- <%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
- <%@ page import="java.util.*"%>
- <%@ page import="java.text.SimpleDateFormat" %>
- <%@ page import="java.util.Date" %>
- <%@ 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"%>
- <%@ 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 str = sd.format(new Date());
- boolean o_reason = false;
- boolean p_reason = false;
- boolean c_reason = false;
- boolean m_reason = false;
- if(Order.get("OPEN_OPINION").length()> 0){
- o_reason = true;
- }
- if(Order.get("POSTPONE_REASON").length()> 0){
- p_reason = true;
- }
- if(Order.get("CANCEL_REASON").length()> 0){
- c_reason = true;
- }
- if(Order.get("MODIFY_REASON").length()> 0){
- m_reason = true;
- }
-
- boolean open_flag = false;
- if(Order.get("OPEN_DT").length()> 0 ){
- open_flag = true;
- }
-
- 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 sheet3 = new ibsheetObject();
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
-
- var must_msg = "(은)는 필수 입력 항목입니다.";
- function _onReady(){
- /**
- * IBSheet object initialize
- */
- $("#OPEN_OPINION").hide();
- gridInit(sheet1);
- gridInit(sheet2);
- gridInit(sheet3);
-
- /**
- * Application Initialize
- */
- $("#btn_list").click(function() {
- $("#fevent").val("");
- $("#form1").attr("action", "/bid/purchase/BidOpenList.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- });
-
- $("#btn_save").click(function() {//저장
- if(must_ck()){
- if (confirm("저장 하시겠습니까?")){
- btn_act = "to_save";
- jQuery("#fevent").val("SAVE_SHEET");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidOpen_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- });
-
- $("#btn_BidOpen").click(function() {
- if(must_ck()){
- if (confirm("개찰 하시겠습니까?")){
- btn_act = "to_BidOpen";
- jQuery("#fevent").val("SAVE_SHEET");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidOpen_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }
- });
- $("#btn_BidOpi").click(function() {
- var win_id = "_OpenPop";
- var link = "/bid/purchase/BidOpenPop.screen";
- link += "?pop_win_id="+win_id;
- link += "&BID_NO="+$("#BID_NO").val();
- link += "&BID_DEG="+$("#BID_DEG").val();
- link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
- link += "&TBE_STATUS_CD="+$("#TBE_STATUS_CD").val();
- link += "&TBE_FLAG="+$("#TBE_FLAG").val();
- link += "&OPEN_OPINION="+encodeURI(encodeURIComponent($("#OPEN_OPINION").val()),"UTF-8");
- fLayerPop(win_id, link, 600,210, '', '', 'NO');
-
- });
- if("<%=Order.get("PBC_DEFECT_CONDI2")%>"!=""||"<%=Order.get("CBC_DEFECT_DAY2")%>"!=""||"<%=Order.get("CBC_DERECT_TERM_CD2")%>"!=""){
- $("#addGuar").attr("checked", true);
- $(".checkAdd").show();
- }
-
- //보고자 조회
- doSearchSheet3();
-
- //개찰의견 팝업
- openPop();
- }
- function must_ck(){
- var rowcnt = sheet1.RowCount();
- if(rowcnt > 0){
- for(var r=0; r < rowcnt; r++)
- {
- var currency_gb = sheet1.GetCellValue(r+1,"CURRENCY_GB");
- var exchange = sheet1.GetCellValue(r+1,"EXCHANGE");
- if(currency_gb != "KRW" && exchange == 0 ){
- alert("외화인 경우 예상환율을 적용하십시요.");
- return false;
- }
- }
- }
-
- return true;
- }
-
- function PopClose(win_id,result){
- if( result != null ){
- if(result[0] == 0){
- setTimeout(function(){fLayerPopClose(win_id); },100);
- alert(result[1]);
- $("#OPEN_OPINION").val(result[2]);
- //$("#btn_list").click();
-
- }
- }else{
- setTimeout(function(){ fLayerPopClose(win_id); },100);
- }
-
- }
- function openPop(){
- <%if(Order.get("OPEN_OPINION").length() > 0 ) {%>
- $("#btn_BidOpi").click();
- <%}%>
- }
- function doSearchSheet(){
- $("#fevent").val("GET_CORP_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidOpen_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/BidIng_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, "");
- }
-
- /**
- * 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", 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:"RECM_DEPT_NM", Width:100, Align:"Center", Edit:false},
- {Header:'사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:0, Align:"Center", Format:"SaupNo", Edit:false},
- {Header:'업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:80, Align:"Left", Edit:false},
- {Header:'대표자명', Type:"Text", SaveName:"REPRE_NO", Width:60, Align:"Center", Edit:false},
- {Header:'담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:60, Align:"Center", Edit:false},
- {Header:'핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:80, Align:"Center", Edit:false},
- {Header:'이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:100, Align:"Left", Edit:false},
- {Header:'기술검토(TBE)', Type:"Text", SaveName:"TBE_STATUS_NM", Width:60, Align:"Center", Edit:false},
- {Header:'견적제출시간', Type:"Text", SaveName:"SIGN_DT", Width:100, Align:"Center", Cursor:"pointer", Edit:false},
- {Header:'통화', Type:"Text", SaveName:"CURRENCY_GB", Width:60, Align:"Center", Edit:false},
- {Header:'예상환율', Type:"Float", SaveName:"EXCHANGE", Width:60, Align:"Right" <%if(open_flag){%>, Edit:false<%}%>},
- <%if(open_flag){%>
- {Header:'견적금액', Type:"Text", SaveName:"ESTI_TOT_AMT", Width:100, Align:"Right",FontColor:"Blue" , Cursor:"pointer", Edit:false},
- <%}%>
- {Header:'VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:100, Align:"Center", Hidden:"True"},
- {Header:'RNNC_REASON', Type:"Text", SaveName:"RNNC_REASON", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_RNNC_NM', Type:"Text", SaveName:"BID_RNNC_NM", Width:100, Align:"Center", Hidden:"True"},
- {Header:'BID_RNNC_DT', Type:"Text", SaveName:"BID_RNNC_DT", Width:100, Align:"Center", Hidden:"True"},
- {Header:'FILE_GB', Type:"Text", SaveName:"FILE_GB", Width:100, Align:"Center", Hidden:"True"}
- ];
- }else if(sheetName.id == "sheet2"){
- init_sheet.Cfg = {SearchMode:2, Page:30,MergeSheet:msHeaderOnly};
- 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:220, Align:"Left"},
- {Header:'규격|규격', Type:"Text", SaveName:"STD", Width:70, Align:"Left"},
- {Header:'단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:30, Align:"Center"},
- {Header:'도급|단가', Type:"Float", SaveName:"CONT_UNIT_AMT", Width:50, Align:"Right"},
- {Header:'도급|금액', Type:"Float", SaveName:"CONT_AMT", Width:50, Align:"Right", CalcLogic:"|CONT_UNIT_AMT|*|DEMANDED_QTY|"},
- {Header:'실행|단가', Type:"Float", SaveName:"ACT_UNIT_AMT", Width:50, Align:"Right"},
- {Header:'실행|금액', Type:"Float", SaveName:"ACT_AMT", Width:50, 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", 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:'계정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.SetEditable(false);
- setGridSize();
- }
-
- /**
- * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
- */
- function sheet1_OnSearchEnd(code, message) {
- var fevent = $("#fevent").val();
- if(code == 0) {
- if("GET_CORP_LIST" == fevent)
- doSearchSheetitem();
- setGridSize();
- var rowcnt = sheet1.RowCount();
- if(rowcnt> 0){
- for(var r=0; r < rowcnt; r++)
- {
- if(sheet1.GetCellValue(r+1,"RNNC_REASON").length > 0 ){
- sheet1.SetCellFontColor(r+1, 10, "#0000ff");
- }
-
- //환율이 KRW 일 경우 환율 수정 불가
- if(sheet1.GetCellValue(r+1, "CURRENCY_GB") == "KRW"){
- sheet1.SetCellEditable(r+1 , "EXCHANGE", false);
- }
- }
- }
- } else {
- //조회 에러 수행
- alert(message);
- }
- }
-
- /**
- * 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 doAttachFile(obj,No) {
- if(obj==''){
- alert("After you have saved, you can attach a file.");
- }
- else if(obj != ''){
- if(No == 1){
- //viewFileList("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "N", "N", "N", "N");
- viewFileListNew('<%=Order.get("DOC_ETC_IN")%>', obj.value, document.form1.p_AttachFile1, "N", "BD-001");
- }else{
- //viewFileList("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "N", "N", "N", "N");
- viewFileListNew('<%=Order.get("DOC_ETC_OUT")%>', obj.value, document.form1.p_AttachFile2, "N", "BD-001");
- }
- }
- }
-
- function doResult(resultObj) {
- try {
- if( resultObj.getRequestEvent() == "FORM_OPEN_SELECT") {
- if( resultObj.getSuccess() ) {
- alert("개찰 되었습니다.");
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/bid/purchase/BidOpen.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
-
- if( resultObj.getRequestEvent() == "FORM_DELETE") {
- if( resultObj.getSuccess() ) {
- alert("삭제 되었습니다.");
- $("#btn_list").click();
- }
- else {
- dlgErrorMsg(resultObj);
- }
- }
- } catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
-
- function sheet1_OnSmartResize(Width, Height) {
- sheet1.FitColWidth();
- sheet2.FitColWidth();
- autoResize();
- }
- function autoResize(){
- sheet1.SetSheetHeight(160);
- sheet2.SetSheetHeight(250);
- }
-
- /**
- * IBSheet Event: Click
- */
- function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
- if(Row == 0)return;
- if (Col == 11) {//견적 제출 시간
- if(sheet1.GetCellValue(Row,"RNNC_REASON").length > 0){
- 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,210, '', '', 'NO');
- }
- }else if( Col == 14){//견적금액
- if(Value != 0 || Value == "단가계약"){
- if(sheet1.GetCellValue(Row,"RNNC_REASON").length == 0){
- 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="+$("#BID_NO").val();
- link += "&BID_DEG="+$("#BID_DEG").val();
- link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
- link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
- link += "&DIV_PO_YN="+$("#DIV_PO_YN").val();
- //fLayerPop(win_id, link, 1200,720, '', '', 'NO');
- window.open(link,win_id,"toolbar=no, width=1000, height=600, top=50, left=40, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new");
- }
- }
- }
- }
-
- function sheet1_OnSaveEnd(code, msg)
- {
- var event = $("#fevent").val();
- if(event == "FORM_OPEN_SELECT"){
- if(code>= "0"){
- alert("개찰 되었습니다.");
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/bid/purchase/BidOpen.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }else{
- alert("에러가 발생하였습니다.");
- }
- } else if(event == "SAVE_SHEET"){
- if(code>= "0"){
- if(btn_act == "to_BidOpen"){
- $("#fevent").val("FORM_OPEN_SELECT");
- var f = document.form1;
- submitXmlRequest("/bid/purchase/BidOpen_form.screen", "FORM_OPEN_SELECT", f);
- } else {
- alert("저장되었습니다.");
- $("#fevent").val("FORM_SELECT");
- $("#form1").attr("action", "/bid/purchase/BidOpen.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
- }else{
- alert("에러가 발생하였습니다.");
- }
- }
- }
-
- function doSignFile(doc_id){
- //alert(doc_id);
- if(doc_id == ""){
- alert("결재 정보가 없습니다.");
- return;
- }
- var doc_chk = doc_id.substring(doc_id.length-3, doc_id.length);
-
- doc_chk = doc_chk * 1;
-
- var link = "";
- var year = "<%=sign_info.get("year") %>";
- 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";
- }
- //var popOption = "width=400, height=450, resizable=no, scrollbars=auto, status=no;"; //팝업창 옵션(optoin)
-
- window.open(link,"_viewDraft","");
- }
-
-
- //setInterval("dpTime()",1000);
- </SCRIPT>
- <modular:search id="form1">
- <modular:key id="event" />
- </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="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="SITEDESC_FLAG" value="<%=Order.get("SITEDESC_FLAG")%>">
- <INPUT type='hidden' name="TBE_FLAG" value="<%=Order.get("TBE_FLAG")%>">
- <INPUT type='hidden' name="DIV_PO_YN" value="<%=Order.get("DIV_PO_YN")%>">
- <INPUT type='hidden' name="TBE_STATUS_CD" value="<%=Order.get("TBE_STATUS_CD")%>">
- <INPUT type='hidden' name="SITEPARTI_YN" value="Y">
- <INPUT type='hidden' name="RNNC_REASON" value="">
- <!-- 제목 및 버튼 -->
- <table width="100%">
- <colgroup>
- <col width="500" />
- <col width="*" />
- </colgroup>
- <tr>
- <th>
- <div align="left" id="title">
- <ul><li>견적서 개찰 상세</li></ul>
- </div>
- </th>
- <td align="right">
- <%if(!open_flag){%>
- <span class="btnSearch center" id="btn_BidOpen"><a href="javascript:void(0);">개찰</a></span>
- <%} %>
- <span class="btnSearch center" id="btn_BidOpi"><a href="javascript:void(0);">특기사항</a></span>
- <span class="btnSearch center" id="btn_list"><a href="javascript:void(0);">목록</a></span>
- </td>
- </tr>
- </table>
-
- <%if(p_reason || m_reason || c_reason){ %>
- <TABLE class="form-table">
- <colgroup>
- <col width="160">
- <col/>
- </colgroup>
- <%if(c_reason){ %>
- <TR height="25">
- <TH>취소사유</TH>
- <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("CANCEL_REASON"))%></TD>
- </TR>
- <%} %>
- <%if(p_reason){ %>
- <TR height="25">
- <TH>연기사유</TH>
- <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("POSTPONE_REASON"))%></TD>
- </TR>
- <%} %>
- <%if(m_reason){ %>
- <TR height="25">
- <TH>정정사유</TH>
- <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("MODIFY_REASON"))%></TD>
- </TR>
- <%} %>
- </TABLE>
- <%}%>
- <%if(!Order.get("REBID_REASON").equals("") || !Order.get("REBID_OUTREASON").equals("")){%>
- <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="145"/>
- <col width="40%" />
- <col width="145" />
- <col width="*" />
- </colgroup>
- <TR height="25">
- <TH>재입찰사유<br>(내부보고)</TH>
- <TD><%=StringUtils.cvtHTML(Order.get("REBID_REASON"))%></TD>
- <TH>재입찰사유<br>(외부공지)
- </TH>
- <TD><%=StringUtils.cvtHTML(Order.get("REBID_OUTREASON"))%></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="160"/>
- <col width="23%">
- <col width="160"/>
- <col width="23%">
- <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") %>');"><%=Order.get("DEMANDED_NO")%></a>
- </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> <!-- 2015.02.27 구매예산추가 mklee -->
- <TD><%= Formatter2.currency(Order.get("PUR_AMT"),0) %></TD>
- </TR>
- <TR height="25">
- <TH> 도급금액 (원)</TH>
- <TD><%= Formatter2.currency(Order.get("CONT_AMT"),0) %></TD>
- <TH> 실행예산 (원)</TH>
- <TD><%=Formatter2.currency(Order.get("ACT_AMT"),0) %></TD>
- <TH> 도급대비실행율(%)</TH>
- <TD><%= 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="160"/>
- <col width="160"/>
- <col width="25%"/>
- <col width="160"/>
- <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="160"/>
- <col width="160"/>
- <col width="25%"/>
- <col width="160"/>
- <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> 담당자</TH>
- <TD><%=Order.get("SITEDESCCHRGPRSNNM")%></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> 견적제출기간</TH>
- <TD colspan="3"><%=Order.get("BID_FROM_DT")%> ~<%=Order.get("BID_TO_DT")%> <font color='red'><b> (입찰마감)</b></font></TD>
- </TR>
-
- <TR height="25">
- <TH> 구매담당자</TH>
- <TD ><%=Order.get("PUREMPNM")%></TD>
- <TH> 구매담당자 전화번호</TH>
- <TD ><%=Order.get("PO_EMPNM")%></TD>
- </TR>
-
- <TR height="25">
- <TH> 개찰자</TH>
- <TD colspan="3"><%=Order.get("OPEN_EMPNM")%></TD>
- </TR>
-
- <TR height="25">
- <TH> 보고자</TH>
- <TD colspan="3">
- <div id="sheet3_div" style="width: 100%; height: 100%;">
- <script>createIBSheet('sheet3','100%', '100px');</script>
- </div>
- </TD>
- </TR>
-
- <TR height="25">
- <TH rowspan="2">기술검토(TBE)</TH>
- <TH> TBE 여부</TH>
- <TD ><%=Order.get("TBE_FLAG").equals("Y") ? "예" : "아니오"%></TD>
- <TH> TBE 일자</TH>
- <TD ><%=Order.get("SUPP_REQ_DY")%></TD>
- </TR>
-
- <TR height="25">
- <TH> TBE 심사자</TH>
- <TD><%=Order.get("EVAL_EMPNM")%></TD>
- <TH> TBE 완료일</TH>
- <TD><%=Order.get("TBE_FIN_DT")%></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="23%">
- <col width="160"/>
- <col width="23%">
- <col width="160"/>
- <col/>
- </colgroup>
- <TR height="25">
- <TH>통화구분</TH>
- <TD><%=Order.get("CURRENCY_GB_NM") %>   
- <%=Order.get("CURRENCY_GB_YN").equals("Y") ? "[업체변경가능]" : "[업체변경불가능]" %>
-
- </TD>
- <TH>CBE문서 TYPE</TH>
- <TD colspan="3">
- <%if(!Order.get("PBC_CBE_TYPE_CD").isEmpty()){ %><%=Order.get("PBC_CBE_TYPE_CD").equals("A") ? "A type" : "B type" %><%} %>
- </TD>
- </TR>
- <TR height="25">
- <TH>Installation</TH><!-- 설치비 포함여부 -->
- <TD><%=Order.get("PBC_INSTALL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- <TH>Spare Parts for Commissionig</TH><!-- 시운전 포함여부 -->
- <TD><%=Order.get("PBC_COMMISS_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- <TH>Special Tool</TH><!-- 설치비 특별공구 포함여부 -->
- <TD><%=Order.get("PBC_SPETOOL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- </TR>
- <TR height="25">
- <TH>Test & Inspection at Fabrication shop</TH><!-- 샾(공장) 검사비용 포함여부 -->
- <TD><%=Order.get("PBC_TEST_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- <TH>Documentation</TH><!-- vendor print (무조건 포함) 삭제? -->
- <TD><%=Order.get("PBC_DOC_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- <TH>Packing cost</TH><!-- 포장비용 포함여부 -->
- <TD><%=Order.get("PBC_PACK_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- </TR>
- <TR height="25">
- <TH>Inland Transportaion</TH><!-- 내륙운송비 -->
- <TD><%=Order.get("PBC_LANDTRAN_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
- <TH>Delivery Condition</TH><!-- 인도조건 (현장도착도, 현장상차도,현장설치도, 설치시운전도) -->
- <TD colspan="3">
- <%=Order.get("DELIVERY_CONDITION_NM") %>   <%=Order.get("DELIVERY_CONDITION_YN").equals("Y") ? "[업체변경가능]" : "[업체 변경 불가능]" %></TD>
- </TR>
- <TR height="25">
- <TH>OPTIONAL PRICE</TH><!-- 현장감독관 일당 & 기타일당 내역 -->
- <TD colspan="5">A. Supervision fee   <%=Order.get("PBC_FEE_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %>
- <% if(!Order.get("PBC_OPTION_COMMENT").isEmpty()){ %>   B. <%= Order.get("PBC_OPTION_COMMENT")%>  <%=Order.get("PBC_OPTION_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %><%} %></TD>
- </TR>
- <TR height="25">
- <TH>Liquidated Damages</TH><!-- 지체상금 fix -->
- <TD colspan="5"><%if(!Order.get("CBC_DAMAGE_RATE").isEmpty()){ %><%= Order.get("CBC_DAMAGE_RATE")%>% <%=Order.get("CBC_DAMAGE_NM") %>,<%} %> <%if(!Order.get("CBC_DAMAGE_MAXRATE").isEmpty()){ %>Max <%= Order.get("CBC_DAMAGE_MAXRATE")%>%<%} %></TD>
- </TR>
- <TR height="25">
- <TH>선급금</TH>
- <TD><%if(!Order.get("CBC_FIRST_RATE").isEmpty()){ %><%=Order.get("CBC_FIRST_RATE") %>%<%} %> <%= Order.get("PBC_FIRST_CONDI")%></TD>
- <TH>중도금</TH>
- <TD><%if(!Order.get("CPC_MID_RATE").isEmpty()){ %><%= Order.get("CPC_MID_RATE")%>%<%} %> <%=Order.get("PBC_MID_CONDI")%></TD>
- <TH>잔금</TH>
- <TD><%if(!Order.get("PBC_REST_RATE").isEmpty()){ %><%= Order.get("PBC_REST_RATE") %>%<%} %> <%=Order.get("PBC_REST_CONDI")%></TD>
- </TR>
- <TR height="25">
- <TH>First Payment Bond</TH><!-- 선급금이행증권(yes, no) -->
- <TD><%if(!Order.get("PBC_FRSTGUAR_RATE").isEmpty()){ %><%= Order.get("PBC_FRSTGUAR_RATE") %>%<%} %> <%= Order.get("PBC_FRSTGUAR_CONDI")%></TD>
- <TH>Performance Bond</TH><!-- 계약이행증권(yes, no) -->
- <TD><%if(!Order.get("CONTFUL_RATE").isEmpty()){ %><%= Order.get("CONTFUL_RATE") %>%<%} %> <%=Order.get("CONTFUL_CONDI") %></TD>
- <TH>Guarantee Bond</TH><!-- 하자이행증권(yes, no) -->
- <TD><%if(!Order.get("WARR_RATE").isEmpty()){ %><%= Order.get("WARR_RATE") %>% <%} %><%= Order.get("WARR_CONDI")%></TD>
- </TR>
- <TR height="25">
- <TH>Guarantee Period</TH><!-- 하자보수기간 -->
- <TD colspan="3"><%=Order.get("PBC_DEFECT_CONDI") %> <%=Order.get("CBC_DEFECT_DAY") %>
- <% if(!Order.get("CBC_DERECT_TERM_NM").isEmpty()){ %><%=Order.get("CBC_DERECT_TERM_NM") %>간<%} %>
- <input type="checkbox" id="addGuar" style="margin-top:2px; display:none;">
- <span class="checkAdd" style="display:none;"> or
- <%=Order.get("PBC_DEFECT_CONDI2") %> <%=Order.get("CBC_DEFECT_DAY2")%>
- <%if(Order.get("CBC_DERECT_TERM_CD2").equals("01")){%>
- <span>일 간 중 선도래일</span>
- <%}else if(Order.get("CBC_DERECT_TERM_CD2").equals("02")){%>
- <span>개월 간 중 선도래일</span>
- <%} %>
- </span>
- </TD>
- <TH>Delivery Period</TH><!-- 납기일 fix -->
- <TD><%if(!Order.get("DELI_FROM_DY").isEmpty() || !Order.get("DELI_TO_DY").isEmpty()){ %>
- <%=Order.get("DELI_FROM_DY") %> ~
- <%= Order.get("DELI_TO_DY") %><%} %>
- </TD>
- </TR>
- </TABLE>
- <TABLE class="form-table" style="margin-top: 10px">
- <colgroup>
- <col width="160"/>
- <col width="160"/>
- <col width="25%"/>
- <col width="160"/>
- <col/>
- </colgroup>
- <TR height="25">
- <TH>주요발주내용</TH>
- <TD colspan="2">
- <%=StringUtils.cvtHTML(Order.get("MAIN_PR_CONTENTS"))%>
- </TD>
-
- <TH>입찰업체선정사유</TH>
- <TD>
- <%=StringUtils.cvtHTML(Order.get("BID_SUPP_SELECT_REASON"))%>
- </TD>
- </TR>
- <TR height="25">
- <TH>특이사항 내부</TH>
- <TD colspan="2">
- <%=StringUtils.cvtHTML(Order.get("INNER_REMARKS"))%>
- </TD>
-
- <TH> 특이사항 외부</TH>
- <TD>
- <%=StringUtils.cvtHTML(Order.get("OUTER_REMARKS"))%>
- </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="padding-top:5px;height: auto; min-height: 250px; overflow: auto;">
- <script>createIBSheet('sheet2','100%', '250px');</script>
- </div>
- <table 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">
- <%-- <%if(open_flag){%>(단위: 원, 부가세별도)<%} %> --%>
- <%if(!open_flag){%>
- <span class="btnSearch center" id="btn_save"><a href="javascript:void(0);">환율저장</a></span>
- <%} %>
- </td>
- </tr>
- </table>
- <div id="sheet1_div" style="height:auto; min-height: 160px; overflow: auto;">
- <script>createIBSheet('sheet1','100%', '160px');</script>
- </div>
- <textarea name="OPEN_OPINION" id="OPEN_OPINION" style="width:98%; height:50px; overflow-y:auto" maxlength="100" class="input byteChk ctrlTarget"><%=Order.get("OPEN_OPINION")%></textarea>
- </form>
|