public string test_name()
        {
            View_Singleton  single  = View_Singleton.getInstance();
            PortletViewBase portlet = single.getView();

            return(portlet.ParentPortlet.CurrentPortletViewName);
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpContext.Current.Session["data_Columns"] = new List <string>();
            List <string> listable_List = new List <string>();
            int           userId        = Convert.ToInt32(PortalUser.Current.HostID.TrimStart('0'));

            master_Forms_List = master_Forms_List_Admin;

            Html_Generator    generator    = new Html_Generator();
            TEMP_HeaderFacade headerFacade = new TEMP_HeaderFacade();
            Panel             header       = generator.getHeader(headerFacade.getHeaders(), new Dictionary <string, object>());

            //div_Listable_header.Controls.Add(header);
            if (IsFirstLoad)
            {
                hf_Selected_Object.Value = "0";
                hf_Range.Value           = "50";
                hf_Current_Index.Value   = "0";
                current_index            = Convert.ToInt32(hf_Current_Index.Value);
                range = Convert.ToInt32(hf_Range.Value);
                createDataTabs();
            }
            else
            {
                hf_Selected_Object.Value = listableList.SelectedItem.Value;
                current_index            = Convert.ToInt32(hf_Current_Index.Value);
                range = Convert.ToInt32(hf_Range.Value);
            }
            currentPortlet.Text = master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].Name + " Submissions | " + hf_Selected_Object.Value;
            LoadHeader(master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)]);
            div_Listable_header_Title.Text = master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].Name;
            var flow_Object = master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)] as Flow_Form_able;

            if (flow_Object != null)
            {
                //List<object> flowId = new List<object> { flow_Object.Flow_ID };
                LoadFlow(master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)], master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].Index_Value, master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].Index);
            }
            else
            {
                LoadForm(master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].facade, master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].Index_Value, master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)].Index, master_Forms_List[Convert.ToInt32(hf_Selected_Object.Value)]);
            }
            View_Singleton single = View_Singleton.getInstance();

            single.setView(this);
            HttpContext.Current.Session["current_Viewable"]  = current_Viewable;
            HttpContext.Current.Session["current_Listable"]  = current_Viewable.returnListable();
            HttpContext.Current.Session["master_Forms_List"] = master_Forms_List;
            HttpContext.Current.Session["hidden_field"]      = Convert.ToInt32(hf_Selected_Object.Value);
        }