// asp code Generated by Basic Processor
// Original Page Name: C:\gmTestBed\FMStocks\src\FMSWeb\ASP\TickerDetail.asp

namespace FMSWeb
{
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using VBNET=Microsoft.VisualBasic;
using gmRTL.Core;

public partial class _TickerDetail : System.Web.UI.Page
{
   public FMSWeb._t_head _t_head1 = null;
   public FMSWeb._t_begin _t_begin1 = null;
   public FMSWeb._t_end _t_end1 = null;

   protected void Page_Load(object sender, EventArgs e)
   {
      _t_head1 = new FMSWeb._t_head();
      _t_begin1 = new FMSWeb._t_begin();
      _t_end1 = new FMSWeb._t_end();
      _t_begin1.Include_Load(_t_head1);
      _t_end1.Include_Load(_t_head1);
   }
   public FMStocks_Bus.Ticker obj = new FMStocks_Bus.Ticker();
   public string ticker = "";
   public gmRTL.DataLib.SqlClient.Recordset rs = null;
   public object Company = null;
   public object Exchange = null;
   public void ShowFundamentals()
   {
      int count = 0;
      int recommend = 0;
      count = 0;
      recommend = 1;
      while (!rs.EOF)
      {
         Item(count,rs.Fields["Status"].Value,rs.Fields["ShortDesc"].Value,rs.Fields["Value"].Value,rs.Fields["Criteria"].Value,rs.Fields["LongDesc"].Value);
         count = count + 1;
         if (rs.Fields["Status"].Value.ToInt() == 0)
         {
            recommend = 0;
         }
         HttpContext.Current.Response.Write("</tr>");
         rs.MoveNext();
      }
      if (recommend != 0)
      {
         HttpContext.Current.Response.Write("		<p>This stock meets all of our screening criteria to qualify as a short-term, small-cap growth stock.</p>" + "\n");
      }
      else
      {
         HttpContext.Current.Response.Write("		<p>This stock <b>does not</b>      meet our screening criteria to qualify as a short-term, small-cap growth stock.</p>" + "\n");
      }
   }
   public void Item(int count,object status,object shortdesc,object value,object criteria,object longdesc)
   {
      string image = "";
      if (count % 2 == 0)
      {
         HttpContext.Current.Response.Write("		<tr bgcolor='#D8D8D8'>" + "\n");
      }
      else
      {
         HttpContext.Current.Response.Write("		<tr bgcolor='#FFFFCC'>" + "\n");
      }
      if (status.ToInt() == 0)
      {
         image = "images/down.gif";
      }
      else
      {
         image = "images/up.gif";
      }
      HttpContext.Current.Response.Write("	<td nowrap class='StockItem'><img src='" + image + "' < / td>" + "\n");
      HttpContext.Current.Response.Write("	<td nowrap class='StockItem'>" + shortdesc + "</td>" + "\n");
      HttpContext.Current.Response.Write("	<td nowrap class='StockItem' align='right'>" + value + "</td>" + "\n");
      HttpContext.Current.Response.Write("	<td nowrap class='StockItem'>" + criteria + "</td>" + "\n");
      HttpContext.Current.Response.Write("	<td class='StockItem'>" + longdesc + "</td>" + "\n");
      HttpContext.Current.Response.Write("	</tr>" + "\n");
   }
}
}
