Ejemplo n.º 1
0
        protected void SubsubcategoryStepSelectedIndexChanged(object sender, EventArgs e)
        {
            List <PubEntAdmin.BLL.SubSubCat> l_SubSubCatColl =
                PE_DAL.GetSubSubCatalogSubjectBySubSubCatalogID(
                    System.Convert.ToInt32(((DropDownList)sender).SelectedValue));

            if (l_SubSubCatColl.Count > 0)
            {
                PubEntAdmin.BLL.SubSubCat l_SubSubCat = l_SubSubCatColl[0];

                ((Label)SubsubcategoryEditStep.ContentTemplateContainer.
                 FindControl("lblcategoryStep")).Text = l_SubSubCat.SubName;
                ((Label)SubsubcategoryEditStep.ContentTemplateContainer.
                 FindControl("lblsubcategoryStep")).Text = l_SubSubCat.SubCatName;

                AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((TabContainer)SubsubcategoryStep.
                                                              ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubsubcat1"));
                l_AddSubsubcat.ClearAll();

                EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)SubsubcategoryEditStep.ContentTemplateContainer.
                                                 FindControl("EditSubsubcat1"));
                l_EditSubsubcat.SubSubCatID = this.SubSubCatID = l_SubSubCat.SubSubCatID;
                this.SubSubCatName          = l_SubSubCat.SubSubCatName;
                l_EditSubsubcat.BindValues(l_SubSubCat.SubCatID.ToString(), l_SubSubCat.SubSubCatName);
            }

            this.IncrementWizardPage();
            this.EnableSubsubcategoryEditTab();
        }
Ejemplo n.º 2
0
        protected void AddSubsubcat1Save_Click(object sender, EventArgs e)
        {
            AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((MultiView)SubsubcategoryStep.
                                                          ContentTemplateContainer.FindControl("MultiView1")).Views[0].FindControl("AddSubsubcat1"));

            l_AddSubsubcat.SecVal();

            int  l_subsubcatid    = 0;
            bool blnSaveSubSubCat = false;

            if (this.SubcatID > 0 && this.SubcatMode.Length >= 0)
            {
                blnSaveSubSubCat = PE_DAL.SetSubSubCat(ref l_subsubcatid, l_AddSubsubcat.SubSubCatName,
                                                       this.SubcatID, 1);
            }
            else
            {
                blnSaveSubSubCat = PE_DAL.SetSubSubCat(ref l_subsubcatid, l_AddSubsubcat.SubSubCatName,
                                                       l_AddSubsubcat.AssignToSubCatID, 1);
            }

            if (blnSaveSubSubCat)
            {
                if (PubEntAdminManager.TamperProof)
                {
                    PubEntAdminManager.RedirectEncodedURLWithQS("LookupMgmt.aspx", "sub=" + this.RetSub + "&mode=edit&subcatid=" + this.SubcatID);
                }
                else
                {
                    Response.Redirect("~/LookupMgmt.aspx?sub=" + this.RetSub + "&mode=edit&subcatid=" + this.SubcatID, true);
                }

                //l_AddSubsubcat.ClearAll();
                //this.EnableSubsubcategoryEditTab();
                //if (this.SubcatID > 0)
                //{
                //    this.BindOptions(this.SubcatID);
                //}
                //else
                //{
                //    this.BindOptions();
                //}
                //this.hidSubSubCatIndex.Value = "1";
            }
        }
Ejemplo n.º 3
0
        public string GetSpellCheckParticipants()
        {
            string partipants = "";

            if (this.SubsubcatWizard.ActiveStepIndex == 0)
            {
                AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((TabContainer)SubsubcategoryStep.
                                                              ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubsubcat1"));

                partipants = l_AddSubsubcat.SubsubcatTextClientID;
            }
            else if (this.SubsubcatWizard.ActiveStepIndex == 1)
            {
                EditSubsubcat l_EditSubsubcat = ((EditSubsubcat)(SubsubcategoryEditStep.
                                                                 ContentTemplateContainer.FindControl("EditSubsubcat1")));

                partipants = l_EditSubsubcat.SubSubCatTextClientID;
            }

            return(partipants);
        }
Ejemplo n.º 4
0
        //private int intSubsubcatID;
        //private string strSubsubcatName;
        //private string strSubsubcatMode;
        #endregion

        #region Events Handling
        protected void Page_Load(object sender, EventArgs e)
        {
            this.hidSubSubCatIndex.Value = "";

            if (PubEntAdminManager.TamperProof)
            {
                if (PubEntAdminManager.ContainURLQS("subcatid"))
                {
                    this.SubcatID = System.Convert.ToInt32(PubEntAdminManager.GetURLQS("subcatid"));
                }
            }
            else
            {
                if (Request.QueryString["subcatid"] != null)
                {
                    this.SubcatID = System.Convert.ToInt32(Request.QueryString["subcatid"].ToString());
                }
            }

            if (PubEntAdminManager.TamperProof)
            {
                if (PubEntAdminManager.ContainURLQS("mode"))
                {
                    this.SubcatMode = (PubEntAdminManager.GetURLQS("mode"));
                }
            }
            else
            {
                if (Request.QueryString["mode"] != null)
                {
                    this.SubcatMode = (Request.QueryString["mode"].ToString());
                }
            }

            if (PubEntAdminManager.TamperProof)
            {
                if (PubEntAdminManager.ContainURLQS("RetSub"))
                {
                    this.RetSub = (PubEntAdminManager.GetURLQS("RetSub"));
                }
            }
            else
            {
                if (Request.QueryString["RetSub"] != null)
                {
                    this.RetSub = (Request.QueryString["RetSub"].ToString());
                }
            }

            if (!Page.IsPostBack)
            {
                this.SubsubcatWizard.ActiveStepIndex = 0;


                if (this.SubcatID > 0)
                {
                    if (this.SubcatMode == "add")
                    {
                        this.EnableSubsubcategoryAddTab();
                        AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((TabContainer)SubsubcategoryStep.
                                                                      ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubsubcat1"));
                        l_AddSubsubcat.SubSubCatMode = this.SubcatMode;
                    }
                    else if (this.SubcatMode == "edit")
                    {
                        this.EnableSubsubcategoryEditTab();
                    }

                    this.BindOptions(this.SubcatID);
                    ((Label)this.SubsubcategoryStep.ContentTemplateContainer.
                     FindControl("lblCat_SubcatStep")).Text = Session[PubEntAdminManager.strCurrCatName].ToString() +
                                                              " > " + Session[PubEntAdminManager.strCurrSubcatName].ToString();
                }
                else
                {
                    this.EnableSubsubcategoryEditTab();
                    this.BindOptions();
                    ((Label)this.SubsubcategoryStep.ContentTemplateContainer.
                     FindControl("lblCat_SubcatStep")).Text = "Categories > Subcategories";
                }
            }

            this.SecVal();
        }
Ejemplo n.º 5
0
        //private int intSubsubcatID;
        //private string strSubsubcatMode;

        #region Events Handling
        protected void Page_Load(object sender, EventArgs e)
        {
            this.hidSubSubCatIndex.Value = "";

            if (PubEntAdminManager.TamperProof)
            {
                if (PubEntAdminManager.ContainURLQS("subcatid"))
                {
                    this.SubcatID = System.Convert.ToInt32(PubEntAdminManager.GetURLQS("subcatid"));
                }
            }
            else
            {
                if (Request.QueryString["subcatid"] != null)
                {
                    this.SubcatID = System.Convert.ToInt32(Request.QueryString["subcatid"].ToString());
                }
            }

            if (PubEntAdminManager.TamperProof)
            {
                if (PubEntAdminManager.ContainURLQS("mode"))
                {
                    this.SubcatMode = (PubEntAdminManager.GetURLQS("mode"));
                }
            }
            else
            {
                if (Request.QueryString["mode"] != null)
                {
                    this.SubcatMode = (Request.QueryString["mode"].ToString());
                }
            }

            if (PubEntAdminManager.TamperProof)
            {
                if (PubEntAdminManager.ContainURLQS("RetSub"))
                {
                    this.RetSub = (PubEntAdminManager.GetURLQS("RetSub"));
                }
            }
            else
            {
                if (Request.QueryString["RetSub"] != null)
                {
                    this.RetSub = (Request.QueryString["RetSub"].ToString());
                }
            }

            if (!Page.IsPostBack)
            {
                this.SubsubcatWizard.ActiveStepIndex = 0;


                if (this.SubcatID > 0)
                {
                    if (this.SubcatMode == "add")
                    {
                        this.EnableSubsubcategoryAddTab();
                        AddSubsubcat l_AddSubsubcat = ((AddSubsubcat)((MultiView)SubsubcategoryStep.
                                                                      ContentTemplateContainer.FindControl("MultiView1")).Views[0].FindControl("AddSubsubcat1"));
                        l_AddSubsubcat.SubSubCatMode = this.SubcatMode;
                    }
                    else if (this.SubcatMode == "edit")
                    {
                        this.EnableSubsubcategoryEditTab();
                    }

                    this.BindOptions(this.SubcatID);
                    ((Label)this.SubsubcategoryStep.ContentTemplateContainer.
                     FindControl("lblCat_SubcatStep")).Text = Session[PubEntAdminManager.strCurrCatName].ToString() +
                                                              " > " + Session[PubEntAdminManager.strCurrSubcatName].ToString();
                }
                else
                {
                    this.EnableSubsubcategoryEditTab();
                    this.BindOptions();
                    ((Label)this.SubsubcategoryStep.ContentTemplateContainer.
                     FindControl("lblCat_SubcatStep")).Text = "Categories > Subcategories";
                }
            }

            List <TabItem> l  = new List <TabItem>();
            TabItem        t1 = new TabItem(0, "Add", "LookupMgmt.aspx");
            TabItem        t2 = new TabItem(1, "Edit", "LookupMgmt.aspx");

            l.Add(t1);
            l.Add(t2);

            ((TabStrip)SubsubcategoryStep.ContentTemplateContainer.FindControl("TabStrip1")).TabSource = l;

            ((Button)SubsubcatWizard.FindControl("StepNavigationTemplateContainerID").FindControl("StepPreviousButton")).Visible     = false;
            ((Button)SubsubcatWizard.FindControl("FinishNavigationTemplateContainerID").FindControl("FinishPreviousButton")).Visible = false;

            this.SecVal();
        }