BidPlan.jsp 65 KB

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