BidModify.jsp 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043
  1. <%--
  2. - Author(s) : Hyung min Son
  3. - Date : 2014.08.05
  4. - Description: 정정공고
  5. --%>
  6. <%@ page contentType="text/html; charset=utf-8" %>
  7. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  8. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  9. <%@ page import="kr.co.udapsoft.common.code.*" %>
  10. <%@ page import="kr.co.hsnc.common.util.*"%>
  11. <%@ page import="kr.co.hsnc.common.sql.*" %>
  12. <%@ page import="com.udapsoft.waf.common.util.Formatter2"%>
  13. <%@ include file="/jsp/work/taglib.jsp" %>
  14. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  15. <%
  16. ctx.init(request, response);
  17. HandlerStorage storage = ctx.getHandlerStorage();
  18. ValueObject params = storage.getParams();
  19. ValueObject user = storage.getUser();
  20. ValueObject Order = storage.getValueObject("Order");
  21. ValueObject filein = storage.getValueObject(Order.get("DOC_ETC_IN"));
  22. ValueObject fileout = storage.getValueObject(Order.get("DOC_ETC_OUT"));
  23. %>
  24. <SCRIPT language="JavaScript">
  25. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  26. /*예약함수*/
  27. var sheet1 = new ibsheetObject();
  28. var sheet2 = new ibsheetObject();
  29. var pageLastRowIndex = 1;
  30. var validationResult = false;
  31. var filterShow = false;
  32. var must_msg = "(은)는 필수 입력 항목입니다.";
  33. function _onReady(){
  34. /**
  35. * IBSheet object initialize
  36. */
  37. gridInit(sheet1);
  38. gridInit(sheet2);
  39. /**
  40. * Application Initialize
  41. */
  42. //취소
  43. $("#btn_cancel").click(function() {
  44. $("#fevent").val("FORM_SELECT");
  45. $("#form1").attr("action", "/bid/purchase/BidIng.screen");
  46. $("#form1").attr("target", "_self");
  47. $("#form1").attr("method", "post");
  48. $("#form1").submit();
  49. });
  50. // 정정공고
  51. $("#btn_modify").click(function() {
  52. if(must_ck()){
  53. if (confirm("정정공고를 하시겠습니까?")){
  54. var f = document.form1;
  55. $("#fevent").val("UPDATE");
  56. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/BidModify_sheet.screen";
  57. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  58. }
  59. }
  60. });
  61. //견적설명회 완료
  62. $("#btn_completion").click(function() {
  63. if(must_ck()){
  64. if (confirm("견적설명회 완료처리를 하시겠습니까?\n견적설명회 완료처리를 하시면 참여한 업체를 대상으로 견적의뢰를 하게 됩니다.")){
  65. var f = document.form1;
  66. $("#fevent").val("COMPLETION");
  67. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SiteExplanIng_sheet.screen";
  68. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  69. }
  70. }
  71. });
  72. $("#CMPT_CD").change(function() {
  73. if($("#CMPT_CD").val() == "01"){//공개경쟁
  74. /* var rowcnt = sheet1.RowCount();
  75. if(rowcnt> 0){
  76. sheet1.RemoveAll();
  77. } */
  78. $("#corp_list_title").hide();
  79. $("#btn_row_del").hide();
  80. $("#corp_add").hide();
  81. $("#sheet1_div").hide();
  82. $("#copr_list").hide();
  83. }else{
  84. $("#corp_list_title").show();
  85. $("#btn_row_del").show();
  86. $("#corp_add").show();
  87. $("#sheet1_div").show();
  88. $("#copr_list").show();
  89. autoResize();
  90. }
  91. });
  92. $("#CMPT_CD").change();
  93. $("#sitedesc_flag_1").click(function() {
  94. $("#SITEDESCCHRGPRSNID").attr("disabled",false);
  95. $("#SITEDESCTELNO").attr("disabled",false);
  96. $("#SITEDESCDATE").attr("disabled",false);
  97. $("#SITEDESCDATE_HH").attr("disabled",false);
  98. $("#SITEDESCDATE_MI").attr("disabled",false);
  99. $("#SITEDESCEMAIL").attr("disabled",false);
  100. $("#SITEDESCPLACE").attr("disabled",false);
  101. $("#btn_sitedescchrgprsnid").show();
  102. $("#calendar_sitedescdate").show();
  103. });
  104. $("#sitedesc_flag_2").click(function() {
  105. $("#SITEDESCCHRGPRSNID").attr("disabled",true);
  106. $("#SITEDESCCHRGPRSNID").val("");
  107. $("#SITEDESCTELNO").attr("disabled",true);
  108. $("#SITEDESCTELNO").val("");
  109. $("#SITEDESCDATE").attr("disabled",true);
  110. $("#SITEDESCDATE").val("");
  111. $("#SITEDESCDATE_HH").attr("disabled",true);
  112. $("#SITEDESCDATE_HH").val("");
  113. $("#SITEDESCDATE_MI").attr("disabled",true);
  114. $("#SITEDESCDATE_MI").val("");
  115. $("#SITEDESCEMAIL").attr("disabled",true);
  116. $("#SITEDESCEMAIL").val("");
  117. $("#SITEDESCPLACE").attr("disabled",true);
  118. $("#SITEDESCPLACE").val("");
  119. $("#btn_sitedescchrgprsnid").hide();
  120. $("#calendar_sitedescdate").hide();
  121. });
  122. $("#sort_gb_3").click(function() {
  123. $("#TBE_DATE").attr("disabled",false);
  124. $("#SUPP_REQ_DY").attr("disabled",false);
  125. $("#EVAL_EMPNM").attr("disabled",false);
  126. $("#btnevalemp").show();
  127. $("#calender_supp_req").show();
  128. });
  129. $("#sort_gb_4").click(function() {
  130. $("#TBE_DATE").attr("disabled",true);
  131. $("#TBE_DATE").val("");
  132. $("#SUPP_REQ_DY").attr("disabled",true);
  133. $("#SUPP_REQ_DY").val("");
  134. $("#EVAL_EMPNM").attr("disabled",true);
  135. $("#EVAL_EMPNM").val("");
  136. $("#EVAL_EMPID").attr("disabled",true);
  137. $("#EVAL_EMPID").val("");
  138. $("#btnevalemp").hide();
  139. $("#calender_supp_req").hide();
  140. });
  141. //견적대상 업체 조회
  142. doSearchSheet();
  143. //라디오 박스 체크 여부 // N 일경우 비활성화
  144. if($("#sitedesc_flag_2").attr("checked") == "checked")
  145. $("#sitedesc_flag_2").click();
  146. if($("#sort_gb_4").attr("checked") == "checked")
  147. $("#sort_gb_4").click();
  148. //업체공지일자 변경
  149. $("#NOTI_DY").change(function() {
  150. if($("#BID_FROM_DT").val().length> 0){
  151. if($("#NOTI_DY").val()> $("#BID_FROM_DT").val()){
  152. alert("업체공지일자는 견적제출일이전이어야 합니다.\n- 견적제출일:"+$("#BID_FROM_DT").val());
  153. $("#NOTI_DY").val("");
  154. return;
  155. }
  156. }
  157. if($("#SITEDESCDATE").val().length> 0){
  158. if($("#NOTI_DY").val()> $("#SITEDESCDATE").val()){
  159. alert("업체공지일자는 견적설명일이전이어야 합니다.\n- 견적설명일:"+$("#SITEDESCDATE").val());
  160. $("#NOTI_DY").val("");
  161. return;
  162. }
  163. }
  164. });
  165. //견적제출기간 변경
  166. $("#BID_FROM_DT").change(function() {
  167. if($("#SITEDESCDATE").val().length> 0){
  168. if($("#BID_FROM_DT").val() < $("#SITEDESCDATE").val()){
  169. alert("견적제출기간은 견적설명일 이전 일 수 없습니다.\n- 견적설명일:"+$("#SITEDESCDATE").val());
  170. $("#BID_FROM_DT").val("");
  171. return;
  172. }
  173. }
  174. if($("#NOTI_DY").val().length> 0){
  175. if($("#BID_FROM_DT").val() < $("#NOTI_DY").val()){
  176. alert("견적제출기간은 업체공지일 이전 일 수 없습니다.\n- 업체공지일:"+$("#NOTI_DY").val());
  177. $("#BID_FROM_DT").val("");
  178. return;
  179. }
  180. }
  181. if($("#BID_TO_DT").val().length> 0){
  182. if($("#BID_TO_DT").val() < $("#BID_FROM_DT").val()){
  183. alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  184. $("#BID_FROM_DT").val("");
  185. return;
  186. }
  187. }
  188. });
  189. //견적제출기간 변경
  190. $("#BID_TO_DT").change(function() {
  191. if($("#BID_FROM_DT").val().length> 0){
  192. if($("#BID_TO_DT").val() < $("#BID_FROM_DT").val()){
  193. alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  194. $("#BID_TO_DT").val("");
  195. return;
  196. }
  197. }
  198. if($("#SITEDESCDT").val().length> 0){
  199. if($("#BID_TO_DT").val() < $("#SITEDESCDT").val()){
  200. alert("견적제출기간은 견적설명일 이전 일 수 없습니다.\n- 견적설명일:"+$("#SITEDESCDATE").val());
  201. $("#BID_TO_DT").val("");
  202. return;
  203. }
  204. }
  205. });
  206. //견적제출기간 변경
  207. $("#DELI_START_DT").change(function() {
  208. if($("#DELI_END_DT").val().length> 0){
  209. if($("#DELI_START_DT").val()>= $("#DELI_END_DT").val()){
  210. alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  211. $("#DELI_START_DT").val("");
  212. return;
  213. }
  214. }
  215. });
  216. //견적제출기간 변경
  217. $("#DELI_END_DT").change(function() {
  218. if($("#DELI_START_DT").val().length> 0){
  219. if($("#DELI_START_DT").val()>= $("#DELI_END_DT").val()){
  220. alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  221. $("#DELI_END_DT").val("");
  222. return;
  223. }
  224. }
  225. });
  226. /* 단가계약여부 예일경우 */
  227. if($("#div_po_flag_1").attr("checked") == "checked")
  228. $("#CURRENCY_GB_YN").attr("checked", false);
  229. $("#div_po_flag_1").click(function() {
  230. $("#CURRENCY_GB_YN").attr("checked", false);
  231. $("#CURRENCY_GB_YN").attr("disabled",true);
  232. });
  233. $("#div_po_flag_2").click(function() {
  234. $("#CURRENCY_GB_YN").attr("disabled",false);
  235. });
  236. //pay_div가 2일경우 단가계약 아니오 후 수정 불가 9/22 추가
  237. var pay_div = "<%=Order.get("PAY_DIV")%>";
  238. if(pay_div == "2"){
  239. $("#div_po_flag_2").click();
  240. $("#div_po_flag_1").attr("disabled",true);
  241. $("#div_po_flag_2").attr("disabled",true);
  242. }
  243. $("#CURRENCY_GB_YN").click(function() {if($(':checkbox[name="CURRENCY_GB_YN"]:checked').val() != "Y")$("#CURRENCY_GB_YN").val("N"); });
  244. $("#PBC_INSTALL_YN").click(function() {if($(':checkbox[name="PBC_INSTALL_YN"]:checked').val() != "Y")$("#PBC_INSTALL_YN").val("N"); });
  245. $("#PBC_COMMISS_YN").click(function() {if($(':checkbox[name="PBC_COMMISS_YN"]:checked').val() != "Y")$("#PBC_COMMISS_YN").val("N"); });
  246. $("#PBC_SPETOOL_YN").click(function() {if($(':checkbox[name="PBC_SPETOOL_YN"]:checked').val() != "Y")$("#PBC_SPETOOL_YN").val("N"); });
  247. $("#PBC_TEST_YN").click(function() {if($(':checkbox[name="PBC_TEST_YN"]:checked').val() != "Y")$("#PBC_TEST_YN").val("N"); });
  248. $("#PBC_DOC_YN").click(function() {if($(':checkbox[name="PBC_DOC_YN"]:checked').val() != "Y")$("#PBC_DOC_YN").val("N"); });
  249. $("#PBC_PACK_YN").click(function() {if($(':checkbox[name="PBC_PACK_YN"]:checked').val() != "Y")$("#PBC_PACK_YN").val("N"); });
  250. $("#PBC_LANDTRAN_YN").click(function() {if($(':checkbox[name="PBC_LANDTRAN_YN"]:checked').val() != "Y")$("#PBC_LANDTRAN_YN").val("N"); });
  251. $("#DELIVERY_CONDITION_YN").click(function() {if($(':checkbox[name="DELIVERY_CONDITION_YN"]:checked').val() != "Y")$("#DELIVERY_CONDITION_YN").val("N"); });
  252. $("#PBC_FEE_YN").click(function() {if($(':checkbox[name="PBC_FEE_YN"]:checked').val() != "Y")$("#PBC_FEE_YN").val("N"); });
  253. $("#PBC_OPTION_YN").click(function() {if($(':checkbox[name="PBC_OPTION_YN"]:checked').val() != "Y")$("#PBC_OPTION_YN").val("N"); });
  254. }
  255. function doSearchSheet(){
  256. $("#fevent").val("GET_CORP_LIST");
  257. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SiteExplanIng_sheet.screen";
  258. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  259. }
  260. function doSearchSheetitem(){
  261. $("#fevent").val("GET_ITEM_LIST");
  262. var url = Modular.model.PageContext.CONTEXT_ROOT + "/bid/purchase/SiteExplanIng_sheet.screen";
  263. Modular.view.IBSheet7.doSearch(sheet2, url, jQuery("#form1"), 30, "");
  264. }
  265. function SearchUser(NAME,CODE,DEPT_YN){
  266. var GB = "";
  267. if(CODE == "PUREMPNO"){
  268. CODE = "";
  269. NAME = "";
  270. GB = "PUREMP";
  271. }
  272. var win_id = "_searchUserPopup";
  273. var link = "/lib/dlgSearchUserPop.screen";
  274. link += "?pop_win_id="+win_id;
  275. link += "&NAME="+NAME;
  276. link += "&CODE="+CODE;
  277. link += "&GB="+GB;
  278. if(DEPT_YN == "Y")
  279. link += "&deptNameYn=purchase";
  280. fLayerPop(win_id, link, 700,400, '', '', 'NO');
  281. }
  282. function SearchUserClose(result){
  283. if(result[10] == "PUREMP"){
  284. $("#PUREMPNO").val(result[9])//ACCT_ID
  285. $("#PUREMPNM").val(result[1])//이름
  286. $("#PO_EMPNM").val(result[6])//연락처
  287. }
  288. setTimeout(function(){fLayerPopClose('_searchUserPopup'); },100);
  289. }
  290. /**
  291. * IBSheet object initialize
  292. */
  293. function gridInit(sheetName){
  294. var init_sheet = {};
  295. init_sheet.Cfg = {SearchMode:2, Page:30,MergeSheet:msHeaderOnly};
  296. if(sheetName.id == "sheet1"){
  297. init_sheet.Cols = [
  298. {Header:'삭제', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  299. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  300. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  301. {Header:'추천부서', Type:"Text", SaveName:"RECM_DEPT_NM", Width:100, Align:"Center", Edit:false},
  302. {Header:'사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:100, Align:"Center", Edit:false,Format:"SaupNo"},
  303. {Header:'업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:100, Align:"Left", Edit:false},
  304. {Header:'대표자명', Type:"Text", SaveName:"REPRE_NO", Width:100, Align:"Center", Edit:false},
  305. {Header:'담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:100, Align:"Center", Edit:false},
  306. {Header:'핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:100, Align:"Center", Edit:false},
  307. {Header:'이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:130, Align:"Left", Edit:false},
  308. {Header:'추천사유', Type:"Text", SaveName:"RECOMMEND_REASON", Width:180, Align:"Left", Edit:false},
  309. {Header:'추천부서', Type:"Text", SaveName:"RECM_DEPT_ID", Width:0, Align:"Center", Hidden:"True"},
  310. {Header:'고객사코드', Type:"Text", SaveName:"VENDOR_CD", Width:0, Align:"Center", Hidden:"True"}
  311. ];
  312. }else{
  313. init_sheet.Cols = [
  314. {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center", Hidden:"True"},
  315. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  316. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  317. {Header:'자재코드|자재코드', Type:"Text", SaveName:"MATERIAL_CD", Width:80, Align:"Center"},
  318. {Header:'자재명|자재명', Type:"Text", SaveName:"MATERIAL_NAME", Width:120, Align:"Left"},
  319. {Header:'규격|규격', Type:"Text", SaveName:"STD", Width:60, Align:"Left"},
  320. {Header:'단위|단위', Type:"Text", SaveName:"UNIT_KIND", Width:40, Align:"Center"},
  321. {Header:'도급|단가', Type:"Int", SaveName:"CONT_UNIT_AMT", Width:60, Align:"Right"},
  322. {Header:'도급|금액', Type:"Int", SaveName:"CONT_AMT", Width:60, Align:"Right", CalcLogic:"|CONT_UNIT_AMT|*|DEMANDED_QTY|"},
  323. {Header:'실행|단가', Type:"Int", SaveName:"ACT_UNIT_AMT", Width:60, Align:"Right"},
  324. {Header:'실행|금액', Type:"Int", SaveName:"ACT_AMT", Width:60, Align:"Right", CalcLogic:"|ACT_UNIT_AMT|*|DEMANDED_QTY|"},
  325. {Header:'견적의뢰수량|견적의뢰수량', Type:"Float", SaveName:"DEMANDED_QTY", Width:40, Align:"Right"},
  326. {Header:'투입요청일|투입요청일', Type:"Text", SaveName:"REQUEST_DATE", Width:40, Align:"Center", Format:"####-##-##"}
  327. ];
  328. sheetName.SetEditable(false);
  329. }
  330. init_sheet.HeaderMode = {Sort:1};
  331. IBS_InitSheet(sheetName, init_sheet);
  332. sheetName.SetDataAutoTrim(0);
  333. setGridSize();
  334. }
  335. /**
  336. * IBSheet Event: Click
  337. */
  338. function sheet1_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  339. }
  340. /**
  341. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  342. */
  343. function sheet1_OnSearchEnd(code, message) {
  344. var fevent = $("#fevent").val();
  345. if(code == 0) {
  346. setGridSize();
  347. if(fevent == "GET_CORP_LIST")
  348. doSearchSheetitem();
  349. } else {
  350. //조회 에러 수행
  351. alert(message);
  352. }
  353. }
  354. /**
  355. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  356. */
  357. function sheet2_OnSearchEnd(code, message) {
  358. if(code == 0) {
  359. sheet2.FitColWidth();
  360. } else {
  361. //조회 에러 수행
  362. alert(message);
  363. }
  364. }
  365. /**
  366. * IBSheet size setting
  367. */
  368. function setGridSize() {
  369. sheet1.FitColWidth();
  370. sheet2.FitColWidth();
  371. }
  372. function cmpt_must_ck(){
  373. var rowcnt = sheet1.RowCount();
  374. if($("#CMPT_CD").val() == "03"){//수의계약
  375. if(rowcnt != 1){
  376. alert("견적 대상 업체가 1개 이어야 합니다.");
  377. $("#sheet1_div").focus();
  378. return true;
  379. }
  380. }else if($("#CMPT_CD").val() == "01" || $("#CMPT_CD").val() == "02"){//지명경쟁 공개경쟁
  381. if(rowcnt < 2){
  382. alert("견적 대상 업체가 2개 이상 있어야 합니다.");
  383. $("#sheet1_div").focus();
  384. return true;
  385. }
  386. }
  387. return false;
  388. }
  389. function must_ck(){
  390. if(must_ck_val("MODIFY_REASON","정정사유"))return false;
  391. if(must_ck_val("BID_FROM_DT",""))return false;
  392. if(time_ck("BID_FROM_HH","HH"))return false;
  393. if(time_ck("BID_FROM_MI","MI"))return false;
  394. if(must_ck_val("BID_TO_DT",""))return false;
  395. if(time_ck("BID_TO_HH","HH"))return false;
  396. if(time_ck("BID_TO_MI","MI"))return false;
  397. if(jQuery("#BID_FROM_DT").val() == jQuery("#BID_TO_DT").val()){
  398. var fromitme = jQuery("#BID_FROM_HH").val()+jQuery("#BID_FROM_MI").val();
  399. var toitme = jQuery("#BID_TO_HH").val()+jQuery("#BID_TO_MI").val();
  400. if(toitme <= fromitme){
  401. alert("견적제출기간 시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  402. jQuery("#BID_FROM_HH").focus();
  403. return false;
  404. }
  405. }
  406. if(must_ck_val("PUREMPNM",""))return false;
  407. if(must_ck_val("PO_EMPNM",""))return false;
  408. if(must_ck_val("OPEN_EMPNM",""))return false;
  409. if(must_ck_radio("TBE_FLAG","TBE여부"))return false;
  410. if($(':radio[name="TBE_FLAG"]:checked').val() == "Y"){
  411. if(must_ck_val("SUPP_REQ_DY",""))return false;
  412. if(must_ck_val("EVAL_EMPNM",""))return false;
  413. }
  414. if($("#CURRENCY_GB").val()==""){
  415. alert("통화구분은 필수입니다.");
  416. $("#CURRENCY_GB").focus();
  417. return false;
  418. }
  419. if($(':radio[name="PBC_CBE_TYPE_CD"]:checked').val() == undefined){
  420. alert("CBE문서TYPE은 필수입니다.");
  421. $("#PBC_CBE_TYPE_CD").focus();
  422. return false;
  423. }
  424. if($(':checkbox[name="PBC_OPTION_YN"]:checked').val() == "Y"){
  425. if($("#PBC_OPTION_COMMENT").val() == ""){
  426. alert("업체 견적내용 반영일 경우 내용을 입력하셔야 합니다.");
  427. $("#PBC_OPTION_COMMENT").focus();
  428. return false;
  429. }
  430. }
  431. /* var rowcnt = sheet1.RowCount();
  432. for(var r=0; r < rowcnt; r++)
  433. {
  434. if(sheet1.GetCellValue(r+1,"SITEPARTI_YN") == ""){
  435. alert(sheet1.GetCellValue(r+1,"VENDOR_NAME") + " 참석여부는 필수 입니다.");
  436. return false;
  437. }
  438. } */
  439. return true;
  440. }
  441. // value 값 체크
  442. function must_ck_val(obj,desc){
  443. if($("#"+obj).val().length == 0){
  444. if(desc.length> 0){
  445. alert(desc+must_msg);
  446. }else{
  447. alert($("#"+obj).attr("desc")+must_msg);
  448. }
  449. $("#"+obj).focus();
  450. return true;
  451. }
  452. return false;
  453. }
  454. // radio 박스 체크
  455. function must_ck_radio(obj,name){
  456. var value = $(':radio[name='+obj+']:checked').val();
  457. if(value == undefined){
  458. alert(name+must_msg);
  459. $("#"+obj).focus();
  460. return true;
  461. }
  462. return false;
  463. }
  464. function time_ck(obj,type){
  465. if(must_ck_val(obj,""))return true;
  466. if(!isNumber($("#"+obj).val())){
  467. alert("숫자만 입력 가능합니다.");
  468. $("#"+obj).focus();
  469. return true;
  470. }else{
  471. var time = Number($("#"+obj).val());
  472. if(type == "HH"){
  473. if(time < -1 || time> 23){
  474. alert("0~23 까지 입력 가능합니다.");
  475. $("#"+obj).focus();
  476. return true;
  477. }
  478. }else if(type == "MI"){
  479. if(time < -1 || time> 59){
  480. alert("0~59 까지 입력 가능합니다.");
  481. $("#"+obj).focus();
  482. return true;
  483. }
  484. }
  485. }
  486. if($("#"+obj).val().length == 1){
  487. var timelength = $("#"+obj).val();
  488. $("#"+obj).val("0"+timelength);
  489. }
  490. return false;
  491. }
  492. //첨부파일
  493. function doAttachFile(obj,No) {
  494. if(obj==''){
  495. alert("After you have saved, you can attach a file.");
  496. }
  497. else if(obj != ''){
  498. if(No == 1){
  499. //viewFileList("<%=Order.get("DOC_ETC_IN")%>", obj.value, document.form1.p_AttachFile1, "N", "N", "Y", "N");
  500. viewFileListNew('<%=Order.get("DOC_ETC_IN")%>', obj.value, document.form1.p_AttachFile1, "Y", "BD-001");
  501. }else{
  502. //viewFileList("<%=Order.get("DOC_ETC_OUT")%>", obj.value, document.form1.p_AttachFile2, "N", "N", "Y", "N");
  503. viewFileListNew('<%=Order.get("DOC_ETC_OUT")%>', obj.value, document.form1.p_AttachFile2, "Y", "BD-001");
  504. }
  505. }
  506. }
  507. //견적대상업체 추가
  508. function doInsert(sheetObj) {
  509. sheetObj.DataAutoTrim = false;
  510. var rowIndex = sheet1.DataInsert(-1);
  511. sheet1.SetColProperty(rowIndex,3,info);
  512. sheet1.SetColProperty(rowIndex,4,info);
  513. sheet1.SetColProperty(rowIndex,5,info);
  514. sheet1.SetColProperty(rowIndex,6,info);
  515. sheet1.SetRowEditable(rowIndex,1);
  516. var info= {Edit:true};
  517. }
  518. function doResult(resultObj) {
  519. try {
  520. if( resultObj.getRequestEvent() == "FORM_UPDATE") {
  521. if( resultObj.getSuccess() ) {
  522. alert("저장 되었습니다.");
  523. $("#btn_list").click();
  524. }
  525. else {
  526. dlgErrorMsg(resultObj);
  527. }
  528. }
  529. if( resultObj.getRequestEvent() == "FORM_DELETE") {
  530. if( resultObj.getSuccess() ) {
  531. alert("삭제 되었습니다.");
  532. $("#btn_list").click();
  533. }
  534. else {
  535. dlgErrorMsg(resultObj);
  536. }
  537. }
  538. } catch(errorObject) {
  539. showErrorDlg("doResult()", errorObject);
  540. }
  541. }
  542. function sheet1_OnSmartResize(Width, Height) {
  543. sheet1.FitColWidth();
  544. sheet2.FitColWidth();
  545. autoResize();
  546. }
  547. function autoResize(){
  548. sheet1.SetSheetHeight(160);
  549. sheet2.SetSheetHeight(250);
  550. }
  551. function sheet1_OnSaveEnd(code, msg)
  552. {
  553. var event = $("#fevent").val();
  554. if(event == "UPDATE"){
  555. alert("정정공고 하였습니다.");
  556. go_list();
  557. }else{
  558. if(code>= "0"){
  559. alert("저장되었습니다.");
  560. }else{
  561. alert("에러가 발생하였습니다.\n"+msg);
  562. }
  563. }
  564. }
  565. function go_list(){
  566. $("#fevent").val("");
  567. $("#form1").attr("action", "/bid/purchase/BidIngList.screen");
  568. $("#form1").attr("target", "_self");
  569. $("#form1").attr("method", "post");
  570. $("#form1").submit();
  571. }
  572. </SCRIPT>
  573. <modular:search id="form1">
  574. <modular:key id="fevent" />
  575. </modular:search>
  576. <form id="form1" name="form1" method="post" modular:type="search">
  577. <!-- List Search -->
  578. <INPUT type='hidden' name="p_demanded_status" value="<%=params.get("p_demanded_status")%>">
  579. <INPUT type='hidden' name="p_dept_cd" value="<%=params.get("p_dept_cd")%>">
  580. <INPUT type='hidden' name="p_dept_nm" value="<%=params.get("p_dept_nm")%>">
  581. <INPUT type='hidden' name="P_BID_MASTER_NM" value="<%=params.get("P_BID_MASTER_NM")%>">
  582. <INPUT type='hidden' name="P_SITEDESCDATE_FROM_DT" value="<%=params.get("P_SITEDESCDATE_FROM_DT")%>">
  583. <INPUT type='hidden' name="P_SITEDESCDATE_TO_DT" value="<%=params.get("P_SITEDESCDATE_TO_DT")%>">
  584. <INPUT type='hidden' name="p_bid_from_dt" value="<%=params.get("p_bid_from_dt")%>">
  585. <INPUT type='hidden' name="p_bid_to_dt" value="<%=params.get("p_bid_to_dt")%>">
  586. <!-- List Search -->
  587. <INPUT type='hidden' name="fevent" id="fevent" value="">
  588. <INPUT type='hidden' name="DEMANDED_ID" value="<%=Order.get("DEMANDED_ID")%>">
  589. <INPUT type='hidden' name="BID_NO" value="<%=Order.get("BID_NO")%>">
  590. <INPUT type='hidden' name="BID_DEG" value="<%=Order.getInt("BID_DEG")%>">
  591. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  592. <INPUT type='hidden' name="SITEDESCDATE" value="<%=Order.get("SITEDESCDATE")%>">
  593. <INPUT type='hidden' name="SITEDESCDT" value="<%=Order.get("SITEDESCDT")%>">
  594. <INPUT type='hidden' name="NOTI_DY" value="<%=Order.get("NOTI_DY")%>">
  595. <INPUT type='hidden' name="CMPT_CD" value="<%=Order.get("CMPT_CD")%>">
  596. <!-- 제목 및 버튼 -->
  597. <table width="100%">
  598. <colgroup>
  599. <col width="500" />
  600. <col width="*" />
  601. </colgroup>
  602. <tr>
  603. <th>
  604. <div align="left" id="title">
  605. <ul>
  606. <li>구매_입찰진행 상세<font style="font-size:11px"> (정정공고)</font></li>
  607. </ul>
  608. </div>
  609. </th>
  610. <td align="right">
  611. <span class="btnSearch center" id="btn_cancel"><a href="javascript:void(0);">취소</a></span>
  612. <span class="btnSearch center" id="btn_modify"><a href="javascript:void(0);">정정공고</a></span>
  613. </td>
  614. </tr>
  615. </table>
  616. <div class="application-info magT10">
  617. <div class="application-sub-title">
  618. <span class="title">정정사유</span>
  619. </div>
  620. <div class="application-location">
  621. </div>
  622. </div>
  623. <TABLE class="form-table">
  624. <colgroup>
  625. <col width="145"/>
  626. <col/>
  627. </colgroup>
  628. <TR height="100">
  629. <TH>정정사유</TH>
  630. <TD><textarea name="MODIFY_REASON" style="width:98%; height:98px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("MODIFY_REASON")%></textarea> </TD>
  631. </TR>
  632. </TABLE>
  633. <div class="application-info magT10">
  634. <div class="application-sub-title">
  635. <span class="title">발주의뢰정보</span>
  636. </div>
  637. <div class="application-location">
  638. </div>
  639. </div>
  640. <!-- 발주의뢰정보 : 시작 -->
  641. <TABLE class="form-table">
  642. <colgroup>
  643. <col width="160"/>
  644. <col width="20%">
  645. <col width="160"/>
  646. <col width="20%">
  647. <col width="160"/>
  648. <col/>
  649. </colgroup>
  650. <TR height="25">
  651. <TH> 현장</TH>
  652. <TD><%=Order.get("dept_nm") %></TD>
  653. <TH> 발주의뢰번호</TH>
  654. <TD><%=Order.get("DEMANDED_NO")%></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 colspan="3"><%= Order.get("PAY_ITEM_NM") %></TD>
  671. </TR>
  672. <TR height="25">
  673. <TH> 도급금액 (원)</TH>
  674. <TD><%= Formatter2.currency(Order.get("CONT_AMT"),0) %></TD>
  675. <TH> 실행금액 (원)</TH>
  676. <TD><%=Formatter2.currency(Order.get("ACT_AMT"),0) %></TD>
  677. <TH> 도급대비실행율(%)</TH>
  678. <TD><%= Order.get("ACT_RATE")%></TD>
  679. </TR>
  680. <!-- 발주의뢰정보 : 종료 -->
  681. </table>
  682. <div class="application-info magT20">
  683. <div class="application-sub-title">
  684. <span class="title">입찰기본정보</span>
  685. </div>
  686. </div>
  687. <TABLE class="form-table">
  688. <colgroup>
  689. <col width="160"/>
  690. <col width="160"/>
  691. <col width="29%"/>
  692. <col width="160"/>
  693. <col />
  694. </colgroup>
  695. <TR height="25">
  696. <TH> 입찰번호-차수</TH>
  697. <TD colspan="2"><%=Order.get("BID_NO")%>-<%=Order.get("BID_DEG")%></TD>
  698. <TH> 온라인입찰여부</TH>
  699. <TD><%=Order.get("ONBID_YN")%></TD>
  700. </TR>
  701. <TR height="25">
  702. <TH> 입찰명</TH>
  703. <TD colspan="2"><%=Order.get("BID_MASTER_NM")%></TD>
  704. <TH> 단가계약여부</TH>
  705. <TD><%=Order.get("DIV_PO_YN").equals("Y") ? "예" : "아니오" %></TD>
  706. </TR>
  707. <TR height="25">
  708. <TH> 경쟁방법</TH>
  709. <TD colspan="2"><%=Order.get("CMPT_NM")%></TD>
  710. <TH> 낙찰자선정방법</TH>
  711. <TD><%=Order.get("SUCC_NM")%></TD>
  712. </TR>
  713. <!-- 발주의뢰정보 : 종료 -->
  714. </table>
  715. <div class="application-info magT20">
  716. <div class="application-sub-title">
  717. <span class="title">입찰진행</span>
  718. </div>
  719. </div>
  720. <TABLE class="form-table">
  721. <colgroup>
  722. <col width="160"/>
  723. <col width="160"/>
  724. <col width="29%"/>
  725. <col width="160"/>
  726. <col />
  727. </colgroup>
  728. <TR height="25">
  729. <TH>업체공지일자</TH>
  730. <TD colspan="4"><%=Order.get("NOTI_DY")%></TD>
  731. </TR>
  732. <TR height="25">
  733. <TH rowspan="3"> 견적설명회 정보</TH>
  734. <TH> 여부</TH>
  735. <TD>
  736. <%=Order.get("SITEDESC_FLAG")%>
  737. </TD>
  738. <TH> 담당자</TD>
  739. <TD>
  740. <%=Order.get("SITEDESCCHRGPRSNNM")%><INPUT type='hidden' name="SITEDESCCHRGPRSNID" id="SITEDESCCHRGPRSNID" value="<%=Order.get("SITEDESCCHRGPRSNID")%>">
  741. </TD>
  742. </TR>
  743. <TR height="25">
  744. <TH> 담당자 전화번호</TH>
  745. <TD><%= Order.get("SITEDESCTELNO")%></TD>
  746. <TH> 일시</TH>
  747. <TD><%=Order.get("SITEDESCDATE")%></TD>
  748. </TR>
  749. <TR height="25">
  750. <TH> 담당자 E-Mail</TH>
  751. <TD><%=Order.get("SITEDESCEMAIL")%></TD>
  752. <TH> 장소</TH>
  753. <TD><%=Order.get("SITEDESCPLACE")%></TD>
  754. </TR>
  755. <TR height="25">
  756. <TH rowspan="3"> 견적 의뢰</TH>
  757. <TH class="required"> 견적제출기간</TH>
  758. <TD colspan="3">
  759. <%= InputText.get("BID_FROM_DT", Order.get("BID_FROM_DT"), 10, 10, "desc=견적제출기간,readOnly") %>
  760. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('BID_FROM_DT');">
  761. <%= InputText.get("BID_FROM_HH", Order.get("BID_FROM_HH"), 2, 2, "desc=견적제출기간,Time") %> :
  762. <%= InputText.get("BID_FROM_MI", Order.get("BID_FROM_MI"), 2, 2, "desc=견적제출기간,Time") %> ~
  763. <%= InputText.get("BID_TO_DT", Order.get("BID_TO_DT"), 10, 10, "desc=견적제출기간,readOnly") %>
  764. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('BID_TO_DT');">
  765. <%= InputText.get("BID_TO_HH", Order.get("BID_TO_HH"), 2, 2, "desc=견적제출기간,Time") %> :
  766. <%= InputText.get("BID_TO_MI", Order.get("BID_TO_MI"), 2, 2, "desc=견적제출기간,Time") %>
  767. </TD>
  768. </TR>
  769. <TR height="25">
  770. <TH class="required"> 구매담당자</TH>
  771. <TD>
  772. <%= InputText.get("PUREMPNM", Order.get("PUREMPNM"), 21, 60, "desc=구매담당자,readOnly") %><INPUT type='hidden' name="PUREMPNO" id="PUREMPNO" value="<%=Order.get("PUREMPNO")%>">
  773. <IMG src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:SearchUser('PUREMPNM','PUREMPNO','Y');">
  774. </TD>
  775. <TH class="required"> 구매담당자 전화번호</TH>
  776. <TD><%= InputText.get("PO_EMPNM", Order.get("PO_EMPNM"), 15, 13, "desc=구매담당자 전화번호") %> ex)02-0000-0000</TD>
  777. </TR>
  778. <TR height="25">
  779. <TH class="required"> 개찰자</TH>
  780. <TD colspan="3">
  781. <%= InputText.get("OPEN_EMPNM", Order.get("OPEN_EMPNM"),21, 60, "desc=개찰자,readOnly") %><INPUT type='hidden' name="OPEN_EMPID" id="OPEN_EMPID" value="<%=Order.get("OPEN_EMPID")%>">
  782. <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');">
  783. </TD>
  784. </TR>
  785. <TR height="25">
  786. <TH rowspan="2">기술검토(TBE)</TD>
  787. <TH class="required"> TBE 여부</TH>
  788. <TD>
  789. <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>
  790. <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>
  791. </TD>
  792. <TH class="required"> TBE 일자</TH>
  793. <TD><%= InputText.get("SUPP_REQ_DY", Order.get("SUPP_REQ_DY"), 15, 10, "persize,desc=TBE일자,readOnly") %>
  794. <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');">
  795. </TD>
  796. </TR>
  797. <TR height="25">
  798. <TH class="required"> TBE 심사자</TH>
  799. <TD colspan="3">
  800. <%= InputText.get("EVAL_EMPNM", Order.get("EVAL_EMPNM"), 21, 60, "desc=TBE심사자,readOnly") %><INPUT type='hidden' name="EVAL_EMPID" value="<%=Order.get("EVAL_EMPID")%>">
  801. <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');">
  802. </TD>
  803. </TR>
  804. <!-- 발주의뢰정보 : 종료 -->
  805. </table>
  806. <div class="application-info magT20">
  807. <div class="application-sub-title">
  808. <span class="title">입찰조건</span>
  809. </div>
  810. </div>
  811. <TABLE class="form-table">
  812. <colgroup>
  813. <col width="160"/>
  814. <col width="20%">
  815. <col width="160"/>
  816. <col width="20%">
  817. <col width="160"/>
  818. <col/>
  819. </colgroup>
  820. <TR height="25">
  821. <TH class="required">통화구분</TH>
  822. <TD>
  823. <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>
  824. <%=CommCodeManager.getSelectCodeList("911","CURRENCY_GB","height=18;","<option value=''>--선택--</option>",Order.get("CURRENCY_GB")) %>
  825. </TD>
  826. <TH class="required">CBE문서 TYPE</TH>
  827. <TD colspan="3">
  828. <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>
  829. <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>
  830. </TD>
  831. </TR>
  832. <TR height="25">
  833. <TH>Installation</TH><!-- 설치비 포함여부 -->
  834. <TD><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></TD>
  835. <TH>Spare Parts for Commissionig</TH><!-- 시운전 포함여부 -->
  836. <TD><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></TD>
  837. <TH>Special Tool</TH><!-- 설치비 특별공구 포함여부 -->
  838. <TD><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></TD>
  839. </TR>
  840. <TR height="25">
  841. <TH>Test & Inspection at Fabrication shop</TH><!-- 샾(공장) 검사비용 포함여부 -->
  842. <TD><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></TD>
  843. <TH>Documentation</TH><!-- vendor print (무조건 포함) 삭제? -->
  844. <TD><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></TD>
  845. <TH>Packing cost</TH><!-- 포장비용 포함여부 -->
  846. <TD><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></TD>
  847. </TR>
  848. <TR height="25">
  849. <TH>Inland Transportaion</TH><!-- 내륙운송비 -->
  850. <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></TD>
  851. <TH>Delivery Condition</TH><!-- 인도조건 (현장도착도, 현장상차도,현장설치도, 설치시운전도) -->
  852. <TD colspan="3"><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>
  853. <%=CommCodeManager.getSelectCodeList("PUR_LEAD_GB","DELIVERY_CONDITION","height=18;","<option value=''>--선택--</option>",Order.get("DELIVERY_CONDITION")) %></TD>
  854. </TR>
  855. <TR height="25">
  856. <TH>OPTIONAL PRICE</TH><!-- 현장감독관 일당 & 기타일당 내역 -->
  857. <TD colspan="5">A. Supervision fee &nbsp<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>
  858. &nbsp&nbsp B. <%= InputText.get("PBC_OPTION_COMMENT", Order.get("PBC_OPTION_COMMENT"), 15, 50, "") %> &nbsp<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></TD>
  859. </TR>
  860. <TR height="25">
  861. <TH>Liquidated Damages</TH><!-- 지체상금 fix -->
  862. <TD colspan="5"><%= InputText.get("CBC_DAMAGE_RATE", Order.get("CBC_DAMAGE_RATE"), 5, 6, "Right,Float","Float") %>% per days, Max <%= InputText.get("CBC_DAMAGE_MAXRATE", Order.get("CBC_DAMAGE_MAXRATE"), 5, 6, "Right,Float","Float") %>%
  863. </TR>
  864. <TR height="25">
  865. <TH>선급금</TH>
  866. <TD><%= InputText.get("CBC_FIRST_RATE", Order.get("CBC_FIRST_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_FIRST_CONDI", Order.get("PBC_FIRST_CONDI"), 20, 50, "") %></TD>
  867. <TH>중도금</TH>
  868. <TD><%= InputText.get("CPC_MID_RATE", Order.get("CPC_MID_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_MID_CONDI", Order.get("PBC_MID_CONDI"), 20, 50, "") %></TD>
  869. <TH>잔금</TH>
  870. <TD><%= InputText.get("PBC_REST_RATE", Order.get("PBC_REST_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_REST_CONDI", Order.get("PBC_REST_CONDI"), 20, 50, "") %></TD>
  871. </TR>
  872. <TR height="25">
  873. <TH>First Payment Bond</TH><!-- 선급금이행증권(yes, no) -->
  874. <TD><%= InputText.get("PBC_FRSTGUAR_RATE", Order.get("PBC_FRSTGUAR_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("PBC_FRSTGUAR_CONDI", Order.get("PBC_FRSTGUAR_CONDI"), 20, 50, "") %></TD>
  875. <TH>Performance Bond</TH><!-- 계약이행증권(yes, no) -->
  876. <TD><%= InputText.get("CONTFUL_RATE", Order.get("CONTFUL_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("CONTFUL_CONDI", Order.get("CONTFUL_CONDI"), 20, 50, "") %></TD>
  877. <TH>Guarantee Bond</TH><!-- 하자이행증권(yes, no) -->
  878. <TD><%= InputText.get("WARR_RATE", Order.get("WARR_RATE"), 5, 3, "Right,Number","Number") %>% <%= InputText.get("WARR_CONDI", Order.get("WARR_CONDI"), 20, 50, "") %></TD>
  879. </TR>
  880. <TR height="25">
  881. <TH>Guarantee Period</TH><!-- 하자보수기간 -->
  882. <TD colspan="3"><%= InputText.get("PBC_DEFECT_CONDI", Order.get("PBC_DEFECT_CONDI"), 25, 50, "") %> <%= InputText.get("CBC_DEFECT_DAY", Order.get("CBC_DEFECT_DAY"), 2, 2, "Number","Number") %>
  883. <%=CommCodeManager.getSelectCodeList("CBC_DERECT_TERM_CD","CBC_DERECT_TERM_CD","height=18;","",Order.get("CBC_DERECT_TERM_CD")) %> 간</TD>
  884. <TH>Delivery Period</TH><!-- 납기일 fix -->
  885. <TD>
  886. <%= InputText.get("DELI_FROM_DY", Order.get("DELI_FROM_DY"), 10, 10, "desc=Delivery Period From,center,readOnly") %>
  887. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('DELI_FROM_DY');"> ~
  888. <%= InputText.get("DELI_TO_DY", Order.get("DELI_TO_DY"), 10, 10, "desc=Delivery Period To,center,readOnly") %>
  889. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('DELI_TO_DY');">
  890. </TD>
  891. </TR>
  892. </TABLE>
  893. <TABLE class="form-table" style="margin-top: 10px">
  894. <col width="160px"/>
  895. <col width="160px"/>
  896. <col width="29%"/>
  897. <col width="160px"/>
  898. <col/>
  899. <TR height="100">
  900. <TH>특이사항 내부</TH>
  901. <TD colspan="2">
  902. <textarea name="INNER_REMARKS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("INNER_REMARKS")%></textarea>
  903. </TD>
  904. <TH> 특이사항 외부</TH>
  905. <TD>
  906. <textarea name="OUTER_REMARKS" style="width:98%; height:80px; overflow-y:auto" maxlength="1000" class="input byteChk ctrlTarget"><%=Order.get("OUTER_REMARKS")%></textarea>
  907. </TD>
  908. </TR>
  909. <TR height="100">
  910. <TH> 내부자료</TH>
  911. <TD colspan="2">
  912. <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>
  913. <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;'>
  914. </TD>
  915. <TH> 외부자료</TH>
  916. <TD>
  917. <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>
  918. <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;'>
  919. </TD>
  920. </TR>
  921. </TABLE>
  922. <table id=item_list width="100%">
  923. <colgroup>
  924. <col width="500" />
  925. <col width="*" />
  926. </colgroup>
  927. <tr>
  928. <th>
  929. <div class="application-info magT20">
  930. <div class="application-sub-title">
  931. <span class="title">견적의뢰내역</span>
  932. </div>
  933. </div>
  934. </th>
  935. <td align="right">
  936. </td>
  937. </tr>
  938. </table>
  939. <div id="sheet2_div" style="height: auto; min-height: 250px; overflow: auto;">
  940. <script>createIBSheet('sheet2','100%', '250px');</script>
  941. </div>
  942. <table width="100%" id="corp_list_title">
  943. <colgroup>
  944. <col width="500" />
  945. <col width="*" />
  946. </colgroup>
  947. <tr>
  948. <th>
  949. <div class="application-info magT15">
  950. <div class="application-sub-title">
  951. <span class="title">견적대상업체</span>
  952. </div>
  953. </div>
  954. </th>
  955. <td align="right">
  956. </td>
  957. </tr>
  958. </table>
  959. <div id="sheet1_div" style="padding-top:5px;height: auto; min-height: 160px; overflow: auto;">
  960. <script>createIBSheet('sheet1','100%', '160px');</script>
  961. </div>
  962. </form>