private void GenerateReport()
        {
            //GET THE REPORT DATE
            DateTime reportDate   = (DateTime)ViewState["ReportDate"];
            DateTime startOfMonth = new DateTime(reportDate.Year, reportDate.Month, 1);
            DateTime endOfMonth   = startOfMonth.AddMonths(1).AddSeconds(-1);

            Misc.AdjustDatesForMinMaxTime(startOfMonth, endOfMonth);
            HiddenStartDate.Value = startOfMonth.ToString();
            HiddenEndDate.Value   = endOfMonth.ToString();
            //GET SUMMARIES
            ReferrerSalesGrid.Visible = true;
            ReferrerSalesGrid.DataBind();
        }
예제 #2
0
        private void GenerateReport()
        {
            //GET THE REPORT DATE
            DateTime reportDate   = (DateTime)ViewState["ReportDate"];
            DateTime startOfMonth = new DateTime(reportDate.Year, reportDate.Month, 1);
            DateTime endOfMonth   = startOfMonth.AddMonths(1).AddSeconds(-1);

            Misc.AdjustDatesForMinMaxTime(startOfMonth, endOfMonth);
            HiddenStartDate.Value = startOfMonth.ToString();
            HiddenEndDate.Value   = endOfMonth.ToString();
            //UPDATE REPORT CAPTION
            ReportDateCaption.Visible = true;
            ReportDateCaption.Text    = string.Format(ReportDateCaption.Text, startOfMonth);
            //GET SUMMARIES
            AffiliateSalesGrid.Visible = true;
            AffiliateSalesGrid.DataBind();
        }