SuccessBid.jsp 63 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.07.22
  4. - Description: 낙찰업체선정상세
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="java.text.SimpleDateFormat" %>
  8. <%@ page import="java.util.Date" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="kr.co.udapsoft.common.code.*" %>
  12. <%@ page import="kr.co.hsnc.common.util.*"%>
  13. <%@ page import="kr.co.hsnc.common.sql.*" %>
  14. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  15. <%@ page import="com.udapsoft.waf.common.util.StringUtils"%>
  16. <%@ page import="com.udapsoft.waf.common.ui.InitCombo" %>
  17. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  18. <%@ include file="/jsp/work/taglib.jsp" %>
  19. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  20. <%
  21. ctx.init(request, response);
  22. HandlerStorage storage = ctx.getHandlerStorage();
  23. ValueObject params = storage.getParams();
  24. ValueObject user = storage.getUser();
  25. ValueObject Order = storage.getValueObject("Order");
  26. ValueObject filein = storage.getValueObject(Order.get("DOC_ETC_IN"));
  27. ValueObject fileout = storage.getValueObject(Order.get("DOC_ETC_OUT"));
  28. boolean o_reason = false; //2015.3.27
  29. boolean p_reason = false;
  30. boolean c_reason = false;
  31. boolean m_reason = false;
  32. //2015.3.27 개찰의견 추가
  33. if(Order.get("OPEN_OPINION").length()> 0){
  34. o_reason = true;
  35. }
  36. if(Order.get("POSTPONE_REASON").length()> 0){
  37. p_reason = true;
  38. }
  39. if(Order.get("CANCEL_REASON").length()> 0){
  40. c_reason = true;
  41. }
  42. if(Order.get("MODIFY_REASON").length()> 0){
  43. m_reason = true;
  44. }
  45. //공통코드
  46. CommCodeManager commCodeManager = new CommCodeManager();
  47. InitCombo initCombo = new InitCombo();
  48. initCombo.makeComboData(commCodeManager.getCodeRowSet("BID_CHK_YN","DETAILCD","Y"), "DETAILNM", "DETAILCD");
  49. String BID_CHK_CD = initCombo.getCode();
  50. String BID_CHK_NM = initCombo.getCodeName();
  51. //공통코드
  52. InitCombo initCombo2 = new InitCombo();
  53. initCombo2.makeComboData(commCodeManager.getCodeRowSet("TBE_EVAL"), "NAME", "CODE");
  54. String TBE_EVAL_CD = initCombo2.getCode();
  55. String TBE_EVAL_NM = initCombo2.getCodeName();
  56. ValueObject sign_info = storage.getValueObject("SIGN_INFO");
  57. String gwurl = "http://gw.sgcenc.co.kr/";//WAFConfig.get("gw.url.address2");
  58. %>
  59. <SCRIPT language="JavaScript">
  60. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  61. /*예약함수*/
  62. var sheet1 = new ibsheetObject();
  63. var sheet2 = new ibsheetObject();
  64. var sheet3 = new ibsheetObject();
  65. var pageLastRowIndex = 1;
  66. var validationResult = false;
  67. var filterShow = false;
  68. var succ_vendor = "";
  69. var succ_vendor_cnt = 0;
  70. var for_po = $("#FOR_PO").val();
  71. function _onReady(){
  72. //$("#btn_Currency").hide();
  73. /**
  74. * IBSheet object initialize
  75. */
  76. gridInit(sheet1);
  77. gridInit(sheet2);
  78. gridInit(sheet3);
  79. /**
  80. * Application Initialize
  81. */
  82. $("#btn_list").click(function() {
  83. $("#fevent").val("");
  84. $("#form1").attr("action", "/bid/purchase/SuccessBidList.screen");
  85. $("#form1").attr("target", "_self");
  86. $("#form1").attr("method", "post");
  87. $("#form1").submit();
  88. });
  89. //2015.02.27 실행예산 수정 mklee
  90. $("#ACT_AMT").keyup(function(){ act_rate();});
  91. $("#CONT_AMT").keyup(function(){ act_rate();});
  92. $("#btn_save").click(function() {//저장
  93. var f = document.form1;
  94. submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
  95. btn_act = "to_Save";
  96. });
  97. /* $("#btn_appr").click(function() {//결재
  98. var f = document.form1;
  99. submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
  100. btn_act = "to_appr";
  101. }); */
  102. $("#btn_rebid").click(function(){//재입찰
  103. var f = document.form1;
  104. submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
  105. btn_act = "Rebid";
  106. });
  107. $("#btn_defer").click(function() {//유찰
  108. var f = document.form1;
  109. submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
  110. btn_act = "to_defer";
  111. });
  112. $("#btn_plan").click(function() {//입찰계획변경
  113. var f = document.form1;
  114. submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
  115. btn_act = "to_plan";
  116. });
  117. jQuery("#btn_bid").click(function(){
  118. var f = document.form1;
  119. submitXmlRequest("/bid/signidentify.screen", "CHK", f, "SUCCESS");
  120. btn_act = "to_appr";
  121. });
  122. jQuery("#btn_divCont").click(function(){//분할업체선정
  123. var win_id = "_DivContPop";
  124. var link = "/bid/purchase/DivContPop.screen";
  125. link += "?pop_win_id="+win_id;
  126. link += "&BID_NO="+jQuery("#BID_NO").val();
  127. link += "&BID_DEG="+jQuery("#BID_DEG").val();
  128. fLayerPop(win_id, link, 1000,500, '', '', 'YES');
  129. });
  130. $("#btn_tbecheckpop").click(function() {
  131. var win_id = "_TBECheckPop";
  132. var link = "/bid/purchase/TBECheckPop.screen";
  133. link += "?pop_win_id="+win_id;
  134. link += "&BID_NO="+$("#BID_NO").val();
  135. link += "&BID_DEG="+$("#BID_DEG").val();
  136. link += "&RTN_YN=Y";
  137. fLayerPop(win_id, link, 900,360, '', '', 'YES');
  138. });
  139. /* $("#btn_report").click(function() {
  140. var reportInfo = new ReportInfo();
  141. if($("#PBC_CBE_TYPE_CD").val() == "A")
  142. {
  143. reportInfo.title = "견적대비표";
  144. reportInfo.reportName = "/report/mrd/buyer/bid/purchase/Bid_purchase_Atype.mrd";
  145. reportInfo.set($("#BID_NO").val()); // $1
  146. reportInfo.set($("#BID_DEG").val()); // $2
  147. }
  148. else if($("#PBC_CBE_TYPE_CD").val() == "B")
  149. {
  150. reportInfo.title = "견적대비표";
  151. reportInfo.reportName = "/report/mrd/buyer/bid/purchase/Bid_purchase_Btype.mrd";
  152. reportInfo.set($("#BID_NO").val()); // $1
  153. reportInfo.set($("#BID_DEG").val()); // $2
  154. }
  155. reportInfo.width = 1000; // Default: 1024
  156. reportInfo.height = 700; // Default: 768
  157. reportInfo.showPopup();
  158. }); */
  159. $("#btn_Currency").click(function() {
  160. var hidden = sheet1.GetColHidden("CURRENCY_GB");
  161. if(hidden == 0){
  162. $("#KRW_APPR_YN").val("N");
  163. sheet1.SetColHidden("CURRENCY_GB", true);
  164. sheet1.SetColHidden("EXCHANGE", true);
  165. sheet1.SetColHidden("WON_ESTI_TOT_AMT", true);
  166. sheet1.SetColHidden("CHAGE_HP", false);
  167. sheet1.SetColHidden("CHARGE_EMAIL", false);
  168. sheet1.FitColWidth();
  169. }else{
  170. $("#KRW_APPR_YN").val("Y");
  171. sheet1.SetColHidden("CURRENCY_GB", false);
  172. sheet1.SetColHidden("EXCHANGE", false);
  173. sheet1.SetColHidden("WON_ESTI_TOT_AMT", false);
  174. sheet1.SetColHidden("CHAGE_HP", true);
  175. sheet1.SetColHidden("CHARGE_EMAIL", true);
  176. sheet1.FitColWidth();
  177. }
  178. if(jQuery("input:checkbox[id='DIV_CONT_YN']").is(":checked") == true){
  179. sheet1.SetColHidden("WON_ESTI_TOT_AMT", true);
  180. sheet1.FitColWidth();
  181. }else{
  182. sheet1.SetColHidden("WON_ESTI_TOT_AMT", false);
  183. sheet1.FitColWidth();
  184. }
  185. });
  186. //단가계약일경우 환율은 없음
  187. //통화가 KRW일경우
  188. // 환율 반영 여부 값이 Y인경우 숨김을 하지 않음.
  189. if($("#DIV_PO_YN").val() != "Y"){
  190. if("Y" != $("#KRW_APPR_YN").val()){
  191. $("#btn_Currency").click();
  192. }else{
  193. sheet1.SetColHidden("CHAGE_HP", true);
  194. sheet1.SetColHidden("CHARGE_EMAIL", true);
  195. }
  196. if(<%= Order.get("pay_div").equals("1") && !Order.get("DEMANDED_KIND").equals("B") %>){
  197. $("#pay_div").val("<%=Order.get("pay_div")%>");
  198. $("#pay_div").attr("disabled", false);
  199. }else{
  200. $("#pay_div").val("<%=Order.get("pay_div")%>");
  201. $("#pay_div").attr("disabled", true);
  202. }
  203. }else{
  204. $("#btn_Currency").click();
  205. //$("#btn_Currency").hide(); //2022.08.05 단가계약일 경우에도 환율정보 등록 가능하도록 수정
  206. //jQuery("#div_cont_span").hide(); //2020.03.11 주석 - 단가계약인 경우 왜 막혀있는지 알수없음
  207. $("#pay_div").val("<%=Order.get("pay_div")%>");
  208. $("#pay_div").attr("disabled", true);
  209. }
  210. var status = "<%=Order.get("STATUS_CD")%>";
  211. if(status == "07"){
  212. $("#btn_save").hide();
  213. $("#btn_defer").hide();
  214. $("#btn_rebid").hide();
  215. }else if(status == "05"){
  216. $("#btn_bid").hide();
  217. }
  218. else if(!(status == "06" ||status == "95") && "<%=Order.get("ONBID_YN")%>" =="Y" ){
  219. }
  220. if($("#ONBID_YN").val() == "N"){
  221. $("#btn_rebid").hide();
  222. //$("#btn_tbecheckpop").hide();
  223. }
  224. if($("#TBE_FLAG").val() == "N"){
  225. $("#btn_tbecheckpop").hide();
  226. }
  227. //For PO
  228. if($("#FOR_PO").val() > 0){
  229. $("#btn_save").hide();
  230. $("#btn_defer").hide();
  231. }
  232. if("<%=Order.get("PBC_DEFECT_CONDI2")%>"!=""||"<%=Order.get("CBC_DEFECT_DAY2")%>"!=""||"<%=Order.get("CBC_DERECT_TERM_CD2")%>"!=""){
  233. $("#addGuar").attr("checked", true);
  234. $(".checkAdd").show();
  235. }
  236. divContYnCheck();
  237. //보고자 조회
  238. doSearchSheet3();
  239. }
  240. function PopClose(win_id,result){
  241. if( result != null ){
  242. if(result[0] == 0){
  243. setTimeout(function(){ fLayerPopClose(win_id);},100);
  244. if(result[1].length> 0)alert(result[1]);
  245. $("#btn_list").click();
  246. }else if(result[0] == 1){
  247. setTimeout(function(){ fLayerPopClose(win_id);},100);
  248. if(result[1].length> 0)alert(result[1]);
  249. $("#fevent").val("FORM_SELECT");
  250. $("#form1").attr("action", "/bid/purchase/SuccessBid.screen");
  251. $("#form1").attr("target", "_self");
  252. $("#form1").attr("method", "post");
  253. $("#form1").submit();
  254. }
  255. }else{
  256. setTimeout(function(){ fLayerPopClose(win_id); },100);
  257. }
  258. }
  259. function doSearchSheet(){
  260. $("#fevent").val("GET_CORP_LIST");
  261. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SuccessBid_sheet.screen";
  262. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  263. }
  264. function doSearchSheetitem(){
  265. $("#fevent").val("GET_ITEM_LIST");
  266. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidIng_sheet.screen";
  267. Modular.view.IBSheet7.doSearch(sheet2, url, jQuery("#form1"), 30, "");
  268. }
  269. function doSearchSheet3(){
  270. $("#fevent").val("GET_REPORT_EMP_LIST");
  271. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidPlan_sheet.screen";
  272. Modular.view.IBSheet7.doSearch(sheet3, url, jQuery("#form1"), 30, "");
  273. }
  274. //결재
  275. function dlgSignForm( sign_class_cd, uri ) {
  276. var f = document.form1;
  277. var sheet1 = document.all.sheet1;
  278. var url = "/bidPurchaseSign/BidSuccessSign_form.screen";
  279. url += "?sign_class_cd=" + sign_class_cd;
  280. url += "&uri=" + uri;
  281. url += "&sign_bid_no=" + $("#BID_NO").val();
  282. url += "&sign_bid_deg=" + $("#BID_DEG").val();
  283. url += "&acct_type=1";
  284. window.open(url, "_blank","width=200,height=100,SCROLLBARS=no");
  285. window.focus();
  286. }
  287. /**
  288. * IBSheet object initialize
  289. */
  290. function gridInit(sheetName){
  291. var init_sheet = {};
  292. if(sheetName.id == "sheet1"){
  293. init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly};
  294. init_sheet.Cols = [
  295. {Header:'삭제|삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  296. {Header:'Status|Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  297. {Header:'No.|No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  298. {Header:'지명부서|지명부서', Type:"Text", SaveName:"RECM_DEPT_NM", Width:100, Align:"Center", Edit:false},
  299. {Header:'사업자번호|사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:100, Align:"Center", Format:"SaupNo", Edit:false},
  300. {Header:'업체명|업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:100, Align:"Center", Edit:false},
  301. {Header:'대표자명|대표자명', Type:"Text", SaveName:"REPRE_NO", Width:100, Align:"Center", Edit:false},
  302. {Header:'담당자명|담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:100, Align:"Center", Edit:false},
  303. {Header:'핸드폰|핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:100, Align:"Center", Edit:false},
  304. {Header:'이메일|이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:100, Align:"Center", Edit:false},
  305. {Header:'통화|통화', Type:"Text", SaveName:"CURRENCY_GB", Width:100, Align:"Center", Edit:false},
  306. {Header:'견적금액|견적금액', Type:"Text", SaveName:"ESTI_TOT_AMT", Width:160, Align:"Right", Edit:false, Cursor:"pointer"},
  307. {Header:'선정정보|선정품목수', Type:"Text", SaveName:"SEL_ITEM_QTY", Width:160, Align:"Right", Edit:false, Cursor:"pointer"},
  308. {Header:'선정정보|선정금액', Type:"Text", SaveName:"SEL_ITEM_AMT", Width:160, Align:"Right", Edit:false, Cursor:"pointer"},
  309. {Header:'예상환율|예상환율', Type:"Float", SaveName:"EXCHANGE", Width:100, Align:"Right"},
  310. {Header:'원화금액|원화금액', Type:"Int", SaveName:"WON_ESTI_TOT_AMT", Width:160, Align:"Right", Edit:false, CalcLogic:"|ESTI_TOT_AMT_I|*|EXCHANGE|"},
  311. {Header:'원화금액|원화금액', Type:"Int", SaveName:"WON_SEL_TOT_AMT", Width:160, Align:"Right", Edit:false, CalcLogic:"|SELECT_TOT_AMT_I|*|EXCHANGE|"},
  312. {Header:'구매예산대비\n견적가율(%)|구매예산대비\n견적가율(%)', Type:"Text", SaveName:"ESTI_TOT_RATE", Width:100, Align:"Right", Edit:false},
  313. {Header:'구매예산대비\n견적가율(%)|구매예산대비\n견적가율(%)', Type:"Text", SaveName:"SEL_TOT_RATE", Width:100, Align:"Right", Edit:false},
  314. {Header:'기술검토(TBE)|첨부파일', Type:"Text", SaveName:"FILE_CNT", Width:100, Align:"Center", Edit:false, Hidden:"True"},
  315. {Header:'기술검토(TBE)|TBE여부', Type:"Combo", SaveName:"TBEEVALUATE_YN", Width:100, Align:"Center", ComboText:"<%=BID_CHK_NM%>", ComboCode:"<%=BID_CHK_CD%>", Edit:false, Hidden:"True"},
  316. {Header:'기술검토(TBE)|기술검토(TBE)', Type:"Combo", SaveName:"EVAL_RESULT", Width:100, Align:"Center", ComboText:"<%=TBE_EVAL_NM%>", ComboCode:"<%=TBE_EVAL_CD%>" <%if("Y".equals(Order.get("ONBID_YN"))){%>, Edit:false<%}%>},
  317. {Header:'업체\n선정|업체\n선정', Type:"CheckBox", SaveName:"SUCC_YN_CK", Width:60, Align:"Center"},
  318. {Header:'업체\n선정|업체\n선정', Type:"CheckBox", SaveName:"SUCC_YN_CK2", Width:60, Align:"Center", Edit:false},
  319. {Header:'업체\n선정|업체\n선정', Type:"Text", SaveName:"SUCC_YN", Width:100, Align:"Center", Hidden:"True"},
  320. {Header:'결격\n사유|결격\n사유', Type:"PopupEdit", SaveName:"DISQ_YN", Width:100, Align:"Center", Edit:false , Cursor:"pointer"},
  321. {Header:'DISQ_REASON|DISQ_REASONO', Type:"Text", SaveName:"DISQ_REASON", Width:100, Align:"Center", Hidden:"True"},
  322. {Header:'BID_NO|BID_NO', Type:"Text", SaveName:"BID_NO", Width:100, Align:"Center", Hidden:"True"},
  323. {Header:'BID_DEG|BID_DEG', Type:"Text", SaveName:"BID_DEG", Width:100, Align:"Center", Hidden:"True"},
  324. {Header:'VENDOR_CD|VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:100, Align:"Center", Hidden:"True"},
  325. {Header:'FILE_GB|FILE_GB', Type:"Text", SaveName:"FILE_GB", Width:100, Align:"Center", Hidden:"True"},
  326. {Header:'SITEPARTI_YN|SITEPARTI_YN', Type:"Text", SaveName:"SITEPARTI_YN", Width:100, Align:"Center", Hidden:"True"},
  327. {Header:'BID_RNNC_DT|BID_RNNC_DT', Type:"Text", SaveName:"BID_RNNC_DT", Width:100, Align:"Center", Hidden:"True"},
  328. {Header:'BID_RNNC_ID|BID_RNNC_ID', Type:"Text", SaveName:"BID_RNNC_ID", Width:100, Align:"Center", Hidden:"True"},
  329. {Header:'BID_RNNC_NM|BID_RNNC_NM', Type:"Text", SaveName:"BID_RNNC_NM", Width:100, Align:"Center", Hidden:"True"},
  330. {Header:'RNNC_REASON|RNNC_REASON', Type:"Text", SaveName:"RNNC_REASON", Width:100, Align:"Center", Hidden:"True"},
  331. {Header:'SIGN_DT|SIGN_DT', Type:"Text", SaveName:"SIGN_DT", Width:100, Align:"Center", Hidden:"True"},
  332. {Header:'EVAL_RESULT|EVAL_RESULT', Type:"Text", SaveName:"EVAL_RESULT_NM", Width:100, Align:"Center", Hidden:"True"},
  333. {Header:'ESTI_TOT_AMT_I|ESTI_TOT_AMT_I', Type:"Text", SaveName:"ESTI_TOT_AMT_I", Width:100, Align:"Center", Hidden:"True"},
  334. {Header:'SELECT_TOT_AMT_I|SELECT_TOT_AMT_I', Type:"Text", SaveName:"SELECT_TOT_AMT_I", Width:100, Align:"Center", Hidden:"True"},
  335. {Header:'EVAL_RESULT|EVAL_RESULT', Type:"Text", SaveName:"EVAL_RESULT_NM", Width:100, Align:"Center", Hidden:"True"},
  336. {Header:'CBC_FIRST_RATE|CBC_FIRST_RATE', Type:"Text", SaveName:"CBC_FIRST_RATE", Width:100, Align:"Center", Hidden:"True"},
  337. {Header:'PBC_FIRST_CONDI|PBC_FIRST_CONDI', Type:"Text", SaveName:"PBC_FIRST_CONDI", Width:100, Align:"Center", Hidden:"True"},
  338. {Header:'CPC_MID_RATE|CPC_MID_RATE', Type:"Text", SaveName:"CPC_MID_RATE", Width:100, Align:"Center", Hidden:"True"},
  339. {Header:'PBC_MID_CONDI|PBC_MID_CONDI', Type:"Text", SaveName:"PBC_MID_CONDI", Width:100, Align:"Center", Hidden:"True"},
  340. {Header:'PBC_REST_RATE|PBC_REST_RATE', Type:"Text", SaveName:"PBC_REST_RATE", Width:100, Align:"Center", Hidden:"True"},
  341. {Header:'PBC_REST_CONDI|PBC_REST_CONDI', Type:"Text", SaveName:"PBC_REST_CONDI", Width:100, Align:"Center", Hidden:"True"},
  342. {Header:'파일\n다운|파일\n다운', Type:"Text", SaveName:"FILE_DOWN", Width:100, Align:"Center", Edit:false , Cursor:"pointer"}
  343. ];
  344. }else if(sheetName.id == "sheet2"){
  345. init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly};
  346. init_sheet.Cols = [
  347. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  348. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  349. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  350. {Header:'자재코드|자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:60, Align:"Center"},
  351. {Header:'자재명|자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:220, Align:"Left"},
  352. {Header:'규격|규격', Type:"Text", SaveName:"STD", Width:70, Align:"Left"},
  353. {Header:'단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:30, Align:"Center"},
  354. {Header:'도급|단가', Type:"Int", SaveName:"CONT_UNIT_AMT", Width:50, Align:"Right"},
  355. {Header:'도급|금액', Type:"Int", SaveName:"CONT_AMT", Width:50, Align:"Right", CalcLogic:"|CONT_UNIT_AMT|*|DEMANDED_QTY|"},
  356. {Header:'실행|단가', Type:"Int", SaveName:"ACT_UNIT_AMT", Width:50, Align:"Right"},
  357. {Header:'실행|금액', Type:"Int", SaveName:"ACT_AMT", Width:50, Align:"Right", CalcLogic:"|ACT_UNIT_AMT|*|DEMANDED_QTY|"},
  358. {Header:'견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"DEMANDED_QTY", Width:40, Align:"Right"},
  359. {Header:'투입요청일|투입요청일', Type:"Text", SaveName:"REQUEST_DATE", Width:40, Align:"Center", Format:"####-##-##"}
  360. ];
  361. }else{
  362. init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly,SizeMode:1};
  363. init_sheet.Cols = [
  364. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  365. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  366. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  367. {Header:'계정ID', Type:"Text", SaveName:"ACCT_ID", Width:0, Align:"Center", Hidden:"True"},
  368. {Header:'이름', Type:"Text", SaveName:"USER_NAME", Width:100, Align:"Center", Edit:false},
  369. {Header:'부서명', Type:"Text", SaveName:"BUSEO_NAME", Width:150, Align:"Left", Edit:false},
  370. {Header:'직위명', Type:"Text", SaveName:"GRADE_NAME", Width:100, Align:"Center", Edit:false}
  371. ];
  372. }
  373. init_sheet.HeaderMode = {Sort:1,HeaderCheck:false};
  374. IBS_InitSheet(sheetName, init_sheet);
  375. sheetName.SetDataAutoTrim(0);
  376. sheet2.SetEditable(false);
  377. setGridSize();
  378. }
  379. /**
  380. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  381. */
  382. function sheet1_OnSearchEnd(code, message) {
  383. var fevent = $("#fevent").val();
  384. if(code == 0) {
  385. if("GET_CORP_LIST" == fevent)
  386. doSearchSheetitem();
  387. setGridSize();
  388. var rowcnt = sheet1.RowCount();
  389. if(rowcnt> 0){
  390. for(var r=2; r < rowcnt+2; r++)
  391. {
  392. if(sheet1.GetCellValue(r, "SUCC_YN_CK") == '1'){
  393. succ_vendor = r;
  394. succ_vendor_cnt = succ_vendor_cnt+1;
  395. }
  396. if(sheet1.GetCellValue(r, "SITEPARTI_YN") == 'Y'){
  397. sheet1.SetCellFontColor(r,"ESTI_TOT_AMT", "#0000ff");
  398. }
  399. if(sheet1.GetCellValue(r, "ESTI_TOT_AMT_I") > 0){
  400. sheet1.SetCellFontColor(r,"ESTI_TOT_AMT", "#0000ff");
  401. }
  402. if(sheet1.GetCellValue(r, "ESTI_TOT_RATE") == "")
  403. sheet1.SetCellEditable(r , "SUCC_YN_CK", false);
  404. if(sheet1.GetCellValue(r, "EVAL_RESULT") == "03")
  405. sheet1.SetCellEditable(r , "SUCC_YN_CK", false);
  406. //환율이 KRW 일 경우 환율 수정 불가
  407. if(sheet1.GetCellValue(r, "CURRENCY_GB") == "KRW"){
  408. sheet1.SetCellEditable(r , "EXCHANGE", false);
  409. }
  410. if(sheet1.GetCellValue(r, "RNNC_REASON").length > 0){
  411. sheet1.SetCellEditable(r , "EXCHANGE", false);
  412. }
  413. var status = "<%=Order.get("STATUS_CD")%>";
  414. if(status == "07"){
  415. sheet1.SetRowEditable(r,false);
  416. }
  417. if($("#FOR_PO").val() > 0){
  418. //sheet1.SetRowEditable(r,false);
  419. }
  420. }
  421. }
  422. } else {
  423. //조회 에러 수행
  424. alert(message);
  425. }
  426. }
  427. /**
  428. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  429. */
  430. function sheet2_OnSearchEnd(code, message) {
  431. if(code == 0) {
  432. sheet2.FitColWidth();
  433. } else {
  434. //조회 에러 수행
  435. alert(message);
  436. }
  437. }
  438. /**
  439. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  440. */
  441. function sheet3_OnSearchEnd(code, message) {
  442. if(code == 0) {
  443. //sheet3.FitColWidth();
  444. //견적대상 업체 조회
  445. doSearchSheet();
  446. } else {
  447. //조회 에러 수행
  448. alert(message);
  449. }
  450. }
  451. /**
  452. * IBSheet size setting
  453. */
  454. function setGridSize() {
  455. sheet1.FitColWidth();
  456. sheet2.FitColWidth();
  457. }
  458. function sheet1_OnSaveEnd(code, msg)
  459. {
  460. var event = $("#fevent").val();
  461. if(event == "SAVE_APPR"){
  462. if(code>= "0"){
  463. submitXmlRequest("/bid/purchase/SuccessBid_form.screen", "SAVE_BID_STATUS", document.form1, "SUCCESS");
  464. <%--
  465. var f = document.form1;
  466. var sign_bid_no = $("#BID_NO").val();
  467. var sign_bid_deg = $("#BID_DEG").val();
  468. dlgSignForm('ebid_ppoD', '/bid/purchase/BidSuccessSign.screen?sign_bid_no='+sign_bid_no+'^sign_bid_deg='+sign_bid_deg+'^acct_id='+'<%=user.get("ACCT_ID")%>');
  469. --%>//alert("결재되었습니다.");
  470. //$("#btn_list").click();
  471. }else{
  472. alert("에러가 발생 하였습니다.\n" + msg);
  473. document.form1.isSubmit = false;
  474. }
  475. }else if(event == "SAVE_SHEET"){
  476. if(code>= "0"){
  477. alert("저장되었습니다.");
  478. $("#fevent").val("FORM_SELECT");
  479. $("#form1").attr("action", "/bid/purchase/SuccessBid.screen");
  480. $("#form1").attr("target", "_self");
  481. $("#form1").attr("method", "post");
  482. $("#form1").submit();
  483. }else{
  484. alert("에러가 발생하였습니다.\n"+msg);
  485. document.form1.isSubmit = false;
  486. }
  487. }
  488. }
  489. //첨부파일
  490. function doAttachFile(obj,No) {
  491. var file_div = "bid/purchase/<%=Order.get("BID_NO")%>/";
  492. if(obj==''){
  493. alert("After you have saved, you can attach a file.");
  494. }else{
  495. if(No == 1){
  496. viewFileListNew("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "Y", file_div);
  497. }else{
  498. viewFileListNew("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "Y", file_div);
  499. }
  500. }
  501. }
  502. function doResult(resultObj) {
  503. try {
  504. if( resultObj.getRequestEvent() == "CHK") {
  505. if( resultObj.getSuccess() ) {
  506. document.form1.isSubmit = false;
  507. if(btn_act == "Rebid"){
  508. if (confirm("재입찰 하시겠습니까?")){
  509. $("#fevent").val("FORM_SELECT");
  510. $("#form1").attr("action", "/bid/purchase/Rebid.screen");
  511. $("#form1").attr("target", "_self");
  512. $("#form1").attr("method", "post");
  513. $("#form1").submit();
  514. }
  515. }else if(btn_act == "to_Save"){
  516. if (confirm("저장 하시겠습니까?")){
  517. if($(':checkbox[name="DIV_CONT_YN"]:checked').val() != "Y")$("#DIV_CONT_YN").val("N");
  518. if($("#DELI_FROM_DY").val()>$("#DELI_TO_DY").val()||$("#DELI_FROM_DY").val()==""||$("#DELI_TO_DY").val()==""){
  519. alert("Delivery Period를 확인해주세요.");
  520. $("#DELI_TO_DY").focus();
  521. return;
  522. }
  523. jQuery("#fevent").val("SAVE_SHEET");
  524. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SuccessBid_sheet.screen";
  525. Modular.view.IBSheet7.doSave(sheet1, url, jQuery("#form1"), 30, "");
  526. }
  527. }else if(btn_act == "to_appr"){
  528. if($("#DIV_PO_YN").val() != "Y" && jQuery("input:checkbox[id='DIV_CONT_YN']").is(":checked") != true){
  529. var rowcnt = sheet1.RowCount();
  530. var succ_cnt = 0;
  531. for(var r=0; r < rowcnt; r++)
  532. {
  533. if(sheet1.GetCellValue(r+2, "SUCC_YN_CK") == true){
  534. succ_cnt++;
  535. }
  536. }
  537. if(succ_cnt == 0){
  538. alert("낙찰업체을 선정해주세요.");
  539. return;
  540. }else if(succ_cnt > 1){
  541. alert("낙찰 업체가 2개 이상입니다.");
  542. return;
  543. }
  544. }else{
  545. var rowcnt = sheet1.RowCount();
  546. var succ_cnt = 0;
  547. if(rowcnt> 0){
  548. for(var r=0; r < rowcnt; r++)
  549. {
  550. if(sheet1.GetCellValue(r+2, "SUCC_YN_CK") == true){
  551. succ_cnt++;
  552. }
  553. }
  554. if(succ_cnt ==0){
  555. alert("낙찰업체를 선정해주세요.");
  556. return;
  557. }
  558. }
  559. }
  560. if (confirm("낙찰 하시겠습니까?")){
  561. if($(':checkbox[name="DIV_CONT_YN"]:checked').val() != "Y")$("#DIV_CONT_YN").val("N");
  562. if($("#DELI_FROM_DY").val()>$("#DELI_TO_DY").val()||$("#DELI_FROM_DY").val()==""||$("#DELI_TO_DY").val()==""){
  563. alert("Delivery Period를 확인해주세요.");
  564. $("#DELI_TO_DY").focus();
  565. return;
  566. }
  567. jQuery("#fevent").val("SAVE_APPR");
  568. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SuccessBid_sheet.screen";
  569. Modular.view.IBSheet7.doSave(sheet1, url, jQuery("#form1"), 30, "");
  570. }
  571. /* if (confirm("결재 하시겠습니까?")){
  572. if($(':checkbox[name="DIV_CONT_YN"]:checked').val() != "Y")$("#DIV_CONT_YN").val("N");
  573. if($("#DELI_FROM_DY").val()>$("#DELI_TO_DY").val()||$("#DELI_FROM_DY").val()==""||$("#DELI_TO_DY").val()==""){
  574. alert("Delivery Period를 확인해주세요.");
  575. $("#DELI_TO_DY").focus();
  576. return;
  577. }
  578. jQuery("#fevent").val("SAVE_APPR");
  579. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SuccessBid_sheet.screen";
  580. Modular.view.IBSheet7.doSave(sheet1, url, jQuery("#form1"), 30, "");
  581. } */
  582. }else if(btn_act == "to_defer"){
  583. if (confirm("유찰 하시겠습니까?")){
  584. var win_id = "_CancelBidPop";
  585. var link = "/bid/purchase/CancelBidPop.screen";
  586. link += "?pop_win_id="+win_id;
  587. link += "&BID_NO="+$("#BID_NO").val();
  588. link += "&BID_DEG="+$("#BID_DEG").val();
  589. link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
  590. link += "&ONBID_YN="+$("#ONBID_YN").val();
  591. //window.showModalDialog(link,'Attach Files','dialogWidth:730px;dialogHeight:430px; center:yes; help:no; status:no; scroll:no; resizable:no');
  592. fLayerPop(win_id, link, 600,210, '', '', 'NO');
  593. }
  594. }else if(btn_act == "to_plan"){
  595. if (confirm("수정 하시겠습니까?")){
  596. $("#fevent").val("FORM_SELECT");
  597. $("#form1").attr("action", "/bid/purchase/OfflineBid.screen");
  598. $("#form1").attr("target", "_self");
  599. $("#form1").attr("method", "post");
  600. $("#form1").submit();
  601. }
  602. }
  603. } else {
  604. alert("시행결의중입니다.");
  605. return;
  606. }
  607. }
  608. if( resultObj.getRequestEvent() == "FORM_DELETE") {
  609. if( resultObj.getSuccess() ) {
  610. alert("삭제 되었습니다.");
  611. $("#btn_list").click();
  612. }
  613. else {
  614. dlgErrorMsg(resultObj);
  615. }
  616. }
  617. if( resultObj.getRequestEvent() == "SAVE_BID_STATUS") {
  618. if( resultObj.getSuccess() ) {
  619. alert("낙찰 되었습니다.");
  620. jQuery("#btn_list").click();
  621. }
  622. else {
  623. dlgErrorMsg(resultObj);
  624. }
  625. }
  626. if( resultObj.getRequestEvent() == "CLEAR_SAVE_LIST") {
  627. if( resultObj.getSuccess() ) {
  628. document.form1.isSubmit = false;
  629. alert("초기화 되었습니다.");
  630. sheet1.SetColHidden("SEL_ITEM_QTY",true);
  631. sheet1.SetColHidden("SEL_ITEM_AMT",true);
  632. sheet1.SetColHidden("WON_SEL_TOT_AMT",true);
  633. sheet1.SetColHidden("WON_ESTI_TOT_AMT",false);
  634. sheet1.SetColHidden("ESTI_TOT_RATE",false);
  635. sheet1.SetColHidden("SEL_TOT_RATE",true);
  636. sheet1.SetColHidden("SUCC_YN_CK",false);
  637. sheet1.SetColHidden("SUCC_YN_CK2",true);
  638. sheet1.SetColEditable("SUCC_YN_CK", true);
  639. jQuery("#btn_divCont").hide();
  640. doSearchSheet();
  641. }
  642. else {
  643. dlgErrorMsg(resultObj);
  644. }
  645. }
  646. } catch(errorObject) {
  647. showErrorDlg("doResult()", errorObject);
  648. }
  649. }
  650. function sheet1_OnSmartResize(Width, Height) {
  651. sheet1.FitColWidth();
  652. sheet2.FitColWidth();
  653. autoResize();
  654. }
  655. function autoResize(){
  656. //var t1_height = document.getElementById("t1").scrollHeight + 10;
  657. var iframeHeight= 200;
  658. var iframeWidth= document.body.scrollWidth;
  659. sheet1.SetSheetHeight(160);
  660. sheet2.SetSheetHeight(250);
  661. }
  662. //2015.02.27 mklee 실행대비율 자동계산 추가
  663. function act_rate(){
  664. var cont = $("#CONT_AMT").val();
  665. if(cont == "")
  666. cont = 0;
  667. else
  668. cont = cont.replace(/,/gi,"");
  669. var act = $("#ACT_AMT").val();
  670. if(act == "")
  671. act = 0;
  672. else
  673. act = act.replace(/,/gi,"");
  674. if(cont > 0 && act > 0){
  675. var rate = Number(act)/Number(cont) * 100;
  676. $("#ACT_RATE").val(Math.round(rate *10)/10);
  677. }else{
  678. $("#ACT_RATE").val("0");
  679. }
  680. }
  681. function btnEvent(num){
  682. if(num == '1')
  683. $("#btn_list").click();
  684. if(num == '2')
  685. if(num == '3')
  686. $("#btn_defer").click();
  687. if(num == '4')
  688. $("#btn_cancel").click();
  689. }
  690. /**
  691. * IBSheet Event: Click
  692. */
  693. function sheet1_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  694. var div_po = true;
  695. //단가계약이 Y 인경우 멀티 업체 선정 가능
  696. if($("#DIV_PO_YN").val() == "Y")
  697. div_po = false;
  698. if(Row == 0){
  699. return;
  700. }
  701. var Sn = sheet1.GetCellProperty(Row, Col, "SaveName");
  702. if(Sn == "DISQ_YN"){
  703. if(sheet1.GetRowEditable(Row) == false){
  704. alert("결격사유를 입력 할 수 없습니다.");
  705. return;
  706. }
  707. if(sheet1.GetCellValue(Row,"SUCC_YN_CK") == "1"){
  708. alert("낙찰 선정된 업체 입니다.\n결격사유를 입력 할 수 없습니다.");
  709. return;
  710. }
  711. var win_id = "_DisqPop";
  712. var link = "/bid/purchase/BidDisqlPop.screen";
  713. link += "?pop_win_id="+win_id;
  714. link += "&ROW="+Row;
  715. link += "&DISQ_REASON="+escape(sheet1.GetCellValue(Row,"DISQ_REASON"));
  716. fLayerPop(win_id, link, 600,190, '', '', 'NO');
  717. }
  718. if(Col == 18){
  719. var DISQ = sheet1.GetCellValue(Row, "DISQ_REASON");
  720. if(DISQ.length > 0){
  721. sheet1.SetCellValue(Row, "SUCC_YN_CK", false);
  722. alert("결격사유가 입력된 업체 입니다.\n업체 선정 할 수 없습니다.");
  723. return;
  724. }
  725. var EVAL_RESULT = sheet1.GetCellValue(Row, "EVAL_RESULT");
  726. if(sheet1.GetCellValue(Row, "EVAL_RESULT") == "03"){
  727. sheet1.SetCellValue(Row, "SUCC_YN_CK", false);
  728. alert("기술검토(TBE)가 부적합 입니다.\n업체 선정 할 수 없습니다.");
  729. return;
  730. }
  731. //alert(sheet1.GetCellValue(Row, "SITEPARTI_YN"));
  732. if(jQuery("#ONBID_YN").val() == "Y"){
  733. if(sheet1.GetCellValue(Row, "SITEPARTI_YN") == 'Y'){
  734. if(sheet1.GetCellValue(Row, "ESTI_TOT_AMT") == "0" ||sheet1.GetCellValue(Row, "ESTI_TOT_AMT") == "" || sheet1.GetCellValue(Row, "ESTI_TOT_RATE") == ""){
  735. sheet1.SetCellValue(Row, "SUCC_YN_CK", false);
  736. alert("견적금액이 없는 업체는 업체 선정 할 수 없습니다.");
  737. return;
  738. }
  739. }else{
  740. /* sheet1.SetCellValue(Row, "SUCC_YN_CK", false);
  741. alert("견적금액이 없는 업체는 업체 선정 할 수 없습니다.");
  742. return; */
  743. sheet1.SetCellValue(Row, "SUCC_YN_CK", false, false);
  744. alert("견적설명회 참여하지 않은 업체는 선정 할 수 없습니다.");
  745. return;
  746. }
  747. }else{
  748. if(sheet1.GetCellValue(Row, "ESTI_TOT_AMT") == 0 ||sheet1.GetCellValue(Row, "ESTI_TOT_AMT") == "" || sheet1.GetCellValue(Row, "ESTI_TOT_RATE") == ""){
  749. sheet1.SetCellValue(Row, "SUCC_YN_CK", false, false);
  750. alert("견적금액이 없는 업체는 업체 선정 할 수 없습니다.");
  751. return;
  752. }
  753. }
  754. if(div_po){
  755. if(Value == true){
  756. if(succ_vendor != ""){
  757. if(succ_vendor != Row){
  758. if(sheet1.GetCellValue(Row, "SUCC_YN_CK") == "1"){
  759. alert("업체 선정은 한곳만 하실 수 있습니다.");
  760. sheet1.SetCellValue(Row, "SUCC_YN_CK", false);
  761. return;
  762. }
  763. }
  764. }
  765. succ_vendor = Row;//업체 선택
  766. //선급금 ,중도금 , 잔금 셋팅
  767. $("#CBC_FIRST_RATE").val(sheet1.GetCellValue(Row,"CBC_FIRST_RATE"));
  768. $("#PBC_FIRST_CONDI").val(sheet1.GetCellValue(Row,"PBC_FIRST_CONDI"));
  769. $("#CPC_MID_RATE").val(sheet1.GetCellValue(Row,"CPC_MID_RATE"));
  770. $("#PBC_MID_CONDI").val(sheet1.GetCellValue(Row,"PBC_MID_CONDI"));
  771. $("#PBC_REST_RATE").val(sheet1.GetCellValue(Row,"PBC_REST_RATE"));
  772. $("#PBC_REST_CONDI").val(sheet1.GetCellValue(Row,"PBC_REST_CONDI"));
  773. }else{
  774. if(succ_vendor == Row){//선택 취소
  775. succ_vendor = "";
  776. }
  777. }
  778. }
  779. }
  780. if(Sn == "FILE_DOWN"){
  781. fileDown(sheet1.GetCellValue(Row,"VENDOR_NAME"), sheet1.GetCellValue(Row,"FILE_GB"));
  782. }
  783. }
  784. /**
  785. * 첨부파일 예약 함수
  786. */
  787. function fileDown(file_id, file_gb){
  788. var fileName = "<%=Order.get("DEMANDED_TITLE")%>" + "(" + "<%=Order.get("DEMANDED_NO")%>" + ")_" + file_id;
  789. var url="/common/file/FileDownloadServlet";
  790. url += "?mode=zipDown";
  791. url += "&fileName=" + encodeURIComponent(fileName);
  792. url += "&fileGB=" + file_gb;
  793. url += "&ID=<%=Order.get("DEMANDED_ID")%>";
  794. window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
  795. }
  796. /**
  797. * IBSheet Event: Click
  798. */
  799. function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  800. if(Row == 0)return;
  801. var Sn = sheet1.GetCellProperty(Row, Col, "SaveName");
  802. if(Sn == "ESTI_TOT_AMT"){
  803. if(Value != ""){
  804. if(sheet1.GetCellValue(Row,"SITEPARTI_YN") == "Y" && sheet1.GetCellValue(Row, "SIGN_DT").length > 3){
  805. if(sheet1.GetCellValue(Row,"BID_RNNC_DT") == ""){
  806. $("#fevent").val("VENDOR_INFO_SELECT");
  807. var win_id = "_BidAmtPop";
  808. var link = "/bid/purchase/BidAmtPop.screen";
  809. link += "?pop_win_id="+win_id;
  810. link += "&ROW="+Row;
  811. link += "&VENDOR_CD="+sheet1.GetCellValue(Row,"VENDOR_CD");
  812. link += "&BID_NO="+sheet1.GetCellValue(Row,"BID_NO");
  813. link += "&BID_DEG="+sheet1.GetCellValue(Row,"BID_DEG");
  814. link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
  815. link += "&VENDOR_NO="+sheet1.GetCellValue(Row,"VENDOR_NO");
  816. link += "&VENDOR_NAME="+sheet1.GetCellValue(Row,"VENDOR_NAME");
  817. link += "&ESTI_TOT_AMT="+sheet1.GetCellValue(Row,"ESTI_TOT_AMT");
  818. link += "&DIV_PO_YN="+$("#DIV_PO_YN").val();
  819. link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
  820. link += "&sModule=LM";
  821. //fLayerPop(win_id, link, 1200,690, '', '', 'NO');
  822. 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");
  823. }
  824. }else if(sheet1.GetCellValue(Row,"SITEPARTI_YN") == "Y" && sheet1.GetCellValue(Row,"BID_RNNC_DT") != ""){
  825. var win_id = "_BidGiveupPop";
  826. var link = "/bid/purchase/BidGiveupPop.screen";
  827. link += "?pop_win_id="+win_id;
  828. link += "&VENDOR_CD="+$("#VENDOR_CD").val();
  829. link += "&BID_NO="+$("#BID_NO").val();
  830. link += "&BID_DEG="+$("#BID_DEG").val();
  831. link += "&ROW="+Row;
  832. fLayerPop(win_id, link, 600,190, '', '', 'NO');
  833. }else if($("#ONBID_YN").val() == "N"){
  834. if(!confirm("견적서 작성 페이지로 이동 하시겠습니까?"))return;
  835. $("#fevent").val("");
  836. $("#VENDOR_CD").val(sheet1.GetCellValue(Row,"VENDOR_CD"));
  837. $("#form1").attr("action", "/bid/purchase/BidOfflineAmt.screen");
  838. $("#form1").attr("target", "_self");
  839. $("#form1").attr("method", "post");
  840. $("#form1").submit();
  841. }
  842. }
  843. }
  844. if(Sn == "DISQ_YN"){
  845. if(sheet1.GetCellValue(Row,"SUCC_YN_CK") == "1"){
  846. alert("낙찰 선정된 업체 입니다.\n결격사유를 입력 할 수 없습니다.");
  847. return;
  848. }
  849. var win_id = "_DisqPop";
  850. var link = "/bid/purchase/BidDisqlPop.screen";
  851. link += "?pop_win_id="+win_id;
  852. link += "&ROW="+Row;
  853. link += "&DISQ_REASON="+escape(sheet1.GetCellValue(Row,"DISQ_REASON"));
  854. fLayerPop(win_id, link, 600,190, '', '', 'NO');
  855. }
  856. }
  857. function sheet1_OnChange(Row, Col, Value) {
  858. var Sn = sheet1.GetCellProperty(Row, Col, "SaveName");
  859. if(Sn == "EXCHANGE"){
  860. //합계 행에 값이 바뀌었을 때, 같은 행의 다른셀에 계산 정보 표시
  861. /* var totAmt = sheet1.GetCellValue(Row,"ESTI_TOT_AMT_I");
  862. var exchange = sheet1.GetCellValue(Row,"EXCHANGE");
  863. var won_esti_tot_amt = Number(exchange * totAmt);
  864. sheet1.SetCellValue(Row,"WON_ESTI_TOT_AMT", won_esti_tot_amt); */
  865. }
  866. }
  867. function DisqReasonClose(returnValue){
  868. if(returnValue != null){
  869. if(returnValue[1].length > 0){
  870. sheet1.SetCellValue(returnValue[0],"DISQ_REASON",returnValue[1]);
  871. sheet1.SetCellValue(returnValue[0],"DISQ_YN","[수정]");
  872. sheet1.SetCellEditable(returnValue[0], "SUCC_YN", false);
  873. }else{
  874. sheet1.SetCellValue(returnValue[0],"DISQ_REASON","");
  875. sheet1.SetCellValue(returnValue[0],"DISQ_YN","[등록]");
  876. sheet1.SetCellEditable(returnValue[0], "SUCC_YN", true);
  877. }
  878. }
  879. setTimeout(function(){fLayerPopClose("_DisqPop");},100);
  880. }
  881. function doSignFile(doc_id){
  882. //alert(doc_id);
  883. if(doc_id == ""){
  884. alert("결재 정보가 없습니다.");
  885. return;
  886. }
  887. var doc_chk = doc_id.substring(doc_id.length-3, doc_id.length);
  888. doc_chk = doc_chk * 1;
  889. var link = "";
  890. var year = "<%=sign_info.get("year") %>";
  891. if (year > "20151213") {
  892. link = "<%=gwurl%>upload_approval/TEC/doc/" + year.substr(0,4) + "/" + doc_chk + "/"+ doc_id+".mht";
  893. }
  894. else{
  895. link = "<%=gwurl%>upload_approval/TEC/doc/" + doc_chk + "/"+ doc_id+".mht";
  896. }
  897. //var popOption = "width=400, height=450, resizable=no, scrollbars=auto, status=no;"; //팝업창 옵션(optoin)
  898. window.open(link,"_viewDraft","");
  899. }
  900. function divContYnCheck(){
  901. var status = "<%=Order.get("STATUS_CD")%>";
  902. if(jQuery("input:checkbox[id='DIV_CONT_YN']").is(":checked") == true){
  903. sheet1.SetColHidden("SEL_ITEM_QTY",false);
  904. sheet1.SetColHidden("SEL_ITEM_AMT",false);
  905. sheet1.SetColHidden("WON_SEL_TOT_AMT",false);
  906. sheet1.SetColHidden("WON_ESTI_TOT_AMT",true);
  907. sheet1.SetColHidden("ESTI_TOT_RATE",true);
  908. sheet1.SetColHidden("SEL_TOT_RATE",false);
  909. sheet1.SetColHidden("SUCC_YN_CK",true);
  910. sheet1.SetColHidden("SUCC_YN_CK2",false);
  911. sheet1.SetColEditable("SUCC_YN_CK", false);
  912. if(status == "07"){
  913. jQuery("#btn_divCont").hide();
  914. }else{
  915. jQuery("#btn_divCont").show();
  916. }
  917. }else{
  918. sheet1.SetColHidden("SEL_ITEM_QTY",true);
  919. sheet1.SetColHidden("SEL_ITEM_AMT",true);
  920. sheet1.SetColHidden("WON_SEL_TOT_AMT",true);
  921. sheet1.SetColHidden("WON_ESTI_TOT_AMT",false);
  922. sheet1.SetColHidden("ESTI_TOT_RATE",false);
  923. sheet1.SetColHidden("SEL_TOT_RATE",true);
  924. sheet1.SetColHidden("SUCC_YN_CK",false);
  925. sheet1.SetColHidden("SUCC_YN_CK2",true);
  926. sheet1.SetColEditable("SUCC_YN_CK", true);
  927. jQuery("#btn_divCont").hide();
  928. }
  929. sheet1.FitColWidth();
  930. }
  931. function doClearDiv(){
  932. if(!jQuery("input:checkbox[id='DIV_CONT_YN']").is(":checked") == true){
  933. if(confirm("분할낙찰한 내역이 초기화 됩니다.\n 초기화 하시겠습니까?")){
  934. var f = document.form1;
  935. submitXmlRequest("/bid/purchase/SuccessBid_form.screen", "CLEAR_SAVE_LIST", f, "SUCCESS");
  936. }else{
  937. $("input:checkbox[id='DIV_CONT_YN']").prop("checked", true);
  938. }
  939. sheet1.FitColWidth();
  940. }else{
  941. sheet1.SetColHidden("SEL_ITEM_QTY",false);
  942. sheet1.SetColHidden("SEL_ITEM_AMT",false);
  943. sheet1.SetColHidden("WON_SEL_TOT_AMT",false);
  944. sheet1.SetColHidden("WON_ESTI_TOT_AMT",true);
  945. sheet1.SetColHidden("ESTI_TOT_RATE",true);
  946. sheet1.SetColHidden("SEL_TOT_RATE",false);
  947. sheet1.SetColHidden("SUCC_YN_CK",true);
  948. sheet1.SetColHidden("SUCC_YN_CK2",false);
  949. sheet1.SetColEditable("SUCC_YN_CK", false);
  950. if(status == "07"){
  951. jQuery("#btn_divCont").hide();
  952. }else{
  953. jQuery("#btn_divCont").show();
  954. }
  955. }
  956. sheet1.FitColWidth();
  957. }
  958. function fLayerPopClose(layerID)
  959. {
  960. var oNode = document.getElementById(layerID);
  961. if(oNode != null)
  962. {
  963. $('#'+layerID+ '_divcontent').empty();
  964. $('#'+layerID).bPopup().close();
  965. document.body.removeChild(oNode);
  966. }
  967. if(layerID == '_DivContPop'){
  968. doSearchSheet();
  969. }
  970. }
  971. </SCRIPT>
  972. <modular:search id="form1">
  973. <modular:key id="fevent" />
  974. </modular:search>
  975. <form id="form1" name="form1" method="post" modular:type="search">
  976. <INPUT type='hidden' name="fevent" id="fevent" value="">
  977. <!-- List Search -->
  978. <INPUT type="hidden" name="P_BID_MASTER_NM" id="P_BID_MASTER_NM" value="<%= params.get("P_BID_MASTER_NM") %>">
  979. <INPUT type="hidden" name="p_dept_nm" id="p_dept_nm" value="<%= params.get("p_dept_nm") %>">
  980. <INPUT type="hidden" name="p_dept_cd" id="p_dept_cd" value="<%= params.get("p_dept_cd") %>">
  981. <INPUT type="hidden" name="p_demanded_status" id="p_demanded_status" value="<%= params.get("p_demanded_status") %>">
  982. <!-- List Search -->
  983. <INPUT type='hidden' name="VENDOR_CD" value="">
  984. <INPUT type='hidden' name="signClass" value="ebid_ppoD">
  985. <INPUT type='hidden' name="PBC_CBE_TYPE_CD" value="<%=Order.get("PBC_CBE_TYPE_CD")%>">
  986. <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
  987. <INPUT type='hidden' name="BID_NO" value="<%=Order.get("BID_NO")%>">
  988. <INPUT type='hidden' name="BID_DEG" value="<%=Order.get("BID_DEG")%>">
  989. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  990. <INPUT type='hidden' name="DIV_PO_YN" value="<%=Order.get("DIV_PO_YN")%>">
  991. <INPUT type='hidden' name="ONBID_YN" value="<%=Order.get("ONBID_YN")%>">
  992. <INPUT type='hidden' name="ONBID_YN_NM" value="<%=Order.get("ONBID_YN_NM")%>">
  993. <INPUT type='hidden' name="DELIVERY_CONDITION_YN" value="<%=Order.get("DELIVERY_CONDITION_YN")%>">
  994. <INPUT type='hidden' name="PBC_LANDTRAN_YN" value="<%=Order.get("PBC_LANDTRAN_YN")%>">
  995. <INPUT type='hidden' name="PBC_PACK_YN" value="<%=Order.get("PBC_PACK_YN")%>">
  996. <INPUT type='hidden' name="PBC_DOC_YN" value="<%=Order.get("PBC_DOC_YN")%>">
  997. <INPUT type='hidden' name="PBC_TEST_YN" value="<%=Order.get("PBC_TEST_YN")%>">
  998. <INPUT type='hidden' name="PBC_SPETOOL_YN" value="<%=Order.get("PBC_SPETOOL_YN")%>">
  999. <INPUT type='hidden' name="PBC_COMMISS_YN" value="<%=Order.get("PBC_COMMISS_YN")%>">
  1000. <INPUT type='hidden' name="PBC_INSTALL_YN" value="<%=Order.get("PBC_INSTALL_YN")%>">
  1001. <INPUT type='hidden' name="CURRENCY_GB_YN" value="<%=Order.get("CURRENCY_GB_YN")%>">
  1002. <INPUT type='hidden' name="PBC_FEE_YN" value="<%=Order.get("PBC_FEE_YN")%>">
  1003. <INPUT type='hidden' name="PBC_OPTION_YN" value="<%=Order.get("PBC_OPTION_YN")%>">
  1004. <INPUT type='hidden' name="CONTFUL_RATE" value="<%=Order.get("CONTFUL_RATE")%>">
  1005. <INPUT type='hidden' name="CURRENCY_GB" value="<%=Order.get("CURRENCY_GB")%>">
  1006. <INPUT type='hidden' name="PBC_OPTION_COMMENT" value="<%=Order.get("PBC_OPTION_COMMENT")%>">
  1007. <INPUT type='hidden' name="CBC_DAMAGE_RATE" value="<%=Order.get("CBC_DAMAGE_RATE")%>">
  1008. <INPUT type='hidden' name="CBC_DAMAGE_MAXRATE" value="<%=Order.get("CBC_DAMAGE_MAXRATE")%>">
  1009. <INPUT type='hidden' name="PBC_FRSTGUAR_RATE" value="<%=Order.get("PBC_FRSTGUAR_RATE")%>">
  1010. <INPUT type='hidden' name="WARR_RATE" value="<%=Order.get("WARR_RATE")%>">
  1011. <INPUT type='hidden' name="PBC_DEFECT_CONDI" value="<%=Order.get("PBC_DEFECT_CONDI")%>">
  1012. <INPUT type='hidden' name="CBC_DEFECT_DAY" value="<%=Order.get("CBC_DEFECT_DAY")%>">
  1013. <INPUT type='hidden' name="CBC_DERECT_TERM_NM" value="<%=Order.get("CBC_DERECT_TERM_NM")%>">
  1014. <INPUT type='hidden' name="CBC_DERECT_TERM_CD" value="<%=Order.get("CBC_DERECT_TERM_CD")%>">
  1015. <INPUT type='hidden' name="KRW_APPR_YN" value="<%=Order.get("KRW_APPR_YN")%>">
  1016. <INPUT type='hidden' name="FOR_PO" value="<%=Order.get("FOR_PO")%>">
  1017. <INPUT type='hidden' name="SITEPARTI_YN" value="Y">
  1018. <INPUT type='hidden' name="OLD_PAY_DIV" value="<%=Order.get("PAY_DIV")%>">
  1019. <INPUT type='hidden' name="TBE_FLAG" value="<%=Order.get("TBE_FLAG")%>">
  1020. <table width="100%">
  1021. <colgroup>
  1022. <col width="*" />
  1023. <col width="320" />
  1024. </colgroup>
  1025. <tr>
  1026. <th>
  1027. <div align="left" id="title">
  1028. <ul><li>구매_낙찰업체선정 상세<font style="font-size:11px"> (<%=Order.get("STATUS_NM")%>)</font></li></ul>
  1029. </div>
  1030. </th>
  1031. <td align="right">
  1032. <%if("N".equals(Order.get("ONBID_YN"))){ %><span class="btnSearch center" id="btn_plan"><a href="javascript:void(0);">수정</a></span><%}%>
  1033. <span class="btnSearch center" id="btn_save"><a href="javascript:void(0);">저장</a></span>
  1034. <span class="btnSearch center" id="btn_bid"><a href="javascript:void(0);">낙찰</a></span>
  1035. <!-- <span class="btnSearch center" id="btn_appr"><a href="javascript:void(0);">결재</a></span> -->
  1036. <span class="btnSearch center" id="btn_defer"><a href="javascript:void(0);">유찰</a></span>
  1037. <span class="btnSearch center" id="btn_rebid"><a href="javascript:void(0);">재입찰</a></span>
  1038. <span class="btnSearch center" id="btn_list"><a href="javascript:void(0);">목록</a></span>
  1039. </td>
  1040. </tr>
  1041. </table>
  1042. <%if(Order.getInt("FOR_PO") > 0){ %>
  1043. <TABLE class="form-table" style="margin-bottom: 5px">
  1044. <colgroup>
  1045. <col width="160">
  1046. <col/>
  1047. </colgroup>
  1048. <TR height="25">
  1049. <TD colspan="2"><font color="red">발주의뢰 수량이 변경되어 재입찰이 필요합니다.</font></TD>
  1050. </TR>
  1051. </TABLE>
  1052. <%}%>
  1053. <%if(o_reason || p_reason || m_reason || c_reason ){ %>
  1054. <TABLE class="form-table">
  1055. <colgroup>
  1056. <col width="160">
  1057. <col/>
  1058. </colgroup>
  1059. <%if(o_reason){ %>
  1060. <TR height="25">
  1061. <TH>개찰 특기사항</TH>
  1062. <TD><%=StringUtils.cvtHTML(Order.get("OPEN_OPINION"))%></TD>
  1063. </TR>
  1064. <%} %>
  1065. <%if(c_reason){ %>
  1066. <TR height="25">
  1067. <TH>취소사유</TH>
  1068. <TD><%=StringUtils.cvtHTML(Order.get("CANCEL_REASON"))%></TD>
  1069. </TR>
  1070. <%} %>
  1071. <%if(p_reason){ %>
  1072. <TR height="25">
  1073. <TH>연기사유</TH>
  1074. <TD><%=StringUtils.cvtHTML(Order.get("POSTPONE_REASON"))%></TD>
  1075. </TR>
  1076. <%} %>
  1077. <%if(m_reason){ %>
  1078. <TR height="25">
  1079. <TH>정정사유</TH>
  1080. <TD><%=StringUtils.cvtHTML(Order.get("MODIFY_REASON"))%></TD>
  1081. </TR>
  1082. <%} %>
  1083. </TABLE>
  1084. <%}%>
  1085. <%if(!Order.get("REBID_REASON").equals("") || !Order.get("REBID_OUTREASON").equals("")){%>
  1086. <div class="application-info magT10">
  1087. <div class="application-sub-title">
  1088. <span class="title">재입찰사유</span>
  1089. </div>
  1090. <div class="application-location">
  1091. </div>
  1092. </div>
  1093. <TABLE class="form-table">
  1094. <colgroup>
  1095. <col width="150"/>
  1096. <col width="40%" />
  1097. <col width="150" />
  1098. <col width="*" />
  1099. </colgroup>
  1100. <TR height="25">
  1101. <TH>재입찰사유<br>(내부보고)</TH>
  1102. <TD><%=StringUtils.cvtHTML(Order.get("REBID_REASON"))%></TD>
  1103. <TH>재입찰사유<br>(외부공지)
  1104. </TH>
  1105. <TD><%=StringUtils.cvtHTML(Order.get("REBID_OUTREASON"))%></TD>
  1106. </TR>
  1107. </TABLE>
  1108. <%} %>
  1109. <div class="application-info magT10">
  1110. <div class="application-sub-title">
  1111. <span class="title">발주의뢰정보</span>
  1112. </div>
  1113. </div>
  1114. <!-- 발주의뢰정보 : 시작 -->
  1115. <TABLE class="form-table">
  1116. <colgroup>
  1117. <col width="160"/>
  1118. <col width="23%">
  1119. <col width="160"/>
  1120. <col width="23%">
  1121. <col width="160"/>
  1122. <col/>
  1123. </colgroup>
  1124. <TR height="25">
  1125. <TH> 현장</TH>
  1126. <TD><%=Order.get("dept_nm") %></TD>
  1127. <TH> 발주의뢰번호</TH>
  1128. <TD><a href="javascript:doSignFile('<%=sign_info.get("doc_id") %>');"><%=Order.get("DEMANDED_NO")%></a>
  1129. </TD>
  1130. <TH> 발주의뢰명</TH>
  1131. <TD><%=Order.get("DEMANDED_TITLE")%></TD>
  1132. </TR>
  1133. <TR height="25">
  1134. <TH> 발주의뢰일</TH>
  1135. <TD><%= Order.get("DEMANDED_DATE")%></TD>
  1136. <TH> 발주의뢰부서</TH>
  1137. <TD><%= Order.get("REQ_DEPT_NM")%></TD>
  1138. <TH> 발주의뢰자</TH>
  1139. <TD><%= Order.get("EMP_NM")%></TD>
  1140. </TR>
  1141. <TR height="25">
  1142. <TH> 발주접수일자</TH>
  1143. <TD><%=Order.get("RECEIPT_DATE") %></TD>
  1144. <TH> Pay Item</TH>
  1145. <TD><%= Order.get("PAY_ITEM_NM") %></TD>
  1146. <TH> 구매예산 (원)</TH> <!-- 2015.02.27 구매예산추가 mklee -->
  1147. <TD><%= InputText.get("PUR_AMT", Formatter2.currency(Order.get("PUR_AMT"),0), 13, 300, "desc=구매예산,Number,right,readOnly=white","Number") %></TD>
  1148. </TR>
  1149. <TR height="25">
  1150. <TH> 도급금액 (원)</TH>
  1151. <TD><%= InputText.get("CONT_AMT", Formatter2.currency(Order.get("CONT_AMT"),0), 13, 300, "desc=실행예산,Number,right","Number") %></TD>
  1152. <TH> 실행예산 (원)</TH>
  1153. <TD><%= InputText.get("ACT_AMT", Formatter2.currency(Order.get("ACT_AMT"),0), 13, 300, "desc=실행예산,Number,right","Number") %></TD>
  1154. <TH> 도급대비실행율(%)</TH>
  1155. <TD><%= InputText.get("ACT_RATE", Order.get("ACT_RATE"), 40, 300, "class=input_blank,desc=실행금액,left,readOnly=white") %></TD>
  1156. </TR>
  1157. <TR height="25">
  1158. <TH> 지급구분</TH>
  1159. <TD colspan="5">
  1160. <select name="pay_div" id="pay_div" style="width: 15%;">
  1161. <option value="1">납품정산</option>
  1162. <option value="2">계획분할</option>
  1163. </select>
  1164. </TD>
  1165. </TR>
  1166. <!-- 발주의뢰정보 : 종료 -->
  1167. </table>
  1168. <div class="application-info magT15">
  1169. <div class="application-sub-title">
  1170. <span class="title">입찰기본정보</span>
  1171. </div>
  1172. </div>
  1173. <TABLE class="form-table">
  1174. <colgroup>
  1175. <col width="160"/>
  1176. <col width="160"/>
  1177. <col width="25%"/>
  1178. <col width="160"/>
  1179. <col/>
  1180. </colgroup>
  1181. <TR height="25">
  1182. <TH> 입찰번호-차수</TH>
  1183. <TD colspan="2">
  1184. <%=Order.get("BID_NO")%>-<%=Order.get("BID_DEG")%>
  1185. </TD>
  1186. <TH> 온라인입찰여부</TH>
  1187. <TD>
  1188. <%=Order.get("ONBID_YN_NM")%>
  1189. </TD>
  1190. </TR>
  1191. <TR height="25">
  1192. <TH> 입찰명</TH>
  1193. <TD colspan="2">
  1194. <%=Order.get("BID_MASTER_NM")%>
  1195. </TD>
  1196. <TH>단가계약여부</TH>
  1197. <TD colspan="2"><%=Order.get("DIV_PO_YN").equals("Y") ? "예" : "아니오" %></TD>
  1198. </TR>
  1199. <TR height="25">
  1200. <TH> 경쟁방법</TH>
  1201. <TD colspan="2">
  1202. <%=Order.get("CMPT_NM")%>
  1203. </TD>
  1204. <TH> 낙찰자선정방법</TH>
  1205. <TD>
  1206. <%=Order.get("SUCC_NM") %>
  1207. </TD>
  1208. </TR>
  1209. <!-- 발주의뢰정보 : 종료 -->
  1210. </table>
  1211. <div class="application-info magT15">
  1212. <div class="application-sub-title">
  1213. <span class="title">입찰진행</span>
  1214. </div>
  1215. </div>
  1216. <TABLE class="form-table">
  1217. <colgroup>
  1218. <col width="160"/>
  1219. <col width="160"/>
  1220. <col width="25%"/>
  1221. <col width="160"/>
  1222. <col/>
  1223. </colgroup>
  1224. <TR height="25">
  1225. <TH>업체공지일자</TH>
  1226. <TD colspan="4"><%=Order.get("NOTI_DY") %></TD>
  1227. </TR>
  1228. <TR height="25">
  1229. <TH rowspan="3"> 견적설명회 정보</TH>
  1230. <TH> 여부</TH>
  1231. <TD><%=Order.get("SITEDESC_FLAG")%></TD>
  1232. <TH> 담당자</TH>
  1233. <TD><%=Order.get("SITEDESCCHRGPRSNNM")%></TD>
  1234. </TR>
  1235. <TR height="25">
  1236. <TH> 담당자 전화번호</TH>
  1237. <TD ><%=Order.get("SITEDESCTELNO")%></TD>
  1238. <TH> 일시</TH>
  1239. <TD ><%=Order.get("SITEDESCDATE")%></TD>
  1240. </TR>
  1241. <TR height="25">
  1242. <TH> 담당자 E-Mail</TH>
  1243. <TD ><%=Order.get("SITEDESCEMAIL")%></TD>
  1244. <TH> 장소</TH>
  1245. <TD ><%=Order.get("SITEDESCPLACE")%></TD>
  1246. </TR>
  1247. <TR height="25">
  1248. <TH rowspan="4"> 견적 의뢰</TH>
  1249. <TH> 견적제출기간</TH>
  1250. <TD colspan="3"><%=Order.get("BID_FROM_DT")%> ~<%=Order.get("BID_TO_DT")%></TD>
  1251. </TR>
  1252. <TR height="25">
  1253. <TH> 구매담당자</TH>
  1254. <TD ><%=Order.get("PUREMPNM")%></TD>
  1255. <TH> 구매담당자 전화번호</TH>
  1256. <TD ><%=Order.get("PO_EMPNM")%></TD>
  1257. </TR>
  1258. <TR height="25">
  1259. <TH> 개찰자</TH>
  1260. <TD colspan="3"><%=Order.get("OPEN_EMPNM")%></TD>
  1261. </TR>
  1262. <TR height="25">
  1263. <TH> 보고자</TH>
  1264. <TD colspan="3">
  1265. <div id="sheet3_div" style="width: 100%; height: 100%;">
  1266. <script>createIBSheet('sheet3','100%', '100px');</script>
  1267. </div>
  1268. </TD>
  1269. </TR>
  1270. <TR height="25">
  1271. <TH rowspan="2">기술검토(TBE)</TD>
  1272. <TH> TBE 여부</TH>
  1273. <TD ><%=Order.get("TBE_FLAG").equals("Y") ? "예" : "아니오"%></TD>
  1274. <TH> TBE 일자</TH>
  1275. <TD><%=Order.get("SUPP_REQ_DY")%></TD>
  1276. </TR>
  1277. <TR height="25">
  1278. <TH> TBE 심사자</TH>
  1279. <TD><%=Order.get("EVAL_EMPNM")%></TD>
  1280. <TH> TBE 완료일</TH>
  1281. <TD ><%=Order.get("TBE_FIN_DT")%></TD>
  1282. </TR>
  1283. <!-- 발주의뢰정보 : 종료 -->
  1284. </table>
  1285. <div class="application-info magT15">
  1286. <div class="application-sub-title">
  1287. <span class="title">입찰조건</span>
  1288. </div>
  1289. </div>
  1290. <TABLE class="form-table">
  1291. <colgroup>
  1292. <col width="160"/>
  1293. <col width="23%">
  1294. <col width="160"/>
  1295. <col width="23%">
  1296. <col width="160"/>
  1297. <col/>
  1298. </colgroup>
  1299. <TR height="25">
  1300. <TH>통화구분</TH>
  1301. <TD><%=Order.get("CURRENCY_GB_NM") %> &nbsp&nbsp
  1302. <%=Order.get("CURRENCY_GB_YN").equals("Y") ? "[업체변경가능]" : "[업체변경불가능]" %>
  1303. </TD>
  1304. <TH>CBE문서 TYPE</TH>
  1305. <TD colspan="3">
  1306. <%if(!Order.get("PBC_CBE_TYPE_CD").isEmpty()){ %><%=Order.get("PBC_CBE_TYPE_CD").equals("A") ? "A type" : Order.get("PBC_CBE_TYPE_CD").equals("B") ? "B type":"C type(최종입찰업체만 표시)" %><%} %>
  1307. </TD>
  1308. </TR>
  1309. <TR height="25">
  1310. <TH>Installation</TH><!-- 설치비 포함여부 -->
  1311. <TD><%=Order.get("PBC_INSTALL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1312. <TH>Spare Parts for Commissionig</TH><!-- 시운전 포함여부 -->
  1313. <TD><%=Order.get("PBC_COMMISS_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1314. <TH>Special Tool</TH><!-- 설치비 특별공구 포함여부 -->
  1315. <TD><%=Order.get("PBC_SPETOOL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1316. </TR>
  1317. <TR height="25">
  1318. <TH>Test & Inspection at Fabrication shop</TH><!-- 샾(공장) 검사비용 포함여부 -->
  1319. <TD><%=Order.get("PBC_TEST_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1320. <TH>Documentation</TH><!-- vendor print (무조건 포함) 삭제? -->
  1321. <TD><%=Order.get("PBC_DOC_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1322. <TH>Packing cost</TH><!-- 포장비용 포함여부 -->
  1323. <TD><%=Order.get("PBC_PACK_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1324. </TR>
  1325. <TR height="25">
  1326. <TH>Inland Transportaion</TH><!-- 내륙운송비 -->
  1327. <TD><%=Order.get("PBC_LANDTRAN_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  1328. <TH>Delivery Condition</TH><!-- 인도조건 (현장도착도, 현장상차도,현장설치도, 설치시운전도) -->
  1329. <TD colspan="3">
  1330. <%=Order.get("DELIVERY_CONDITION_NM") %>&nbsp&nbsp <%=Order.get("DELIVERY_CONDITION_YN").equals("Y") ? "[업체변경가능]" : "[업체 변경 불가능]" %></TD>
  1331. </TR>
  1332. <TR height="25">
  1333. <TH>OPTIONAL PRICE</TH><!-- 현장감독관 일당 & 기타일당 내역 -->
  1334. <TD colspan="5">A. Supervision fee &nbsp <%=Order.get("PBC_FEE_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %>
  1335. <% if(!Order.get("PBC_OPTION_COMMENT").isEmpty()){ %>&nbsp&nbsp B. <%= Order.get("PBC_OPTION_COMMENT")%> &nbsp<%=Order.get("PBC_OPTION_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %><%} %></TD>
  1336. </TR>
  1337. <TR height="25">
  1338. <TH>Liquidated Damages</TH><!-- 지체상금 fix -->
  1339. <TD colspan="5"><%= Order.get("CBC_DAMAGE_RATE")%>% <%=Order.get("CBC_DAMAGE_NM") %>, Max <%= Order.get("CBC_DAMAGE_MAXRATE")%>%</TD>
  1340. </TR>
  1341. <TR height="25">
  1342. <TH>선급금</TH>
  1343. <TD><%= InputText.get("CBC_FIRST_RATE", Order.get("CBC_FIRST_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_FIRST_CONDI", Order.get("PBC_FIRST_CONDI"), 20, 50, "") %></TD>
  1344. <TH>중도금</TH>
  1345. <TD><%= InputText.get("CPC_MID_RATE", Order.get("CPC_MID_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_MID_CONDI", Order.get("PBC_MID_CONDI"), 20, 50, "") %></TD>
  1346. <TH>잔금</TH>
  1347. <TD><%= InputText.get("PBC_REST_RATE", Order.get("PBC_REST_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_REST_CONDI", Order.get("PBC_REST_CONDI"), 20, 50, "") %></TD>
  1348. <%-- <TH>선급금</TH>
  1349. <TD><% if(!Order.get("CBC_FIRST_RATE").isEmpty()){ %><%=Order.get("CBC_FIRST_RATE") %>% <%} %><%= Order.get("PBC_FIRST_CONDI")%></TD>
  1350. <TH>중도금</TH>
  1351. <TD><% if(!Order.get("CPC_MID_RATE").isEmpty()){ %><%= Order.get("CPC_MID_RATE")%>% <%} %><%=Order.get("PBC_MID_CONDI")%></TD>
  1352. <TH>잔금</TH>
  1353. <TD><% if(!Order.get("PBC_REST_RATE").isEmpty()){ %><%= Order.get("PBC_REST_RATE") %>% <%} %><%=Order.get("PBC_REST_CONDI")%></TD> --%>
  1354. </TR>
  1355. <TR height="25">
  1356. <TH>First Payment Bond</TH><!-- 선급금이행증권(yes, no) -->
  1357. <TD><%= Order.get("PBC_FRSTGUAR_RATE") %>% <%= Order.get("PBC_FRSTGUAR_CONDI")%></TD>
  1358. <TH>Performance Bond</TH><!-- 계약이행증권(yes, no) -->
  1359. <TD><%= Order.get("CONTFUL_RATE") %>% <%=Order.get("CONTFUL_CONDI") %></TD>
  1360. <TH>Guarantee Bond</TH><!-- 하자이행증권(yes, no) -->
  1361. <TD><%= Order.get("WARR_RATE") %>% <%= Order.get("WARR_CONDI")%></TD>
  1362. </TR>
  1363. <TR height="25">
  1364. <TH>Guarantee Period</TH><!-- 하자보수기간 -->
  1365. <TD colspan="3"><%=Order.get("PBC_DEFECT_CONDI") %> <%=Order.get("CBC_DEFECT_DAY") %>
  1366. <% if(!Order.get("CBC_DERECT_TERM_NM").isEmpty()){ %><%=Order.get("CBC_DERECT_TERM_NM") %>간<%} %>
  1367. <input type="checkbox" id="addGuar" style="margin-top:2px; display:none;">
  1368. <span class="checkAdd" style="display:none;">&nbsp;or&nbsp;
  1369. <%=Order.get("PBC_DEFECT_CONDI2") %> <%=Order.get("CBC_DEFECT_DAY2")%>
  1370. <%if(Order.get("CBC_DERECT_TERM_CD2").equals("01")){%>
  1371. <span>일 간 중 선도래일</span>
  1372. <%}else if(Order.get("CBC_DERECT_TERM_CD2").equals("02")){%>
  1373. <span>개월 간 중 선도래일</span>
  1374. <%} %>
  1375. </span>
  1376. </TD>
  1377. <TH>Delivery Period</TH><!-- 납기일 fix -->
  1378. <TD>
  1379. <%= InputText.get("DELI_FROM_DY", Order.get("DELI_FROM_DY"), 10, 50, "hangule,center, desc=납기일,ReadOnly") %>
  1380. <IMG name="start_img" id="calender_from" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('DELI_FROM_DY');">
  1381. ~
  1382. <%= InputText.get("DELI_TO_DY", Order.get("DELI_TO_DY"), 10, 50, "hangule,center, desc=납기일,ReadOnly") %>
  1383. <IMG name="start_img" id="calender_to" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('DELI_TO_DY');">
  1384. </TD>
  1385. </TR>
  1386. </TABLE>
  1387. <TABLE class="form-table" style="margin-top: 10px">
  1388. <colgroup>
  1389. <col width="160"/>
  1390. <col width="160"/>
  1391. <col width="25%"/>
  1392. <col width="160"/>
  1393. <col/>
  1394. </colgroup>
  1395. <TR height="25">
  1396. <TH>특이사항</TH>
  1397. <TD colspan="4"><!-- 저장할때 추가해야됨 -->
  1398. <textarea id="CON_REMARK" style="width:95%;height:80px" rows="1" class="input"><%=Order.get("CON_REMARK")%></textarea>
  1399. <%-- <%= InputText.get("CON_REMARK", Order.get("CON_REMARK"), 75, 500, "hangule,left, desc=특이사항") %> --%>
  1400. </TD>
  1401. </TR>
  1402. <TR height="25">
  1403. <TH>주요발주내용</TH>
  1404. <TD colspan="2">
  1405. <%=StringUtils.cvtHTML(Order.get("MAIN_PR_CONTENTS"))%>
  1406. </TD>
  1407. <TH>입찰업체선정사유</TH>
  1408. <TD>
  1409. <%=StringUtils.cvtHTML(Order.get("BID_SUPP_SELECT_REASON"))%>
  1410. </TD>
  1411. </TR>
  1412. <TR height="25">
  1413. <TH>특이사항 내부</TH>
  1414. <TD colspan="2">
  1415. <%=StringUtils.cvtHTML(Order.get("INNER_REMARKS"))%>
  1416. </TD>
  1417. <TH> 특이사항 외부</TH>
  1418. <TD>
  1419. <%=StringUtils.cvtHTML(Order.get("OUTER_REMARKS"))%>
  1420. </TD>
  1421. </TR>
  1422. <TR height="100">
  1423. <TH> 내부자료</TH>
  1424. <TD colspan="2">
  1425. <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>
  1426. <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;'>
  1427. </TD>
  1428. <TH> 외부자료</TH>
  1429. <TD>
  1430. <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>
  1431. <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;'>
  1432. </TD>
  1433. </TR>
  1434. </TABLE>
  1435. <table id=item_list width="100%">
  1436. <colgroup>
  1437. <col width="500" />
  1438. <col width="*" />
  1439. </colgroup>
  1440. <tr>
  1441. <th>
  1442. <div class="application-info magT20">
  1443. <div class="application-sub-title">
  1444. <span class="title">견적의뢰내역</span>
  1445. </div>
  1446. </div>
  1447. </th>
  1448. <td align="right">
  1449. </td>
  1450. </tr>
  1451. </table>
  1452. <div id="sheet2_div" style="padding-top:5px;height: auto; min-height: 200px; overflow: auto;">
  1453. <script>createIBSheet('sheet2','100%', '200px');</script>
  1454. </div>
  1455. <table width="100%">
  1456. <colgroup>
  1457. <col width="500" />
  1458. <col width="*" />
  1459. </colgroup>
  1460. <tr>
  1461. <th>
  1462. <div class="application-info magT15">
  1463. <div class="application-sub-title">
  1464. <span class="title">견적대상업체</span>
  1465. <span id="div_cont_span"><LABEL for="DIV_CONT_YN"><INPUT type="checkbox" id="DIV_CONT_YN" name="DIV_CONT_YN" value="Y" <%=Order.get("DIV_CONT_YN").equals("Y") ? "checked=\"checked\"" : "" %> onclick="doClearDiv();"> 분할낙찰 여부</LABEL></span>
  1466. </div>
  1467. </div>
  1468. </th>
  1469. <td align="right">
  1470. <span class="btnSearch center" id="btn_Currency"><a href="javascript:void(0);">환율반영</a></span>
  1471. <!-- <span class="btnSearch center" id="btn_report"><a href="javascript:void(0);">견적대비표</a></span> -->
  1472. <span class="btnSearch center" id="btn_divCont"><a href="javascript:void(0);">분할업체선정</a></span>
  1473. <span class="btnSearch center" id="btn_tbecheckpop"><a href="javascript:void(0);">기술검토결과서</a></span>
  1474. </td>
  1475. </tr>
  1476. </table>
  1477. <div id="sheet1_div" style="padding-top:5px;height: auto; min-height: 200px; overflow: auto;">
  1478. <script>createIBSheet('sheet1','100%', '300px');</script>
  1479. </div>
  1480. </form>