OfflineBid.jsp 66 KB

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