protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            btnExpand.Hide();
            AnalyDataBind();
            OptionControlBind();
        }
        if (Request.QueryString["stime"] != null && Request.QueryString["etime"] != null)
        {
            string   stimeStr = Request.QueryString["stime"].ToString();
            string   etimeStr = Request.QueryString["etime"].ToString();
            string[] stArr    = stimeStr.Split('-');
            string[] etArr    = etimeStr.Split('-');
            cboStartYear.SelectedItem.Value = stArr[0];
            cboStartMon.SelectedItem.Value  = stArr[1];
            cboEndYear.SelectedItem.Value   = etArr[0];
            cboEndMon.SelectedItem.Value    = etArr[1];

            hid1Str = Request.QueryString["hid1"];
            hid2Str = Request.QueryString["hid2"];
            hid3Str = Request.QueryString["hid3"];

            btnExpand.Show();
            FieldSet1.Hide();
            ShowDtBind(stimeStr, etimeStr);
            ShowFiledCoum(hid3Str);
        }
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            btnExpand.Hide();
            AnalyDataBind();
            OptionControlBind();
        }
        if (Request.QueryString["year"] != null)
        {
            string yearStr = Request.QueryString["year"].ToString();
            cboStartYear.SelectedItem.Value = yearStr;
            hid1Str = Request.QueryString["hid1"];
            hid2Str = Request.QueryString["hid2"];
            hid3Str = Request.QueryString["hid3"];

            btnExpand.Show();
            FieldSet1.Hide();
            ShowDtBind(yearStr);
            ShowFiledCoum(hid3Str);
        }
    }
 protected void btnExpand_DirectClick(object sender, DirectEventArgs e)
 {
     FieldSet1.Show();
 }