|
<%@ include file="/include/sise_left_menu.inc" %>
|
|

|
|
<%@ include file="/include/koscom_top_ad.inc" %>
<%=Common.getNavigation()%>
º¸À¯Á¾¸ñ
|
|
|
 |
|
|
|

|
|
| Á¾¸ñ¸í |
¸Þ¸ð |
ÇöÀç°¡ |
ÀüÀÏ´ëºñ(µî¶ôÀ²) |
¸ÅÀÔ°¡ |
¸ÅÀÔ¼ö·® |
¸ÅÀÔ±Ý |
Æò°¡¾× |
¼öÀÍ±Ý |
¼öÀÍÀ² |
<%
double dblTotProfitRate = 0;
long iCurrPrice, iCurrTotPrice=0, iTotPrice=0, iRealProfit=0, colorCnt=0;
long iRealProfitSum = 0, iTotPriceSum = 0, iCurrTotPriceSum=0;
double dblUpDnRate, dblProfitRate=0.0;
if(loopgrid > 0) {
String pre_price,curr_price,diff_gb,diff,updn_rate;
String open_price,high_price,low_price,max_price="",min_price="";
String highStr="", lowStr="";
for(i=0; i< loopgrid ; i++) {
occ = shm_concernprice.getOCC_CONCERN_PRICE(i);
stock_code = occ.get(occ.CODE).trim(); // Á¾¸ñÄÚµå
if(stock_code.equals("")){
MaxLineCnt++;
continue;
}
if(stock_code.equals("-------")){
%>
|
|
<%
MaxLineCnt++;
continue;
}
stock = (Stock)cm_stock.get(stock_code);
market = occ.get(occ.MARKET).trim(); // ½ÃÀå
if(market.equals("J")) {
elw = (Elw)cm_elw.get(stock_code);
stock_name = elw.getElwKorName();
elw = null;
} else {
stock = (Stock)cm_stock.get(stock_code);
stock_name = stock.getKorName();
stock = null;
}
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); // »óÇѰ¡
iCurrTotPrice = iCurrPrice * trVolumn[i];
iTotPrice = (long)trPrice[i] * (long)trVolumn[i];
iRealProfit = iCurrTotPrice - iTotPrice;
if(iTotPrice == 0){
dblProfitRate = 0;
}else{
dblProfitRate = iRealProfit * 100.0 / iTotPrice;
}
iCurrTotPriceSum += iCurrTotPrice;
iTotPriceSum += iTotPrice;
iRealProfitSum += iRealProfit;
%>
<%=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.dformat(String.valueOf(trPrice[i]))%>
|
<%=Common.dformat(String.valueOf(trVolumn[i]))%>
|
<%=Common.dformat(String.valueOf(iTotPrice))%>
|
<%=Common.dformat(String.valueOf(iCurrTotPrice))%>
|
<%=Common.setSignColor(String.valueOf(iRealProfit), "I")%> |
<%=Common.setSignColor(String.valueOf(dblProfitRate), "F","%")%> |
<%
}
/*
if($total_income !=0 )
$total_income_rate = $total_income/$total_sprice*100;
*/
dblTotProfitRate = 100.0 * iRealProfitSum/iTotPriceSum;
}
%>
| ÃÑÆò°¡¾× :
<%=Common.dformat(String.valueOf(iCurrTotPriceSum))%> |
ÃѸÅÀÔ±Ý :
<%=Common.dformat(String.valueOf(iTotPriceSum))%> |
ÃѼöÀÍ±Ý :
<%=Common.setSignColor(String.valueOf(iRealProfitSum), "I")%> |
ÃѼöÀÍÀ² :
<%=Common.setSignColor(String.valueOf(dblTotProfitRate), "F", "%")%> |
|