public void GetTotalInHouseholdServed()
        {
            try
            {
                DateTime _startDate = DateTime.Parse(txtStartDate.Text.ToString());
                DateTime _endDate   = DateTime.Parse(txtEndDate.Text.ToString());

                FBReportsController controller = new FBReportsController();
                FBReportsInfo       item       = controller.FBReports_New_Clients_Report_THH(_startDate, _endDate, this.PortalId, ddlLocations.SelectedValue.ToString());


                //lblTHHServed
                if (item != null && item.THH_Served > 0)
                {
                    lblTHHServed.Text = "<b>Total New Clients & Family Served: " + item.THH_Served.ToString() + "</b>";
                }
                else
                {
                    lblTHHServed.Text = "<b>No Results</b>";
                }
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }
Example #2
0
        public void Fill_Report()
        {
            try
            {
                //   string s = "";
                DateTime _startDate = DateTime.Parse(txtStartDate.Text.ToString());
                DateTime _endDate   = DateTime.Parse(txtEndDate.Text.ToString());

                List <FBReportsInfo> items;
                FBReportsController  controller = new FBReportsController();

                items = controller.FBReports_MapClients(_startDate, _endDate);

                rptMarkers.DataSource = items;
                rptMarkers.DataBind();

                //for (int i = 0; i < items.Count; i++)
                //{
                // //   lblDebug.Text += items[i].Latitude + Environment.NewLine;
                //    s += "{ lat: " + items[i].Latitude + ", lng: " + items[i].Longitude + " },"  + Environment.NewLine;

                //}
                //s = s.TrimEnd('\r', '\n', ',');
                //lblDebug.Text = s.ToString();
                //litMapCenter.Text = s.ToString();

                //   //    gv_ClientDetails.DataSource = items;
                //   //    gv_ClientDetails.DataBind();
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }
        public void Fill_ClientsDetails()
        {
            try
            {
                DateTime _startDate = DateTime.Parse(txtStartDate.Text.ToString());
                DateTime _endDate   = DateTime.Parse(txtEndDate.Text.ToString());

                List <FBReportsInfo> items;
                FBReportsController  controller = new FBReportsController();

                items = controller.FBReports_New_Clients_Report(_startDate, _endDate, this.PortalId, ddlLocations.SelectedValue.ToString());

                gv_ClientDetails.DataSource = items;
                gv_ClientDetails.DataBind();
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }
Example #4
0
        public void Fill_Report()
        {
            try
            {
                DateTime _startDate = DateTime.Parse(txtStartDate.Text.ToString());
                DateTime _endDate   = DateTime.Parse(txtEndDate.Text.ToString());

                List <FBReportsInfo> items;
                FBReportsController  controller = new FBReportsController();

                items = controller.FBReports_AFM_Age(_startDate, _endDate, Int32.Parse(ddlMinAge.SelectedValue.ToString()), Int32.Parse(ddlMaxAge.SelectedValue.ToString()), this.PortalId, ddlLocations.SelectedValue.ToString());

                //   DnnGrid1.MasterTableView.Caption = Localization.GetString("dnnGrid_ReportLabel", this.LocalResourceFile) + " - Last Visit between " + _startDate.ToShortDateString() + "  and " + _endDate.ToShortDateString();
                lblMessage.Text      = Localization.GetString("dnnGrid_ReportLabel", this.LocalResourceFile) + "<br />Last Visit between " + _startDate.ToShortDateString() + "  and " + _endDate.ToShortDateString() + "<br />" + items.Count.ToString() + " Records";
                GridView1.DataSource = items;
                GridView1.DataBind();
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }