Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            DataTable dt = DataService.GetInstance().GetIndustryCodes();

            DropDownListPoolType.Items.Add(new ListItem("基础库", "1000"));
            DropDownListPoolType.Items.Add(new ListItem("核心库", "1100"));
            DropDownListPoolType.Items.Add(new ListItem("限制库", "0010"));
            DropDownListPoolType.Items.Add(new ListItem("禁止库", "0001"));
            DropDownListPoolType.Items.Add(new ListItem("所有库", "*"));

            DataTable dtAnalyst = DataService.GetInstance().GetAnalyst();
            DropDownListAnalyst.DataSource     = dtAnalyst;
            DropDownListAnalyst.DataValueField = "AnalystId";
            DropDownListAnalyst.DataTextField  = "AnalystName";
            DropDownListAnalyst.DataBind();
            DropDownListAnalyst.Items.Insert(0, new ListItem("--任意--", "0"));

            DataTable dtHedgeFund = DataService.GetInstance().GetHedgefundList();
            DropDownListHedgefund.DataSource     = dtHedgeFund;
            DropDownListHedgefund.DataValueField = "HedgeFundId";
            DropDownListHedgefund.DataTextField  = "HedgeFundName";
            DropDownListHedgefund.DataBind();

            TextBoxStartDate.Text = "2012-1-1";
            TextBoxEndDate.Text   = DateTime.Today.ToString("yyyy-MM-dd");
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            DropDownListPoolType.Items.Add(new ListItem("基础库", "1000"));
            DropDownListPoolType.Items.Add(new ListItem("核心库", "1100"));
            DropDownListPoolType.Items.Add(new ListItem("限制库", "0010"));
            DropDownListPoolType.Items.Add(new ListItem("禁止库", "0001"));
            DropDownListPoolType.Items.Add(new ListItem("出库", "*"));

            DropDownListSecurityType.Items.Add(new ListItem("--请选择--", ""));
            DropDownListSecurityType.Items.Add(new ListItem("股票", "E"));
            DropDownListSecurityType.Items.Add(new ListItem("债券", "B"));

            DataTable dtAnalyst = DataService.GetInstance().GetAnalyst();
            DropDownListAnalyst.DataSource     = dtAnalyst;
            DropDownListAnalyst.DataValueField = "AnalystId";
            DropDownListAnalyst.DataTextField  = "AnalystName";
            DropDownListAnalyst.DataBind();
            DropDownListAnalyst.Items.Insert(0, new ListItem("--任意--", "0"));

            DataTable dtHedgeFund = DataService.GetInstance().GetHedgefundList();
            DropDownListHedgefund.DataSource     = dtHedgeFund;
            DropDownListHedgefund.DataValueField = "HedgeFundId";
            DropDownListHedgefund.DataTextField  = "HedgeFundName";
            DropDownListHedgefund.DataBind();
        }
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            DataTable dtHedgeFund = DataService.GetInstance().GetHedgefundList();
            DropDownListHedgefund.DataSource     = dtHedgeFund;
            DropDownListHedgefund.DataValueField = "HedgeFundId";
            DropDownListHedgefund.DataTextField  = "HedgeFundName";
            DropDownListHedgefund.DataBind();

            DropDownListSecurityType.Items.Add(new ListItem("--任意--", ""));
            DropDownListSecurityType.Items.Add(new ListItem("股票", "E"));
            DropDownListSecurityType.Items.Add(new ListItem("债券", "B"));

            TextBoxStartDate.Text = DateTime.Today.AddDays(-90).ToString("yyyy-MM-dd");
            TextBoxEndDate.Text   = DateTime.Today.ToString("yyyy-MM-dd");
        }
    }