Пример #1
0
        protected void SetFAQContent(Int32 EmployerID, String CategoryID)  //  lam, 20130411, MSF-290
        {
            List <FAQContent> currentFAQContent = new List <FAQContent>();

            ClearFAQContent();
            using (GetEmployerFAQContent gefc = new GetEmployerFAQContent(EmployerID, CategoryID))
            {
                gefc.GetFrontEndData();
                if (gefc.FAQContentList.Count > 0)
                {
                    List <FAQContent> l = gefc.FAQContentList;
                    for (Int32 i = 0; i < l.Count; i++)
                    {
                        FAQContent item = new FAQContent();
                        item.FAQText       = l[i].FAQText;
                        item.NeedUserInput = l[i].NeedUserInput;
                        currentFAQContent.Add(item);

                        ((TextBox)pFAQ.FindControl("txtContent" + (i + 1).ToString())).Text           = l[i].FAQText;
                        ((CheckBox)pFAQ.FindControl("chkNeedUserInput" + (i + 1).ToString())).Checked = l[i].NeedUserInput;
                    }
                }
            }
            while (currentFAQContent.Count < 10)
            {
                currentFAQContent.Add(new FAQContent()
                {
                    FAQText = "", NeedUserInput = false
                });
            }

            this.contentFAQ = currentFAQContent;
            FAQChanges      = false;
        }
Пример #2
0
        private void SetupHearCCH()  //  lam, 20130411, MSF-290
        {
            //  CategoryID is hardcoded since we know the value from db
            String CategoryID = "6fe85dba-3430-49e7-9baa-f80267e833c6";

            using (GetEmployerFAQContent gefc = new GetEmployerFAQContent(Convert.ToInt32(Request.QueryString["e"], 10), CategoryID))
            {
                gefc.GetFrontEndData();
                List <FAQContent> FAQContentList = gefc.FAQContentList;

                ViewState["controlsadded"] = FAQContentList;
                DisplayHearCCH(FAQContentList);
            }
        }
Пример #3
0
        //  lam, 20130411, MSF-290
        protected void SetFAQContent(Int32 EmployerID, String CategoryID)
        {
            List<FAQContent> currentFAQContent = new List<FAQContent>();
            ClearFAQContent();
            using (GetEmployerFAQContent gefc = new GetEmployerFAQContent(EmployerID, CategoryID))
            {
                gefc.GetFrontEndData();
                if (gefc.FAQContentList.Count > 0)
                {
                    List<FAQContent> l = gefc.FAQContentList;
                    for (Int32 i = 0; i < l.Count; i++)
                    {
                        FAQContent item = new FAQContent();
                        item.FAQText = l[i].FAQText;
                        item.NeedUserInput = l[i].NeedUserInput;
                        currentFAQContent.Add(item);

                        ((TextBox)pFAQ.FindControl("txtContent" + (i + 1).ToString())).Text = l[i].FAQText;
                        ((CheckBox)pFAQ.FindControl("chkNeedUserInput" + (i + 1).ToString())).Checked = l[i].NeedUserInput;
                    }
                }
            }
            while (currentFAQContent.Count < 10)
                currentFAQContent.Add(new FAQContent() {FAQText = "", NeedUserInput = false});

            this.contentFAQ = currentFAQContent;
            FAQChanges = false;
        }
Пример #4
0
        //  lam, 20130411, MSF-290
        private void SetupHearCCH()
        {
            //  CategoryID is hardcoded since we know the value from db
            String CategoryID = "6fe85dba-3430-49e7-9baa-f80267e833c6";
            using (GetEmployerFAQContent gefc = new GetEmployerFAQContent(Convert.ToInt32(Request.QueryString["e"], 10), CategoryID))
            {
                gefc.GetFrontEndData();
                List<FAQContent> FAQContentList = gefc.FAQContentList;

                ViewState["controlsadded"] = FAQContentList;
                DisplayHearCCH(FAQContentList);
            }
        }