<% /*- ------------------------------------------------------------- -* *- ÇÁ·Î±×·¥¸í : elw_search.jsp *- ÇÁ·Î±×·¥³»¿ë : ELW ±Ç¸®Çà»ç°¡ Á¾¸ñÁ¶È¸ *- ÀÛ¼ºÀÚ : ÀÌ»ó±Ç *- ÀÛ¼ºÀÏ : 2006.09.13 *- 2008.06.18 ÃÖ¼±¹Ì ±âÃÊÀÚ»ê HangSeng/NIKKI225 Áö¼ö±¸ºÐ Ãß°¡ *- ------------------------------------------------------------- -*/ %> <%@ page contentType="text/html;charset=euc-kr"%> <%@ page import="java.util.*,common.*,ShmManager.*,sise.koscom.*,sise.koscom.comm.*,sise.koscom.code.*,sise.koscom.util.*"%> <% try{ int i, j; Vector vtIssuer = ElwMaster.ISSUERS; int issuerSize = vtIssuer.size(); String[] issuers = null; String code = Common.convertNull(request.getParameter("code")); if(code.equals("")){ try{ code = CodeUtil.getRandomCode(2); }catch(Exception e){ e.printStackTrace(); code = "J596007"; } } String issuer = Common.convertNull(request.getParameter("issuer")); if(issuer.equals("")){ if(issuerSize > 0){ issuer = ((String[])vtIssuer.get(0))[0]; }else{ issuer = "ALL"; } } String ucode = Common.convertNull(request.getParameter("ucode")); if(ucode.equals("")){ ucode = "KOSPI200"; } String rightgb = Common.convertNull(request.getParameter("rightgb")); if(rightgb.equals("")){ rightgb = "ALL"; } int s_price = Common.parseInt(request.getParameter("s_price")); if(s_price < 0){ s_price = 0; } int e_price = Common.parseInt(request.getParameter("e_price")); if(e_price <= 0){ e_price = 99999999; } String gubun = Common.convertNull(request.getParameter("gubun")); // ELW ¸¶½ºÅÍ ElwMast elwmast = null; ShmMap_ELWJMAST shm_elwjmast = null; Elw elw = (Elw)(CodeMaster.getCodeMap("elw").get(code)); if ( elw != null) { elwmast = new ElwMast(); // ../include/elw_hyun_menu.inc °ü·Ã elwmast.setMemType(Common.DELAY_READ); elwmast.setCode(code); elwmast.setData(); shm_elwjmast = new ShmMap_ELWJMAST(); shm_elwjmast.setCommarea(elwmast.getData()); } elwmast = null; // ELW ½Ã¼¼ ¸®½ºÆ® ElwStrikePriceList elwpricelist = new ElwStrikePriceList(); elwpricelist.setMemType(Common.DELAY_READ); elwpricelist.setLanguage("K"); elwpricelist.setIssuer(issuer); elwpricelist.setBase(ucode); elwpricelist.setType(rightgb); elwpricelist.setStartPrice(s_price); elwpricelist.setEndPrice(e_price); elwpricelist.setData(); ShmMap_ELWSTRIKEPRICELIST shm_elwpricelist = new ShmMap_ELWSTRIKEPRICELIST(); shm_elwpricelist.setCommarea(elwpricelist.getData()); int loopgrid = Common.parseInt(shm_elwpricelist.get(shm_elwpricelist.CNT)); ShmMap_ELWSTRIKEPRICELIST.OCC_ELWPRICELIST occ = null; elwpricelist = null; %> Koscom / Áõ±ÇÁ¤º¸ / ELWÁ¤º¸ / ±Ç¸®Çà»ç°¡ Á¾¸ñÁ¶È¸ <%@ 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()%> ELW  

<%@ include file="/include/elw_hyun_menu.inc" %>

¹ßÇà»ç   ±âÃÊÀÚ»ê   ±Ç¸®   Çà»ç°¡°Ý -

<% String kijun, hyun, dung_bit,elw_base_name, elwcode; boolean isKospi; for(i = 0; i < loopgrid; i++){ occ = shm_elwpricelist.getOCC_ELWPRICELIST(i); elwcode = occ.get(occ.CODE); kijun = occ.get(occ.KIJUN); hyun = occ.get(occ.HYUN); dung_bit = occ.get(occ.DUNG_BIT); elw_base_name = occ.get(occ.ELW_BASE_NAME); /* ÄÚµå or KOSPI200 */ isKospi = elw_base_name.equals("KOSPI200") ? true : false; %> <% if(isKospi){ %> <% }else{ %> <% } %> <% occ = null; } %>
Á¾¸ñÄÚµå Á¾¸ñ¸í ±Ç¸® Çà»ç°¡°Ý ÀüȯºñÀ² ÀÜÁ¸ÀÏ ÃÖÁ¾°Å·¡ÀÏ Çà»çÀÏ Áö±ÞÀÏ ÆÐ¸®Æ¼
<%=elwcode%> <%=occ.get(occ.NAME)%> <%=ElwMaster.getRightName(occ.get(occ.ELW_TYPE))%><%=Common.fformat(occ.get(occ.ELW_PRICE),0.01)%> <%=Common.dformat(occ.get(occ.ELW_PRICE),2)%> <%=Common.fformat(occ.get(occ.ELW_CONVERSION_RATE),0.0001,4)%>  <%=Common.dformat(Common.parseInt(occ.get(occ.REMAIN_DAY))+1)%>  <%=DateTime.addDateFormat(occ.get(occ.ELW_LAST_DATE),"/")%> <%=DateTime.addDateFormat(occ.get(occ.START_DATE),"/")%> <%=DateTime.addDateFormat(occ.get(occ.ELW_PAYMENT_DATE),"/")%> <%=Common.fformat(occ.get(occ.PARITY),0.01)%> 


<%@ include file="/include/chart_notice.inc" %>

<%@ include file="/include/used_notice.inc" %>
<%@ include file="/include/koscom_bottom.inc" %>
<% }catch(Exception e){ e.printStackTrace(); } %>