%@ 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" %> <% /*- ------------------------------------------------------------- -* *- ÇÁ·Î±×·¥¸í : kosdaq_upjisu.jsp *- ÇÁ·Î±×·¥³»¿ë: ÄÚ½º´Ú ´çÀÏ ¾÷Á¾ Áö¼ö *- ÀÛ¼ºÀÚ : ±è³²¼® *- ÀÛ¼ºÀÏ : 2006.05.10 *- º¯°æ³»¿ª : *- 2007.04.02. ¾ÈÇö¿Á KOSDAQ IT 50»èÁ¦¿¡ µû¸¥ SPEC º¯°æ *- 2007.08.06. ¾ÈÇö¿Á ¼½ÅÍÁö¼ö(6°³) Ãß°¡ *- ------------------------------------------------------------- -*/ int i, j; 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 yes_close = ""; String yes_vol = ""; String year_max = ""; String year_maxdate = ""; String year_min = ""; String year_mindate = ""; String nowYear = DateTime.getYear(); ShmMap_OTHERJISUMAST shm_otherjisumast = new ShmMap_OTHERJISUMAST(); ShmMap_KOSDAQJISUMAST shm_kosdaqjisumast = new ShmMap_KOSDAQJISUMAST(); OtherJisuMast otherjisumast = new OtherJisuMast(); KseJisuMast kosdaqjisumast = new KseJisuMast(); if(Common.getJisuMemoryFlag("B", Common.parseInt(upcode)).equals("KOSDAQ")) { // ÄÚ½º´Ú Áö¼ö ¸¶½ºÅÍ kosdaqjisumast.setMemType(Common.REAL_READ); kosdaqjisumast.setMarket("B"); kosdaqjisumast.setCode(upcode); kosdaqjisumast.setData(); shm_kosdaqjisumast.setCommarea(kosdaqjisumast.getData()); byte[] data = kosdaqjisumast.getData(); yes_close = shm_kosdaqjisumast.get(shm_kosdaqjisumast.YES_CLOSE); yes_vol = shm_kosdaqjisumast.get(shm_kosdaqjisumast.YES_VOL); year_max = shm_kosdaqjisumast.get(shm_kosdaqjisumast.YEAR_MAX); year_maxdate = nowYear+shm_kosdaqjisumast.get(shm_kosdaqjisumast.YEAR_MAX_DATE).substring(4,8); year_min = shm_kosdaqjisumast.get(shm_kosdaqjisumast.YEAR_MIN); year_mindate = nowYear+shm_kosdaqjisumast.get(shm_kosdaqjisumast.YEAR_MIN_DATE).substring(4,8); } else if(Common.getJisuMemoryFlag("B", 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[] kosdaqjisuArr = {"001", "006", "024", "027", "026", "031", "012", "015", "016", "042", "043"}; int kosdaqjisuArrCnt = kosdaqjisuArr.length; String kosdaq_upcode; int kosdaq_cnt, ccnt; ShmMap_KOSDAQREALJISUALL shm_kosdaqjisu = new ShmMap_KOSDAQREALJISUALL(); ShmMap_KOSDAQREALJISUALL.OCC_KOSDAQJISU occ = null; ShmMap_KOSDAQREALJISUALL.OCC_KOSDAQJISU[] occ_kosdaqjisu = new ShmMap_KOSDAQREALJISUALL.OCC_KOSDAQJISU[kosdaqjisuArrCnt]; KseJisu kosdaqjisu = new KseJisu(); kosdaqjisu.setMemType(Common.REAL_READ); kosdaqjisu.setMarket("B"); kosdaqjisu.setData(); shm_kosdaqjisu.setCommarea(kosdaqjisu.getData()); byte[] data = kosdaqjisu.getData(); kosdaq_cnt = Common.parseInt(shm_kosdaqjisu.get(shm_kosdaqjisu.UP_CNT)); for(ccnt = 0;ccnt < kosdaqjisuArrCnt;ccnt++) { for(i = 0; i < kosdaq_cnt; i++) { occ = shm_kosdaqjisu.getOCC_KOSDAQJISU(i); kosdaq_upcode = occ.get(occ.UPCODE); if(kosdaqjisuArr[ccnt].equals(kosdaq_upcode)) { occ_kosdaqjisu[ccnt] = occ; break; } } } // ±âŸ Áö¼ö String[] otherjisuArr = {"71", "81"}; int otherjisuArrCnt = otherjisuArr.length; int other_cnt = 0; String other_upcode; ShmMap_KSEREALJISUALL shm_otherjisu = new ShmMap_KSEREALJISUALL(); ShmMap_KSEREALJISUALL.OCC_KSEJISU occ1 = null; 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++) { occ1 = shm_otherjisu.getOCC_KSEJISU(i); other_upcode = occ1.get(occ1.UPCODE); if(otherjisuArr[ccnt].equals(other_upcode)) { occ_otherjisu[ccnt] = occ1; break; } } } String img_name = "kosdaqupjong"; if(Common.parseInt(upcode) == 1081 || (Common.parseInt(upcode) >= 1091 && Common.parseInt(upcode) <= 1101)) { img_name = "kseupjong"; } %>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
| <%@ include file="/include/koscom_bottom.inc" %> | |||||||||||||||||||||||||||||||||||||||||||||||||||||