Ejemplo n.º 1
0
        public void generateAccCls(string userName, string ConnectionString)
        {
            UserPermissions UserPermissions = UserPermission.SelectByField("UserName", userName, ConnectionString);
            objAccCls = new AccountSettingsClass();
            objAccCls.IsMList = (bool)UserPermissions[0].IsMList;

            objAccCls.IsList = (bool)UserPermissions[0].IsList;
            objAccCls.IsContact = (bool)UserPermissions[0].IsContact;
            objAccCls.IsImport = (bool)UserPermissions[0].IsImport;
            objAccCls.IsSegments = (bool)UserPermissions[0].IsSegments;
            objAccCls.IsDownloadContacts = (bool)UserPermissions[0].IsDownloadContacts;

            objAccCls.IsMCampaigns = (bool)UserPermissions[0].IsMCampaigns;

            objAccCls.IsMailing = (bool)UserPermissions[0].IsMailing;
            objAccCls.IsCampaigns = (bool)UserPermissions[0].IsCampaigns;
            objAccCls.IsTemplates = (bool)UserPermissions[0].IsTemplates;
            objAccCls.IsAgedCampaigns = (bool)UserPermissions[0].IsAgedCampaigns;

            objAccCls.IsMAdvanced = (bool)UserPermissions[0].IsMAdvanced;

            objAccCls.IsMangeFields = (bool)UserPermissions[0].IsMangeFields;
            objAccCls.IsMergeLists = (bool)UserPermissions[0].IsMergeLists;
            objAccCls.IsSuppressAddress = (bool)UserPermissions[0].IsSuppressAddress;
            objAccCls.IsBounceSettings = (bool)UserPermissions[0].IsBounceSettings;

            objAccCls.IsMActivity = (bool)UserPermissions[0].IsMActivity;

            objAccCls.IsAccountActivity = (bool)UserPermissions[0].IsAccountActivity;
            objAccCls.IsCompareCampaign = (bool)UserPermissions[0].IsCompareCampaign;
            objAccCls.IsBounceReport = (bool)UserPermissions[0].IsBounceReport;

            objAccCls.IsMCampReports = (bool)UserPermissions[0].IsMCampReports;

            objAccCls.IsDashboard = (bool)UserPermissions[0].IsDashboard;
            objAccCls.IsContactActivity = (bool)UserPermissions[0].IsContactActivity;
            objAccCls.IsClickPerformance = (bool)UserPermissions[0].IsClickPerformance;
            objAccCls.IsAdvancedReports = (bool)UserPermissions[0].IsAdvancedReports;

            objAccCls.IsMicrositeManager = (bool)UserPermissions[0].IsMicrositeManager;
            objAccCls.IsCustomizedAMMForms = (bool)UserPermissions[0].IsCustomizedAMMForms;
            objAccCls.IsAMMAdvanceReprot = (bool)UserPermissions[0].IsAMMAdvanceReprot;

            objAccCls.MasterLogo = UserPermissions[0].MasterLogo;
            objAccCls.ChildLogo = UserPermissions[0].ChildLogo;
            Session["AccCls"] = objAccCls;
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lbSearch_Targeted.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Targeted.ClientID + "');");
            lbtnSearch_Successful.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Successful.ClientID + "');");
            lbtnSearch_Bounced.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Bounced.ClientID + "');");
            lbtnSearch_Opened.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Opened.ClientID + "');");
            lbtnSearch_UnOpen.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_UnOpen.ClientID + "');");
            lbtnSearch_Clicked.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Clicked.ClientID + "');");
            lbtnSearch_Forwards.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Forwards.ClientID + "');");
            lbtnSearch_Unsub.Attributes.Add("onClick", "return validateSearchBox('" + txtSearch_Unsub.ClientID + "');");

            //Bellow Lines are used to when Click on Enter in TextBox it will give the Search Result.
            txtSearch_Targeted.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbSearch_Targeted.ClientID + "')");
            txtSearch_Successful.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_Successful.ClientID + "')");
            txtSearch_Bounced.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_Bounced.ClientID + "')");
            txtSearch_Opened.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_Opened.ClientID + "')");
            txtSearch_UnOpen.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_UnOpen.ClientID + "')");
            txtSearch_Clicked.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_Clicked.ClientID + "')");
            txtSearch_Forwards.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_Forwards.ClientID + "')");
            txtSearch_Unsub.Attributes.Add("onkeypress", "KeyDownHandler(event, '" + lbtnSearch_Unsub.ClientID + "')");

            ConnectionString = Session["Connectionstring"].ToString();
            Master.ParentModulelbl.Text = "Contact Activity";
            lblMsg.Text = "";
            if (Session["ContactsTargeted"] != null)
                dtContactsTarget = (DataTable)Session["ContactsTargeted"];
            try
            {
                if (!IsPostBack)
                {
                    bindCampaignsName();
                    if(Session["TitleName"]!=null && Session["TitleName"].ToString()!=string.Empty)
                        lblCampaignTitle.Text = Session["TitleName"].ToString();

                    if (Session["MailingID"] != null)
                    {
                        if (Session["CampId"] != null)
                            bindMialingNameswithSeletedCamp();
                        else
                            bindMailingNames();
                        hdfMailingID.Value = Session["MailingID"].ToString();
                        lblsentDateTime.Text = Session["SentDateTime"].ToString();
                        SingleCampaignCounts(hdfCampaignID.Value, hdfMailingID.Value);
                    }
                    else if (Session["CampId"] != null)
                    {
                        ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                        hdfCampaignID.Value = Session["CampId"].ToString();
                        bindMialingNameswithSeletedCamp();
                        SingleCampaignCounts(hdfCampaignID.Value, hdfMailingID.Value);
                    }
                    else
                        bindMailingNames();
                    if (Session["CampId"] != null)
                        ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                    objAccCls = (AccountSettingsClass)Session["AccCls"];
                    if (objAccCls.IsCampaigns)
                        lnkBackToSentMail.Visible = true;
                    else
                        lnkBackToSentMail.Visible = false;
                }

                ShowCampaignCountChart.Series["Series1"].ChartType = SeriesChartType.Bar;
                ShowCampaignCountChart.Series["Series1"]["DrawingStyle"] = "Cylinder";
            }
            catch (Exception ex)
            {

            }
        }
Ejemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                string UrlStr = System.Configuration.ConfigurationManager.AppSettings["AmmAdvRptLink"].ToString() + LoginName1.Page.User.Identity.Name;
                LbtnAMMAdvReports.Attributes.Add("onclick", "window.open('" + UrlStr + "', '_blank', 'height=500,width=800,status=yes,toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes,titlebar=yes' );");

                ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["sqlConstr"].ConnectionString;
                Control liRecipients = Page.Master.FindControl("tabRecipients");
                Control liCampaigns = Page.Master.FindControl("tabCampaigns");
                Control liAdvanced = Page.Master.FindControl("tabAdvanced");
                Control liReports = Page.Master.FindControl("tabReports");
                Control liCampaignReports = Page.Master.FindControl("tabCampaignReports");
                Control liMicrositeManager = Page.Master.FindControl("tabmicrositemanager");
                //Control liAMMAdvRept = Page.Master.FindControl("tabAMMAdvReports");
                if (!IsPostBack)
                {
                    lblDate.Text = System.DateTime.Now.DayOfWeek.ToString() + ", " + System.DateTime.Now.ToString("MMMM") + " " + System.DateTime.Now.Day.ToString() + ", " + System.DateTime.Now.Year.ToString();
                }

                if (Session["AccCls"] != null)
                {
                    objAccCls = (AccountSettingsClass)Session["AccCls"];
                    if (objAccCls.IsList == false && objAccCls.IsContact == false && objAccCls.IsImport == false && objAccCls.IsSegments == false && objAccCls.IsDownloadContacts == false)
                        liRecipients.Visible = false;
                    else
                        liRecipients.Visible = true;
                    if (objAccCls.IsMailing == false && objAccCls.IsCampaigns == false && objAccCls.IsTemplates == false && objAccCls.IsAgedCampaigns == false)
                        liCampaigns.Visible = false;
                    else
                        liCampaigns.Visible = true;
                    if (objAccCls.IsMangeFields == false && objAccCls.IsMergeLists == false && objAccCls.IsSuppressAddress == false && objAccCls.IsBounceSettings == false)
                        liAdvanced.Visible = false;
                    else
                        liAdvanced.Visible = true;
                    if (objAccCls.IsAccountActivity == false && objAccCls.IsCompareCampaign == false && objAccCls.IsBounceReport==false)
                        liReports.Visible = false;
                    else
                        liReports.Visible = true;
                    if (objAccCls.IsDashboard == false && objAccCls.IsContactActivity == false && objAccCls.IsClickPerformance == false && objAccCls.IsAdvancedReports == false)
                        liCampaignReports.Visible = false;
                    else
                        liCampaignReports.Visible = true;
                    if (objAccCls.IsMicrositeManager == false)
                        liMicrositeManager.Visible = false;
                    else
                        liMicrositeManager.Visible = true;

                    if (objAccCls.IsAMMAdvanceReprot == false)
                        LbtnAMMAdvReports.Visible = false;
                    else
                        LbtnAMMAdvReports.Visible = true;

                    if (!HttpContext.Current.User.IsInRole("user"))
                    {
                        if (objAccCls.MasterLogo == null && objAccCls.ChildLogo == null)
                           // imgMasterLogo.ImageUrl = "../Image/logo-new-master.png";
                            imgMasterLogo.Src = "../Image/logo-new-master.png";

                        else if (objAccCls.MasterLogo != null)
                            //imgMasterLogo.ImageUrl = "../pages/ShowLogo.ashx?LogoType=Master&UserName="******"../pages/ShowLogo.ashx?LogoType=Master&UserName="******"UserName", Session["parentUser"].ToString(), ConnectionString);
                        if (UserPer[0].MasterLogo == null)
                            //imgMasterLogo.ImageUrl = "../Image/logo-new-master.png";
                            imgMasterLogo.Src = "../Image/logo-new-master.png";

                        else
                            //imgMasterLogo.ImageUrl = "../pages/ShowLogo.ashx?LogoType=Master&UserName="******"parentUser"].ToString();
                            imgMasterLogo.Src = "../pages/ShowLogo.ashx?LogoType=Master&UserName="******"parentUser"].ToString();

                        if (objAccCls.ChildLogo != null)
                            //imgChildLogo.ImageUrl = "../pages/ShowLogo.ashx?LogoType=Child&UserName="******"../pages/ShowLogo.ashx?LogoType=Child&UserName="******"parentUser"].ToString() != null)
                    //    imgMasterLogo.ImageUrl = "../Image/logo-new-master.png";
                    //else
                    //    imgMasterLogo.ImageUrl = (Session["parentUser"].ToString() != null && Session["parentUser"].ToString() != string.Empty) ? "../pages/ShowLogo.ashx?LogoType=Master&UserName="******"parentUser"].ToString().Trim() : imgMasterLogo.ImageUrl = "../Image/logo-new-master.png";

                    //if (objAccCls.ChildLogo != null)
                    //    imgChildLogo.ImageUrl = "../pages/ShowLogo.ashx?LogoType=Child&UserName="******"~/pages/list.aspx") && !objAccCls.IsList)
                    {
                        identifier = (objAccCls.IsList) ? "../pages/list.aspx" : (objAccCls.IsContact) ? "../pages/recipients.aspx" : (objAccCls.IsImport) ? "../pages/importexport.aspx" : (objAccCls.IsSegments) ? "../pages/segmentation.aspx" : (objAccCls.IsDownloadContacts) ? "../pages/downloadcontacts.aspx" : string.Empty;
                        Response.Redirect(identifier);
                    }
                    if (redirectURL.Equals("~/pages/campaigns.aspx") && !objAccCls.IsMailing)
                    {
                        identifier = (objAccCls.IsMailing) ? "../pages/campaigns.aspx" : (objAccCls.IsCampaigns) ? "../pages/campaignmails.aspx" : (objAccCls.IsTemplates) ? "../pages/creatives.aspx" : (objAccCls.IsAgedCampaigns) ? "../pages/agedcampaigns.aspx" : string.Empty;
                        Response.Redirect(identifier.ToString());
                    }
                    if (redirectURL.Equals("~/pages/managefields.aspx") && !objAccCls.IsMangeFields)
                    {
                        identifier = (objAccCls.IsMangeFields) ? "../pages/managefields.aspx" : (objAccCls.IsMergeLists) ? "../pages/mergelists.aspx" : (objAccCls.IsSuppressAddress) ? "../pages/suppressaddress.aspx" : (objAccCls.IsBounceSettings) ? "../pages/bouncesettings.aspx" : string.Empty;
                        Response.Redirect(identifier.ToString());
                    }
                    if (redirectURL.Equals("~/pages/campaignactivityreport.aspx") && !objAccCls.IsAccountActivity)
                    {
                        identifier = (objAccCls.IsAccountActivity) ? "../pages/campaignactivityreport.aspx" : (objAccCls.IsCompareCampaign) ? "../pages/comparecampaigns.aspx" : string.Empty;
                        Response.Redirect(identifier.ToString());
                    }
                    if (redirectURL.Equals("~/pages/campaigndashboard.aspx") && !objAccCls.IsDashboard)
                    {
                        identifier = (objAccCls.IsDashboard) ? "../pages/campaigndashboard.aspx" : (objAccCls.IsContactActivity) ? "../pages/recipientactivity.aspx" : (objAccCls.IsClickPerformance) ? "../pages/clickperformance.aspx" : (objAccCls.IsAdvancedReports) ? "../pages/advancedreports.aspx" : string.Empty;
                        Response.Redirect(identifier.ToString());
                    }
                }
            }
            catch (Exception)
            {

                throw;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ConnectionString = Session["Connectionstring"].ToString();
            Master.ParentModulelbl.Text = "Form Submitted";
            lblMsg.Text = "";
            if (Session["ContactsTargeted"] != null)
                dtContactsTarget = (DataTable)Session["ContactsTargeted"];
            try
            {
                if (!IsPostBack)
                {
                    if(User.Identity.Name.ToString().ToLower()=="wheelock")
                        formSubmitted.Tabs[1].Enabled = false;
                    if (User.Identity.Name.ToString().ToLower() == "widener")
                        formSubmitted.Tabs[0].Enabled = false;

                    bindCampaignsName();
                    if (Session["TitleName"] != null && Session["TitleName"].ToString() != string.Empty)
                        lblCampaignTitle.Text = Session["TitleName"].ToString();
                    if (Session["MailingID"] != null)
                    {
                        if (Session["CampId"] != null)
                            bindMialingNameswithSeletedCamp();
                        else
                            bindMailingNames();
                        hdfMailingID.Value = Session["MailingID"].ToString();
                        lblsentDateTime.Text = Session["SentDateTime"].ToString();
                        SingleCampaignCounts(hdfCampaignID.Value, hdfMailingID.Value);
                    }
                    else if (Session["CampId"] != null)
                    {
                        ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                        hdfCampaignID.Value = Session["CampId"].ToString();
                        bindMialingNameswithSeletedCamp();
                        SingleCampaignCounts(hdfCampaignID.Value, hdfMailingID.Value);
                    }
                    else
                        bindMailingNames();
                    if(Session["CampId"]!=null)
                        ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                    objAccCls = (AccountSettingsClass)Session["AccCls"];
                    if (objAccCls.IsCampaigns)
                        lnkBackToSentMail.Visible = true;
                    else
                        lnkBackToSentMail.Visible = false;
                }
            }
            catch (Exception ex)
            {

            }
        }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                ConnectionString = Session["Connectionstring"].ToString();
                Master.ParentModulelbl.Text = "DASHBOARD";
                if (!IsPostBack)
                {
                    bindGrid("sort");
                    bindListGrid("sort");

                    if (Session["AccCls"] != null)
                    {
                        objAccCls = (AccountSettingsClass)Session["AccCls"];
                        if (objAccCls.IsCampaigns)
                            lbtnMoreCamps.Visible = true;
                        else
                            lbtnMoreCamps.Visible = false;

                        if (objAccCls.IsList)
                            lbtnMoreLists.Visible = true;
                        else
                            lbtnMoreLists.Visible = false;
                    }
                }
                getLastTopTenCampaignsSentData();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ConnectionString = Session["Connectionstring"].ToString();
     Master.ParentModulelbl.Text = "Merge Lists";
     txtListNameSearch.Focus();
     if (Session["AccCls"] != null)
         objAccCls = (AccountSettingsClass)Session["AccCls"];
     if (!objAccCls.IsList)
         RbarBtn.Items[1].Enabled = false;
     if (!IsPostBack)
     {
         bindGridfrom();
         bindGridto();
     }
 }
Ejemplo n.º 7
0
        protected override void OnPreInit(EventArgs e)
        {
            if (Session["AccCls"] != null)
                objAccCls = (AccountSettingsClass)Session["AccCls"];
            Control control = Master.FindControl("phSubMenu");
            //css classes
            string css_submenuitem_normal = "dark-bluegrey-13px-link";// "normal-lightgreen";
            string css_submenuitem_selected = "white-13px-link"; //"normal-white-selected";
            string identifier = Request.AppRelativeCurrentExecutionFilePath.ToLower();

            // To display selected link buttons as white
            if (identifier == "~/pages/clientinvoices.aspx" || identifier == "~/pages/conformpayment.aspx" || identifier == "~/pages/conformauthorizenetpayment.aspx")
            {
                identifier = "~/pages/clientinvoices.aspx";
            }
            if (identifier == "~/pages/list.aspx" || identifier == "~/pages/listdetails.aspx")
            {
                identifier = "~/pages/list.aspx";
            }
            else if (identifier == "~/pages/segmentation.aspx" || identifier == "~/pages/managesegment.aspx")
            {
                identifier = "~/pages/segmentation.aspx";
            }
            else if (identifier == "~/pages/recipients.aspx" || identifier == "~/pages/managerecipient.aspx")
            {
                identifier = "~/pages/recipients.aspx";
            }
            else if (identifier == "~/editor/createtemplatenew.aspx" || identifier == "~/pages/creatives.aspx" || identifier == "~/pages/spamresult.aspx")
            {
                identifier = "~/pages/creatives.aspx";
            }
            else if (identifier == "~/editor/createcampaign.aspx" || identifier == "~/pages/campaigns.aspx" || identifier == "~/pages/campaignsummary.aspx")
            {
                identifier = "~/pages/campaigns.aspx";
            }
            else if (identifier == "~/editor/newautomationcampaign.aspx" || identifier == "~/pages/automation.aspx")
            {
                identifier = "~/pages/automation.aspx";
            }
            else if (identifier == "~/pages/agedcampaigns.aspx")
            {
                identifier = "~/pages/agedcampaigns.aspx";
            }
            else if (identifier == "~/adminpages/updateclient.aspx")
            {
                identifier = "~/adminpages/updateclient.aspx";
            }
            else if (identifier == "~/adminpages/adminactivityreport.aspx")
            {
                identifier = "~/adminpages/adminactivityreport.aspx";
            }
            else if (identifier == "~/adminpages/adminbouncereport.aspx")
            {
                identifier = "~/adminpages/adminbouncereport.aspx";
            }
            //else if (identifier == "~/adminpages/adminactivityreport.aspx")
            //{
            //    identifier = "~/adminpages/adminactivityreport.aspx";
            //}
            else if (identifier == "~/adminpages/clientfblreport.aspx")
            {
                identifier = "~/adminpages/clientfblreport.aspx";
            }
            //Billing
            else if (identifier == "~/adminpages/adminbmanageinvoice.aspx" || identifier == "~/adminpages/admininvoicedetails.aspx" || identifier == "~/adminpages/conformpayment-paypall.aspx")
            {
                identifier = "~/adminpages/adminbmanageinvoice.aspx";
            }
            //else if (identifier == "~/adminpages/adminbpaymentreceivables.aspx")
            //{
            //    identifier = "~/adminpages/adminbpaymentreceivables.aspx";
            //}
            else if (identifier == "~/adminpages/adminbpaidinvoices.aspx")
            {
                identifier = "~/adminpages/adminbpaidinvoices.aspx";
            }
            else if (identifier == "~/adminpages/adminbpriceratesettings.aspx")
            {
                identifier = "~/adminpages/adminbpriceratesettings.aspx";
            }
            //----------------------------------
            else if (identifier == "~/pages/mergelists.aspx")
            {
                identifier = "~/pages/mergelists.aspx";
            }
            else if (identifier == "~/pages/suppressaddress.aspx")
            {
                identifier = "~/pages/suppressaddress.aspx";
            }
            else if (identifier == "~/pages/managefields.aspx")
            {
                identifier = "~/pages/managefields.aspx";
            }
            if (identifier == "~/pages/campaignmailingsummary.aspx" || identifier == "~/pages/campaignmailingdetails.aspx")
            {
                identifier = "~/pages/campaignmailingsummary.aspx";
            }
            switch (identifier)
            {
                case "~/pages/home.aspx":
                case "~/pages/dashboard.aspx":
                case "~/pages/adminaccountsettings.aspx":
                case "~/pages/usersettings.aspx":
                case "~/pages/clientinvoices.aspx":
                case "~/pages/useraccountsettings.aspx":
                case "~/pages/conformpayment.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        control.Controls.Add(buildLinkButton("../pages/home.aspx", "Dashboard", (identifier == "~/pages/home.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (!User.IsInRole("User"))
                        {
                            control.Controls.Add(buildLinkButton("../pages/usersettings.aspx", "User", (identifier == "~/pages/usersettings.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                            control.Controls.Add(buildLinkButton("../pages/useraccountsettings.aspx", "Account Settings", (identifier == "~/pages/useraccountsettings.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                            control.Controls.Add(buildLinkButton("../pages/clientinvoices.aspx", "Invoices", (identifier == "~/pages/clientinvoices.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        }
                    }
                    addOrRemoveStyles("tabHome", "ADD", "class", "current");
                    addOrRemoveStyles("tabRecipients", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "REMOVE", "class", "current");
                    break;

                case "~/pages/recipients.aspx":
                case "~/pages/importexport.aspx":
                case "~/pages/managerecipient.aspx":
                case "~/pages/list.aspx":
                case "~/pages/listdetails.aspx":
                case "~/pages/segmentation.aspx":
                case "~/pages/managesegment.aspx":
                case "~/pages/downloadcontacts.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        if (objAccCls.IsList)
                            control.Controls.Add(buildLinkButton("../pages/list.aspx", "Lists", (identifier == "~/pages/list.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsContact)
                            control.Controls.Add(buildLinkButton("../pages/recipients.aspx", "Contacts", (identifier == "~/pages/recipients.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsImport)
                            control.Controls.Add(buildLinkButton("../pages/importexport.aspx", "Import", (identifier == "~/pages/importexport.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsSegments)
                            control.Controls.Add(buildLinkButton("../pages/segmentation.aspx", "Segments", (identifier == "~/pages/segmentation.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsDownloadContacts)
                            control.Controls.Add(buildLinkButton("../pages/downloadcontacts.aspx", "Download Contacts", (identifier == "~/pages/downloadcontacts.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabRecipients", "ADD", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "REMOVE", "class", "current");
                    break;

                case "~/pages/campaigns.aspx":
                case "~/pages/campaignmails.aspx":
                case "~/pages/creatives.aspx":
                case "~/pages/automation.aspx":
                case "~/pages/agedcampaigns.aspx":
                case "~/pages/createtemplatenew.aspx":
                case "~/editor/createcampaign.aspx":
                case "~/editor/newautomationcampaign.aspx":
                case "~/pages/campaignsummary.aspx":
                case "~/pages/spamresult.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();

                        if (objAccCls.IsMailing)
                            control.Controls.Add(buildLinkButton("../pages/campaigns.aspx", "Mailings", (identifier == "~/pages/campaigns.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsCampaigns)
                            control.Controls.Add(buildLinkButton("../pages/campaignmails.aspx", "Campaigns", (identifier == "~/pages/campaignmails.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsTemplates)
                            control.Controls.Add(buildLinkButton("../pages/creatives.aspx", "Templates", (identifier == "~/pages/creatives.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsAgedCampaigns)
                            control.Controls.Add(buildLinkButton("../pages/agedcampaigns.aspx", "Aged Mailings", (identifier == "~/pages/agedcampaigns.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));

                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabRecipients", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "ADD", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "REMOVE", "class", "current");
                    break;

                case "~/pages/mergelists.aspx":
                case "~/pages/suppressaddress.aspx":
                case "~/pages/managefields.aspx":
                case "~/pages/bouncesettings.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();

                        if (objAccCls.IsMangeFields)
                            control.Controls.Add(buildLinkButton("../pages/managefields.aspx", "Manage Fields", (identifier == "~/pages/managefields.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsMergeLists)
                            control.Controls.Add(buildLinkButton("../pages/mergelists.aspx", "Merge Lists", (identifier == "~/pages/mergelists.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsSuppressAddress)
                            control.Controls.Add(buildLinkButton("../pages/suppressaddress.aspx", "Suppress Address", (identifier == "~/pages/suppressaddress.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsBounceSettings)
                            control.Controls.Add(buildLinkButton("../pages/bouncesettings.aspx", "Bounce Settings", (identifier == "~/pages/bouncesettings.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));

                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabRecipients", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "ADD", "class", "current");
                    addOrRemoveStyles("tabReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "REMOVE", "class", "current");
                    break;
                case "~/pages/reports.aspx":
                case "~/pages/singlecampaignreport.aspx":
                case "~/pages/accountreports.aspx":
                case "~/pages/openreports.aspx":
                case "~/pages/clickreports.aspx":
                case "~/pages/recipientreports.aspx":
                case "~/pages/deliverabilityreports.aspx":
                case "~/pages/campaignactivityreport.aspx":
                case "~/pages/comparecampaigns.aspx":
                case "~/pages/bouncereport.aspx":
                case "~/pages/domainanalysys.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        if (objAccCls.IsAccountActivity)
                            control.Controls.Add(buildLinkButton("../pages/campaignactivityreport.aspx", "Account Activity", (identifier == "~/pages/campaignactivityreport.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsCompareCampaign)
                            control.Controls.Add(buildLinkButton("../pages/comparecampaigns.aspx", "Compare Mailings", (identifier == "~/pages/comparecampaigns.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsBounceReport)
                            control.Controls.Add(buildLinkButton("../pages/bouncereport.aspx", "Bounce Report", (identifier == "~/pages/bouncereport.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));

                        control.Controls.Add(buildLinkButton("../pages/domainanalysys.aspx", "Domain Analysis Report", (identifier == "~/pages/domainanalysys.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabRecipients", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabReports", "ADD", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "REMOVE", "class", "current");
                    break;

                case "~/pages/campaigndashboard.aspx":
                case "~/pages/recipientactivity.aspx":
                case "~/pages/clickperformance.aspx":
                case "~/pages/formsubmittedreports.aspx":
                case "~/pages/advancedreports.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        if (objAccCls.IsDashboard)
                            control.Controls.Add(buildLinkButton("../pages/campaigndashboard.aspx", "Dashboard", (identifier == "~/pages/campaigndashboard.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsContactActivity)
                            control.Controls.Add(buildLinkButton("../pages/recipientactivity.aspx", "Contact Activity", (identifier == "~/pages/recipientactivity.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsClickPerformance)
                            control.Controls.Add(buildLinkButton("../pages/clickperformance.aspx", "Click Performance", (identifier == "~/pages/clickperformance.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsCustomizedAMMForms)
                            control.Controls.Add(buildLinkButton("../pages/formsubmittedreports.aspx", "Form Submitted Reports", (identifier == "~/pages/formsubmittedreports.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        if (objAccCls.IsAdvancedReports)
                            control.Controls.Add(buildLinkButton("../pages/advancedreports.aspx", "Advanced Reports", (identifier == "~/pages/advancedreports.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabRecipients", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "ADD", "class", "current");
                    break;
                case "~/pages/campaignmailingsummary.aspx":
                case "~/pages/campaignmailingdetails.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        control.Controls.Add(buildLinkButton("../pages/campaignmailingsummary.aspx", "Summary", (identifier == "~/pages/campaignmailingsummary.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabRecipients", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaigns", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAdvanced", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabCampaignReports", "REMOVE", "class", "current");
                    break;
                case "~/adminpages/updateclient.aspx":
                case "~/adminpages/adminaccountsettings.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        control.Controls.Add(buildLinkButton("../adminpages/updateclient.aspx", "Clients", (identifier == "~/adminpages/updateclient.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        control.Controls.Add(buildLinkButton("../adminpages/adminaccountsettings.aspx", "Account Settings", (identifier == "~/adminpages/adminaccountsettings.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                    }
                    addOrRemoveStyles("tabHome", "ADD", "class", "current");
                    addOrRemoveStyles("tabAReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabABilling", "REMOVE", "class", "current");
                    break;

                case "~/adminpages/clientfblreport.aspx":
                case "~/adminpages/adminactivityreport.aspx":
                case "~/adminpages/adminbouncereport.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        control.Controls.Add(buildLinkButton("../adminpages/adminactivityreport.aspx", "Account Activity", (identifier == "~/adminpages/adminactivityreport.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        control.Controls.Add(buildLinkButton("../adminpages/clientfblreport.aspx", "FBL Report", (identifier == "~/adminpages/clientfblreport.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        control.Controls.Add(buildLinkButton("../adminpages/adminbouncereport.aspx", "Bounce Report", (identifier == "~/adminpages/adminbouncereport.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));

                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAReports", "ADD", "class", "current");
                    addOrRemoveStyles("tabABilling", "REMOVE", "class", "current");
                    break;
                //BILLING
                case "~/adminpages/adminbmanageinvoice.aspx":
               // case "~/adminpages/adminbpaymentreceivables.aspx":
                case "~/adminpages/adminbpaidinvoices.aspx":
                case "~/adminpages/adminbpriceratesettings.aspx":
                    if (control != null)
                    {
                        control.Controls.Clear();
                        control.Controls.Add(buildLinkButton("../adminpages/adminbmanageinvoice.aspx", "Manage Invoices", (identifier == "~/adminpages/adminbmanageinvoice.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                       // control.Controls.Add(buildLinkButton("../adminpages/adminbpaymentreceivables.aspx", "Payment Receivables", (identifier == "~/adminpages/adminbpaymentreceivables.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        control.Controls.Add(buildLinkButton("../adminpages/adminbpaidinvoices.aspx", "Paid Invoices", (identifier == "~/adminpages/adminbpaidinvoices.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));
                        control.Controls.Add(buildLinkButton("../adminpages/adminbpriceratesettings.aspx", "PriceRate Settings", (identifier == "~/adminpages/adminbpriceratesettings.aspx") ? css_submenuitem_selected : css_submenuitem_normal, "15px"));

                    }
                    addOrRemoveStyles("tabHome", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabAReports", "REMOVE", "class", "current");
                    addOrRemoveStyles("tabABilling", "ADD", "class", "current");
                    break;
                default:
                    break;
            }
            base.OnPreInit(e);
        }
Ejemplo n.º 8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ConnectionString = Session["Connectionstring"].ToString();
            Master.ParentModulelbl.Text = "DASHBOARD";
            if (!IsPostBack)
            {
                bindCampaignsName();

                if (Session["CampId"] != null)
                {
                    ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                    hdfCampaignID.Value = Session["CampId"].ToString();
                    bindMialingNameswithSeletedCamp();
                    SingleMailingCounts(hdfCampaignID.Value,(Session["MailingID"]!=null && Session["MailingID"]!=string.Empty)?Session["MailingID"].ToString(): string.Empty);
                }
                else
                    bindMailingNames();
                if (Session["MailingID"] != null)
                {
                    hdfMailingID.Value = Session["MailingID"].ToString();
                    SingleMailingCounts(hdfCampaignID.Value, hdfMailingID.Value);
                }
                objAccCls = (AccountSettingsClass)Session["AccCls"];
                if (objAccCls.IsCampaigns)
                    lnkBackToSentMail.Visible = true;
                else
                    lnkBackToSentMail.Visible = false;
            }
        }
Ejemplo n.º 9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ConnectionString = Session["Connectionstring"].ToString();
     Master.ParentModulelbl.Text = "Click Performance";
     try
     {
         lblMsg.Text = "";
         if (!IsPostBack)
         {
             bindCampaignsName();
             if (Session["TitleName"] != null && Session["TitleName"].ToString() != string.Empty)
                 lblCampaignTitle.Text = Session["TitleName"].ToString();
             if (Session["MailingID"] != null)
             {
                 if (Session["CampId"] != null)
                     bindMialingNameswithSeletedCamp();
                 else
                     bindMailingNames();
                 hdfMailingID.Value = Session["MailingID"].ToString();
                 lblsentDateTime.Text = Session["SentDateTime"].ToString();
                 showCampaignSummary(hdfCampaignID.Value,hdfMailingID.Value);
             }
             else if (Session["CampId"] != null)
             {
                 ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                 hdfCampaignID.Value = Session["CampId"].ToString();
                 bindMialingNameswithSeletedCamp();
                 showCampaignSummary(hdfCampaignID.Value, hdfMailingID.Value);
             }
             else
                 bindMailingNames();
             if (Session["CampId"] != null)
                 ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
             objAccCls = (AccountSettingsClass)Session["AccCls"];
             if (objAccCls.IsCampaigns)
                 lnkBackToSentMail.Visible = true;
             else
                 lnkBackToSentMail.Visible = false;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lblCampaignTitle.Text = (Session["TitleName"] != null && Session["TitleName"].ToString() != string.Empty) ? Session["TitleName"].ToString() : string.Empty;
            lblsentDateTime.Text = (Session["SentDateTime"] != null && Session["SentDateTime"].ToString() != string.Empty) ? Session["SentDateTime"].ToString() : string.Empty;

            ConnectionString = Session["Connectionstring"].ToString();
            Master.ParentModulelbl.Text = "Advance Reports";
            if (!IsPostBack)
            {
                bindCampaignsName();
                orderBy = "Targeted";
                if (Session["MailingID"] != null)
                {
                    if (Session["CampId"] != null)
                        bindMialingNameswithSeletedCamp();
                    else
                        bindMailingNames();
                    bindRecipientDomainsCount(0, "Targeted");
                    bindChartDomainsCount("Targeted");
                }
                else if (Session["CampId"] != null)
                {
                    ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;
                    hdfCampaignID.Value = Session["CampId"].ToString();
                    bindMialingNameswithSeletedCamp();
                    bindRecipientDomainsCount(0, "Targeted");
                    bindChartDomainsCount("Targeted");
                }
                else
                    bindMailingNames();

                if (Session["CampId"] != null)
                    ddlCampaignsNames.Items.FindByValue(Session["CampId"].ToString()).Selected = true;

                objAccCls = (AccountSettingsClass)Session["AccCls"];
                if (objAccCls.IsCampaigns)
                    lnkBackToSentMail.Visible = true;
                else
                    lnkBackToSentMail.Visible = false;
            }
            chartAdvanced.Series["Series1"].ChartType = SeriesChartType.Column;
            chartAdvanced.Series["Series1"]["DrawingStyle"] = "Cylinder";
        }