Rebid.jsp 63 KB

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