BidIng.jsp 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.06.30
  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. <%@ include file="/jsp/work/taglib.jsp" %>
  17. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  18. <%
  19. ctx.init(request, response);
  20. HandlerStorage storage = ctx.getHandlerStorage();
  21. ValueObject params = storage.getParams();
  22. ValueObject user = storage.getUser();
  23. ValueObject Order = storage.getValueObject("Order");
  24. ValueObject filein = storage.getValueObject(Order.get("DOC_ETC_IN"));
  25. ValueObject fileout = storage.getValueObject(Order.get("DOC_ETC_OUT"));
  26. SimpleDateFormat sd = new SimpleDateFormat("yyyyMMdd");
  27. SimpleDateFormat sd2 = new SimpleDateFormat("yyyyMMddHHmm");
  28. String nowTime = sd.format(new Date());
  29. String to_yyyy = Order.get("BID_TO_DT").substring(0, 4);
  30. String to_MM = Order.get("BID_TO_DT").substring(5, 7);
  31. String to_dd = Order.get("BID_TO_DT").substring(8, 10);
  32. String to_hh = Order.get("BID_TO_DT").substring(11, 13);
  33. String to_mi = Order.get("BID_TO_DT").substring(14, 16);
  34. String nowTime_yyyy = nowTime.substring(0, 4);
  35. String nowTime_MM = nowTime.substring(4, 6);
  36. String nowTime_dd = nowTime.substring(6, 8);
  37. nowTime_MM = (Integer.valueOf(nowTime_MM)-1)+"";
  38. to_MM = (Integer.valueOf(to_MM)-1)+"";
  39. boolean MODIFY_YN = true;
  40. boolean p_reason = false;
  41. boolean c_reason = false;
  42. boolean m_reason = false;
  43. if(Order.get("POSTPONE_REASON").length()> 0){
  44. p_reason = true;
  45. }else if(Order.get("CANCEL_REASON").length()> 0){
  46. c_reason = true;
  47. }
  48. if(Order.get("MODIFY_REASON").length()> 0){
  49. m_reason = true;
  50. }
  51. if(Order.getInt("MODIFY_CNT") > 0){
  52. MODIFY_YN = false;
  53. }
  54. ValueObject sign_info = storage.getValueObject("SIGN_INFO");
  55. String gwurl = "http://gw.sgcenc.co.kr/";//WAFConfig.get("gw.url.address2");
  56. %>
  57. <SCRIPT language="JavaScript">
  58. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  59. /*예약함수*/
  60. var sheet1 = new ibsheetObject();
  61. var sheet3 = new ibsheetObject();
  62. var sheet1Row;
  63. var sheet1PageNo = 1;
  64. var pageLastRowIndex = 1;
  65. var validationResult = false;
  66. var filterShow = false;
  67. var must_msg = "(은)는 필수 입력 항목입니다.";
  68. function _onReady(){
  69. dpTime2();
  70. /**
  71. * IBSheet object initialize
  72. */
  73. gridInit(sheet1);
  74. gridInit(sheet2);
  75. gridInit(sheet3);
  76. /**
  77. * Application Initialize
  78. */
  79. $("#btn_list").click(function() {
  80. $("#fevent").val("");
  81. $("#form1").attr("action", "/bid/purchase/BidIngList.screen");
  82. $("#form1").attr("target", "_self");
  83. $("#form1").attr("method", "post");
  84. $("#form1").submit();
  85. });
  86. $("#btn_modify").click(function() {
  87. if(<%=MODIFY_YN%>){
  88. if(confirm("정정공고 하시겠습니까?")){
  89. $("#fevent").val("FORM_SELECT");
  90. $("#form1").attr("action", "/bid/purchase/BidModify.screen");
  91. $("#form1").attr("target", "_self");
  92. $("#form1").attr("method", "post");
  93. $("#form1").submit();
  94. }
  95. }else{
  96. alert("견적을 제출한 업체가 존재합니다. \n정정공고를 할 수 없습니다.");
  97. }
  98. });
  99. $("#btn_defer").click(function() {
  100. if(confirm("연기공고 하시겠습니까?")){
  101. var win_id = "_DeferPop";
  102. var link = "/bid/purchase/BidDeferPop.screen";
  103. link += "?pop_win_id="+win_id;
  104. link += "&BID_NO="+$("#BID_NO").val();
  105. link += "&BID_DEG="+$("#BID_DEG").val();
  106. link += "&BID_FROM_DT="+"<%=Order.get("BID_FROM_DT")%>";
  107. link += "&BID_TO_DT="+"<%=Order.get("BID_TO_DT")%>";
  108. fLayerPop(win_id, link, 700,310, '', '', 'NO');
  109. }
  110. });
  111. $("#btn_cancel").click(function() {
  112. if(confirm("취소공고 하시겠습니까?")){
  113. var win_id = "_CancelPop";
  114. var link = "/bid/purchase/BidCancelPop.screen";
  115. link += "?pop_win_id="+win_id;
  116. link += "&BID_NO="+$("#BID_NO").val();
  117. link += "&BID_DEG="+$("#BID_DEG").val();
  118. link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
  119. fLayerPop(win_id, link, 600,210, '', '', 'NO');
  120. }
  121. });
  122. $("#btn_request").click(function() {
  123. var f = document.form1;
  124. submitXmlRequest("/bid/purchase/BidIng_form.screen", "EXAM_REQUEST_FORM", f);
  125. });
  126. if("<%=Order.get("PBC_DEFECT_CONDI2")%>"!=""||"<%=Order.get("CBC_DEFECT_DAY2")%>"!=""||"<%=Order.get("CBC_DERECT_TERM_CD2")%>"!=""){
  127. $("#addGuar").attr("checked", true);
  128. $(".checkAdd").show();
  129. }
  130. //2015.3.5 입찰중 기술검토 결과서 반려추가
  131. $("#btn_tbecheckpop").click(function() {
  132. var win_id = "_TBECheckPop";
  133. var link = "/bid/purchase/TBECheckPop.screen";
  134. link += "?pop_win_id="+win_id;
  135. link += "&BID_NO="+$("#BID_NO").val();
  136. link += "&BID_DEG="+$("#BID_DEG").val();
  137. link += "&RTN_YN=Y";
  138. fLayerPop(win_id, link, 900,360, '', '', 'YES');
  139. });
  140. /* $("#CMPT_CD").change(function() {
  141. if($("#CMPT_CD").val() == "01"){//공개경쟁
  142. var rowcnt = sheet1.RowCount();
  143. if(rowcnt> 0){
  144. for(var i=0; i < rowcnt; i++)
  145. {
  146. sheet1.RowDelete(i+1,0);
  147. }
  148. }
  149. $("#corp_list_title").hide();
  150. $("#btn_row_del").hide();
  151. $("#corp_add").hide();
  152. $("#sheet1_div").hide();
  153. $("#copr_list").hide();
  154. }else{
  155. $("#corp_list_title").show();
  156. $("#btn_row_del").show();
  157. $("#corp_add").show();
  158. $("#sheet1_div").show();
  159. $("#copr_list").show();
  160. autoResize();
  161. }
  162. });
  163. $("#CMPT_CD").change(); */
  164. //보고자 조회
  165. doSearchSheet3();
  166. doRequest();
  167. }
  168. /*function PopClose(win_id,result){
  169. if( result != null ){
  170. if(result[0] == 0){
  171. setTimeout(function(){ fLayerPopClose(win_id);},100);
  172. if(result[1].length> 0)alert(result[1]);
  173. $("#btn_list").click();
  174. }
  175. }else{
  176. setTimeout(function(){ fLayerPopClose(win_id);},100);
  177. }
  178. }*/
  179. function PopClose(win_id,result){
  180. if( result != null ){
  181. if(result[0] == 0){
  182. setTimeout(function(){ fLayerPopClose(win_id);},100);
  183. if(result[1].length> 0)alert(result[1]);
  184. $("#btn_list").click();
  185. }else if(result[0] == 1){
  186. setTimeout(function(){ fLayerPopClose(win_id);},100);
  187. if(result[1].length> 0)alert(result[1]);
  188. $("#fevent").val("FORM_SELECT");
  189. $("#form1").attr("action", "/bid/purchase/BidIng.screen");
  190. $("#form1").attr("target", "_self");
  191. $("#form1").attr("method", "post");
  192. $("#form1").submit();
  193. }
  194. }else{
  195. setTimeout(function(){ fLayerPopClose(win_id); },100);
  196. }
  197. }
  198. function doRequest(){
  199. if(<%=Order.get("TBE_FLAG").equals("Y")%>){
  200. if(document.getElementById('dpTime').innerHTML == "입찰마감"){
  201. jQuery("#btn_request").show();
  202. }else{
  203. jQuery("#btn_request").hide();
  204. }
  205. }else{
  206. if(document.getElementById('dpTime').innerHTML == "입찰마감"){
  207. jQuery("#btn_request").show();
  208. }else{
  209. jQuery("#btn_request").hide();
  210. }
  211. }
  212. }
  213. function doSearchSheet(){
  214. $("#fevent").val("GET_CORP_LIST");
  215. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidIng_sheet.screen";
  216. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  217. }
  218. function doSearchSheetitem(){
  219. $("#fevent").val("GET_ITEM_LIST");
  220. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidIng_sheet.screen";
  221. Modular.view.IBSheet7.doSearch(sheet2, url, jQuery("#form1"), 30, "");
  222. }
  223. function doSearchSheet3(){
  224. $("#fevent").val("GET_REPORT_EMP_LIST");
  225. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidPlan_sheet.screen";
  226. Modular.view.IBSheet7.doSearch(sheet3, url, jQuery("#form1"), 30, "");
  227. }
  228. /**
  229. * IBSheet object initialize
  230. */
  231. function gridInit(sheetName){
  232. var init_sheet = {};
  233. if(sheetName.id == "sheet1"){
  234. init_sheet.Cfg = {SearchMode:2, Page:30,MergeSheet:msHeaderOnly};
  235. init_sheet.Cols = [
  236. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  237. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  238. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  239. {Header:'추천부서', Type:"Text", SaveName:"RECM_DEPT_NM", Width:100, Align:"Center"},
  240. {Header:'사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:80, Align:"Center", Format:"SaupNo"},
  241. {Header:'업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:100, Align:"Left"},
  242. {Header:'대표자명', Type:"Text", SaveName:"REPRE_NO", Width:70, Align:"Center"},
  243. {Header:'담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:70, Align:"Center"},
  244. {Header:'전화번호', Type:"Text", SaveName:"CORP_TEL", Width:90, Align:"Center"},
  245. {Header:'핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:90, Align:"Center"},
  246. {Header:'이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:100, Align:"Left"},
  247. {Header:'비밀준수약정서', Type:"Text", SaveName:"SECRET_YN_DY", Width:100, Align:"Center"},
  248. //{Header:'윤리준수서약서', Type:"Text", SaveName:"MORAL_YN_DY", Width:100, Align:"Center"},
  249. {Header:'협력사 행동규범', Type:"Text", SaveName:"ROLES_YN_DY", Width:100, Align:"Center"},
  250. {Header:'하도급대금 연동제 안내문', Type:"Text", SaveName:"PRICESYS_YN_DY", Width:120, Align:"Center"},
  251. {Header:'견적제출시간', Type:"Text", SaveName:"SIGN_DT", Width:100, Align:"Center"},
  252. {Header:'기술검토(TBE)', Type:"Text", SaveName:"TBE_STATUS", Width:100, Align:"Center"},
  253. {Header:'VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:100, Align:"Center", Hidden:"True"}
  254. ];
  255. }else if(sheetName.id == "sheet2"){
  256. init_sheet.Cfg = {SearchMode:2, Page:30,MergeSheet:msHeaderOnly};
  257. init_sheet.Cols = [
  258. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  259. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  260. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  261. {Header:'자재코드|자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:80, Align:"Center"},
  262. {Header:'자재명|자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:120, Align:"Left"},
  263. {Header:'규격|규격', Type:"Text", SaveName:"STD", Width:60, Align:"Left"},
  264. {Header:'단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:40, Align:"Center"},
  265. {Header:'도급|단가', Type:"Int", SaveName:"CONT_UNIT_AMT", Width:60, Align:"Right"},
  266. {Header:'도급|금액', Type:"Int", SaveName:"CONT_AMT", Width:60, Align:"Right", CalcLogic:"|CONT_UNIT_AMT|*|DEMANDED_QTY|"},
  267. {Header:'실행|단가', Type:"Int", SaveName:"ACT_UNIT_AMT", Width:60, Align:"Right"},
  268. {Header:'실행|금액', Type:"Int", SaveName:"ACT_AMT", Width:60, Align:"Right", CalcLogic:"|ACT_UNIT_AMT|*|DEMANDED_QTY|"},
  269. {Header:'견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"DEMANDED_QTY", Width:40, Align:"Right"},
  270. {Header:'투입요청일|투입요청일', Type:"Text", SaveName:"REQUEST_DATE", Width:40, Align:"Center", Format:"####-##-##"}
  271. ];
  272. }else{
  273. init_sheet.Cfg = {SearchMode:2, Page:30,MergeSheet:msHeaderOnly,SizeMode:1};
  274. init_sheet.Cols = [
  275. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  276. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  277. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  278. {Header:'계정ID', Type:"Text", SaveName:"ACCT_ID", Width:0, Align:"Center", Hidden:"True"},
  279. {Header:'이름', Type:"Text", SaveName:"USER_NAME", Width:100, Align:"Center", Edit:false},
  280. {Header:'부서명', Type:"Text", SaveName:"BUSEO_NAME", Width:150, Align:"Left", Edit:false},
  281. {Header:'직위명', Type:"Text", SaveName:"GRADE_NAME", Width:100, Align:"Center", Edit:false}
  282. ];
  283. }
  284. init_sheet.HeaderMode = {Sort:1};
  285. IBS_InitSheet(sheetName, init_sheet);
  286. sheetName.SetDataAutoTrim(0);
  287. sheetName.SetEditable(false);
  288. setGridSize();
  289. }
  290. /**
  291. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  292. */
  293. function sheet1_OnSearchEnd(code, message) {
  294. var fevent = $("#fevent").val();
  295. if(code == 0) {
  296. if("GET_CORP_LIST" == fevent)
  297. doSearchSheetitem();
  298. setGridSize();
  299. } else {
  300. //조회 에러 수행
  301. alert(message);
  302. }
  303. }
  304. /**
  305. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  306. */
  307. function sheet2_OnSearchEnd(code, message) {
  308. if(code == 0) {
  309. sheet2.FitColWidth();
  310. } else {
  311. //조회 에러 수행
  312. alert(message);
  313. }
  314. }
  315. /**
  316. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  317. */
  318. function sheet3_OnSearchEnd(code, message) {
  319. if(code == 0) {
  320. //sheet3.FitColWidth();
  321. //견적대상 업체 조회
  322. doSearchSheet();
  323. } else {
  324. //조회 에러 수행
  325. alert(message);
  326. }
  327. }
  328. /**
  329. * IBSheet Event: DblClick
  330. */
  331. function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  332. if(Row == 0)return;
  333. var Sn = sheet1.GetCellProperty(Row, Col, "SaveName");
  334. //팝업 중앙 위치
  335. /* var popupWidth = 465;
  336. var popupHeight = 640;
  337. var winWidth = document.body.clientWidth; // 현재창의 너비
  338. var winHeight = document.body.clientHeight; // 현재창의 높이
  339. var winX = window.screenX || window.screenLeft || 0;// 현재창의 x좌표
  340. var winY = window.screenY || window.screenTop || 0; // 현재창의 y좌표
  341. var w = winX + (winWidth - popupWidth) / 2;
  342. var h = winY + (winHeight - popupHeight) / 2; */
  343. var argObj = new Object();
  344. argObj.p_vendor_cd = sheet1.GetCellValue(Row,"VENDOR_CD");
  345. argObj.p_bid_no = $("#BID_NO").val();
  346. argObj.p_bid_deg = $("#BID_DEG").val();
  347. argObj.p_gubun = "buyer";
  348. if(Sn == "SECRET_YN_DY"){
  349. if(Value != "미확인"){
  350. var win_id = "SecretPop";
  351. var link = "/portal/bid/SecretDocPop.screen";
  352. link += "?pop_win_id="+win_id;
  353. link += "&p_gubun="+"buyer";
  354. link += "&p_bid_no="+$("#BID_NO").val();
  355. link += "&p_bid_deg="+$("#BID_DEG").val();
  356. link += "&p_vendor_cd="+sheet1.GetCellValue(Row,"VENDOR_CD");
  357. link += "&sModule=LM"; //파란색 x박스 안보임
  358. //window.open(link,win_id,"toolbar=no, width="+popupWidth+", height="+popupHeight+", top="+h+", left="+w+", toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no,target=new");
  359. //window.showModalDialog(link, argObj,'dialogWidth:465px;dialogHeight:640px; center:yes; help:no; status:no; scroll:no; resizable:no');
  360. fLayerPop(win_id, link, 465,640, '', '', 'NO');
  361. }
  362. }else if(Sn == "MORAL_YN_DY"){
  363. if(Value != "미확인"){
  364. var win_id = "MoralPop";
  365. var link = "/portal/bid/MoralDocPop.screen";
  366. link += "?pop_win_id="+win_id;
  367. link += "&p_gubun="+"buyer";
  368. link += "&p_bid_no="+$("#BID_NO").val();
  369. link += "&p_bid_deg="+$("#BID_DEG").val();
  370. link += "&p_vendor_cd="+sheet1.GetCellValue(Row,"VENDOR_CD");
  371. link += "&sModule=LM"; //파란색 x박스 안보임
  372. //window.open(link,win_id,"toolbar=no, width="+popupWidth+", height="+popupHeight+", top="+h+", left="+w+", toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no,target=new");
  373. //window.showModalDialog(link, argObj,'dialogWidth:465px;dialogHeight:640px; center:yes; help:no; status:no; scroll:no; resizable:no');
  374. fLayerPop(win_id, link, 550,640, '', '', 'NO');
  375. }
  376. }else if(Sn == "INDUSTRY_YN_DY"){
  377. if(Value != "미확인"){
  378. var win_id = "IndustryPop";
  379. var link = "/portal/bid/IndustryDocPop.screen";
  380. link += "?pop_win_id="+win_id;
  381. link += "&p_gubun="+"buyer";
  382. link += "&p_bid_no="+$("#BID_NO").val();
  383. link += "&p_bid_deg="+$("#BID_DEG").val();
  384. link += "&p_vendor_cd="+sheet1.GetCellValue(Row,"VENDOR_CD");
  385. link += "&sModule=LM"; //파란색 x박스 안보임
  386. //window.open(link,win_id,"toolbar=no, width="+popupWidth+", height="+popupHeight+", top="+h+", left="+w+", toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no,target=new");
  387. //window.showModalDialog(link, argObj,'dialogWidth:465px;dialogHeight:640px; center:yes; help:no; status:no; scroll:no; resizable:no');
  388. fLayerPop(win_id, link, 550,640, '', '', 'NO');
  389. }
  390. }
  391. }
  392. /**
  393. * IBSheet size setting
  394. */
  395. function setGridSize() {
  396. sheet1.FitColWidth();
  397. sheet2.FitColWidth();
  398. }
  399. //첨부파일
  400. function doAttachFile(obj,No) {
  401. var file_div = "bid/purchase/<%=Order.get("BID_NO")%>/";
  402. if(obj==''){
  403. alert("After you have saved, you can attach a file.");
  404. }
  405. else if(obj != ''){
  406. if(No == 1){
  407. viewFileListNew("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "N", file_div);
  408. }else{
  409. viewFileListNew("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "N", file_div);
  410. }
  411. }
  412. }
  413. function doResult(resultObj) {
  414. try {
  415. if( resultObj.getRequestEvent() == "FORM_UPDATE") {
  416. if( resultObj.getSuccess() ) {
  417. alert("저장 되었습니다.");
  418. $("#btn_list").click();
  419. }
  420. else {
  421. dlgErrorMsg(resultObj);
  422. }
  423. }
  424. if( resultObj.getRequestEvent() == "FORM_DELETE") {
  425. if( resultObj.getSuccess() ) {
  426. alert("삭제 되었습니다.");
  427. $("#btn_list").click();
  428. }
  429. else {
  430. dlgErrorMsg(resultObj);
  431. }
  432. }
  433. if( resultObj.getRequestEvent() == "EXAM_REQUEST_FORM") {
  434. if( resultObj.getSuccess() ) {
  435. alert("요청 되었습니다.");
  436. document.form1.isSubmit = false;
  437. }
  438. else {
  439. dlgErrorMsg(resultObj);
  440. }
  441. document.form1.isSubmit = false;
  442. }
  443. } catch(errorObject) {
  444. showErrorDlg("doResult()", errorObject);
  445. }
  446. }
  447. function sheet1_OnSmartResize(Width, Height) {
  448. setGridSize();
  449. autoResize();
  450. }
  451. function autoResize(){
  452. sheet1.SetSheetHeight(160);
  453. sheet2.SetSheetHeight(250);
  454. }
  455. setInterval("dpTime2()",1000);
  456. //시간 호출
  457. function dpTime2(){
  458. var now = new Date();
  459. hours = now.getHours();
  460. minutes = now.getMinutes();
  461. seconds = now.getSeconds();
  462. /* if (hours > 12){
  463. hours -= 12;
  464. ampm = "오후 ";
  465. }else{
  466. ampm = "오전 ";
  467. }
  468. if (hours < 10)
  469. hours = "0" + hours;
  470. if (minutes < 10)
  471. minutes = "0" + minutes;
  472. if (seconds < 10)
  473. seconds = "0" + seconds; */
  474. // document.getElementById("dpTime").innerHTML = ampm + hours + ":" + minutes + ":" + seconds;
  475. // 2010 년 6월 1일 (월은 0 ~ 11 월까지로 현재월 -1 값)
  476. // 오후 6시 32분 35초 (시는 12 시간을 초과할 경우 12를 뺀 후 오후표시)
  477. var day2= new Date(<%=to_yyyy%>,<%=to_MM%>,<%=to_dd%>,<%=to_hh%>,<%=to_mi%>,00);
  478. // 2011 년 3월 1일 (월은 0 ~ 11 월까지로 현재월 -1 값)
  479. // 오전 10시 15분 43초
  480. var day1= new Date(<%=nowTime_yyyy%>,<%=nowTime_MM%>,<%=nowTime_dd%>,hours,minutes,seconds);
  481. // 첫번째 날짜를 1/1000 값으로 환산
  482. var ms1 = Date.parse(day1);
  483. //alert(ms1);
  484. // 두번째 날짜를 1/1000 값으로 환산
  485. var ms2 = Date.parse(day2);
  486. //alert(ms2);
  487. var sep = (ms2-ms1)/1000; // 두 날짜간의 시간차 (1/1000 초 이므로 초로 환산)
  488. // alert(sep);
  489. var min = 60;
  490. var hour= min * 60;
  491. var day = hour * 24;
  492. var sd = parseInt(sep/day);
  493. var sh = parseInt((sep%day)/hour);
  494. var sm = parseInt((sep%hour)/min);
  495. var ss = sep%min+1;
  496. var msg = "";
  497. if(sd > 0){
  498. msg = sd+'일 '+sh+'시간 '+sm+'분 '+ss+'초 남았습니다. / 입찰진행중';
  499. }else if(sd <= 0){
  500. if(sh <= 0){
  501. if(sm <= 0){
  502. msg = "입찰마감";
  503. }else{
  504. msg = sm+'분 '+ss+'초 남았습니다. / 입찰진행중';
  505. }
  506. }else{
  507. msg = sh+'시간 '+sm+'분 '+ss+'초 남았습니다. / 입찰진행중';
  508. }
  509. }else{
  510. msg = "입찰마감";
  511. }
  512. document.getElementById('dpTime').innerHTML = msg;
  513. }
  514. function btnEvent(num){
  515. if(num == '1')
  516. $("#btn_list").click();
  517. if(num == '2')
  518. if(num == '3')
  519. $("#btn_defer").click();
  520. if(num == '4')
  521. $("#btn_cancel").click();
  522. }
  523. function doSignFile(doc_id){
  524. if(doc_id == ""){
  525. alert("결재 정보가 없습니다.");
  526. return;
  527. }
  528. var doc_chk = doc_id.substring(doc_id.length-3, doc_id.length);
  529. doc_chk = doc_chk * 1;
  530. var link = "";
  531. var year = "<%=sign_info.get("year") %>";
  532. if (year > "20151213") {
  533. link = "<%=gwurl%>upload_approval/TEC/doc/" + year.substr(0,4) + "/" + doc_chk + "/"+ doc_id+".mht";
  534. }
  535. else{
  536. link = "<%=gwurl%>upload_approval/TEC/doc/" + doc_chk + "/"+ doc_id+".mht";
  537. }
  538. window.open(link,"_viewDraft","");
  539. }
  540. </SCRIPT>
  541. <modular:search id="form1">
  542. <modular:key id="fevent" />
  543. </modular:search>
  544. <BODY onresize="autoResize()">
  545. <form id="form1" name="form1" method="post" modular:type="search">
  546. <INPUT type='hidden' name="fevent" id="fevent" value="">
  547. <!-- List Search -->
  548. <INPUT type='hidden' name="p_demanded_status" value="<%=params.get("p_demanded_status")%>">
  549. <INPUT type='hidden' name="p_dept_cd" value="<%=params.get("p_dept_cd")%>">
  550. <INPUT type='hidden' name="p_dept_nm" value="<%=params.get("p_dept_nm")%>">
  551. <INPUT type='hidden' name="P_BID_MASTER_NM" value="<%=params.get("P_BID_MASTER_NM")%>">
  552. <INPUT type='hidden' name="P_SITEDESCDATE_FROM_DT" value="<%=params.get("P_SITEDESCDATE_FROM_DT")%>">
  553. <INPUT type='hidden' name="P_SITEDESCDATE_TO_DT" value="<%=params.get("P_SITEDESCDATE_TO_DT")%>">
  554. <INPUT type='hidden' name="p_bid_from_dt" value="<%=params.get("p_bid_from_dt")%>">
  555. <INPUT type='hidden' name="p_bid_to_dt" value="<%=params.get("p_bid_to_dt")%>">
  556. <!-- List Search -->
  557. <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
  558. <INPUT type='hidden' name="BID_NO" value="<%=Order.get("BID_NO")%>">
  559. <INPUT type='hidden' name="BID_DEG" value="<%=Order.get("BID_DEG")%>">
  560. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  561. <INPUT type='hidden' name="CMPT_CD" value="<%=Order.get("CMPT_CD")%>">
  562. <INPUT type='hidden' name="SITEPARTI_YN" value="Y">
  563. <INPUT type='hidden' name="SITEDESC_FLAG" value="<%=Order.get("SITEDESC_FLAG")%>">
  564. <table width="100%">
  565. <colgroup>
  566. <col width="500" />
  567. <col width="*" />
  568. </colgroup>
  569. <tr>
  570. <th>
  571. <div align="left" id="title">
  572. <ul><li>구매_입찰진행 상세<font style="font-size:11px"> (<%=Order.get("STATUS_NM")%>)</font></li></ul>
  573. </div>
  574. </th>
  575. <td align="right">
  576. <span class="btnSearch center" id="btn_request"><a href="javascript:void(0);">개찰요청</a></span>
  577. <span class="btnSearch center" id="btn_modify"><a href="javascript:void(0);">정정공고</a></span>
  578. <span class="btnSearch center" id="btn_defer"><a href="javascript:void(0);">연기공고</a></span>
  579. <span class="btnSearch center" id="btn_cancel"><a href="javascript:void(0);">취소공고</a></span>
  580. <span class="btnSearch center" id="btn_list"><a href="javascript:void(0);">목록</a></span>
  581. </td>
  582. </tr>
  583. </table>
  584. <%if(p_reason || m_reason || c_reason){ %>
  585. <TABLE class="form-table">
  586. <colgroup>
  587. <col width="150">
  588. <col/>
  589. </colgroup>
  590. <%if(c_reason){ %>
  591. <TR height="25">
  592. <TH>취소사유</TH>
  593. <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("CANCEL_REASON"))%></TD>
  594. </TR>
  595. <%} %>
  596. <%if(p_reason){ %>
  597. <TR height="25">
  598. <TH>연기사유</TH>
  599. <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("POSTPONE_REASON"))%></TD>
  600. </TR>
  601. <%} %>
  602. <%if(m_reason){ %>
  603. <TR height="25">
  604. <TH>정정사유</TH>
  605. <TD style="vertical-align: top"><%=StringUtils.cvtHTML(Order.get("MODIFY_REASON"))%></TD>
  606. </TR>
  607. <%} %>
  608. </TABLE>
  609. <%}%>
  610. <%if(!Order.get("REBID_REASON").equals("") || !Order.get("REBID_OUTREASON").equals("")){%>
  611. <div class="application-info magT10">
  612. <div class="application-sub-title">
  613. <span class="title">재입찰사유</span>
  614. </div>
  615. <div class="application-location">
  616. </div>
  617. </div>
  618. <TABLE class="form-table">
  619. <colgroup>
  620. <col width="150"/>
  621. <col width="40%" />
  622. <col width="150" />
  623. <col width="*" />
  624. </colgroup>
  625. <TR height="25">
  626. <TH>재입찰사유<br>(내부보고)</TH>
  627. <TD><%=StringUtils.cvtHTML(Order.get("REBID_REASON"))%></TD>
  628. <TH>재입찰사유<br>(외부공지)
  629. </TH>
  630. <TD><%=StringUtils.cvtHTML(Order.get("REBID_OUTREASON"))%></TD>
  631. </TR>
  632. </TABLE>
  633. <%} %>
  634. <div class="application-info magT10">
  635. <div class="application-sub-title">
  636. <span class="title">발주의뢰정보</span>
  637. </div>
  638. </div>
  639. <!-- 발주의뢰정보 : 시작 -->
  640. <TABLE class="form-table">
  641. <colgroup>
  642. <col width="160"/>
  643. <col width="20%">
  644. <col width="160"/>
  645. <col width="20%">
  646. <col width="160"/>
  647. <col/>
  648. </colgroup>
  649. <TR height="25">
  650. <TH> 현장</TH>
  651. <TD><%=Order.get("dept_nm") %></TD>
  652. <TH> 발주의뢰번호</TH>
  653. <TD><a href="javascript:doSignFile('<%=sign_info.get("doc_id") %>');"><%=Order.get("DEMANDED_NO")%></a>
  654. </TD>
  655. <TH> 발주의뢰명</TH>
  656. <TD><%=Order.get("DEMANDED_TITLE")%></TD>
  657. </TR>
  658. <TR height="25">
  659. <TH> 발주의뢰일</TH>
  660. <TD><%= Order.get("DEMANDED_DATE")%></TD>
  661. <TH> 발주의뢰부서</TH>
  662. <TD><%= Order.get("REQ_DEPT_NM")%></TD>
  663. <TH> 발주의뢰자</TH>
  664. <TD><%= Order.get("EMP_NM")%></TD>
  665. </TR>
  666. <TR height="25">
  667. <TH> 발주접수일자</TH>
  668. <TD><%=Order.get("RECEIPT_DATE") %></TD>
  669. <TH> Pay Item</TH>
  670. <TD><%= Order.get("PAY_ITEM_NM") %></TD>
  671. <TH> 구매예산 (원)</TH> <!-- 2015.02.27 구매예산추가 mklee -->
  672. <TD><%=Formatter2.currency(Order.get("PUR_AMT"),0) %></TD>
  673. </TR>
  674. <TR height="25">
  675. <TH> 도급금액 (원)</TH>
  676. <TD><%= Formatter2.currency(Order.get("CONT_AMT"),0) %></TD>
  677. <TH> 실행예산 (원)</TH>
  678. <TD><%=Formatter2.currency(Order.get("ACT_AMT"),0) %></TD>
  679. <TH> 도급대비실행율(%)</TH>
  680. <TD><%= Order.get("ACT_RATE")%></TD>
  681. </TR>
  682. <!-- 발주의뢰정보 : 종료 -->
  683. </table>
  684. <div class="application-info magT15">
  685. <div class="application-sub-title">
  686. <span class="title">입찰기본정보</span>
  687. </div>
  688. </div>
  689. <TABLE class="form-table">
  690. <colgroup>
  691. <col width="160"/>
  692. <col width="145"/>
  693. <col width="29%"/>
  694. <col width="160"/>
  695. <col/>
  696. </colgroup>
  697. <TH> 입찰번호-차수</TH>
  698. <TD colspan="2"><%=Order.get("BID_NO")%>-<%=Order.get("BID_DEG")%></TD>
  699. <TH> 온라인입찰여부</TH>
  700. <TD><%=Order.get("ONBID_YN")%></TD>
  701. </TR>
  702. <TR height="25">
  703. <TH> 입찰명</TH>
  704. <TD colspan="2"><%=Order.get("BID_MASTER_NM")%></TD>
  705. <TH>단가계약여부</TH>
  706. <TD><%=Order.get("DIV_PO_YN").equals("Y") ? "예" : "아니오" %></TD>
  707. </TR>
  708. <TR height="25">
  709. <TH> 경쟁방법</TH>
  710. <TD colspan="2"><%=Order.get("CMPT_NM")%></TD>
  711. <TH> 낙찰자선정방법</TH>
  712. <TD><%=Order.get("SUCC_NM") %></TD>
  713. </TR>
  714. <!-- 발주의뢰정보 : 종료 -->
  715. </table>
  716. <div class="application-info magT15">
  717. <div class="application-sub-title">
  718. <span class="title">입찰진행</span>
  719. </div>
  720. </div>
  721. <TABLE class="form-table">
  722. <colgroup>
  723. <col width="160"/>
  724. <col width="145"/>
  725. <col width="29%"/>
  726. <col width="160"/>
  727. <col/>
  728. </colgroup>
  729. <TR height="25">
  730. <TH>업체공지일자</TH>
  731. <TD colspan="4"><%=Order.get("NOTI_DY") %></TD>
  732. </TR>
  733. <TR height="25">
  734. <TH rowspan="3"> 견적설명회 정보</TH>
  735. <TH> 여부</TH>
  736. <TD><%=Order.get("SITEDESC_FLAG")%></TD>
  737. <TH> 담당자</TH>
  738. <TD><%=Order.get("SITEDESCCHRGPRSNNM")%></TD>
  739. </TR>
  740. <TR height="25">
  741. <TH> 담당자 전화번호</TH>
  742. <TD ><%=Order.get("SITEDESCTELNO")%></TD>
  743. <TH> 일시</TH>
  744. <TD ><%=Order.get("SITEDESCDATE")%></TD>
  745. </TR>
  746. <TR height="25">
  747. <TH> 담당자 E-Mail</TH>
  748. <TD ><%=Order.get("SITEDESCEMAIL")%></TD>
  749. <TH> 장소</TH>
  750. <TD ><%=Order.get("SITEDESCPLACE")%></TD>
  751. </TR>
  752. <TR height="25">
  753. <TH rowspan="4"> 견적 의뢰</TH>
  754. <TH> 견적제출기간</TH>
  755. <TD colspan="3">
  756. <%=Order.get("BID_FROM_DT")%> ~<%=Order.get("BID_TO_DT")%> <font color='red'><b>(<span id="dpTime"></span>)</b></font>
  757. </TD>
  758. </TR>
  759. <TR height="25">
  760. <TH> 구매담당자</TH>
  761. <TD ><%=Order.get("PUREMPNM")%></TD>
  762. <TH> 구매담당자 전화번호</TH>
  763. <TD ><%=Order.get("PO_EMPNM")%></TD>
  764. </TR>
  765. <TR height="25">
  766. <TH> 개찰자</TH>
  767. <TD colspan="3"><%=Order.get("OPEN_EMPNM")%></TD>
  768. </TR>
  769. <TR height="25">
  770. <TH> 보고자</TH>
  771. <TD colspan="3">
  772. <div id="sheet3_div" style="width: 100%; height: 100%;">
  773. <script>createIBSheet('sheet3','100%', '100px');</script>
  774. </div>
  775. </TD>
  776. </TR>
  777. <TR height="25">
  778. <TH rowspan="2">기술검토(TBE)</TD>
  779. <TH> TBE 여부</TH>
  780. <TD ><%=Order.get("TBE_FLAG").equals("Y") ? "예" : "아니오"%></TD>
  781. <TH> TBE 일자</TH>
  782. <TD><%=Order.get("SUPP_REQ_DY")%></TD>
  783. </TR>
  784. <TR height="25">
  785. <TH> TBE 심사자</TH>
  786. <TD colspan="3"><%=Order.get("EVAL_EMPNM")%></TD>
  787. </TR>
  788. <!-- 발주의뢰정보 : 종료 -->
  789. </table>
  790. <div class="application-info magT15">
  791. <div class="application-sub-title">
  792. <span class="title">입찰조건</span>
  793. </div>
  794. </div>
  795. <TABLE class="form-table">
  796. <colgroup>
  797. <col width="160"/>
  798. <col width="20%">
  799. <col width="160"/>
  800. <col width="20%">
  801. <col width="160"/>
  802. <col/>
  803. </colgroup>
  804. <TR height="25">
  805. <TH>통화구분</TH>
  806. <TD><%=Order.get("CURRENCY_GB_NM") %> &nbsp&nbsp
  807. <%=Order.get("CURRENCY_GB_YN").equals("Y") ? "[업체변경가능]" : "[업체변경불가능]" %>
  808. </TD>
  809. <TH>CBE문서 TYPE</TH>
  810. <TD colspan="3">
  811. <%if(!Order.get("PBC_CBE_TYPE_CD").isEmpty()){ %><%=Order.get("PBC_CBE_TYPE_CD").equals("A") ? "A type" : "B type" %><%} %>
  812. </TD>
  813. </TR>
  814. <TR height="25">
  815. <TH>Installation</TH><!-- 설치비 포함여부 -->
  816. <TD><%=Order.get("PBC_INSTALL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  817. <TH>Spare Parts for Commissionig</TH><!-- 시운전 포함여부 -->
  818. <TD><%=Order.get("PBC_COMMISS_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  819. <TH>Special Tool</TH><!-- 설치비 특별공구 포함여부 -->
  820. <TD><%=Order.get("PBC_SPETOOL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  821. </TR>
  822. <TR height="25">
  823. <TH>Test & Inspection at Fabrication shop</TH><!-- 샾(공장) 검사비용 포함여부 -->
  824. <TD><%=Order.get("PBC_TEST_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  825. <TH>Documentation</TH><!-- vendor print (무조건 포함) 삭제? -->
  826. <TD><%=Order.get("PBC_DOC_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  827. <TH>Packing cost</TH><!-- 포장비용 포함여부 -->
  828. <TD><%=Order.get("PBC_PACK_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  829. </TR>
  830. <TR height="25">
  831. <TH>Inland Transportaion</TH><!-- 내륙운송비 -->
  832. <TD><%=Order.get("PBC_LANDTRAN_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  833. <TH>Delivery Condition</TH><!-- 인도조건 (현장도착도, 현장상차도,현장설치도, 설치시운전도) -->
  834. <TD colspan="3">
  835. <%=Order.get("DELIVERY_CONDITION_NM") %>&nbsp&nbsp <%=Order.get("DELIVERY_CONDITION_YN").equals("Y") ? "[업체변경가능]" : "[업체 변경 불가능]" %></TD>
  836. </TR>
  837. <TR height="25">
  838. <TH>OPTIONAL PRICE</TH><!-- 현장감독관 일당 & 기타일당 내역 -->
  839. <TD colspan="5">A. Supervision fee &nbsp <%=Order.get("PBC_FEE_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %>
  840. <% if(!Order.get("PBC_OPTION_COMMENT").isEmpty()){ %>&nbsp&nbsp B. <%= Order.get("PBC_OPTION_COMMENT")%> &nbsp<%=Order.get("PBC_OPTION_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %><%} %></TD>
  841. </TR>
  842. <TR height="25">
  843. <TH>Liquidated Damages</TH><!-- 지체상금 fix -->
  844. <TD colspan="5"><% if(!Order.get("CBC_DAMAGE_RATE").isEmpty()){ %><%= Order.get("CBC_DAMAGE_RATE")%>% <%= Order.get("CBC_DAMAGE_NM")%>,<%} %>
  845. <% if(!Order.get("CBC_DAMAGE_MAXRATE").isEmpty()){ %> Max <%= Order.get("CBC_DAMAGE_MAXRATE")%>%<%} %></TD>
  846. </TR>
  847. <TR height="25">
  848. <TH>선급금</TH>
  849. <TD><% if(!Order.get("CBC_FIRST_RATE").isEmpty()){ %><%=Order.get("CBC_FIRST_RATE") %>% <%} %><%= Order.get("PBC_FIRST_CONDI")%></TD>
  850. <TH>중도금</TH>
  851. <TD><% if(!Order.get("CPC_MID_RATE").isEmpty()){ %><%= Order.get("CPC_MID_RATE")%>% <%} %><%=Order.get("PBC_MID_CONDI")%></TD>
  852. <TH>잔금</TH>
  853. <TD><% if(!Order.get("PBC_REST_RATE").isEmpty()){ %><%= Order.get("PBC_REST_RATE") %>% <%} %><%=Order.get("PBC_REST_CONDI")%></TD>
  854. </TR>
  855. <TR height="25">
  856. <TH>First Payment Bond</TH><!-- 선급금이행증권(yes, no) -->
  857. <TD><% if(!Order.get("PBC_FRSTGUAR_RATE").isEmpty()){ %><%= Order.get("PBC_FRSTGUAR_RATE") %>% <%} %><%= Order.get("PBC_FRSTGUAR_CONDI")%></TD>
  858. <TH>Performance Bond</TH><!-- 계약이행증권(yes, no) -->
  859. <TD><% if(!Order.get("CONTFUL_RATE").isEmpty()){ %><%= Order.get("CONTFUL_RATE") %>% <%} %><%=Order.get("CONTFUL_CONDI") %></TD>
  860. <TH>Guarantee Bond</TH><!-- 하자이행증권(yes, no) -->
  861. <TD><% if(!Order.get("WARR_RATE").isEmpty()){ %><%= Order.get("WARR_RATE") %>%<%} %> <%= Order.get("WARR_CONDI")%></TD>
  862. </TR>
  863. <TR height="25">
  864. <TH>Guarantee Period</TH><!-- 하자보수기간 -->
  865. <TD colspan="3"><%=Order.get("PBC_DEFECT_CONDI") %> <%=Order.get("CBC_DEFECT_DAY") %>
  866. <% if(!Order.get("CBC_DERECT_TERM_NM").isEmpty()){ %><%=Order.get("CBC_DERECT_TERM_NM") %>간<%} %>
  867. <input type="checkbox" id="addGuar" style="margin-top:2px; display:none;">
  868. <span class="checkAdd" style="display:none;">&nbsp;or&nbsp;
  869. <%=Order.get("PBC_DEFECT_CONDI2") %> <%=Order.get("CBC_DEFECT_DAY2")%>
  870. <%if(Order.get("CBC_DERECT_TERM_CD2").equals("01")){%>
  871. <span>일 간 중 선도래일</span>
  872. <%}else if(Order.get("CBC_DERECT_TERM_CD2").equals("02")){%>
  873. <span>개월 간 중 선도래일</span>
  874. <%} %>
  875. </span>
  876. </TD>
  877. <TH>Delivery Period</TH><!-- 납기일 fix -->
  878. <TD>
  879. <% if(!Order.get("DELI_FROM_DY").isEmpty() && !Order.get("DELI_TO_DY").isEmpty()){ %><%=Order.get("DELI_FROM_DY") %> ~
  880. <%= Order.get("DELI_TO_DY") %><%} %>
  881. </TD>
  882. </TR>
  883. </TABLE>
  884. <TABLE class="form-table" style="margin-top: 10px">
  885. <colgroup>
  886. <col width="160"/>
  887. <col width="145"/>
  888. <col width="29%"/>
  889. <col width="160"/>
  890. <col/>
  891. </colgroup>
  892. <TR height="25">
  893. <TH>주요발주내용</TH>
  894. <TD colspan="2" style="vertical-align: top">
  895. <%=StringUtils.cvtHTML(Order.get("MAIN_PR_CONTENTS"))%>
  896. </TD>
  897. <TH>입찰업체선정사유</TH>
  898. <TD style="vertical-align: top">
  899. <%=StringUtils.cvtHTML(Order.get("BID_SUPP_SELECT_REASON"))%>
  900. </TD>
  901. </TR>
  902. <TR height="25">
  903. <TH>특이사항 내부</TH>
  904. <TD colspan="2" style="vertical-align: top">
  905. <%=StringUtils.cvtHTML(Order.get("INNER_REMARKS"))%>
  906. </TD>
  907. <TH> 특이사항 외부</TH>
  908. <TD style="vertical-align: top">
  909. <%=StringUtils.cvtHTML(Order.get("OUTER_REMARKS"))%>
  910. </TD>
  911. </TR>
  912. <TR height="100">
  913. <TH> 내부자료</TH>
  914. <TD colspan="2">
  915. <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>
  916. <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;'>
  917. </TD>
  918. <TH> 외부자료</TH>
  919. <TD>
  920. <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>
  921. <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;'>
  922. </TD>
  923. </TR>
  924. </TABLE>
  925. <table id=item_list width="100%">
  926. <colgroup>
  927. <col width="500" />
  928. <col width="*" />
  929. </colgroup>
  930. <tr>
  931. <th>
  932. <div class="application-info magT20">
  933. <div class="application-sub-title">
  934. <span class="title">견적의뢰내역</span>
  935. </div>
  936. </div>
  937. </th>
  938. <td align="right">
  939. </td>
  940. </tr>
  941. </table>
  942. <div id="sheet2_div" style="padding-top:5px;height: auto; min-height: 250px; overflow: auto;">
  943. <script>createIBSheet('sheet2','100%', '250px');</script>
  944. </div>
  945. <table width="100%" id="corp_list_title">
  946. <colgroup>
  947. <col width="500" />
  948. <col width="*" />
  949. </colgroup>
  950. <tr>
  951. <th>
  952. <div class="application-info magT15">
  953. <div class="application-sub-title">
  954. <span class="title">견적대상업체</span>
  955. </div>
  956. </div>
  957. </th>
  958. <td align="right">
  959. <span class="btnSearch center" id="btn_tbecheckpop"><a href="javascript:void(0);">기술검토결과서</a></span>
  960. <!-- 2015.3.5 입찰중 기술검토 결과서 반려추가 -->
  961. </td>
  962. </tr>
  963. </table>
  964. <div id="sheet1_div" style="padding-top:5px;height: auto; min-height: 160px; overflow: auto;">
  965. <script>createIBSheet('sheet1','100%', '160px');</script>
  966. </div>
  967. </form>