Ejemplo n.º 1
0
 private void buildSentMailings(string fillFlag, int pageIndex)
 {
     string sortdir = (fillFlag == "sort" ? GetSortDirection() : GridViewSortDirection);
     if (flagreset == true)
     {
         sortdir = "desc";
         GridSortExpression = "CreatedDate";
     }
     CampaignJob objCampaignJob = new CampaignJob(ConnectionString);
     DataTable campaignJobs = new DataTable();
     campaignJobs = objCampaignJob.getAllSentCampaignsForCampaignSegment(ConnectionString, GridSortExpression, sortdir, 4);
     rgdCampaignCompare.DataSource = campaignJobs;
     rgdCampaignCompare.CurrentPageIndex = pageIndex;
     rgdCampaignCompare.DataBind();
     lblCampMember.Text = "";
     lblCampasSelected.Text = "";
 }
Ejemplo n.º 2
0
 private void buildSegmentFromCampaigns(string fillFlag, int pageIndex)
 {
     string sortdir = (fillFlag == "sort" ? GetSortDirection() : GridViewSortDirection);
     if (flagreset == true)
     {
         sortdir = "ASC";
         GridSortExpression = "CreatedDate";
     }
     CampaignJob objCampaignJob = new CampaignJob(ConnectionString);
     DataTable campaignJobs = new DataTable();
     campaignJobs = objCampaignJob.getAllSentCampaignsForCampaignSegment(ConnectionString, GridSortExpression, sortdir, 4);
     rgdCampaignSegment.DataSource = campaignJobs;
     rgdCampaignSegment.CurrentPageIndex = pageIndex;
     rgdCampaignSegment.DataBind();
     lblCampMember.Text = "";
     lblCampasSelected.Text = "";
     divLists.Style.Add("display", "none");
     divListFiletr.Style.Add("display", "none");
     divCampaigns.Style.Add("display", "block");
     divCampaignFilter.Style.Add("display", "none");
 }