OutSupplierReadOnlyList.jsp 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735
  1. <%--
  2. - FileName : PuSupplierList.jsp
  3. - Author(s) : Sung Min Lee
  4. - Date : 2014.06.17
  5. - Copyright : Copyright (c) 2002-2007 www.hwenc.com, Inc.
  6. -
  7. - Description: 협력업체현황
  8. --%>
  9. <%@ page contentType="text/html; charset=utf-8" %>
  10. <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
  11. <%@ page import="com.udapsoft.waf.common.ui.*" %>
  12. <%@ page import="com.udapsoft.waf.common.util.DateUtil"%>
  13. <%@ page import="kr.co.hsnc.common.util.*"%>
  14. <%@ page import="kr.co.hsnc.common.sql.*" %>
  15. <%@ include file="/jsp/work/taglib.jsp" %>
  16. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  17. <%
  18. ctx.init(request, response);
  19. HandlerStorage storage = ctx.getHandlerStorage();
  20. ValueObject params = storage.getParams();
  21. ValueObject user = storage.getUser();
  22. String event = storage.getEvent();
  23. ValueObject authYN = storage.getValueObject("Auth");
  24. RowSet materialKindCodeLv1 = storage.getRowSet("materialKindCodeLv1");
  25. RowSet materialKindCodeLv2 = new RowSetImpl();
  26. RowSet materialKindCodeLv3 = new RowSetImpl();
  27. RowSet nationRowSet = new RowSetImpl();
  28. RowSet suppStatusRowSet = storage.getRowSet("SuppStatusRowSet"); //상태값
  29. String sToday = DateUtil.getSystemDate().substring(0,8);
  30. %>
  31. <script type="text/javascript" src="/js/creditEvaluationPop.js"></script>
  32. <script language="javascript">
  33. /*예약함수*/
  34. var sheet1 = new ibsheetObject();
  35. var sheet1Row;
  36. var sheet1PageNo = 1;
  37. var pageLastRowIndex = 1;
  38. var validationResult = false;
  39. var filterShow = false;
  40. $(document).on("keyup", "input:text", function(e) {
  41. if($(this).attr("numberOnly") == "true")
  42. {
  43. $(this).val( $(this).val().replace(/[^0-9]/gi,"") );
  44. }
  45. if (e.keyCode == 13)
  46. {
  47. $.searchList();
  48. }
  49. });
  50. $(function(){
  51. if(<%=storage.getUser().get("ACCT_TYPE_CODE").equals("ADMIN")%> || <%=authYN.get("AUTH_CHK").equals("Y")%>){
  52. $("#span_btn_email").show();
  53. $("#span_btn_send").show();
  54. $("#span_btn_sms").show();
  55. $("#span_btn_sms_send").show();
  56. }else{
  57. $("#span_btn_email").hide();
  58. $("#span_btn_send").hide();
  59. $("#span_btn_sms").hide();
  60. $("#span_btn_sms_send").hide();
  61. }
  62. $.gridInit = function()
  63. {
  64. var init_sheet = {};
  65. init_sheet.Cfg = {SearchMode:2, Page:30, MergeSheet:msHeaderOnly};
  66. init_sheet.Cols = [
  67. {Header:"Status", Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Edit:"False", Hidden:"True"},
  68. {Header:"선택|선택", Type:"CheckBox", SaveName:"checkBox", Width:60, Align:"Left", Edit:"True"},
  69. {Header:"대표공종|대분류", Type:"Text", SaveName:"GUBUN_1", Width:100, Align:"Left", Edit:"False"},
  70. {Header:"대표공종|중분류", Type:"Text", SaveName:"GUBUN_2", Width:100, Align:"Left", Edit:"False"},
  71. {Header:"대표공종|공종명", Type:"Text", SaveName:"GUBUN_3", Width:100, Align:"Left", Edit:"False"},
  72. {Header:"사업자번호|사업자번호", Type:"Text", SaveName:"CORP_REG_NO", Width:100, Align:"Left", Format:"SaupNo", Edit:"False"},
  73. {Header:"☞업체명|☞업체명", Type:"Text", SaveName:"CORP_KOR", Width:150, Align:"Left", Edit:"False"},
  74. {Header:"국내외구분코드|국내외구분코드", Type:"Text", SaveName:"IN_OUT_DIV_CODE", Width:100, Align:"Center", Hidden:"True"},
  75. {Header:"국내외구분|국내외구분", Type:"Text", SaveName:"IN_OUT_DIV", Width:100, Align:"Center", Edit:"False"},
  76. {Header:"대표자명|대표자명", Type:"Text", SaveName:"REP_NAME", Width:100, Align:"Left", Edit:"False"},
  77. // {Header:"사업자구분|사업자구분", Type:"Text", SaveName:"CORP_DIV_CD", Width:100, Align:"Center", Edit:"True"},
  78. {Header:"등록신청일|등록신청일", Type:"Text", SaveName:"REG_DT", Width:100, Align:"Center", Edit:"False"},
  79. {Header:"등록승인일/\n거래취소일|등록승인일/\n거래취소일", Type:"Text", SaveName:"APPR_CAN_DT", Width:100, Align:"Center", Edit:"False"},
  80. {Header:"평가기관코드|평가기관코드", Type:"Text", SaveName:"CREDIT_CORP_CD", Width:0, Align:"Center", Hidden:"True"},
  81. {Header:"입찰상한액|입찰상한액", Type:"Text", SaveName:"BID_AMT", Width:100, Align:"Right" , Edit:"False"},
  82. {Header:"☞경영평가|☞경영평가", Type:"Text", SaveName:"APPR_TOT_RATE", Width:100, Align:"Center", Edit:"False"},
  83. {Header:"☞신용등급|☞신용등급", Type:"Text", SaveName:"CREDIT_GRADE", Width:100, Align:"Center", Edit:"False"},
  84. {Header:"상태|상태", Type:"Text", SaveName:"CORP_STATUS", Width:100, Align:"Center", Edit:"False"},
  85. {Header:"계약현황|계약현황", Type:"Text", SaveName:"CONT_CNT", Width:900, Align:"Left", Edit:"False"},
  86. {Header:"CORP_ID|CORP_ID", Type:"Text", SaveName:"CORP_ID", Width:0, Align:"Center", Hidden:"True"},
  87. {Header:"EVAL_CMP|EVAL_CMP", Type:"Text", SaveName:"EVAL_CMP", Width:0, Align:"Center", Hidden:"True"},
  88. {Header:"DOC_CD|DOC_CD", Type:"Text", SaveName:"DOC_CD", Width:0, Align:"Center", Hidden:"True"},
  89. {Header:"ARR_ID|ARR_ID", Type:"Text", SaveName:"ARR_ID", Width:0, Align:"Center", Hidden:"True"},
  90. {Header:"APPR_DY|APPR_DY", Type:"Text", SaveName:"APPR_DY", Width:0, Align:"Center", Hidden:"True"},
  91. {Header:"YEAR_STD|YEAR_STD", Type:"Text", SaveName:"YEAR_STD", Width:0, Align:"Center", Hidden:"True", Edit:"False"}
  92. ];
  93. init_sheet.HeaderMode = {Sort:1};
  94. IBS_InitSheet(sheet1, init_sheet);
  95. sheet1.SetDataAutoTrim(0);
  96. //sheet1.SetEditable(false);
  97. sheet1.SetDataLinkMouse("CORP_KOR", 1);
  98. sheet1.SetColFontColor("CORP_KOR", "#0000ff");
  99. sheet1.SetDataLinkMouse("APPR_TOT_RATE", 1);
  100. sheet1.SetColFontColor("APPR_TOT_RATE", "#0000ff");
  101. sheet1.SetDataLinkMouse("CREDIT_GRADE", 1);
  102. sheet1.SetColFontColor("CREDIT_GRADE", "#0000ff");
  103. sheet1.FitColWidth("5");
  104. }
  105. $("#btn_reg").click(function(){
  106. $("#fevent").val("REG_DATA");
  107. $("#p_doc_cd").val("11");
  108. $("#p_in_out_div").val("O");
  109. $("#form1").attr("action", "/supplier/outside/OutSupplier.screen");
  110. $("#form1").attr("target", "_self");
  111. $("#form1").attr("method", "post");
  112. $("#form1").submit();
  113. });
  114. $("#btnsearch").click(function(){
  115. //2017.09.01 검색조건 하나는 지정 공종,사업자번호,국내/해외,업체명,상태,국가명
  116. if($("#material_Kind_Code_Lv1").val().trim() == "" && $("#corp_no").val().trim() == "" && $("#in_out_gubun").val().trim() == "" && $("#corp_name").val().trim() == "" && $("#corp_status").val().trim() == "" && $("#nation_cd").val().trim() == "" ){
  117. alert("검색조건을 지정하십시요.");
  118. return;
  119. }
  120. $.searchList();
  121. });
  122. $("#btn_excel").click(function(){
  123. var params = {FileName:"외주 협력업체현황.xls",SheetName:"외주 협력업체현황",Merge:1,SheetDesign:1, HiddenColumn:1};
  124. sheet1.Down2Excel (params);
  125. });
  126. /* $("#btn_regist").click(function(){
  127. $("#fevent").val("REG_DATA");
  128. $("#p_doc_cd").val("11");
  129. $("#p_in_out_div").val("O");
  130. $("#form1").attr("action", "/supplier/outside/OutSupplier.screen");
  131. $("#form1").attr("target", "_self");
  132. $("#form1").attr("method", "post");
  133. $("#form1").submit();
  134. }); */
  135. $("#material_Kind_Code_Lv1").change(function(){
  136. var f = document.form1;
  137. if($("#material_Kind_Code_Lv1").val().trim() == "")
  138. {
  139. $("#material_Kind_Code_Lv2").empty().data("options");
  140. $("#material_Kind_Code_Lv2").append("<option value=''>-- 전체 --</option>");
  141. $("#material_Kind_Code_Lv3").empty().data("options");
  142. $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
  143. }
  144. else
  145. {
  146. $("#fevent").val("GET_MATL_KIND_CODE_LV2");
  147. $("#materiallevel").val("2");
  148. $("#materialgroup").val($("#material_Kind_Code_Lv1").val());
  149. submitXmlRequest("/supplier/outside/OutSupplierList_form.screen", "GET_MATL_KIND_CODE_LV2", f, "ROWSET");
  150. }
  151. });
  152. $("#material_Kind_Code_Lv2").change(function(){
  153. var f = document.form1;
  154. if($("#material_Kind_Code_Lv2").val().trim() == "")
  155. {
  156. $("#material_Kind_Code_Lv3").empty().data("options");
  157. $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
  158. $.searchList();
  159. }
  160. else
  161. {
  162. $("#fevent").val("GET_MATL_KIND_CODE_LV3");
  163. $("#materiallevel").val("3");
  164. $("#materialgroup").val($("#material_Kind_Code_Lv2").val());
  165. submitXmlRequest("/supplier/outside/OutSupplierList_form.screen", "GET_MATL_KIND_CODE_LV3", f, "ROWSET");
  166. }
  167. });
  168. $("#material_Kind_Code_Lv3").change(function(){
  169. $.searchList();
  170. });
  171. $("#in_out_gubun").change(function(){
  172. var f = document.form1;
  173. if($("#in_out_gubun").val() == "O")
  174. {
  175. $("#fevent").val("GET_NATION");
  176. submitXmlRequest("/supplier/purchase/PuSupplierList_form.screen", "GET_NATION", f, "ROWSET");
  177. }
  178. else
  179. {
  180. $("#nation_cd").empty().data("options");
  181. $("#nation_cd").append("<option value=''>-- 전체 --</option>");
  182. }
  183. $("#btn_search").click();
  184. });
  185. $.searchList = function()
  186. {
  187. $("#fevent").val("GET_LIST_READ");
  188. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplierList_sheet.screen";
  189. Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
  190. }
  191. $("#btn_email").click(function (){
  192. var win_id = "Subemail";
  193. var link = "/supplier/outside/QuotSupplierEmail.screen";
  194. link += "?pop_win_id="+win_id;
  195. //link += "&searchDateStart=" + jQuery("#searchDateStart").val();
  196. //link += "&searchDateEnd=" + jQuery("#searchDateEnd").val();
  197. link += "&pageDiv=1"; //1:조달, 2:포탈
  198. fLayerPop(win_id, link, 980, 250, '', '', 'NO');
  199. });
  200. $("#btn_send").click(function(){
  201. if(!confirm("메일을 전송하시겠습니까?")) return;
  202. $("#fevent").val("QUOT_EMAIL_SEND");
  203. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplierList_sheet.screen";
  204. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  205. });
  206. $("#btn_sms").click(function (){
  207. var win_id = "Subsms";
  208. var link = "/supplier/outside/QuotSupplierSms.screen";
  209. link += "?pop_win_id="+win_id;
  210. //link += "&searchDateStart=" + jQuery("#searchDateStart").val();
  211. //link += "&searchDateEnd=" + jQuery("#searchDateEnd").val();
  212. link += "&pageDiv=1"; //1:조달, 2:포탈
  213. fLayerPop(win_id, link, 600, 80, '', '', 'NO');
  214. });
  215. $("#btn_sms_send").click(function(){
  216. if(!confirm("SMS를 전송하시겠습니까?")) return;
  217. $("#fevent").val("QUOT_SMS_SEND");
  218. var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/OutSupplierList_sheet.screen";
  219. var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
  220. });
  221. });
  222. $(document).ready(function(){
  223. $.gridInit();
  224. // $.searchList();
  225. autoResize();
  226. var material_Kind_Code_Lv1 = "<%=params.get("material_Kind_Code_Lv1")%>";
  227. if(material_Kind_Code_Lv1.trim() != "")
  228. {
  229. $("#material_Kind_Code_Lv1").change();
  230. }
  231. else
  232. {
  233. //$.searchList();
  234. }
  235. });
  236. function SubemailClose(){
  237. setTimeout(function(){fLayerPopClose('Subemail');},100);
  238. }
  239. function SubesmsClose(){
  240. setTimeout(function(){fLayerPopClose('Subsms');},100);
  241. }
  242. function autoResize(){
  243. var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
  244. var iframeHeight= document.body.scrollHeight - t1_height;
  245. var iframeWidth= document.body.scrollWidth;
  246. sheet1.SetSheetHeight(iframeHeight);
  247. }
  248. function doResult(resultObj) {
  249. try {
  250. if ( resultObj.getRequestEvent() == "GET_MATL_KIND_CODE_LV2" )
  251. {
  252. if ( resultObj.getSuccess() == true )
  253. {
  254. var rowSet = resultObj.getRowSet();
  255. $("#material_Kind_Code_Lv2").empty().data("options");
  256. $("#material_Kind_Code_Lv2").append("<option value=''>-- 전체 --</option>");
  257. for ( var i = 0; i < rowSet.getRowSize(); i++ )
  258. {
  259. $("#material_Kind_Code_Lv2").append("<option value='"+rowSet.getColValue( i, 0 )+"'>" + rowSet.getColValue( i, 1 )+"</option>");
  260. }
  261. if($("#material_Kind_Code_Lv1").val() == "")
  262. {
  263. $("#material_Kind_Code_Lv2").empty().data("options");
  264. $("#material_Kind_Code_Lv2").append("<option value=''>-- 전체 --</option>");
  265. }
  266. if($("#material_Kind_Code_Lv3").val() == "")
  267. {
  268. $("#material_Kind_Code_Lv3").empty().data("options");
  269. $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
  270. }
  271. document.form1.isSubmit = false;
  272. var material_Kind_Code_Lv2 = "<%=params.get("material_Kind_Code_Lv2")%>";
  273. if(material_Kind_Code_Lv2.trim() != "")
  274. {
  275. // $("#material_Kind_Code_Lv2 option:eq("+material_Kind_Code_Lv2+")").attr("selected", "selected");
  276. $("#material_Kind_Code_Lv2").val(material_Kind_Code_Lv2).attr("selected", "selected");
  277. $("#material_Kind_Code_Lv2").change();
  278. }
  279. if("<%=params.get("material_Kind_Code_Lv3")%>".trim() == "" )
  280. {
  281. $.searchList();
  282. }
  283. } else {
  284. dlgErrorMsg(resultObj);
  285. }
  286. }
  287. else if ( resultObj.getRequestEvent() == "GET_MATL_KIND_CODE_LV3" )
  288. {
  289. if ( resultObj.getSuccess() == true )
  290. {
  291. var rowSet = resultObj.getRowSet();
  292. $("#material_Kind_Code_Lv3").empty().data("options");
  293. $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
  294. for ( var i = 0; i < rowSet.getRowSize(); i++ )
  295. {
  296. $("#material_Kind_Code_Lv3").append("<option value='"+rowSet.getColValue( i, 0 )+"'>" + rowSet.getColValue( i, 1 )+"</option>");
  297. }
  298. if($("#material_Kind_Code_Lv2").val() == "")
  299. {
  300. $("#material_Kind_Code_Lv3").empty().data("options");
  301. $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
  302. }
  303. document.form1.isSubmit = false;
  304. var material_Kind_Code_Lv3 = "<%=params.get("material_Kind_Code_Lv3")%>";
  305. if(material_Kind_Code_Lv3.trim() != "")
  306. {
  307. // $("#material_Kind_Code_Lv3 option:eq("+material_Kind_Code_Lv3+")").attr("selected", "selected");
  308. $("#material_Kind_Code_Lv3").val(material_Kind_Code_Lv3).attr("selected", "selected");
  309. }
  310. $.searchList();
  311. }
  312. else
  313. {
  314. dlgErrorMsg(resultObj);
  315. }
  316. }
  317. else if(resultObj.getRequestEvent() == "GET_CREADIT_REG_CHK")
  318. {
  319. document.form1.isSubmit = false;
  320. var url = resultObj.getValueObject().get("returnUrl");
  321. window.open(url, "pop", "width=1024,height=600, resizable=yes, scrollbars=yes");
  322. }
  323. else if(resultObj.getRequestEvent() == "GET_CREADIT_REG_CHK2")
  324. {
  325. document.form1.isSubmit = false;
  326. var url = resultObj.getValueObject().get("return_url");
  327. var open = window.open('',"go_ksrm","width=900,height=600,scrollbar=auto");
  328. var f = document.form1;
  329. f.action = url;
  330. f.target = "go_ksrm";
  331. f.method = "post";
  332. f.submit();
  333. }
  334. else if(resultObj.getRequestEvent() == "GET_NATION")
  335. {
  336. if ( resultObj.getSuccess() == true )
  337. {
  338. $("#nation_cd").empty().data("options");
  339. $("#nation_cd").append("<option value=''>-- 전체 --</option>");
  340. var rowSet = resultObj.getRowSet();
  341. for ( var i = 0; i < rowSet.getRowSize(); i++ )
  342. {
  343. $("#nation_cd").append("<option value='"+rowSet.getColValue( i, 0)+"'>"+rowSet.getColValue( i, 1 ) + "</option>");
  344. }
  345. }
  346. }
  347. }
  348. catch(errorObject) {
  349. showErrorDlg("doResult()", errorObject);
  350. }
  351. }
  352. function sheet1_OnDblClick(Row, Col, Value)
  353. {
  354. var s_name = sheet1.ColSaveName(Col);
  355. if(s_name == "CORP_KOR")
  356. {
  357. if(sheet1.GetCellValue(Row, "IN_OUT_DIV_CODE") == "I")
  358. {
  359. $("#fevent").val("GET_DETAIL");
  360. $("#p_in_out_div").val("I");
  361. }
  362. else
  363. {
  364. $("#fevent").val("GET_OUT_DETAIL");
  365. $("#p_in_out_div").val("O");
  366. }
  367. $("#p_corp_id").val(sheet1.GetCellValue(Row, "CORP_ID"));
  368. $("#p_corp_reg_no").val(sheet1.GetCellValue(Row, "CORP_REG_NO"));
  369. $("#p_eval_cmp").val(sheet1.GetCellValue(Row, "EVAL_CMP"));
  370. $("#p_doc_cd").val(sheet1.GetCellValue(Row, "DOC_CD"));
  371. $("#form1").attr("action", "/supplier/outside/OutSupplierReadOnly.screen");
  372. $("#form1").attr("target", "_self");
  373. $("#form1").attr("method", "post");
  374. $("#form1").submit();
  375. }
  376. else if (sheet1.ColSaveName(Col) == "APPR_TOT_RATE") {
  377. var reportInfo = new ReportInfo();
  378. if(sheet1.GetCellValue(Row, "APPR_TOT_RATE").trim() != "" )
  379. {
  380. if(sheet1.GetCellValue(Row, "DOC_CD") == "11")
  381. {
  382. reportInfo.title = "공사 협력업체 경영평가표(공사)";
  383. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport13.mrd";
  384. }
  385. /*else if(sheet1.GetCellValue(Row, "DOC_CD") == "12")
  386. {
  387. reportInfo.title = "협력업체 현장평가표";
  388. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSuppFixApprReport.mrd";
  389. }*/
  390. if(sheet1.GetCellValue(Row, "DOC_CD") == "13")
  391. {
  392. reportInfo.title = "공사 협력업체 경영평가표(공사)";
  393. if (sheet1.GetCellValue(Row, "YEAR_STD") == "2018"){
  394. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport13_2018.mrd";
  395. }else if (sheet1.GetCellValue(Row, "YEAR_STD") == "2019"){
  396. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport13_2019.mrd";
  397. }else if (sheet1.GetCellValue(Row, "YEAR_STD") == "2022"){
  398. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport13_2022.mrd";
  399. }else{
  400. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport13.mrd";
  401. }
  402. }
  403. if(sheet1.GetCellValue(Row, "DOC_CD") == "14")
  404. {
  405. reportInfo.title = "공사 협력업체 경영평가표(설계.인허가)";
  406. if (sheet1.GetCellValue(Row, "YEAR_STD") == "2018"){
  407. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport14_2018.mrd";
  408. }else if (sheet1.GetCellValue(Row, "YEAR_STD") == "2022"){
  409. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport14_2022.mrd";
  410. }else{
  411. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport14.mrd";
  412. }
  413. }
  414. if(sheet1.GetCellValue(Row, "DOC_CD") == "15")
  415. {
  416. reportInfo.title = "해외 협력업체 경영평가표";
  417. reportInfo.reportName = "/report/mrd/buyer/supplier/outside/OutSupplierReport15.mrd";
  418. }
  419. reportInfo.width = 1000; // Default: 1024
  420. reportInfo.height = 700; // Default: 768
  421. reportInfo.set(sheet1.GetCellValue(Row, "CORP_ID")); // $1
  422. reportInfo.set(sheet1.GetCellValue(Row, "ARR_ID")); // $2
  423. reportInfo.set(sheet1.GetCellValue(Row, "APPR_DY").substring(0,4));
  424. reportInfo.showPopup();
  425. }
  426. }
  427. else if(s_name == "CREDIT_GRADE")
  428. {
  429. var code = sheet1.GetCellValue(Row, "CREDIT_CORP_CD");
  430. var reg_no = sheet1.GetCellValue(Row, "CORP_REG_NO");
  431. /*
  432. 이크레더블 : E
  433. 서울신용평가 : S
  434. 나이스디앤비 : N
  435. 한국기업데이터 : K
  436. 나이스평가정보:M
  437. */
  438. if(code == "E")
  439. {
  440. var u = "2d2d424547494e204349504845522d2d313131310000000b3030303030303030eef0492ff42855bbffb697d670d4e3d109dafed98f4d7900293e8d4b9c1dcebd28eb9d58fd4c815c4d4829f1415fdfb730302d2d454e44204349504845522d2d";
  441. var p = "2d2d424547494e204349504845522d2d313131310000000830303030303030301bb8ae01f161a326e30cc8d45f3844afd1bd2d39f5da22e9405f40dff013966445d4ea4029f89ad1385c4624cf679cc230302d2d454e44204349504845522d2d";
  442. var i = reg_no; //협력업체사업자번호
  443. var k = ""; //협력업체법인번호
  444. var m ='3';
  445. var link ='http://www.esrm.co.kr/esrm/SrmplusLogin?u='+ u +'&p='+ p +'&i='+ i +'&k='+ k +'&c=7&m='+ m +'&g=2';
  446. var features ='height=768, width=1024, status=no, scrollbars=auto, resizable=yes';
  447. window.open(link, 'watchwin', features);
  448. }
  449. else if(code == "S")
  450. {
  451. var link = "http://www.bizrating.co.kr/url/urlPage.do?param1=ZXRlY2g=&param2=YWV0ZWNo&param3=" + reg_no;
  452. window.open(link, "pop", "width=975,height=600, resizable=yes, scrollbars=yes");
  453. }
  454. else if(code == "N")
  455. {
  456. var f = document.form1;
  457. $("#p_corp_reg_no").val(reg_no);
  458. $("#fevent").val("GET_CREADIT_REG_CHK");
  459. submitXmlRequest("/supplier/purchase/PuSupplierList_form.screen", "GET_CREADIT_REG_CHK", f, "VALUEOBJECT");
  460. }
  461. else if(code == "K")
  462. {
  463. var f = document.form1;
  464. $("#p_corp_reg_no").val(reg_no);
  465. $("#fevent").val("GET_CREADIT_REG_CHK2");
  466. submitXmlRequest("/supplier/purchase/PuSupplierList_form.screen", "GET_CREADIT_REG_CHK2", f, "VALUEOBJECT");
  467. }
  468. else if(code == "M")
  469. {
  470. var vnk = "<%= sToday%>" * 677;
  471. var link = "http://service.ecredit.co.kr/p01/A0001M001.nice?bizno=" + reg_no + "&eid=ETECENC&nk=" + vnk;
  472. window.open(link, "pop", "width=975,height=600, resizable=yes, scrollbars=yes");
  473. }
  474. }
  475. }
  476. function sheet1_OnSaveEnd(code, msg) {
  477. if(code >= 0) {
  478. alert("전송되었습니다."); // 저장 성공 메시지
  479. }
  480. else {
  481. alert(msg);
  482. }
  483. }
  484. document.body.onresize = addEvent( document.body.onresize, "autoResize()");
  485. </script>
  486. <modular:search id="form1">
  487. <modular:key id="fevent" />
  488. </modular:search>
  489. <form id="form1" name="form1" method="post" modular:type="search">
  490. <INPUT type="hidden" name="fevent" id="fevent" value="" />
  491. <INPUT type="hidden" name="p_corp_id" id="p_corp_id" value="" />
  492. <INPUT type="hidden" name="p_corp_reg_no" id="p_corp_reg_no" value="" />
  493. <INPUT type="hidden" name="p_eval_cmp" id="p_eval_cmp" value="" />
  494. <INPUT type="hidden" name="p_doc_cd" id="p_doc_cd" value="" />
  495. <input type="hidden" name="p_in_out_div" id="p_in_out_div" value="" />
  496. <input type="hidden" name="chk_all" id="chk_all" value="false" />
  497. <div align="left" id="title">
  498. <ul>
  499. <li>외주_협력업체현황</li>
  500. </ul>
  501. </div>
  502. <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%" id="search-table">
  503. <!-- 검색조건 영역 : 시작 -->
  504. <tr>
  505. <td height="1">
  506. <table cellspacing="1" cellpadding="0" class="search-form-table">
  507. <col width="10%">
  508. <col width="30%">
  509. <col width="10%">
  510. <col width="10%">
  511. <col width="10%">
  512. <col width="10%">
  513. <col width="20%">
  514. <tr height="25">
  515. <!-- 검색조건 타이틀 1 -->
  516. <th>
  517. 공종
  518. </th>
  519. <td>
  520. <%= HTMLMaker.getSelectTag(materialKindCodeLv1, "materialgroup", "materialgroupname" , "material_Kind_Code_Lv1", "style='width:28%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", params.get("material_Kind_Code_Lv1"), 0) %>
  521. <%= HTMLMaker.getSelectTag(materialKindCodeLv2, "materialgroup", "materialgroupname" , "material_Kind_Code_Lv2", "style='width:28%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", params.get("material_Kind_Code_Lv2"), 0) %>
  522. <%= HTMLMaker.getSelectTag(materialKindCodeLv3, "materialgroup", "materialgroupname" , "material_Kind_Code_Lv3", "style='width:28%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", params.get("material_Kind_Code_Lv3"), 0) %>
  523. </td>
  524. <th>
  525. 사업자번호
  526. </th>
  527. <td >
  528. <input type="text" name="corp_no" id="corp_no" style="width: 86%;" value="<%=params.get("corp_no") %>" numberOnly="true" maxlength="10"/>
  529. </td>
  530. <th>
  531. 국내/해외
  532. </th>
  533. <td>
  534. <select name="in_out_gubun" id="in_out_gubun" style="width: 70%;" class="input_select" height=18>
  535. <option value=''>--전체--</option>
  536. <option value="I" <%=params.get("in_out_gubun").equals("I") ? "selected=\"selected\" " : "" %>>국내</option>
  537. <option value="O" <%=params.get("in_out_gubun").equals("O") ? "selected=\"selected\" " : "" %>>해외</option>
  538. </select>
  539. </td>
  540. <td rowspan="2" class="button" style="text-align: center;">
  541. <!-- 검색버튼 영역 : 시작 -->
  542. <span class="btnSearch center"><a href="javascript:void(0);" id="btnsearch">검색</a></span>
  543. <span class="btnSearch center"><a href="javascript:void(0);" id="btn_excel">엑셀저장</a></span>
  544. <span class="btnSearch center" id="span_btn_email" style="display: none;"><a href="javascript:void(0);" id="btn_email">이메일</a></span>
  545. <span class="btnSearch center" id="span_btn_send" style="display: none;"><a href="javascript:void(0);" id="btn_send">이메일 보내기</a></span>
  546. <span class="btnSearch center" id="span_btn_sms" style="display: none;"><a href="javascript:void(0);" id="btn_sms">SMS</a></span>
  547. <span class="btnSearch center" id="span_btn_sms_send" style="display: none;"><a href="javascript:void(0);" id="btn_sms_send">SMS 보내기</a></span>
  548. <!-- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_regist">해외업체 신규등록</a></span> -->
  549. <!-- 검색버튼 영역 : 종료 -->
  550. </td>
  551. </tr>
  552. <tr height="25">
  553. <!-- 검색조건 타이틀 1 -->
  554. <th>
  555. 업체명
  556. </th>
  557. <td>
  558. <input type="text" name="corp_name" id="corp_name" style="width: 86%;" value="<%=params.get("corp_name")%>"/>
  559. </td>
  560. <th>
  561. 상태
  562. </th>
  563. <td >
  564. <%= HTMLMaker.getSelectTag(suppStatusRowSet, "DETAILCD", "DETAILNM", "corp_status", "width:70px;height=18;", "<option value=''>--전체--</option>", params.get("corp_status")) %>
  565. </td>
  566. <th>
  567. 국가명
  568. </th>
  569. <td>
  570. <%= HTMLMaker.getSelectTag(nationRowSet, "detailcd", "detailnm" , "nation_cd", "style='width:70%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", params.get("nation_cd"), 0) %>
  571. </td>
  572. </tr>
  573. </table>
  574. </td>
  575. </tr>
  576. <!-- 검색조건 영역 : 종료 -->
  577. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
  578. <tr>
  579. <td height="1">
  580. <table border="0" cellspacing="0" cellpadding="0" class="search_data_div_height">
  581. <tr>
  582. <td>
  583. </td>
  584. </tr>
  585. </table>
  586. </td>
  587. </tr>
  588. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 종료 -->
  589. <!-- 검색조건 영역, 테이터 영역 구분 여백 : 종료 -->
  590. </table>
  591. </form>
  592. <div style="width: 100%; height: 100%; margin-top: 5px;">
  593. <!-- 데이터 영역 : 시작 -->
  594. <!-- ibsheet7 그리드 생성 -->
  595. <script>createIBSheet("sheet1","100%", "250px");</script>
  596. <!-- 데이터 영역 : 종료 -->
  597. </div>