예제 #1
0
        protected void AddSubCatBindOptions(int selectedCategory)
        {
            AddSubcat l_AddSubcat = ((AddSubcat)((TabContainer)SubCategoryAddEditStep.
                                                 ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubcat1"));

            l_AddSubcat.AssignToSubjID = selectedCategory;
        }
예제 #2
0
        protected void SubCatBindValues()
        {
            DropDownList l_SubCategory = ((DropDownList)((TabContainer)SubCategoryAddEditStep.ContentTemplateContainer.
                                                         FindControl("tabCont")).Tabs[1].FindControl("ddlSubCategory"));

            AddSubcat l_AddSubcat = ((AddSubcat)((TabContainer)SubCategoryAddEditStep.
                                                 ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubcat1"));

            l_AddSubcat.ClearAll();

            EditSubcat l_EditSubcat = ((EditSubcat)SubCategoryEditStep.ContentTemplateContainer.
                                       FindControl("EditSubcat1"));

            l_EditSubcat.SubCatID = this.SubcatID = System.Convert.ToInt32(l_SubCategory.SelectedItem.Value);
            l_EditSubcat.BindValues();
        }
예제 #3
0
        public string GetSpellCheckParticipants()
        {
            string partipants = "";

            if (this.SubCatWizard.ActiveStepIndex == 1)
            {
                AddSubcat l_AddSubcat = ((AddSubcat)((TabContainer)SubCategoryAddEditStep.
                                                     ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubcat1"));

                partipants = l_AddSubcat.SubCatTextClientID;
            }
            else if (this.SubCatWizard.ActiveStepIndex == 2)
            {
                EditSubcat l_EditSubcat = ((EditSubcat)(SubCategoryEditStep.
                                                        ContentTemplateContainer.FindControl("EditSubcat1")));

                partipants = l_EditSubcat.SubCatTextClientID;
            }

            return(partipants);
        }
예제 #4
0
        protected void AddSubcat1Save_Click(object sender, EventArgs e)
        {
            ((Label)SubCategoryAddEditStep.ContentTemplateContainer.FindControl("lblCategoryStep")).Text =
                ((DropDownList)CategoryStep.ContentTemplateContainer.FindControl("ddlCategory")).SelectedItem.Text;

            AddSubcat l_AddSubcat = ((AddSubcat)((TabContainer)SubCategoryAddEditStep.
                                                 ContentTemplateContainer.FindControl("tabCont")).Tabs[0].FindControl("AddSubcat1"));

            l_AddSubcat.SecVal();

            int  l_subcatid    = 0;
            bool blnSaveSubCat = PE_DAL.SetSubCat(ref l_subcatid, l_AddSubcat.SubCatName,
                                                  l_AddSubcat.AssignToSubjID, System.Convert.ToInt32(l_AddSubcat.AllowHvSubSubCat), 1);

            if (blnSaveSubCat)
            {
                this.EnableSubcategoryEditTab();
                this.EditSubCatBindOptions(l_AddSubcat.AssignToSubjID);
                //this.hidSubCatIndex.Value = "1";
            }
        }