Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DBL     db      = new DBL();
            DataSet dataSet = new DataSet();

            db.GetDropDownField(dataSet);
            selProjectOptions114 = BindChoices(dataSet.Tables["DropDownFieldsChoice"]);  // 绑定下拉框字段值
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DBL     db      = new DBL();
            DataSet dataSet = new DataSet();

            db.GetDropDownField(dataSet);
            selProjectOptions103 = BindChoices(dataSet.Tables["DropDownFieldsChoice"]);  // 绑定下拉框字段值

            dataSet = db.GetGlobalReportsInfo(MyReportID, hidprojectIDs.Value.ToString());
            htmlGlobalReportTable103 = GetReportByHTML(dataSet.Tables["ReportTable103"]);
        }
    }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DBL      db        = new DBL();
            DataSet  dataSet   = new DataSet();
            DateTime startDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            DateTime endDate   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
            dateTimePicker.Value  = startDate.ToShortDateString();
            dateTimePicker2.Value = endDate.ToShortDateString();

            db.GetDropDownField(dataSet);
            selProjectOptions105     = BindChoices(dataSet.Tables["DropDownFieldsChoice"]);
            htmlGlobalReportTable105 = "";
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DBL      db        = new DBL();
            DataSet  dataSet   = new DataSet();
            DateTime startDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            DateTime endDate   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
            dateTimePicker.Value  = startDate.ToShortDateString();
            dateTimePicker2.Value = endDate.ToShortDateString();

            db.GetDropDownField(dataSet);
            selProjectOptions106 = BindChoices(dataSet.Tables["DropDownFieldsChoice"]);

            string strFlag = string.Format("{0}_{1}_{2}", startDate, endDate, hidprojectIDs.Value.ToString());
            dataSet = db.GetGlobalReportsInfo(MyReportID, strFlag);
            htmlGlobalReportTable106 = GetReportByHTML(dataSet.Tables["ReportTable106"]);
        }
    }