<%@ page language="java" import="java.sql.*,java.util.*, common.*,ShmManager.*, sise.koscom.*, sise.koscom.comm.*,sise.koscom.code.*, sise.koscom.util.*, java.text.*,dbManager.*" contentType="text/html;charset=euc-kr" %> <% /*- ------------------------------------------------------------- -* *- ÇÁ·Î±×·¥¸í : kosdaq_daily_jisu.jsp *- ÇÁ·Î±×·¥³»¿ë : ÄÚ½º´Ú ÀϺ° ¾÷Á¾ Áö¼ö *- ÀÛ¼ºÀÚ : ±è³²¼® *- ÀÛ¼ºÀÏ : 2006.04.26 *- ------------------------------------------------------------- -*/ String upcode = Common.convertNull(request.getParameter("upcode")); if(upcode.equals("")){ upcode = "001"; } /* °øÅë ¸Þ¸ð¸® Á¤º¸ */ CommonMem common_mem = new CommonMem(); common_mem.setMemType(Common.REAL_READ); common_mem.setData(); ShmMap_COMMON_MEM shm_common = new ShmMap_COMMON_MEM(); shm_common.setCommarea(common_mem.getData()); String base_date = request.getParameter("base_date"); //°Ë»ö³¯Â¥ String before_date = ""; //ÇÑ´Þ Àü ³¯Â¥ /* ³¯Â¥ °è»êÇÏ´Â ºÎºÐ */ Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); if(base_date==null){ base_date = sdf.format(cal.getTime()); }else{ String year = base_date.substring(0,4); String mon = base_date.substring(4,6); String day = base_date.substring(6,8); cal.set(Integer.parseInt(year),Integer.parseInt(mon)-1,Integer.parseInt(day)); } cal.add(cal.MONTH,-1); before_date = sdf.format(cal.getTime()); String TableName = Common.getDailyTableName("B", Common.parseInt(upcode)); UPJONGJONGGA sqs = new UPJONGJONGGA(); ArrayList arr = (ArrayList)sqs.getDailyList(TableName,upcode,before_date,base_date); int arrSize = arr.size(); //System.out.println("END_DATE=["+base_date+"]"); //System.out.println("START_DATE=["+before_date+"]"); %> 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("B")%>


(ÀÔ·ÂÀÏ ÀÌÀü 1°³¿ùºÐ Á¶È¸)

<% int cnt = 0; int day[] = new int[arrSize]; int close[] = new int[arrSize]; int open[] = new int[arrSize]; int high[] = new int[arrSize]; int low[] = new int[arrSize]; long vol[] = new long[arrSize]; long amt[] = new long[arrSize]; int daebi[] = new int[arrSize]; int daebi_rate[] = new int[arrSize]; String dung_bit[]= new String[arrSize]; Hashtable h = null; for(int x=0;x 0){ dung_bit[z] = "2"; } else if(daebi[z] < 0){ dung_bit[z] = "5"; daebi[z] *= -1; } else{ dung_bit[z] = "3"; } daebi_rate[z] = daebi[z]*10000 / close[z+1]; %> <% }//end of for %>
ÀÏÀÚ Áö¼ö ÀüÀÏ´ëºñ(µî¶ôÀ²) ½Ã°¡ °í°¡ Àú°¡ °Å·¡·®(õÁÖ) °Å·¡´ë±Ý(¹é¸¸¿ø)
<%=DateTime.addDateFormat(String.valueOf(day[z]),".")%>  <%=Common.setPriceColorFromSignRate(String.valueOf(close[z]/100f),dung_bit[z],"F","")%>  <%=Common.signToSymbol(dung_bit[z])%> <%=Common.setPriceColorFromSignRate(String.valueOf(daebi[z]/100f),dung_bit[z],"F","")%> <%=Common.setPriceColorFromSignRate(String.valueOf(daebi_rate[z]/100f),dung_bit[z],"F","(%)")%>  <%=Common.setPriceColorFromCompare(kijun,String.valueOf(open[z]/100f), "F")%>  <%=Common.setPriceColorFromCompare(kijun,String.valueOf(high[z]/100f), "F")%>  <%=Common.setPriceColorFromCompare(kijun,String.valueOf(low[z]/100f), "F")%>  <%=Common.dformat(String.valueOf(vol[z]))%>  <%=Common.dformat(String.valueOf(amt[z]))%> 


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