BidResult.jsp 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.08.08
  4. - Description: 구매_입찰결과상세
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="java.text.SimpleDateFormat" %>
  8. <%@ page import="java.util.Date" %>
  9. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  10. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  11. <%@ page import="kr.co.udapsoft.common.code.*" %>
  12. <%@ page import="kr.co.hsnc.common.util.*"%>
  13. <%@ page import="kr.co.hsnc.common.sql.*" %>
  14. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  15. <%@ page import="com.udapsoft.waf.common.util.StringUtils"%>
  16. <%@ page import="com.udapsoft.waf.common.ui.InitCombo" %>
  17. <%@ page import="kr.co.udapsoft.common.code.CommCodeManager" %>
  18. <%@ include file="/jsp/work/taglib.jsp" %>
  19. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  20. <%
  21. ctx.init(request, response);
  22. HandlerStorage storage = ctx.getHandlerStorage();
  23. ValueObject params = storage.getParams();
  24. ValueObject user = storage.getUser();
  25. ValueObject Order = storage.getValueObject("Order");
  26. ValueObject filein = storage.getValueObject(Order.get("DOC_ETC_IN"));
  27. ValueObject fileout = storage.getValueObject(Order.get("DOC_ETC_OUT"));
  28. ValueObject sign_info = storage.getValueObject("SIGN_INFO");
  29. boolean o_reason = false; //2015.3.27 개찰의견
  30. boolean p_reason = false;
  31. boolean c_reason = false;
  32. boolean m_reason = false;
  33. boolean f_reason = false;
  34. if(Order.get("OPEN_OPINION").length()> 0){
  35. o_reason = true;
  36. }
  37. if(Order.get("POSTPONE_REASON").length()> 0){
  38. p_reason = true;
  39. }
  40. if(Order.get("CANCEL_REASON").length()> 0){
  41. c_reason = true;
  42. }
  43. if(Order.get("MODIFY_REASON").length()> 0){
  44. m_reason = true;
  45. }
  46. if(Order.get("FIB_REASON").length()> 0){
  47. f_reason = true;
  48. }
  49. //공통코드
  50. CommCodeManager commCodeManager = new CommCodeManager();
  51. InitCombo initCombo = new InitCombo();
  52. initCombo.makeComboData(commCodeManager.getCodeRowSet("TBE_EVAL"), "NAME", "CODE");
  53. String TBE_EVAL_CD = initCombo.getCode();
  54. String TBE_EVAL_NM = initCombo.getCodeName();
  55. initCombo = new InitCombo();
  56. initCombo.makeComboData(commCodeManager.getCodeRowSet("BID_CHK_YN","DETAILCD","Y"), "DETAILNM", "DETAILCD");
  57. String BID_CHK_CD = initCombo.getCode();
  58. String BID_CHK_NM = initCombo.getCodeName();
  59. String gwurl = "http://gw.sgcenc.co.kr/";//WAFConfig.get("gw.url.address2");
  60. %>
  61. <SCRIPT language="JavaScript">
  62. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  63. /*예약함수*/
  64. var sheet1 = new ibsheetObject();
  65. var sheet2 = new ibsheetObject();
  66. var sheet3 = new ibsheetObject();
  67. var pageLastRowIndex = 1;
  68. var validationResult = false;
  69. var filterShow = false;
  70. var succ_vendor = "";
  71. function _onReady(){
  72. /**
  73. * IBSheet object initialize
  74. */
  75. gridInit(sheet1);
  76. gridInit(sheet2);
  77. gridInit(sheet3);
  78. /**
  79. * Application Initialize
  80. */
  81. $("#btn_list").click(function() {
  82. $("#fevent").val("");
  83. $("#form1").attr("action", "/bid/purchase/BidResultList.screen");
  84. $("#form1").attr("target", "_self");
  85. $("#form1").attr("method", "post");
  86. $("#form1").submit();
  87. });
  88. $("#btn_report").click(function() {
  89. var reportInfo = new ReportInfo();
  90. if($("#PBC_CBE_TYPE_CD").val() == "A")
  91. {
  92. reportInfo.title = "견적대비표";
  93. reportInfo.reportName = "/report/mrd/buyer/bid/purchase/Bid_purchase_Atype.mrd";
  94. reportInfo.set($("#BID_NO").val()); // $1
  95. reportInfo.set($("#BID_DEG").val()); // $2
  96. }
  97. else if($("#PBC_CBE_TYPE_CD").val() == "B")
  98. {
  99. reportInfo.title = "견적대비표";
  100. reportInfo.reportName = "/report/mrd/buyer/bid/purchase/Bid_purchase_Btype.mrd";
  101. reportInfo.set($("#BID_NO").val()); // $1
  102. reportInfo.set($("#BID_DEG").val()); // $2
  103. }
  104. else if($("#PBC_CBE_TYPE_CD").val() == "C")
  105. {
  106. reportInfo.title = "견적대비표";
  107. reportInfo.reportName = "/report/mrd/buyer/bid/purchase/Bid_purchase_Ctype.mrd";
  108. reportInfo.set($("#BID_NO").val()); // $1
  109. reportInfo.set($("#BID_DEG").val()); // $2
  110. }
  111. reportInfo.width = 1000; // Default: 1024
  112. reportInfo.height = 700; // Default: 768
  113. // reportInfo.reportOption = "/rf /rsn ["+f.defaultDS.value+"]"; // Default: '/rf'
  114. reportInfo.showPopup();
  115. });
  116. $("#btn_tbecheckpop").click(function() {
  117. var win_id = "_TBECheckPop";
  118. var link = "/bid/purchase/TBECheckPop.screen";
  119. link += "?pop_win_id="+win_id;
  120. link += "&BID_NO="+$("#BID_NO").val();
  121. link += "&BID_DEG="+$("#BID_DEG").val();
  122. fLayerPop(win_id, link, 900,210, '', '', 'YES');
  123. });
  124. if("<%=Order.get("PBC_DEFECT_CONDI2")%>"!=""||"<%=Order.get("CBC_DEFECT_DAY2")%>"!=""||"<%=Order.get("CBC_DERECT_TERM_CD2")%>"!=""){
  125. $("#addGuar").attr("checked", true);
  126. $(".checkAdd").show();
  127. }
  128. //보고자 조회
  129. doSearchSheet3();
  130. }
  131. function doSearchSheet(){
  132. $("#fevent").val("GET_CORP_LIST");
  133. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidResult_sheet.screen";
  134. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  135. }
  136. function doSearchSheetitem(){
  137. $("#fevent").val("GET_ITEM_LIST");
  138. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidIng_sheet.screen";
  139. Modular.view.IBSheet7.doSearch(sheet2, url, jQuery("#form1"), 30, "");
  140. }
  141. function doSearchSheet3(){
  142. $("#fevent").val("GET_REPORT_EMP_LIST");
  143. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidPlan_sheet.screen";
  144. Modular.view.IBSheet7.doSearch(sheet3, url, jQuery("#form1"), 30, "");
  145. }
  146. /**
  147. * IBSheet object initialize
  148. */
  149. function gridInit(sheetName){
  150. var init_sheet = {};
  151. if(sheetName.id == "sheet1"){
  152. init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly};
  153. init_sheet.Cols = [
  154. {Header:'삭제|삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  155. {Header:'Status|Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  156. {Header:'No.|No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  157. {Header:'지명부서|지명부서', Type:"Text", SaveName:"RECM_DEPT_NM", Width:80, Align:"Center" },
  158. {Header:'사업자번호|사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:100, Align:"Center", Format:"SaupNo"},
  159. {Header:'업체명|업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:100, Align:"left" },
  160. {Header:'대표자명|대표자명', Type:"Text", SaveName:"REPRE_NO", Width:0, Align:"Center" },
  161. {Header:'담당자명|담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:110, Align:"Center" },
  162. {Header:'핸드폰|핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:100, Align:"Center" },
  163. {Header:'이메일|이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:150, Align:"left" },
  164. {Header:'견적금액|견적금액', Type:"Text", SaveName:"ESTI_TOT_AMT", Width:100, Align:"Right", Cursor:"pointer"},
  165. {Header:'견적대비 \n실행율(%)|견적대비 \n실행율(%)', Type:"Text", SaveName:"ESTI_TOT_RATE", Width:100, Align:"Right" },
  166. {Header:'기술검토(TBE)|첨부파일', Type:"Text", SaveName:"FILE_CNT", Width:100, Align:"Center", Hidden:"True" },
  167. {Header:'기술검토(TBE)|TBE여부', Type:"Combo", SaveName:"TBEEVALUATE_YN", Width:100, Align:"Center", ComboText:"<%=BID_CHK_NM%>", ComboCode:"<%=BID_CHK_CD%>", Hidden:"True" },
  168. {Header:'기술검토(TBE)|기술검토(TBE)', Type:"Combo", SaveName:"EVAL_RESULT", Width:100, Align:"Center", ComboText:"<%=TBE_EVAL_NM%>", ComboCode:"<%=TBE_EVAL_CD%>" },
  169. {Header:'업체\n선정|업체\n선정', Type:"Combo", SaveName:"SUCC_YN", Width:100, Align:"Center", ComboText:"<%=BID_CHK_NM%>", ComboCode:"<%=BID_CHK_CD%>"},
  170. {Header:'결격\n사유|결격\n사유', Type:"PopupEdit", SaveName:"DISQ_YN", Width:100, Align:"Center", Hidden:"True"},
  171. {Header:'DISQ_REASON|DISQ_REASONO', Type:"Text", SaveName:"DISQ_REASON", Width:100, Align:"Center", Hidden:"True"},
  172. {Header:'BID_NO|BID_NO', Type:"Text", SaveName:"BID_NO", Width:100, Align:"Center", Hidden:"True"},
  173. {Header:'BID_DEG|BID_DEG', Type:"Text", SaveName:"BID_DEG", Width:100, Align:"Center", Hidden:"True"},
  174. {Header:'VENDOR_CD|VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:100, Align:"Center", Hidden:"True"},
  175. {Header:'FILE_GB|FILE_GB', Type:"Text", SaveName:"FILE_GB", Width:100, Align:"Center", Hidden:"True"},
  176. {Header:'현설|참석', Type:"Text", SaveName:"SITEPARTI_YN", Width:30, Align:"Center" },
  177. {Header:'현설|불참사유', Type:"Text", SaveName:"SITE_ATTEND_REASON", Width:100, Align:"Center" }
  178. ];
  179. }else if(sheetName.id == "sheet2"){
  180. init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly};
  181. init_sheet.Cols = [
  182. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  183. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  184. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  185. {Header:'자재코드|자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:60, Align:"Center"},
  186. {Header:'자재명|자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:220, Align:"Left"},
  187. {Header:'규격|규격', Type:"Text", SaveName:"STD", Width:70, Align:"Left"},
  188. {Header:'단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:30, Align:"Center"},
  189. {Header:'도급|단가', Type:"Int", SaveName:"CONT_UNIT_AMT", Width:50, Align:"Right"},
  190. {Header:'도급|금액', Type:"Int", SaveName:"CONT_AMT", Width:50, Align:"Right", CalcLogic:"|CONT_UNIT_AMT|*|DEMANDED_QTY|"},
  191. {Header:'실행|단가', Type:"Int", SaveName:"ACT_UNIT_AMT", Width:50, Align:"Right"},
  192. {Header:'실행|금액', Type:"Int", SaveName:"ACT_AMT", Width:50, Align:"Right", CalcLogic:"|ACT_UNIT_AMT|*|DEMANDED_QTY|"},
  193. {Header:'견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"DEMANDED_QTY", Width:40, Align:"Right"},
  194. {Header:'투입요청일|투입요청일', Type:"Text", SaveName:"REQUEST_DATE", Width:40, Align:"Center", Format:"####-##-##"}
  195. ];
  196. }else{
  197. init_sheet.Cfg = {SearchMode:2, Page:30 , MergeSheet:msHeaderOnly,SizeMode:1};
  198. init_sheet.Cols = [
  199. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  200. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  201. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  202. {Header:'계정ID', Type:"Text", SaveName:"ACCT_ID", Width:0, Align:"Center", Hidden:"True"},
  203. {Header:'이름', Type:"Text", SaveName:"USER_NAME", Width:100, Align:"Center", Edit:false},
  204. {Header:'부서명', Type:"Text", SaveName:"BUSEO_NAME", Width:150, Align:"Left", Edit:false},
  205. {Header:'직위명', Type:"Text", SaveName:"GRADE_NAME", Width:100, Align:"Center", Edit:false}
  206. ];
  207. }
  208. init_sheet.HeaderMode = {Sort:1};
  209. IBS_InitSheet(sheetName, init_sheet);
  210. sheetName.SetDataAutoTrim(0);
  211. sheetName.SetEditable(false);
  212. setGridSize();
  213. }
  214. /**
  215. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  216. */
  217. function sheet1_OnSearchEnd(code, message) {
  218. var fevent = $("#fevent").val();
  219. if(code == 0) {
  220. if("GET_CORP_LIST" == fevent)
  221. doSearchSheetitem();
  222. sheet1.SetColFontColor("ESTI_TOT_AMT", "#0000ff");
  223. } else {
  224. //조회 에러 수행
  225. alert(message);
  226. }
  227. }
  228. /**
  229. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  230. */
  231. function sheet2_OnSearchEnd(code, message) {
  232. if(code == 0) {
  233. sheet2.FitColWidth();
  234. } else {
  235. //조회 에러 수행
  236. alert(message);
  237. }
  238. }
  239. /**
  240. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  241. */
  242. function sheet3_OnSearchEnd(code, message) {
  243. if(code == 0) {
  244. //sheet3.FitColWidth();
  245. //견적대상 업체 조회
  246. doSearchSheet();
  247. } else {
  248. //조회 에러 수행
  249. alert(message);
  250. }
  251. }
  252. /**
  253. * IBSheet size setting
  254. */
  255. function setGridSize() {
  256. sheet1.FitColWidth();
  257. sheet2.FitColWidth();
  258. }
  259. function f_gologin(login_id,login_pw){
  260. var f = document.form1;
  261. if('<%= user.get("ACCT_TYPE_CODE")%>' != "ADMIN"){
  262. alert("User who logged in as administrator only can do automatic log-in.");
  263. return;
  264. }
  265. f.login_id.value = login_id;
  266. f.login_pw.value = login_pw;
  267. if( !submitXmlRequest("/sign_on_check", "", document.form1) ) {
  268. alert("Log-in is being processed.");
  269. };
  270. }
  271. //첨부파일
  272. function doAttachFile(obj,No) {
  273. var file_div = "bid/purchase/<%=Order.get("BID_NO")%>/";
  274. if(obj==''){
  275. alert("After you have saved, you can attach a file.");
  276. }
  277. else if(obj != ''){
  278. <%if(user.get("right_name").equals("ADMIN NEW")){%>
  279. if(No == 1){
  280. viewFileListNew('<%=Order.get("DOC_ETC_IN")%>', obj.value, document.form1.p_AttachFile1, "Y", file_div);
  281. }else if(No == 2){
  282. viewFileListNew('<%=Order.get("DOC_ETC_OUT")%>', obj.value, document.form1.p_AttachFile2, "Y", file_div);
  283. }
  284. <%}else{%>
  285. if(No == 1){
  286. viewFileListNew('<%=Order.get("DOC_ETC_IN")%>', obj.value, document.form1.p_AttachFile1, "N", file_div);
  287. }else if(No == 2){
  288. viewFileListNew('<%=Order.get("DOC_ETC_OUT")%>', obj.value, document.form1.p_AttachFile2, "N", file_div);
  289. }
  290. <%}%>
  291. }
  292. }
  293. function sheet1_OnSmartResize(Width, Height) {
  294. sheet1.FitColWidth();
  295. autoResize();
  296. }
  297. function autoResize(){
  298. sheet1.SetSheetHeight(160);
  299. sheet2.SetSheetHeight(250);
  300. }
  301. /**
  302. * IBSheet Event: DblClick
  303. */
  304. function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  305. if(Row == 0)return;
  306. var Sn = sheet1.GetCellProperty(Row, Col, "SaveName");
  307. if(Sn == "ESTI_TOT_AMT"){
  308. if(Value != ""){
  309. var win_id = "_BidAmtPop";
  310. var link = "/bid/purchase/BidAmtPop.screen";
  311. link += "?pop_win_id="+win_id;
  312. link += "&ROW="+Row;
  313. link += "&VENDOR_CD="+sheet1.GetCellValue(Row,"VENDOR_CD");
  314. link += "&BID_NO="+sheet1.GetCellValue(Row,"BID_NO");
  315. link += "&BID_DEG="+sheet1.GetCellValue(Row,"BID_DEG");
  316. link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
  317. link += "&VENDOR_NO="+sheet1.GetCellValue(Row,"VENDOR_NO");
  318. link += "&ESTI_TOT_AMT="+sheet1.GetCellValue(Row,"ESTI_TOT_AMT");
  319. link += "&SIGN_DT="+sheet1.GetCellValue(Row,"SIGN_DT");
  320. link += "&DEMANDED_ID="+$("#DEMANDED_ID").val();
  321. link += "&DIV_PO_YN="+$("#DIV_PO_YN").val();
  322. //fLayerPop(win_id, link, 1024,690, '', '', 'NO');
  323. window.open(link,win_id,"toolbar=no, width=1000, height=600, top=50, left=40, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new");
  324. }
  325. }
  326. }
  327. function doSignFile(doc_id){
  328. //alert(doc_id);
  329. if(doc_id == ""){
  330. alert("결재 정보가 없습니다.");
  331. return;
  332. }
  333. var doc_chk = doc_id.substring(doc_id.length-3, doc_id.length);
  334. doc_chk = doc_chk * 1;
  335. var link = "";
  336. var year = "<%=sign_info.get("year") %>";
  337. if (year > "20151213") {
  338. link = "<%=gwurl%>upload_approval/TEC/doc/" + year.substr(0,4) + "/" + doc_chk + "/"+ doc_id+".mht";
  339. }
  340. else{
  341. link = "<%=gwurl%>upload_approval/TEC/doc/" + doc_chk + "/"+ doc_id+".mht";
  342. }
  343. //var popOption = "width=400, height=450, resizable=no, scrollbars=auto, status=no;"; //팝업창 옵션(optoin)
  344. window.open(link,"_viewDraft","");
  345. }
  346. </SCRIPT>
  347. <modular:search id="form1">
  348. <modular:key id="fevent" />
  349. </modular:search>
  350. <form id="form1" name="form1" method="post" modular:type="search">
  351. <INPUT type='hidden' name="fevent" id="fevent" value="">
  352. <!-- List Search -->
  353. <INPUT type="hidden" name="P_BID_MASTER_NM" id="P_BID_MASTER_NM" value="<%= params.get("P_BID_MASTER_NM") %>">
  354. <INPUT type="hidden" name="p_dept_nm" id="p_dept_nm" value="<%= params.get("p_dept_nm") %>">
  355. <INPUT type="hidden" name="p_dept_cd" id="p_dept_cd" value="<%= params.get("p_dept_cd") %>">
  356. <INPUT type="hidden" name="p_demanded_status" id="p_demanded_status" value="<%= params.get("p_demanded_status") %>">
  357. <INPUT type="hidden" name="P_VENDOR_NM" id="P_VENDOR_NM" value="<%= params.get("P_VENDOR_NM") %>">
  358. <INPUT type="hidden" name="P_BID_NO" id="P_BID_NO" value="<%= params.get("P_BID_NO") %>">
  359. <INPUT type="hidden" name="P_MR_NO" id="P_MR_NO" value="<%= params.get("P_MR_NO") %>">
  360. <INPUT type="hidden" name="P_AUTO_SEARCH" id="P_AUTO_SEARCH" value="<%= params.get("P_AUTO_SEARCH") %>">
  361. <!-- List Search -->
  362. <INPUT type='hidden' name="PBC_CBE_TYPE_CD" value="<%=Order.get("PBC_CBE_TYPE_CD")%>">
  363. <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
  364. <INPUT type='hidden' name="BID_NO" value="<%=Order.get("BID_NO")%>">
  365. <INPUT type='hidden' name="BID_DEG" value="<%=Order.get("BID_DEG")%>">
  366. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  367. <INPUT type='hidden' name="DIV_PO_YN" value="<%=Order.get("DIV_PO_YN")%>">
  368. <INPUT type='hidden' name="SITEPARTI_YN" value="Y">
  369. <table width="100%">
  370. <colgroup>
  371. <col width="*" />
  372. <col width="200" />
  373. </colgroup>
  374. <tr>
  375. <th>
  376. <div align="left" id="title">
  377. <ul><li>구매_입찰결과상세<font style="font-size:11px"> (<%=Order.get("STATUS_NM")%>)</font></li></ul>
  378. </div>
  379. </th>
  380. <td align="right">
  381. <span class="btnSearch center" id="btn_list"><a href="javascript:void(0);">목록</a></span>
  382. </td>
  383. </tr>
  384. </table>
  385. <%if(o_reason || p_reason || m_reason || c_reason || f_reason){ %>
  386. <TABLE class="form-table">
  387. <colgroup>
  388. <col width="160">
  389. <col/>
  390. </colgroup>
  391. <%if(o_reason){ %>
  392. <TR height="25">
  393. <TH>개찰 특기사항</TH>
  394. <TD><%=StringUtils.cvtHTML(Order.get("OPEN_OPINION"))%></TD>
  395. </TR>
  396. <%} %>
  397. <%if(c_reason){ %>
  398. <TR height="25">
  399. <TH>취소사유</TH>
  400. <TD><%=StringUtils.cvtHTML(Order.get("CANCEL_REASON"))%></TD>
  401. </TR>
  402. <%} %>
  403. <%if(p_reason){ %>
  404. <TR height="25">
  405. <TH>연기사유</TH>
  406. <TD><%=StringUtils.cvtHTML(Order.get("POSTPONE_REASON"))%></TD>
  407. </TR>
  408. <%} %>
  409. <%if(m_reason){ %>
  410. <TR height="25">
  411. <TH>정정사유</TH>
  412. <TD><%=StringUtils.cvtHTML(Order.get("MODIFY_REASON"))%></TD>
  413. </TR>
  414. <%} %>
  415. <%if(f_reason){ %>
  416. <TR height="25">
  417. <TH>유찰사유</TH>
  418. <TD><%=Order.get("FIB_REASON")%></TD>
  419. </TR>
  420. <%} %>
  421. </TABLE>
  422. <%}%>
  423. <%if(!Order.get("REBID_REASON").equals("") || !Order.get("REBID_OUTREASON").equals("")){%>
  424. <div class="application-info magT10">
  425. <div class="application-sub-title">
  426. <span class="title">재입찰사유</span>
  427. </div>
  428. <div class="application-location">
  429. </div>
  430. </div>
  431. <TABLE class="form-table">
  432. <colgroup>
  433. <col width="150"/>
  434. <col width="40%" />
  435. <col width="150" />
  436. <col width="*" />
  437. </colgroup>
  438. <TR height="25">
  439. <TH>재입찰사유<br>(내부보고)</TH>
  440. <TD><%=StringUtils.cvtHTML(Order.get("REBID_REASON"))%></TD>
  441. <TH>재입찰사유<br>(외부공지)
  442. </TH>
  443. <TD><%=StringUtils.cvtHTML(Order.get("REBID_OUTREASON"))%></TD>
  444. </TR>
  445. </TABLE>
  446. <%} %>
  447. <div class="application-info magT10">
  448. <div class="application-sub-title">
  449. <span class="title">발주의뢰정보</span>
  450. </div>
  451. </div>
  452. <!-- 발주의뢰정보 : 시작 -->
  453. <TABLE class="form-table">
  454. <colgroup>
  455. <col width="160"/>
  456. <col width="23%">
  457. <col width="160"/>
  458. <col width="23%">
  459. <col width="160"/>
  460. <col/>
  461. </colgroup>
  462. <TR height="25">
  463. <TH> 현장</TH>
  464. <TD><%=Order.get("dept_nm") %></TD>
  465. <TH> 발주의뢰번호</TH>
  466. <TD><a href="javascript:doSignFile('<%=sign_info.get("doc_id") %>');"><%=Order.get("DEMANDED_NO")%></a>
  467. <TH> 발주의뢰명</TH>
  468. <TD><%=Order.get("DEMANDED_TITLE")%></TD>
  469. </TR>
  470. <TR height="25">
  471. <TH> 발주의뢰일</TH>
  472. <TD><%= Order.get("DEMANDED_DATE")%></TD>
  473. <TH> 발주의뢰부서</TH>
  474. <TD><%= Order.get("REQ_DEPT_NM")%></TD>
  475. <TH> 발주의뢰자</TH>
  476. <TD><%= Order.get("EMP_NM")%></TD>
  477. </TR>
  478. <TR height="25">
  479. <TH> 발주접수일자</TH>
  480. <TD><%=Order.get("RECEIPT_DATE") %></TD>
  481. <TH> Pay Item</TH>
  482. <TD><%= Order.get("PAY_ITEM_NM") %></TD>
  483. <TH> 구매예산 (원)</TH> <!-- 2015.02.27 구매예산추가 mklee -->
  484. <TD><%= Formatter2.currency(Order.get("PUR_AMT"),0) %></TD>
  485. </TR>
  486. <TR height="25">
  487. <TH> 도급금액 (원)</TH>
  488. <TD><%= Formatter2.currency(Order.get("CONT_AMT"),0) %></TD>
  489. <TH> 실행예산 (원)</TH>
  490. <TD><%=Formatter2.currency(Order.get("ACT_AMT"),0) %></TD>
  491. <TH> 도급대비실행율(%)</TH>
  492. <TD><%= Order.get("ACT_RATE")%></TD>
  493. </TR>
  494. <!-- 발주의뢰정보 : 종료 -->
  495. </table>
  496. <div class="application-info magT15">
  497. <div class="application-sub-title">
  498. <span class="title">입찰기본정보</span>
  499. </div>
  500. </div>
  501. <TABLE class="form-table">
  502. <colgroup>
  503. <col width="160"/>
  504. <col width="145"/>
  505. <col width="29%"/>
  506. <col width="160"/>
  507. <col/>
  508. </colgroup>
  509. <TR height="25">
  510. <TH> 입찰번호-차수</TH>
  511. <TD colspan="2">
  512. <%=Order.get("BID_NO")%>-<%=Order.get("BID_DEG")%>
  513. </TD>
  514. <TH> 온라인입찰여부</TH>
  515. <TD>
  516. <%=Order.get("ONBID_YN")%>
  517. </TD>
  518. </TR>
  519. <TR height="25">
  520. <TH> 입찰명</TH>
  521. <TD colspan="2">
  522. <%=Order.get("BID_MASTER_NM")%>
  523. </TD>
  524. <TH>단가계약여부</TH>
  525. <TD><%=Order.get("DIV_PO_YN").equals("Y") ? "예" : "아니오" %></TD>
  526. </TR>
  527. <TR height="25">
  528. <TH> 경쟁방법</TH>
  529. <TD colspan="2">
  530. <%=Order.get("CMPT_NM")%>
  531. </TD>
  532. <TH> 낙찰자선정방법</TH>
  533. <TD colspan="3">
  534. <%=Order.get("SUCC_NM") %>
  535. </TD>
  536. </TR>
  537. <!-- 발주의뢰정보 : 종료 -->
  538. </table>
  539. <div class="application-info magT15">
  540. <div class="application-sub-title">
  541. <span class="title">입찰진행</span>
  542. </div>
  543. </div>
  544. <TABLE class="form-table">
  545. <colgroup>
  546. <col width="160"/>
  547. <col width="145"/>
  548. <col width="29%"/>
  549. <col width="160"/>
  550. <col/>
  551. </colgroup>
  552. <TR height="25">
  553. <TH>업체공지일자</TH>
  554. <TD colspan="4"><%=Order.get("NOTI_DY") %></TD>
  555. </TR>
  556. <TR height="25">
  557. <TH rowspan="3"> 견적설명회 정보</TH>
  558. <TH> 여부</TH>
  559. <TD><%=Order.get("SITEDESC_FLAG")%></TD>
  560. <TH> 담당자</TH>
  561. <TD><%=Order.get("SITEDESCCHRGPRSNNM")%></TD>
  562. </TR>
  563. <TR height="25">
  564. <TH> 담당자 전화번호</TH>
  565. <TD ><%=Order.get("SITEDESCTELNO")%></TD>
  566. <TH> 일시</TH>
  567. <TD ><%=Order.get("SITEDESCDATE")%></TD>
  568. </TR>
  569. <TR height="25">
  570. <TH> 담당자 E-Mail</TH>
  571. <TD ><%=Order.get("SITEDESCEMAIL")%></TD>
  572. <TH> 장소</TH>
  573. <TD ><%=Order.get("SITEDESCPLACE")%></TD>
  574. </TR>
  575. <TR height="25">
  576. <TH rowspan="4"> 견적 의뢰</TH>
  577. <TH> 견적제출기간</TH>
  578. <TD colspan="3"><%=Order.get("BID_FROM_DT")%> ~<%=Order.get("BID_TO_DT")%></TD>
  579. </TR>
  580. <TR height="25">
  581. <TH> 구매담당자</TH>
  582. <TD ><%=Order.get("PUREMPNM")%></TD>
  583. <TH> 구매담당자 전화번호</TH>
  584. <TD ><%=Order.get("PO_EMPNM")%></TD>
  585. </TR>
  586. <TR height="25">
  587. <TH> 개찰자</TH>
  588. <TD colspan="3"><%=Order.get("OPEN_EMPNM")%></TD>
  589. </TR>
  590. <TR height="25">
  591. <TH> 보고자</TH>
  592. <TD colspan="3">
  593. <div id="sheet3_div" style="width: 100%; height: 100%;">
  594. <script>createIBSheet('sheet3','100%', '100px');</script>
  595. </div>
  596. </TD>
  597. </TR>
  598. <TR height="25">
  599. <TH rowspan="2">기술검토(TBE)</TD>
  600. <TH> TBE 여부</TH>
  601. <TD ><%=Order.get("TBE_FLAG").equals("Y") ? "예" : "아니오"%></TD>
  602. <TH> TBE 일자</TH>
  603. <TD><%=Order.get("SUPP_REQ_DY")%></TD>
  604. </TR>
  605. <TR height="25">
  606. <TH> TBE 심사자</TH>
  607. <TD><%=Order.get("EVAL_EMPNM")%></TD>
  608. <TH> TBE 완료일</TH>
  609. <TD><%=Order.get("TBE_FIN_DT")%></TD>
  610. </TR>
  611. <!-- 발주의뢰정보 : 종료 -->
  612. </table>
  613. <div class="application-info magT15">
  614. <div class="application-sub-title">
  615. <span class="title">입찰조건</span>
  616. </div>
  617. </div>
  618. <TABLE class="form-table">
  619. <colgroup>
  620. <col width="160"/>
  621. <col width="23%">
  622. <col width="160"/>
  623. <col width="23%">
  624. <col width="160"/>
  625. <col/>
  626. </colgroup>
  627. <TR height="25">
  628. <TH>통화구분</TH>
  629. <TD><%=Order.get("CURRENCY_GB_NM") %> &nbsp&nbsp
  630. <%=Order.get("CURRENCY_GB_YN").equals("Y") ? "[업체변경가능]" : "[업체변경불가능]" %>
  631. </TD>
  632. <TH>CBE문서 TYPE</TH>
  633. <TD colspan="3">
  634. <%if(!Order.get("PBC_CBE_TYPE_CD").isEmpty()){ %><%=Order.get("PBC_CBE_TYPE_CD").equals("A") ? "A type" : Order.get("PBC_CBE_TYPE_CD").equals("B") ? "B type":"C type(최종입찰업체만 표시)" %><%} %>
  635. </TD>
  636. </TR>
  637. <TR height="25">
  638. <TH>Installation</TH><!-- 설치비 포함여부 -->
  639. <TD><%=Order.get("PBC_INSTALL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  640. <TH>Spare Parts for Commissionig</TH><!-- 시운전 포함여부 -->
  641. <TD><%=Order.get("PBC_COMMISS_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  642. <TH>Special Tool</TH><!-- 설치비 특별공구 포함여부 -->
  643. <TD><%=Order.get("PBC_SPETOOL_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  644. </TR>
  645. <TR height="25">
  646. <TH>Test & Inspection at Fabrication shop</TH><!-- 샾(공장) 검사비용 포함여부 -->
  647. <TD><%=Order.get("PBC_TEST_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  648. <TH>Documentation</TH><!-- vendor print (무조건 포함) 삭제? -->
  649. <TD><%=Order.get("PBC_DOC_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  650. <TH>Packing cost</TH><!-- 포장비용 포함여부 -->
  651. <TD><%=Order.get("PBC_PACK_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  652. </TR>
  653. <TR height="25">
  654. <TH>Inland Transportaion</TH><!-- 내륙운송비 -->
  655. <TD><%=Order.get("PBC_LANDTRAN_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %></TD>
  656. <TH>Delivery Condition</TH><!-- 인도조건 (현장도착도, 현장상차도,현장설치도, 설치시운전도) -->
  657. <TD colspan="3">
  658. <%=Order.get("DELIVERY_CONDITION_NM") %>&nbsp&nbsp <%=Order.get("DELIVERY_CONDITION_YN").equals("Y") ? "[업체변경가능]" : "[업체 변경 불가능]" %></TD>
  659. </TR>
  660. <TR height="25">
  661. <TH>OPTIONAL PRICE</TH><!-- 현장감독관 일당 & 기타일당 내역 -->
  662. <TD colspan="5">A. Supervision fee &nbsp <%=Order.get("PBC_FEE_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %>
  663. <% if(!Order.get("PBC_OPTION_COMMENT").isEmpty()){ %>&nbsp&nbsp B. <%= Order.get("PBC_OPTION_COMMENT")%> &nbsp<%=Order.get("PBC_OPTION_YN").equals("Y") ? "업체 견적내용 반영" : "업체 견적내용 미반영" %><%} %></TD>
  664. </TR>
  665. <TR height="25">
  666. <TH>Liquidated Damages</TH><!-- 지체상금 fix -->
  667. <TD colspan="5"><%= Order.get("CBC_DAMAGE_RATE")%>% <%=Order.get("CBC_DAMAGE_NM") %>, Max <%= Order.get("CBC_DAMAGE_MAXRATE")%>%</TD>
  668. </TR>
  669. <TR height="25">
  670. <TH>선급금</TH>
  671. <TD><% if(!Order.get("CBC_FIRST_RATE").isEmpty()){ %><%=Order.get("CBC_FIRST_RATE") %>% <%} %><%= Order.get("PBC_FIRST_CONDI")%></TD>
  672. <TH>중도금</TH>
  673. <TD><% if(!Order.get("CPC_MID_RATE").isEmpty()){ %><%= Order.get("CPC_MID_RATE")%>% <%} %><%=Order.get("PBC_MID_CONDI")%></TD>
  674. <TH>잔금</TH>
  675. <TD><% if(!Order.get("PBC_REST_RATE").isEmpty()){ %><%= Order.get("PBC_REST_RATE") %>% <%} %><%=Order.get("PBC_REST_CONDI")%></TD>
  676. </TR>
  677. <TR height="25">
  678. <TH>First Payment Bond</TH><!-- 선급금이행증권(yes, no) -->
  679. <TD><%= Order.get("PBC_FRSTGUAR_RATE") %>% <%= Order.get("PBC_FRSTGUAR_CONDI")%></TD>
  680. <TH>Performance Bond</TH><!-- 계약이행증권(yes, no) -->
  681. <TD><%= Order.get("CONTFUL_RATE") %>% <%=Order.get("CONTFUL_CONDI") %></TD>
  682. <TH>Guarantee Bond</TH><!-- 하자이행증권(yes, no) -->
  683. <TD><%= Order.get("WARR_RATE") %>% <%= Order.get("WARR_CONDI")%></TD>
  684. </TR>
  685. <TR height="25">
  686. <TH>Guarantee Period</TH><!-- 하자보수기간 -->
  687. <TD colspan="3"><%=Order.get("PBC_DEFECT_CONDI") %> <%=Order.get("CBC_DEFECT_DAY") %>
  688. <% if(!Order.get("CBC_DERECT_TERM_NM").isEmpty()){ %><%=Order.get("CBC_DERECT_TERM_NM") %>간<%} %>
  689. <input type="checkbox" id="addGuar" style="margin-top:2px; display:none;">
  690. <span class="checkAdd" style="display:none;">&nbsp;or&nbsp;
  691. <%=Order.get("PBC_DEFECT_CONDI2") %> <%=Order.get("CBC_DEFECT_DAY2")%>
  692. <%if(Order.get("CBC_DERECT_TERM_CD2").equals("01")){%>
  693. <span>일</span>
  694. <%}else if(Order.get("CBC_DERECT_TERM_CD2").equals("02")){%>
  695. <span>개월</span>
  696. <%} %>
  697. </span>
  698. </TD>
  699. <TH>Delivery Period</TH><!-- 납기일 fix -->
  700. <TD>
  701. <%=Order.get("DELI_FROM_DY") %> ~
  702. <%= Order.get("DELI_TO_DY") %>
  703. </TD>
  704. </TR>
  705. </TABLE>
  706. <TABLE class="form-table" style="margin-top: 10px">
  707. <colgroup>
  708. <col width="160"/>
  709. <col width="145"/>
  710. <col width="29%"/>
  711. <col width="160"/>
  712. <col/>
  713. </colgroup>
  714. <TR height="100">
  715. <TH>주요발주내용</TH>
  716. <TD colspan="2">
  717. <%=StringUtils.cvtHTML(Order.get("MAIN_PR_CONTENTS"))%>
  718. </TD>
  719. <TH>입찰업체선정사유</TH>
  720. <TD>
  721. <%=StringUtils.cvtHTML(Order.get("BID_SUPP_SELECT_REASON"))%>
  722. </TD>
  723. </TR>
  724. <TR height="100">
  725. <TH>특이사항 내부</TH>
  726. <TD colspan="2">
  727. <textarea name="INNER_REMARKS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("INNER_REMARKS")%></textarea>
  728. </TD>
  729. <TH> 특이사항 외부</TH>
  730. <TD>
  731. <textarea name="OUTER_REMARKS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("OUTER_REMARKS")%></textarea>
  732. </TD>
  733. </TR>
  734. <TR height="100">
  735. <TH> 내부자료</TH>
  736. <TD colspan="2">
  737. <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>
  738. <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;'>
  739. </TD>
  740. <TH> 외부자료</TH>
  741. <TD>
  742. <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>
  743. <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;'>
  744. </TD>
  745. </TR>
  746. </TABLE>
  747. <table id=item_list width="100%">
  748. <colgroup>
  749. <col width="500" />
  750. <col width="*" />
  751. </colgroup>
  752. <tr>
  753. <th>
  754. <div class="application-info magT20">
  755. <div class="application-sub-title">
  756. <span class="title">견적의뢰내역</span>
  757. </div>
  758. </div>
  759. </th>
  760. <td align="right">
  761. </td>
  762. </tr>
  763. </table>
  764. <div id="sheet2_div" style="padding-top:5px;height: auto; min-height: 200px; overflow: auto;">
  765. <script>createIBSheet('sheet2','100%', '200px');</script>
  766. </div>
  767. <table width="100%">
  768. <colgroup>
  769. <col width="500" />
  770. <col width="*" />
  771. </colgroup>
  772. <tr>
  773. <th>
  774. <div class="application-info magT15">
  775. <div class="application-sub-title">
  776. <span class="title">견적대상업체</span>
  777. </div>
  778. </div>
  779. </th>
  780. <td align="right">
  781. <span class="btnSearch center" id="btn_report"><a href="javascript:void(0);">견적대비표</a></span>
  782. <span class="btnSearch center" id="btn_tbecheckpop"><a href="javascript:void(0);">기술검토결과서</a></span>
  783. </td>
  784. </tr>
  785. </table>
  786. <div id="sheet1_div" style="padding-top:5px;height: auto; min-height: 200px; overflow: auto;">
  787. <script>createIBSheet('sheet1','100%', '300px');</script>
  788. </div>
  789. </form>