BidPlan.jsp 64 KB

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