<% //***********************************************************// //* ÇÁ·Î±×·¥¸í : interest.jsp //* ÀÛ¼º³¯Â¥ : 2006³â 5¿ù 15ÀÏ //* ÀÛ¼ºÀÚ : ±è³²¼® //* È­¸é¸í : °ü½ÉÁ¾¸ñÇöÀç°¡ Á¶È¸ //* ÃÖÁ¾ ¼öÁ¤³¯Â¥ ¹× ³»¿ë //***********************************************************// %> <%@ page language="java" import="java.sql.*,java.util.*, common.*,ShmManager.*, dbManager.*, sise.koscom.*, sise.koscom.comm.*,sise.koscom.code.*, sise.koscom.util.*" contentType="text/html;charset=euc-kr" %> <%@ include file="/include/login_check.jsp" %> <% int i, j; int MaxLineCnt = 18; ConcernManager concernMan = new ConcernManager(); String company_cd = Common._CP; Vector jongmok_vt = null; int jongmokCnt = 0; String gcode_temp = "", gname_temp = ""; // ÄíŰ Àоî¿À±â.. HashMap ck = Common.getCookie(request); String userid = (String)ck.get("KCMOUTH"); String gcode = Common.convertNull(request.getParameter("gcode")); if(company_cd.equals("")) { company_cd = "koscom"; } if(gcode.equals("")) { gcode = "100"; } Vector group_vt = concernMan.getGroupInfo(company_cd, userid); int groupCnt = 0; if(group_vt != null){ groupCnt = group_vt.size(); } HashMap hm_ginfo = null; String gname; if(gcode.equals("100")) { jongmok_vt = concernMan.getItemInfo(company_cd,userid); } else { jongmok_vt = concernMan.getItemInfo(company_cd,userid,gcode); } if(jongmok_vt != null){ jongmokCnt = jongmok_vt.size(); } HashMap cm_stock = CodeMaster.getCodeMap("stock"); HashMap cm_elw = CodeMaster.getCodeMap("elw"); HashMap hmInfo = null; Stock stock = null; Elw elw = null; String stock_code,stock_name=""; String market = null, istock_code = null, content=""; StringBuffer inputData = new StringBuffer(); String[] stock_gcode = new String[jongmokCnt]; String[] memoImg = new String[jongmokCnt]; String[] memoContent = new String[jongmokCnt]; int[] highPrice = new int[jongmokCnt]; int[] lowPrice = new int[jongmokCnt]; int cnt = 0; for(i=0; i < jongmokCnt; i++) { hmInfo = (HashMap)jongmok_vt.elementAt(i); market = (String)hmInfo.get("market"); istock_code = (String)hmInfo.get("code"); if(!istock_code.equals("-------")){ if(market.equals("J")) { elw = (Elw)cm_elw.get(istock_code); if(elw==null) continue; } else { stock = (Stock)cm_stock.get(istock_code); if(stock==null) continue; } } content = Common.convertNull((String)hmInfo.get("memo")); content = Common.ReplaceString(content); content = content.replaceAll("'","´").replaceAll("\"",""").replaceAll("\"","""); memoContent[cnt] = content; stock_gcode[cnt] = Common.convertNull((String)hmInfo.get("gcode")); //System.out.println("gcode:"+stock_gcode[cnt]); if(memoContent[cnt].equals("")){ memoImg[cnt] = ""; memoContent[cnt] = "MEMO°¡ ¾ø½À´Ï´Ù!!"; }else{ memoImg[cnt] = ""; } inputData.append(market).append(istock_code); cnt++; } ConcernPrice concernprice = new ConcernPrice(); //System.out.println("interest.jsp : " + inputData.toString()); concernprice.setCode(inputData.toString()); concernprice.setMemType(Common.REAL_READ); concernprice.setData(); ShmMap_CONCERN_PRICE shm_concernprice = new ShmMap_CONCERN_PRICE(); shm_concernprice.setCommarea(concernprice.getData()); inputData.setLength(0); int loopgrid = Common.parseInt(shm_concernprice.get(shm_concernprice.CNT)); //out.printf("interest.jsp : CNT : " + shm_concernprice.get(shm_concernprice.CNT)); ShmMap_CONCERN_PRICE.OCC_CONCERN_PRICE occ = null; %> >Koscom / Áõ±ÇÁ¤º¸ / °ü½ÉÁ¾¸ñ <%@ include file="/include/move_menu.js" %>
<%@ include file="/include/koscom_top.inc" %>
<%@ include file="/include/sise_left_menu.inc" %> <%@ include file="/include/koscom_top_ad.inc" %>

<%=Common.getNavigation()%> °ü½ÉÁ¾¸ñ 


 










<% if(loopgrid > 0) { String pre_price,curr_price,diff_gb,diff,updn_rate; String open_price,high_price,low_price,max_price="",min_price=""; double dblUpDnRate, totUpDnRate = 0.0; String highStr="", lowStr=""; int iCurrPrice, colorCnt=0; for(i=0; i< loopgrid ; i++) { occ = shm_concernprice.getOCC_CONCERN_PRICE(i); stock_code = occ.get(occ.CODE).trim(); // Á¾¸ñÄÚµå //System.out.println("stock_code : " + stock_code); if(stock_code.equals("")){ MaxLineCnt++; continue; } if(stock_code.equals("-------")){ %> <% MaxLineCnt++; continue; } market = occ.get(occ.MARKET).trim(); // ½ÃÀå if(market.equals("J")) { elw = (Elw)cm_elw.get(stock_code); stock_name = elw.getElwKorName(); elw = null; } else if(market.equals("A") || market.equals("B")){ stock = (Stock)cm_stock.get(stock_code); stock_name = stock.getKorName(); stock = null; } pre_price = occ.get(occ.KIJUN); // ±âÁذ¡ curr_price = occ.get(occ.HYUN); // ÇöÀç°¡ iCurrPrice = Common.parseInt(curr_price); if(iCurrPrice==0){ curr_price = pre_price; iCurrPrice = Common.parseInt(pre_price); } diff_gb = occ.get(occ.DUNG_BIT); // ÀüÀÏ´ëºñ±¸ºÐ diff = occ.get(occ.DAEBI); // ÀüÀÏ´ëºñ dblUpDnRate = Common.parseDouble(diff) / Common.parseDouble(pre_price) * 100.0; if(diff_gb.equals("4") || diff_gb.equals("5")){ dblUpDnRate = -1.0 * Common.parseDouble(diff) / Common.parseDouble(pre_price) * 100.0; }else{ dblUpDnRate = Common.parseDouble(diff) / Common.parseDouble(pre_price) * 100.0; } totUpDnRate += dblUpDnRate; updn_rate = Common.rmSign(String.valueOf(dblUpDnRate)); open_price = occ.get(occ.OPEN); // ½Ã °¡ high_price = occ.get(occ.HIGH); // °í °¡ low_price = occ.get(occ.LOW); // Àú °¡ max_price = occ.get(occ.MAX); // »óÇѰ¡ min_price = occ.get(occ.MIN); // »óÇѰ¡ %> <% } } %>
Á¾¸ñ¸í ¸Þ¸ð ÇöÀç°¡ ÀüÀÏ´ëºñ(µî¶ôÀ²) ½Ã°¡ °í°¡ Àú°¡ °Å·¡·® ¸ÅµµÈ£°¡ ¸Å¼öÈ£°¡
  <%=stock_name%>   <%=memoImg[i]%> <%=Common.setPriceColorFromSign(curr_price,diff_gb,"I")%> <%=Common.signToSymbol(diff_gb)%><%=Common.setPriceColorFromSign(Common.rmSign(diff),diff_gb)%> <%=Common.setPriceColorFromSignRate(updn_rate,diff_gb,"F","(%)")%> <%=Common.setPriceColorFromCompare(pre_price,open_price)%> <%=Common.setPriceColorFromCompare(pre_price,high_price)%> <%=Common.setPriceColorFromCompare(pre_price,low_price)%> <%=Common.dformat(occ.get(occ.VOL))%> <%=Common.setPriceColorFromCompare(pre_price,occ.get(occ.DHOGA))%> <%=Common.setPriceColorFromCompare(pre_price,occ.get(occ.SHOGA))%>


<%@ include file="/include/used_notice.inc" %>
<%@ include file="/include/koscom_bottom.inc" %>