QuotPurResult.jsp 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937
  1. <%--
  2. - Author(s) : Hoonseok choi
  3. - Date : 2023.01.18
  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("DOC_ETC_IN");
  25. ValueObject fileout = storage.getValueObject("DOC_ETC_OUT");
  26. String gwurl = "http://gw.sgcenc.co.kr/";
  27. String isModify = "";
  28. if(Order.get("quot_id").equals("")) {
  29. isModify = "false";
  30. } else {
  31. isModify = "true";
  32. }
  33. String today = DateUtil.formatDateTime(DateUtil.getToday(), "yyyyMMdd", "yyyyMMdd");
  34. //공통코드
  35. CommCodeManager commCodeManager = new CommCodeManager();
  36. InitCombo initCombo = new InitCombo();
  37. initCombo.makeComboData(commCodeManager.getCodeRowSet("QUOT_SUPP_SITEPARTI"), "NAME", "CODE");
  38. String BID_SUPP_SITEPARTI_CD = initCombo.getCode();
  39. String BID_SUPP_SITEPARTI_NM = initCombo.getCodeName();
  40. InitCombo initCombo2 = new InitCombo();
  41. initCombo2.makeComboData(commCodeManager.getCodeRowSet("QUOT_SUPP_SITEPARTI","CHG_CODE01","1"), "DETAILNM", "DETAILCD");
  42. String BID_SUPP_SITEPARTI_CD2 = initCombo2.getCode();
  43. String BID_SUPP_SITEPARTI_NM2 = initCombo2.getCodeName();
  44. %>
  45. <SCRIPT language="JavaScript">
  46. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  47. /*예약함수*/
  48. var sheet1 = new ibsheetObject();
  49. var sheet1Row;
  50. var sheet1PageNo = 1;
  51. var pageLastRowIndex = 1;
  52. var validationResult = false;
  53. var filterShow = false;
  54. var btn_act = "";
  55. var must_msg = "(은)는 필수 입력 항목입니다.";
  56. function _onReady(){
  57. /**
  58. * IBSheet object initialize
  59. */
  60. gridInit(sheet1);
  61. /**
  62. * Application Initialize
  63. */
  64. $("#sitedesc_flag_1").click(function() {
  65. $("#QUOT_SITEDESCDATE").attr("disabled",false);
  66. $("#QUOT_SITEDESCDATE_HH").attr("disabled",false);
  67. $("#QUOT_SITEDESCDATE_MI").attr("disabled",false);
  68. $("#QUOT_SITEDESCPLACE").attr("disabled",false);
  69. $("#calendar_sitedescdate").show();
  70. });
  71. $("#sitedesc_flag_2").click(function() {
  72. $("#QUOT_SITEDESCDATE").attr("disabled",true);
  73. $("#QUOT_SITEDESCDATE").val("");
  74. $("#QUOT_SITEDESCDATE_HH").attr("disabled",true);
  75. $("#QUOT_SITEDESCDATE_HH").val("");
  76. $("#QUOT_SITEDESCDATE_MI").attr("disabled",true);
  77. $("#QUOT_SITEDESCDATE_MI").val("");
  78. $("#QUOT_SITEDESCPLACE").attr("disabled",true);
  79. $("#QUOT_SITEDESCPLACE").val("");
  80. $("#calendar_sitedescdate").hide();
  81. });
  82. //라디오 박스 체크 여부 // N 일경우 비활성화
  83. if($("#sitedesc_flag_2").attr("checked") == "checked") $("#sitedesc_flag_2").click();
  84. $("#btn_list").click(function() {
  85. jQuery("#fevent").val("");
  86. jQuery("#form1").attr("action", "/quot/purchase/QuotPurResultList.screen");
  87. jQuery("#form1").attr("target", "_self");
  88. jQuery("#form1").attr("method", "post");
  89. jQuery("#form1").submit();
  90. });
  91. $("#btn_requot").click(function() {
  92. if(confirm("재견적 하시겠습니까?")){
  93. if($("#MAX_QUOT_BID_DEG").val()==$("#QUOT_BID_DEG").val()){
  94. jQuery("#fevent").val("SAVE_REQUOT_DETAIL");
  95. var f = document.form1;
  96. submitXmlRequest("/quot/purchase/QuotPurResult_form.screen", "SAVE_REQUOT_DETAIL", f);
  97. }else{
  98. if($("#MAX_STATUS_CD").val()=='01' || $("#MAX_STATUS_CD").val()=='02'){
  99. alert("재견적 진행중입니다.");
  100. }else{
  101. alert("최종차수에서 재견적 가능합니다.\n최종차수 : "+$("#MAX_QUOT_BID_DEG").val()+"차수");
  102. }
  103. }
  104. }
  105. });
  106. //견적의뢰일자 변경
  107. $("#REQUEST_DATE").change(function() {
  108. if($("#QUOT_BID_FROM_DT").val().length> 0){
  109. if($("#REQUEST_DATE").val()> $("#QUOT_BID_FROM_DT").val()){
  110. alert("견적의뢰일자는 견적제출일이전이어야 합니다.\n- 견적제출일:"+$("#QUOT_BID_FROM_DT").val());
  111. $("#REQUEST_DATE").val("");
  112. return;
  113. }
  114. }
  115. if($("#QUOT_SITEDESCDATE").val().length> 0){
  116. if($("#REQUEST_DATE").val()> $("#QUOT_SITEDESCDATE").val()){
  117. alert("견적의뢰일자는 견적설명일이전이어야 합니다.\n- 견적설명일:"+$("#QUOT_SITEDESCDATE").val());
  118. $("#REQUEST_DATE").val("");
  119. return;
  120. }
  121. }
  122. });
  123. //견적제출기간 변경
  124. $("#QUOT_BID_FROM_DT").change(function() {
  125. if($("#QUOT_SITEDESCDATE").val().length> 0){
  126. if($("#QUOT_BID_FROM_DT").val() < $("#QUOT_SITEDESCDATE").val()){
  127. alert("견적제출일자는 견적설명일 이전일수 없습니다.\n- 견적설명일:"+$("#QUOT_SITEDESCDATE").val());
  128. $("#QUOT_BID_FROM_DT").val("");
  129. return;
  130. }
  131. }
  132. if($("#REQUEST_DATE").val().length> 0){
  133. if($("#QUOT_BID_FROM_DT").val() < $("#REQUEST_DATE").val()){
  134. alert("견적제출기간은 견적의뢰일 이전 일 수 없습니다.\n- 견적의뢰일:"+$("#REQUEST_DATE").val());
  135. $("#QUOT_BID_FROM_DT").val("");
  136. return;
  137. }
  138. }
  139. if($("#QUOT_BID_TO_DT").val().length> 0){
  140. if($("#QUOT_BID_TO_DT").val() < $("#QUOT_BID_FROM_DT").val()){
  141. alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  142. $("#QUOT_BID_FROM_DT").val("");
  143. return;
  144. }
  145. }
  146. });
  147. //견적제출기간 변경
  148. $("#QUOT_BID_TO_DT").change(function() {
  149. if($("#QUOT_SITEDESCDATE").val().length> 0){
  150. if($("#QUOT_BID_TO_DT").val() < $("#QUOT_SITEDESCDATE").val()){
  151. alert("견적제출일자는 견적설명일 이전일수 없습니다.\n- 견적설명일:"+$("#QUOT_SITEDESCDATE").val());
  152. $("#QUOT_BID_TO_DT").val("");
  153. return;
  154. }
  155. }
  156. if($("#QUOT_BID_FROM_DT").val().length> 0){
  157. if($("#QUOT_BID_TO_DT").val() < $("#QUOT_BID_FROM_DT").val()){
  158. alert("시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  159. $("#QUOT_BID_TO_DT").val("");
  160. return;
  161. }
  162. }
  163. if($("#REQUEST_DATE").val().length> 0){
  164. if($("#QUOT_BID_TO_DT").val() < $("#REQUEST_DATE").val()){
  165. alert("견적제출기간은 견적의뢰일 이전 일 수 없습니다.\n- 견적의뢰일:"+$("#REQUEST_DATE").val());
  166. $("#QUOT_BID_TO_DT").val("");
  167. return;
  168. }
  169. }
  170. });
  171. $("#QUOT_MAN_EMAIL").change(function() {
  172. if(!checkEmail($("#QUOT_MAN_EMAIL").val())){
  173. alert("이메일 형식이 올바르지 않습니다.");
  174. $("#QUOT_MAN_EMAIL").focus();
  175. }
  176. });
  177. doSearchSheet();
  178. }
  179. function sheet1_OnChange(Row, Col, Value) {
  180. if(Col == 8){//전화번호 형식 체크
  181. if(Value != ""){
  182. if(!checkTelno(Value)){
  183. alert("전화번호 형식이 올바르지 않습니다.");
  184. sheet1.SetCellValue(Row,Col,"");
  185. }
  186. }
  187. }
  188. if(Col == 9){//이메일 형식 체크
  189. if(Value != ""){
  190. if(!checkEmail(Value)){
  191. alert("이메일 형식이 올바르지 않습니다.");
  192. sheet1.SetCellValue(Row,Col,"");
  193. }
  194. }
  195. }
  196. }
  197. function searchAccDept(p_dept_cd, p_dept_nm){
  198. var win_id = "_searchDept";
  199. var link = "/lib/dlgSearchAccDept.screen";
  200. link += "?pop_win_id="+win_id;
  201. //link += "&{{query}}";
  202. fLayerPop(win_id, link, 600,400, '', '', 'NO');
  203. }
  204. function searchAccDeptClose(result){
  205. if( result == null ){
  206. p_dept_cd.value = ""; //부서코드
  207. p_dept_nm.value = ""; //부서명
  208. }else{
  209. p_dept_cd.value = result[0]; //부서코드
  210. p_dept_nm.value = result[1]; //부서명
  211. }
  212. setTimeout(function(){fLayerPopClose('_searchDept');},100);
  213. }
  214. function searchAccDept(p_dept_cd, p_dept_nm){
  215. var win_id = "_searchDept";
  216. var link = "/lib/dlgSearchAccDept.screen";
  217. link += "?pop_win_id="+win_id;
  218. //link += "&{{query}}";
  219. fLayerPop(win_id, link, 600,400, '', '', 'NO');
  220. }
  221. function searchAccDeptClose(result){
  222. if( result == null ){
  223. }else{
  224. sheet1.SetCellValue($("#TEMP_ROW").val(),"RECM_DEPT_ID",result[0]); //부서코드
  225. sheet1.SetCellValue($("#TEMP_ROW").val(),"RECM_DEPT_NM", result[1]); //부서명
  226. }
  227. setTimeout(function(){ fLayerPopClose('_searchDept');},100);
  228. }
  229. function doSearchSheet(){
  230. $("#fevent").val("GET_CORP_LIST");
  231. var url = Modular.model.PageContext.CONTEXT_ROOT + "/quot/purchase/QuotPurResult_sheet.screen";
  232. Modular.view.IBSheet7.doSearch(sheet1, url, jQuery("#form1"), 30, "");
  233. }
  234. /**
  235. * IBSheet object initialize
  236. */
  237. function gridInit(sheetName){
  238. var init_sheet = {};
  239. if(sheetName.id == "sheet1"){
  240. init_sheet.Cfg = {SearchMode:2, Page:30, MergeSheet:msHeaderOnly};
  241. init_sheet.Cols = [
  242. {Header:'선택', Type:"DelCheck", SaveName:"DEL_CHECK", Width:0, Align:"Center"},
  243. {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Hidden:"True"},
  244. {Header:'No.', Type:"Seq", SaveName:"NO", Width:0, Align:"Center", Hidden:"True"},
  245. {Header:'사업자번호', Type:"Text", SaveName:"VENDOR_NO", Width:100, Align:"Center", Format:"SaupNo", Edit:false},
  246. {Header:'업체명', Type:"Text", SaveName:"VENDOR_NAME", Width:100, Align:"Left", Edit:false},
  247. {Header:'대표자명', Type:"Text", SaveName:"REPRE_NO", Width:100, Align:"Center", Edit:false},
  248. {Header:'담당자명', Type:"Text", SaveName:"CHARGE_NAME", Width:100, Align:"Center"},
  249. {Header:'전화번호', Type:"Text", SaveName:"TEL_NUM", Width:100, Align:"Center", Edit:false},
  250. {Header:'핸드폰', Type:"Text", SaveName:"CHAGE_HP", Width:100, Align:"Center"},
  251. {Header:'이메일', Type:"Text", SaveName:"CHARGE_EMAIL", Width:100, Align:"Left"},
  252. {Header:'참석의사', Type:"Combo", SaveName:"SITE_ATTEND_YN", Width:80, Align:"Center", ComboText:"<%=BID_SUPP_SITEPARTI_NM%>", ComboCode:"<%=BID_SUPP_SITEPARTI_CD%>", Edit:false, Cursor:"Pointer"},
  253. {Header:'참석여부', Type:"Combo", SaveName:"SITEPARTI_YN", Width:80, Align:"Center", ComboText:"<%=BID_SUPP_SITEPARTI_NM2%>", ComboCode:"<%=BID_SUPP_SITEPARTI_CD2%>"},
  254. {Header:'최종견적제출시간', Type:"Text", SaveName:"SUBMIT_DT", Width:100, Align:"Center", Edit:false},
  255. {Header:'견적금액(원)', Type:"Text", SaveName:"ESTI_TOT_AMT", Width:100, Align:"Right", Edit:false, Cursor:'pointer'},
  256. {Header:'파일다운', Type:"Text", SaveName:"FILE_DOWN", Width:50, Align:"Center", Edit:false, Cursor:'pointer'},
  257. {Header:'QUOT_BID_NO', Type:"Text", SaveName:"QUOT_BID_NO", Width:0, Align:"Center", Hidden:"True"},
  258. {Header:'QUOT_BID_DEG', Type:"Text", SaveName:"QUOT_BID_DEG", Width:0, Align:"Center", Hidden:"True"},
  259. {Header:'FILE_GB', Type:"Text", SaveName:"FILE_GB", Width:0, Align:"Center", Hidden:"True"},
  260. {Header:'VENDOR_CD', Type:"Text", SaveName:"VENDOR_CD", Width:0, Align:"Center", Hidden:"True"}
  261. ];
  262. }
  263. init_sheet.HeaderMode = {Sort:1};
  264. IBS_InitSheet(sheetName, init_sheet);
  265. sheetName.SetDataAutoTrim(0);
  266. sheetName.SetImageList(1,"/img/buyer/button/bt_search_right.gif");
  267. //sheetName.SizeMode(0);
  268. setGridSize();
  269. }
  270. /**
  271. * IBSheet Event: Click
  272. */
  273. function sheet1_OnClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  274. }
  275. /**
  276. * IBSheet Event: Search End(IBSheet 데이터 조회 CallBack)
  277. */
  278. function sheet1_OnSearchEnd(code, message) {
  279. if(code == 0) {
  280. setGridSize();
  281. var rowcnt = sheet1.RowCount();
  282. if(rowcnt> 0){
  283. for(var r=0; r < rowcnt; r++)
  284. {
  285. if(sheet1.GetCellValue(r+1,"SUBMIT_DT") == "미제출"){
  286. sheet1.SetCellFont("FontColor", r+1, 10, r+1, 10, "red");
  287. }
  288. sheet1.SetCellFont("FontColor", r+1, 11, r+1, 11, "blue");
  289. }
  290. }
  291. } else {
  292. //조회 에러 수행
  293. alert(message);
  294. }
  295. }
  296. function save_detail_sheet() {
  297. jQuery("#fevent").val("SAVE_SUPP_DETAIL");
  298. var url = Modular.model.PageContext.CONTEXT_ROOT + "/quot/purchase/QuotPurResult_sheet.screen";
  299. var result = Modular.view.IBSheet7.doSave(sheet1, url, jQuery("#form1"), false);
  300. }
  301. /**
  302. * IBSheet size setting
  303. */
  304. function setGridSize() {
  305. sheet1.FitColWidth();
  306. }
  307. function create_must_ck(){
  308. if(must_ck_val("QUOT_BID_MASTER_NM","견적명"))return false;
  309. if(must_ck_val("REQUEST_DATE","견적의뢰일자"))return false;
  310. if(must_ck_val("REQUEST_MAN_ID","견적의뢰자"))return false;
  311. if(must_ck_val("DEALER_NM","사업주"))return false;
  312. if(must_ck_val("WORK_PLACE","현장위치"))return false;
  313. if(must_ck_val("START_WORK_DATE","공사시작일"))return false;
  314. if(must_ck_val("END_WORK_DATE","공사마감일"))return false;
  315. if(must_ck_val("ITEM_NM","공종"))return false;
  316. return true;
  317. }
  318. function save_must_ck(){
  319. if(must_ck_val("QUOT_BID_MASTER_NM","견적명"))return false;
  320. if(must_ck_val("REQUEST_DATE","견적의뢰일자"))return false;
  321. if(must_ck_val("REQUEST_MAN_ID","견적의뢰자"))return false;
  322. if(must_ck_val("DEALER_NM","사업주"))return false;
  323. if(must_ck_val("WORK_PLACE","현장위치"))return false;
  324. if(must_ck_val("START_WORK_DATE","공사시작일"))return false;
  325. if(must_ck_val("END_WORK_DATE","공사마감일"))return false;
  326. if(must_ck_val("ITEM_NM","공종"))return false;
  327. if(must_ck_val("QUOT_BID_FROM_DT","견적제출일"))return false;
  328. if(time_ck("QUOT_BID_FROM_HH","HH"))return false;
  329. if(time_ck("QUOT_BID_FROM_MI","MI"))return false;
  330. if(must_ck_val("QUOT_BID_TO_DT","견적마감일"))return false;
  331. if(time_ck("QUOT_BID_TO_HH","HH"))return false;
  332. if(time_ck("QUOT_BID_TO_MI","MI"))return false;
  333. if(jQuery("#QUOT_BID_FROM_DT").val() == jQuery("#QUOT_BID_TO_DT").val()){
  334. var fromitme = jQuery("#QUOT_BID_FROM_HH").val()+jQuery("#QUOT_BID_FROM_MI").val();
  335. var toitme = jQuery("#QUOT_BID_TO_HH").val()+jQuery("#QUOT_BID_TO_MI").val();
  336. if(toitme <= fromitme){
  337. alert("견적제출기간 시작 또는 종료(마감) 일시가 잘못 입력되었습니다.");
  338. jQuery("#QUOT_BID_FROM_HH").focus();
  339. return false;
  340. }
  341. }
  342. if(must_ck_val("QUOT_MAN_ID","견적담당자"))return false;
  343. if(must_ck_val("QUOT_MAN_TELNO ","담당자 전화번호"))return false;
  344. if(must_ck_val("QUOT_MAN_EMAIL","담당자 E-Mail"))return false;
  345. if(must_ck_val("OUTER_REMARKS","특이사항 외부"))return false;
  346. if(must_ck_radio("QUOT_SITEDESC_FLAG","견적설명여부"))return false;
  347. if($(':radio[name="QUOT_SITEDESC_FLAG"]:checked').val() == "Y"){
  348. if(must_ck_val("QUOT_SITEDESCDATE",""))return false;
  349. if(time_ck("QUOT_SITEDESCDATE_HH","HH"))return false;
  350. if(time_ck("QUOT_SITEDESCDATE_MI","MI"))return false;
  351. if(must_ck_val("QUOT_SITEDESCPLACE",""))return false;
  352. }
  353. var rowcnt = sheet1.RowCount();
  354. if(rowcnt == 0){
  355. alert("견적 대상 업체가 1개 이상 이어야 합니다.");
  356. $("#sheet1_div").focus();
  357. return false;
  358. }
  359. return true;
  360. }
  361. // value 값 체크
  362. function must_ck_val(obj,desc){
  363. if($("#"+obj).val().length == 0){
  364. if(desc.length> 0){
  365. alert(desc+must_msg);
  366. }else{
  367. alert($("#"+obj).attr("desc")+must_msg);
  368. }
  369. $("#"+obj).focus();
  370. return true;
  371. }
  372. return false;
  373. }
  374. // radio 박스 체크
  375. function must_ck_radio(obj,name){
  376. var value = $(':radio[name='+obj+']:checked').val();
  377. if(value == undefined){
  378. alert(name+must_msg);
  379. $("#"+obj).focus();
  380. return true;
  381. }
  382. return false;
  383. }
  384. function time_ck(obj,type){
  385. if(must_ck_val(obj,""))return true;
  386. if(!isNumber($("#"+obj).val())){
  387. alert("숫자만 입력 가능합니다.");
  388. $("#"+obj).focus();
  389. return true;
  390. }else{
  391. var time = Number($("#"+obj).val());
  392. if(type == "HH"){
  393. if(time < -1 || time> 23){
  394. alert("0~23 까지 입력 가능합니다.");
  395. $("#"+obj).focus();
  396. return true;
  397. }
  398. }else if(type == "MI"){
  399. if(time < -1 || time> 59){
  400. alert("0~59 까지 입력 가능합니다.");
  401. $("#"+obj).focus();
  402. return true;
  403. }
  404. }
  405. }
  406. if($("#"+obj).val().length == 1){
  407. var timelength = $("#"+obj).val();
  408. $("#"+obj).val("0"+timelength);
  409. }
  410. return false;
  411. }
  412. //첨부파일
  413. function doAttachFile(obj,No) {
  414. var file_div = "quot/purchase/"+"<%=Order.get("QUOT_BID_NO")%>"+"/";
  415. var fileName = "견적_";
  416. var upLoadFlg = "Y";
  417. if(<%=Order.get("STATUS_CD")%> == "02" || <%=Order.get("STATUS_CD")%> == "10"){
  418. upLoadFlg = "N";
  419. }
  420. if(obj.value==''){
  421. alert("견적 생성 후, 파일을 첨부할 수가 있습니다.");
  422. }else if(obj != ''){
  423. if(No == 1){
  424. fileName += "내부자료";
  425. viewFileListNew("QUOT_FILE_IN_"+obj.value, obj.value, document.form1.p_AttachFile1, upLoadFlg, file_div, null, null, null, null, "N", fileName);
  426. }else{
  427. fileName += "외부자료";
  428. viewFileListNew("QUOT_FILE_OUT_"+obj.value, obj.value, document.form1.p_AttachFile2, upLoadFlg, file_div, null, null, null, null, "N", fileName);
  429. }
  430. }
  431. }
  432. function doResult(resultObj) {
  433. try {
  434. if( resultObj.getRequestEvent() == "SAVE_REQUOT_DETAIL") {
  435. if( resultObj.getSuccess() ) {
  436. alert("재견적 생성 되었습니다.");
  437. jQuery("#fevent").val("");
  438. jQuery("#form1").attr("action", "/quot/purchase/QuotPurPlanList.screen");
  439. jQuery("#form1").attr("target", "_self");
  440. jQuery("#form1").attr("method", "post");
  441. jQuery("#form1").submit();
  442. }
  443. else {
  444. dlgErrorMsg(resultObj);
  445. }
  446. }
  447. if( resultObj.getRequestEvent() == "UPDATE_QUOT_DETAIL") {
  448. if( resultObj.getSuccess() ) {
  449. alert("저장 되었습니다.");
  450. save_detail_sheet();
  451. }
  452. else {
  453. dlgErrorMsg(resultObj);
  454. }
  455. }
  456. if( resultObj.getRequestEvent() == "SEND_QUOT_DETAIL") {
  457. if( resultObj.getSuccess() ) {
  458. alert("전송 되었습니다.");
  459. save_detail_sheet();
  460. }
  461. else {
  462. alert("외부자료를 등록하시기 바랍니다.");
  463. //dlgErrorMsg(resultObj);
  464. reSearch();
  465. }
  466. }
  467. if( resultObj.getRequestEvent() == "FORM_DELETE") {
  468. if( resultObj.getSuccess() ) {
  469. alert("삭제 되었습니다.");
  470. $("#btn_list").click();
  471. }
  472. else {
  473. dlgErrorMsg(resultObj);
  474. }
  475. }
  476. if( resultObj.getRequestEvent() == "STATUS_QUOT_DETAIL") {
  477. if( resultObj.getSuccess() ) {
  478. alert("견적서 수정이 가능합니다.");
  479. reSearch();
  480. }
  481. else {
  482. dlgErrorMsg(resultObj);
  483. }
  484. }
  485. if( resultObj.getRequestEvent() == "FINISH_QUOT_DETAIL") {
  486. if( resultObj.getSuccess() ) {
  487. alert("견적 마감 되었습니다.");
  488. reSearch();
  489. }
  490. else {
  491. dlgErrorMsg(resultObj);
  492. }
  493. }
  494. } catch(errorObject) {
  495. showErrorDlg("doResult()", errorObject);
  496. }
  497. }
  498. function sheet1_OnSaveEnd(code, msg)
  499. {
  500. var event = $("#fevent").val();
  501. if(event == "SAVE_SUPP_DETAIL"){
  502. if(code>= "0"){
  503. reSearch();
  504. }else{
  505. alert(msg);
  506. }
  507. }else if(event == "SET_CORP_DELETE"){
  508. if(code>= "0"){
  509. alert("삭제 되었습니다.");
  510. reSearch();
  511. }else{
  512. alert(msg);
  513. }
  514. }else if( event == "RESEND_QUOT_DETAIL") {
  515. if(code>= "0"){
  516. alert("재전송 되었습니다.");
  517. reSearch();
  518. }else{
  519. alert(msg);
  520. }
  521. }else if( event == "SAVE_DETAIL") {
  522. if(code>= "0"){
  523. alert("수정 되었습니다.");
  524. reSearch();
  525. }else{
  526. alert(msg);
  527. }
  528. }
  529. else{
  530. if(code>= "0"){
  531. }else{
  532. alert("에러가 발생하였습니다.\n\n"+msg);
  533. }
  534. }
  535. }
  536. function reSearch() {
  537. jQuery("#fevent").val("GET_QUOT_DETAIL");
  538. jQuery("#form1").attr("action", "/quot/purchase/QuotPurPlan.screen");
  539. jQuery("#form1").attr("target", "_self");
  540. jQuery("#form1").attr("method", "post");
  541. jQuery("#form1").submit();
  542. }
  543. function sheet1_OnSmartResize(Width, Height) {
  544. sheet1.FitColWidth();
  545. autoResize();
  546. }
  547. function autoResize(){
  548. sheet1.SetSheetHeight(300);
  549. }
  550. function sheet1_OnDblClick(Row, Col, Value, CellX, CellY, CellW, CellH) {
  551. if(Row == 0)return;
  552. if(sheet1.ColSaveName(Col) == "SITE_ATTEND_YN"){
  553. if(sheet1.GetCellValue(Row,"SITE_ATTEND_YN") == "N") {
  554. $("#fevent").val("GET_QUOT_SUPP_DETAIL");
  555. var win_id = "_QuotAmtPop";
  556. var quot_id = jQuery("#quot_id").val();
  557. var link = "/quot/outside/QuotAmtPop.screen";
  558. link += "?pop_win_id="+win_id;
  559. link += "&ROW="+Row;
  560. link += "&VENDOR_CD="+sheet1.GetCellValue(Row,"VENDOR_CD");
  561. link += "&QUOT_ID="+quot_id;
  562. link += "&QUOT_BID_NO="+sheet1.GetCellValue(Row,"QUOT_BID_NO");
  563. link += "&QUOT_BID_DEG="+sheet1.GetCellValue(Row,"QUOT_BID_DEG");
  564. link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
  565. link += "&VENDOR_NAME="+sheet1.GetCellValue(Row,"VENDOR_NAME");
  566. link += "&ESTI_TOT_AMT="+sheet1.GetCellValue(Row,"ESTI_TOT_AMT");
  567. link += "&SITE_ATTEND_YN="+sheet1.GetCellValue(Row,"SITE_ATTEND_YN");
  568. link += "&sModule=LM";
  569. //fLayerPop(win_id, link, 1000,400, '', '', 'NO');
  570. window.open(link,win_id,"toolbar=no, width=1000, height=400, top=50, left=40, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new");
  571. }
  572. }
  573. else if(sheet1.ColSaveName(Col) == "ESTI_TOT_AMT"){
  574. if(jQuery("#quot_id").val() == "") {
  575. alert("견적 생성 후 선택 할 수 있습니다.");
  576. return;
  577. }else if(sheet1.GetCellValue(Row,"SUBMIT_DT") == "미제출"){
  578. alert("해당업체는 견적 미제출 상태입니다.");
  579. return;
  580. }else if(sheet1.GetCellValue(Row,"SITE_ATTEND_YN") == "N"){
  581. alert("해당업체는 견적 불참 업체입니다.");
  582. return;
  583. }else{
  584. $("#fevent").val("GET_QUOT_SUPP_DETAIL");
  585. var win_id = "_QuotAmtPop";
  586. var quot_id = jQuery("#quot_id").val();
  587. var link = "/quot/outside/QuotAmtPop.screen";
  588. link += "?pop_win_id="+win_id;
  589. link += "&ROW="+Row;
  590. link += "&VENDOR_CD="+sheet1.GetCellValue(Row,"VENDOR_CD");
  591. link += "&QUOT_ID="+quot_id;
  592. link += "&QUOT_BID_NO="+sheet1.GetCellValue(Row,"QUOT_BID_NO");
  593. link += "&QUOT_BID_DEG="+sheet1.GetCellValue(Row,"QUOT_BID_DEG");
  594. link += "&FILE_GB="+sheet1.GetCellValue(Row,"FILE_GB");
  595. link += "&VENDOR_NAME="+sheet1.GetCellValue(Row,"VENDOR_NAME");
  596. link += "&ESTI_TOT_AMT="+sheet1.GetCellValue(Row,"ESTI_TOT_AMT");
  597. link += "&SITE_ATTEND_YN="+sheet1.GetCellValue(Row,"SITE_ATTEND_YN");
  598. link += "&sModule=LM";
  599. //fLayerPop(win_id, link, 1000,400, '', '', 'NO');
  600. window.open(link,win_id,"toolbar=no, width=1000, height=400, top=50, left=40, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new");
  601. }
  602. }else if(sheet1.ColSaveName(Col) == "FILE_DOWN"){
  603. if(jQuery("#quot_id").val() == "") {
  604. alert("견적 생성 후 선택 할 수 있습니다.");
  605. return;
  606. }else if(sheet1.GetCellValue(Row,"SUBMIT_DT") == "미제출"){
  607. alert("해당업체는 견적 미제출 상태입니다.");
  608. return;
  609. }else{
  610. var file_name = sheet1.GetCellValue(Row,"QUOT_BID_NO")+"("+sheet1.GetCellValue(Row,"VENDOR_NAME")+")";
  611. fileDown(file_name, sheet1.GetCellValue(Row,"FILE_GB"));
  612. }
  613. }
  614. }
  615. function fileDown(file_id, file_gb){
  616. var fileName = file_id;
  617. var url="/common/file/FileDownloadServlet";
  618. url += "?mode=zipDown";
  619. url += "&fileName=" + encodeURIComponent(fileName);
  620. url += "&fileGB=" + file_gb;
  621. url += "&ID=<%=Order.get("quot_id")%>";
  622. window.open(url, "_fileDown", "toolbar=no, width=400, height=100, top=500, left=400, toolbar=no,directories=no,status=no,scrollbars=yes,resize=no,menubar=no,target=new")
  623. }
  624. function textareaResize(obj) {
  625. obj.style.height = "80px";
  626. obj.style.height = obj.scrollHeight+"px";
  627. }
  628. </SCRIPT>
  629. <modular:search id="form1">
  630. <modular:key id="fevent" />
  631. </modular:search>
  632. <form id="form1" name="form1" method="post" modular:type="search">
  633. <INPUT type='hidden' name="fevent" id="fevent" value="">
  634. <!-- List Search -->
  635. <INPUT type="hidden" name="p_dept_nm" id="p_dept_nm" value="<%= Order.get("dept_nm") %>">
  636. <INPUT type="hidden" name="p_dept_cd" id="p_dept_cd" value="<%= Order.get("dept_cd") %>">
  637. <!-- List Search -->
  638. <INPUT type='hidden' name="QUOT_BID_NO" value="<%=Order.get("QUOT_BID_NO")%>">
  639. <INPUT type='hidden' name="QUOT_BID_DEG" value="<%=Order.get("QUOT_BID_DEG")%>">
  640. <INPUT type='hidden' name="QUOT_TYPE" value="<%=Order.get("QUOT_TYPE")%>">
  641. <INPUT type='hidden' name="STATUS_CD" value="<%=Order.get("STATUS_CD")%>">
  642. <INPUT type="hidden" name="quot_id" value="<%= params.get("quot_id") %>">
  643. <INPUT type='hidden' name="REQUEST_DEPT_CD" value="<%=Order.get("REQUEST_DEPT_CD")%>">
  644. <INPUT type='hidden' name="MAX_QUOT_BID_DEG" value="<%=Order.get("MAX_QUOT_BID_DEG")%>">
  645. <INPUT type='hidden' name="MAX_STATUS_CD" value="<%=Order.get("MAX_STATUS_CD")%>">
  646. <INPUT type='hidden' name="QUOT_KIND" value="P">
  647. <INPUT type='hidden' name="SAVE" value="">
  648. <INPUT type='hidden' name="DOC_ETC_IN" value="<%=Order.get("DOC_ETC_IN")%>">
  649. <INPUT type='hidden' name="DOC_ETC_OUT" value="<%=Order.get("DOC_ETC_OUT")%>">
  650. <INPUT type='hidden' name="WARR_CONDI" value="견적의뢰일로 부터">
  651. <!-- 제목 및 버튼 -->
  652. <table width="100%">
  653. <colgroup>
  654. <col width="500" />
  655. <col width="*" />
  656. </colgroup>
  657. <tr>
  658. <th>
  659. <div align="left" id="title">
  660. <ul><li>구매_견적 결과</li></ul>
  661. </div>
  662. </th>
  663. <td align="right">
  664. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_requot">재견적</a></span>
  665. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_list">목록</a></span>
  666. </td>
  667. </tr>
  668. </table>
  669. <!-- 견적정보 : 시작 -->
  670. <div class="application-info magT10">
  671. <div class="application-sub-title">
  672. <span class="title">견적의뢰정보</span>
  673. </div>
  674. </div>
  675. <TABLE class="form-table">
  676. <colgroup>
  677. <col width="150"/>
  678. <col width="21%">
  679. <col width="150"/>
  680. <col width="20%">
  681. <col width="160"/>
  682. <col/>
  683. </colgroup>
  684. <TR height="25">
  685. <TH>현장</TH>
  686. <TD><%=Order.get("dept_nm") %></TD>
  687. <TH>견적번호</TH>
  688. <TD><%=Order.get("quot_bid_no") %></TD>
  689. <TH class="required">견적명</TH>
  690. <TD><%= InputText.get("QUOT_BID_MASTER_NM", Order.get("QUOT_BID_MASTER_NM"), 45, 300, "desc=견적명") %> </TD>
  691. </TR>
  692. <TR height="25">
  693. <TH class="required">견적의뢰일자</TH>
  694. <TD><%= InputText.get("REQUEST_DATE", Order.get("REQUEST_DATE"), 10, 10, "desc=견적의뢰일자,center,readOnly") %>
  695. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('REQUEST_DATE');"></TD>
  696. <TH>견적의뢰부서</TH>
  697. <TD><%= InputText.get("REQUEST_DEPT_NM", Order.get("REQUEST_DEPT_NM"), 45, 70, "desc=견적의뢰부서,readOnly") %> </TD>
  698. <TH class="required">견적의뢰자</TH>
  699. <TD><%= InputText.get("REQUEST_MAN_NM", Order.get("REQUEST_MAN_NM"), 21, 50, "desc=견적설명담당자,readOnly") %><INPUT type='hidden' name="REQUEST_MAN_ID" value="<%=Order.get("REQUEST_MAN_ID")%>">
  700. <IMG id="btn_request_man_id" src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:SearchUser('REQUEST_MAN_NM','REQUEST_MAN_ID','N');">
  701. </TD>
  702. </TR>
  703. <TR height="25">
  704. <TH class="required">사업주</TH>
  705. <TD><%= InputText.get("DEALER_NM", Order.get("DEALER_NM"), 45, 50, "desc=사업주") %> </TD>
  706. <TH>CM/감리사</TH>
  707. <TD><%= InputText.get("SUPERVISOR", Order.get("SUPERVISOR"), 45, 50, "desc=CM/감리사") %> </TD>
  708. <TH class="required">현장위치</TH>
  709. <TD><%= InputText.get("WORK_PLACE", Order.get("WORK_PLACE"), 45, 250, "desc=현장위치") %> </TD>
  710. </TR>
  711. <TR height="25">
  712. <TH class="required">공사기간</TH>
  713. <TD><%= InputText.get("START_WORK_DATE", Order.get("START_WORK_DATE"), 10, 10, "desc=공사기간,readOnly,center") %>
  714. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('START_WORK_DATE');">
  715. <%-- <%if(!Order.get("START_WORK_DATE").isEmpty()||!Order.get("END_WORK_DATE").isEmpty()){ %>~<%} %> --%>
  716. ~
  717. <%= InputText.get("END_WORK_DATE", Order.get("END_WORK_DATE"), 10, 10, "desc=공사기간,readOnly,center") %>
  718. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('END_WORK_DATE');">
  719. </TD>
  720. <TH>공사규모</TH>
  721. <TD><%= InputText.get("WORK_SIZE", Order.get("WORK_SIZE"), 45, 250, "desc=공사규모") %> </TD>
  722. <TH class="required">공종</TH>
  723. <TD><%= InputText.get("ITEM_NM", Order.get("ITEM_NM"), 45, 150, "desc=공종") %> </TD>
  724. </TR>
  725. </TABLE>
  726. <!-- 견적정보 : 시작 -->
  727. <div class="application-info magT10">
  728. <div class="application-sub-title">
  729. <span class="title">견적기본정보</span>
  730. </div>
  731. </div>
  732. <TABLE class="form-table">
  733. <colgroup>
  734. <col width="150"/>
  735. <col width="21%">
  736. <col width="150"/>
  737. <col width="20%">
  738. <col width="160"/>
  739. <col/>
  740. </colgroup>
  741. <TR height="25">
  742. <TH class="required">견적제출기간</TH>
  743. <TD><%= InputText.get("QUOT_BID_FROM_DT", Order.get("QUOT_BID_FROM_DT"), 10, 10, "desc=견적제출기간,readOnly,center") %>
  744. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('QUOT_BID_FROM_DT');">
  745. <%= InputText.get("QUOT_BID_FROM_HH", Order.get("QUOT_BID_FROM_HH"), 2, 2, "desc=견적제출기간,Time,center") %> :
  746. <%= InputText.get("QUOT_BID_FROM_MI", Order.get("QUOT_BID_FROM_MI"), 2, 2, "desc=견적제출기간,Time,center") %>
  747. ~
  748. <%= InputText.get("QUOT_BID_TO_DT", Order.get("QUOT_BID_TO_DT"), 10, 10, "desc=견적제출기간,readOnly,center") %>
  749. <IMG name="start_img" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('QUOT_BID_TO_DT');">
  750. <%= InputText.get("QUOT_BID_TO_HH", Order.get("QUOT_BID_TO_HH"), 2, 2, "desc=견적제출기간,Time,center") %> :
  751. <%= InputText.get("QUOT_BID_TO_MI", Order.get("QUOT_BID_TO_MI"), 2, 2, "desc=견적제출기간,Time,center") %>
  752. </TD>
  753. <TH>견적유효기간</TH>
  754. <TD><%= InputText.get("QUOT_VALIDATE", Order.get("QUOT_VALIDATE"), 45, 50, "desc=공사규모") %> </TD>
  755. <TH class="required">견적담당자</TH>
  756. <TD>
  757. <%= InputText.get("QUOT_MAN_NM", Order.get("QUOT_MAN_NM"), 21, 30, "desc=견적담당자,readOnly") %><INPUT type='hidden' name="QUOT_MAN_ID" value="<%=Order.get("QUOT_MAN_ID")%>">
  758. <IMG id="btn_quot_man_id" src="/img/buyer/button/bt_search_right.gif" alt="담당자" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:SearchUser('QUOT_MAN_NM','QUOT_MAN_ID','Y');">
  759. </TD>
  760. </TR>
  761. <TR height="25">
  762. <TH class="required">담당자 전화번호</TH>
  763. <TD><%= InputText.get("QUOT_MAN_TELNO", Order.get("QUOT_MAN_TELNO"), 15, 20, "desc=견적담당자 전화번호") %></TD>
  764. <TH class="required">담당자 E-Mail</TH>
  765. <TD><%= InputText.get("QUOT_MAN_EMAIL", Order.get("QUOT_MAN_EMAIL"), 45, 50, "desc=견적담당자 E-Mail") %></TD>
  766. <TH>담당자 FAX</TH>
  767. <TD><%= InputText.get("QUOT_MAN_FAX", Order.get("QUOT_MAN_FAX"), 15, 20, "desc=견적담당자 FAX") %>
  768. </TR>
  769. <TR height="25">
  770. <TH class="required">견적설명회 여부</TH>
  771. <TD>
  772. <LABEL for="sitedesc_flag_1"><INPUT id="sitedesc_flag_1" type="radio" name="QUOT_SITEDESC_FLAG" value="Y" desc="견적설명여부" <%=Order.get("QUOT_SITEDESC_FLAG").equals("Y") ? "checked=\"checked\"" : "" %>> 예</LABEL>
  773. <LABEL for="sitedesc_flag_2"><INPUT id="sitedesc_flag_2" type="radio" name="QUOT_SITEDESC_FLAG" value="N" desc="견적설명여부" <%=Order.get("QUOT_SITEDESC_FLAG").equals("N") ? "checked=\"checked\"" : "" %>> 아니오</LABEL>
  774. </TD>
  775. <TH>견적설명회 일시</TH>
  776. <TD>
  777. <%= InputText.get("QUOT_SITEDESCDATE", Order.get("QUOT_SITEDESCDATE"), 10, 10, "desc=견적설명회,readOnly,center") %>
  778. <IMG name="calendar_sitedescdate" id="calendar_sitedescdate" src="/img/buyer/button/bt_calender.gif" border="0" align="absmiddle" style="cursor:pointer;" onClick="JavaScript:dlgCalendar('QUOT_SITEDESCDATE');">
  779. <%= InputText.get("QUOT_SITEDESCDATE_HH", Order.get("QUOT_SITEDESCDATE_HH"), 2, 2, "desc=견적설명회,Time,center") %> :
  780. <%= InputText.get("QUOT_SITEDESCDATE_MI", Order.get("QUOT_SITEDESCDATE_MI"), 2, 2, "desc=견적설명회,Time,center") %>
  781. </TD>
  782. <TH>견적설명회 장소</TH>
  783. <TD><%= InputText.get("QUOT_SITEDESCPLACE", Order.get("QUOT_SITEDESCPLACE"), 15, 20, "desc=견적설명회 장소") %> </TD>
  784. </TR>
  785. </TABLE>
  786. <div class="application-info magT20">
  787. <div class="application-sub-title">
  788. <span class="title">견적조건</span>
  789. </div>
  790. </div>
  791. <TABLE class="form-table" style="margin-top:5px">
  792. <colgroup>
  793. <col width="145"/>
  794. <col width="%"/>
  795. <!-- <col width="29%"/>
  796. <col width="145"/>
  797. <col/> -->
  798. </colgroup>
  799. <TR height="100">
  800. <%-- <TH>특이사항 내부</TH>
  801. <TD colspan="2">
  802. <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>
  803. </TD> --%>
  804. <TH class="required">특이사항</TH>
  805. <TD>
  806. <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>
  807. </TD>
  808. </TR>
  809. <TR height="100">
  810. <%-- <TH>내부자료</TH>
  811. <TD colspan="2">
  812. <TEXTAREA name="p_AttachFile1" id="p_AttachFile1" style="width:85%;height:80px" rows="1" class="input" readOnly><%=filein.get("DOC_ETC_IN") %></TEXTAREA>
  813. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.quot_id,1);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  814. </TD> --%>
  815. <TH class="required">첨부자료</TH>
  816. <TD>
  817. <TEXTAREA name="p_AttachFile2" id="p_AttachFile2" style="width:85%;height:80px" rows="1" class="input" readOnly><%=fileout.get("DOC_ETC_OUT") %></TEXTAREA>
  818. <IMG id='search_spot_button' onClick="doAttachFile(document.form1.quot_id,2);" src='/img/buyer/button/bt_change.gif' border='0' align="top" align='absmiddle' alt='[Attach File]' style='cursor:pointer;'>
  819. </TD>
  820. </TR>
  821. <TR height="10">
  822. <!-- <TH colspan="3">
  823. </TH> -->
  824. <TH>대용량파일 link</TH>
  825. <TD><%= InputText.get("URL_COL", Order.get("URL_COL"), 150, 150, "desc=대용량파일 링크주소") %></TD>
  826. </TR>
  827. </TABLE>
  828. <table id=copr_list width="100%">
  829. <colgroup>
  830. <col width="500" />
  831. <col width="*" />
  832. </colgroup>
  833. <tr>
  834. <th>
  835. <div class="application-info magT20">
  836. <div class="application-sub-title">
  837. <span class="title">견적대상업체</span>
  838. </div>
  839. </div>
  840. </th>
  841. <td align="right">
  842. <!-- <span class="btnSearch center"><a href="javascript:void(0);" id="corp_add">추가</a></span>
  843. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_row_del">삭제</a></span>
  844. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_row_save">저장</a></span>
  845. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_resend">재전송</a></span> -->
  846. </td>
  847. </tr>
  848. </table>
  849. <div id="sheet1_div" style="padding-top:5px;height: auto; min-height: 200px; overflow: auto;">
  850. <script>createIBSheet('sheet1','100%', '200px');</script>
  851. </div>
  852. </form>