%@ page language="java" import="java.sql.*,java.util.*, common.*,ShmManager.*, sise.koscom.*, sise.koscom.comm.*,sise.koscom.code.*, sise.koscom.util.*" contentType="text/html;charset=euc-kr" %> <% /*- ------------------------------------------------------------- -* *- ÇÁ·Î±×·¥¸í : kse_upjisu.jsp *- ÇÁ·Î±×·¥³»¿ë: °Å·¡¼Ò ´çÀÏ ¾÷Á¾ Áö¼ö *- ÀÛ¼ºÀÚ : ±è³²¼® *- ÀÛ¼ºÀÏ : 2006.05.10 *- º¯°æ³»¿ª : *- 2007.04.02. ¾ÈÇö¿Á KOSPI IT »èÁ¦¿¡ µû¸¥ SPEC º¯°æ *- ------------------------------------------------------------- -*/ int i, j; String upcode = Common.convertNull(request.getParameter("upcode")); if(upcode.equals("")){ upcode = "01"; } /* °øÅë ¸Þ¸ð¸® Á¤º¸ */ 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 yes_close = ""; String yes_vol = ""; String year_max = ""; String year_maxdate = ""; String year_min = ""; String year_mindate = ""; String nowYear = DateTime.getYear(); int mastidx = 0; int jisuidx = 0; ShmMap_OTHERJISUMAST shm_otherjisumast = new ShmMap_OTHERJISUMAST(); ShmMap_K200UPMAST shm_k200upmast = new ShmMap_K200UPMAST(); ShmMap_KSEJISUMAST shm_ksejisumast = new ShmMap_KSEJISUMAST(); OtherJisuMast otherjisumast = new OtherJisuMast(); K200UpMast k200upmast = new K200UpMast(); KseJisuMast ksejisumast = new KseJisuMast(); if(Common.getJisuMemoryFlag("A", Common.parseInt(upcode)).equals("KSE")) { // °Å·¡¼Ò Áö¼ö ¸¶½ºÅÍ ksejisumast.setMemType(Common.REAL_READ); ksejisumast.setMarket("A"); ksejisumast.setCode(upcode); ksejisumast.setData(); shm_ksejisumast.setCommarea(ksejisumast.getData()); byte[] data = ksejisumast.getData(); yes_close = shm_ksejisumast.get(shm_ksejisumast.YES_CLOSE); yes_vol = shm_ksejisumast.get(shm_ksejisumast.YES_VOL); year_max = shm_ksejisumast.get(shm_ksejisumast.YEAR_MAX); year_maxdate = nowYear+shm_ksejisumast.get(shm_ksejisumast.YEAR_MAX_DATE); year_min = shm_ksejisumast.get(shm_ksejisumast.YEAR_MIN); year_mindate = nowYear+shm_ksejisumast.get(shm_ksejisumast.YEAR_MIN_DATE); } else if(Common.getJisuMemoryFlag("A", Common.parseInt(upcode)).equals("K200")) { // K200 ¾÷Á¾Áö¼ö ¸¶½ºÅÍ k200upmast.setMemType(Common.REAL_READ); k200upmast.setCode("11"); k200upmast.setData(); shm_k200upmast.setCommarea(k200upmast.getData()); byte[] data = k200upmast.getData(); yes_close = shm_k200upmast.get(shm_k200upmast.YES_CLOSE); yes_vol = shm_k200upmast.get(shm_k200upmast.YES_VOL); year_max = shm_k200upmast.get(shm_k200upmast.YEAR_MAX); year_maxdate = nowYear+shm_k200upmast.get(shm_k200upmast.YEAR_MAX_DATE).substring(4,8); year_min = shm_k200upmast.get(shm_k200upmast.YEAR_MIN); year_mindate = nowYear+shm_k200upmast.get(shm_k200upmast.YEAR_MIN_DATE).substring(4,8); } else if(Common.getJisuMemoryFlag("A", Common.parseInt(upcode)).equals("OTHER")) { // ±âŸ Áö¼ö ¸¶½ºÅÍ otherjisumast.setMemType(Common.REAL_READ); otherjisumast.setCode(upcode); otherjisumast.setData(); shm_otherjisumast.setCommarea(otherjisumast.getData()); byte[] data = otherjisumast.getData(); yes_close = shm_otherjisumast.get(shm_otherjisumast.YES_CLOSE); yes_vol = shm_otherjisumast.get(shm_otherjisumast.YES_VOL); year_max = shm_otherjisumast.get(shm_otherjisumast.YEAR_MAX); year_maxdate = nowYear+shm_otherjisumast.get(shm_otherjisumast.YEAR_MAX_DATE); year_min = shm_otherjisumast.get(shm_otherjisumast.YEAR_MIN); year_mindate = nowYear+shm_otherjisumast.get(shm_otherjisumast.YEAR_MIN_DATE); } yes_close = Common.parseFloatStr(yes_close,0.01); year_max = Common.parseFloatStr(year_max,0.01); year_min = Common.parseFloatStr(year_min,0.01); /* °Å·¡¼Ò Áö¼ö */ String[] ksejisuArr = {"01", "02", "03", "04", "21", "27"}; int ksejisuArrCnt = ksejisuArr.length; int kse_cnt, ccnt; String kse_upcode; ShmMap_KSEREALJISUALL shm_ksejisu = new ShmMap_KSEREALJISUALL(); ShmMap_KSEREALJISUALL.OCC_KSEJISU occ = null; ShmMap_KSEREALJISUALL.OCC_KSEJISU[] occ_ksejisu = new ShmMap_KSEREALJISUALL.OCC_KSEJISU[ksejisuArrCnt]; KseJisu ksejisu = new KseJisu(); ksejisu.setMemType(Common.REAL_READ); ksejisu.setMarket("A"); ksejisu.setData(); shm_ksejisu.setCommarea(ksejisu.getData()); byte[] data = ksejisu.getData(); kse_cnt = Common.parseInt(shm_ksejisu.get(shm_ksejisu.UP_CNT)); for(ccnt = 0;ccnt < ksejisuArrCnt;ccnt++) { for(i = 0; i < kse_cnt; i++) { occ = shm_ksejisu.getOCC_KSEJISU(i); kse_upcode = occ.get(occ.UPCODE); if(ksejisuArr[ccnt].equals(kse_upcode)) { occ_ksejisu[ccnt] = occ; break; } } } // K200 ¾÷Á¾Áö¼ö ShmMap_KSEREALJISUALL shm_k200jisu = new ShmMap_KSEREALJISUALL(); K200Jisu k200jisu = new K200Jisu(); k200jisu.setMemType(Common.REAL_READ); k200jisu.setData(); shm_k200jisu.setCommarea(k200jisu.getData()); byte[] data3 = k200jisu.getData(); // ±âŸ Áö¼ö String[] otherjisuArr = {"51", "81"}; int otherjisuArrCnt = otherjisuArr.length; int other_cnt; String other_upcode; ShmMap_KSEREALJISUALL shm_otherjisu = new ShmMap_KSEREALJISUALL(); ShmMap_KSEREALJISUALL.OCC_KSEJISU[] occ_otherjisu = new ShmMap_KSEREALJISUALL.OCC_KSEJISU[otherjisuArrCnt]; OtherJisu otherjisu = new OtherJisu(); otherjisu.setMemType(Common.REAL_READ); otherjisu.setData(); shm_otherjisu.setCommarea(otherjisu.getData()); byte[] data1 = otherjisu.getData(); other_cnt = Common.parseInt(shm_otherjisu.get(shm_otherjisu.UP_CNT)); for(ccnt = 0;ccnt < otherjisuArrCnt;ccnt++) { for(i = 0; i < other_cnt; i++) { occ = shm_otherjisu.getOCC_KSEJISU(i); other_upcode = occ.get(occ.UPCODE); if(otherjisuArr[ccnt].equals(other_upcode)) { occ_otherjisu[ccnt] = occ; break; } } } %>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <%@ include file="/include/koscom_bottom.inc" %> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||