示例#1
0
        protected void store1_Refresh(object sender, StoreRefreshDataEventArgs e)
        {
            DataTable tb = null;

            DateTime startDate = Convert.ToDateTime(this.dfReportStartDate.DateField.Value);

            if (startDate < GetDT())
            {
                startDate = GetDT();
            }


            if (SPClientID > 0)
            {
                tb = SPDayReportWrapper.GetCountReportByClientID(this.SPClientID, startDate, Convert.ToDateTime(this.dfReportEndDate.DateField.Value));
            }
            else
            {
                tb = SPDayReportWrapper.GetCountReportByClientGroupID(this.SPClientGroupID, startDate, Convert.ToDateTime(this.dfReportEndDate.DateField.Value));
            }



            store1.DataSource = tb;
            store1.DataBind();
        }