/// <summary> Constructor for a new instance of the Item_Aggregation_Browse_Info class </summary>
        /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param>
        /// <param name="Source">Source of this browse or info page</param>
        /// <param name="Code">Code for this info or browse page</param>
        /// <param name="Static_HTML_Source">Filename of the static source file for this browse or info page</param>
        /// <param name="Label">Label for this browse or info page which will be displayed on the navigation tab</param>
        public Item_Aggregation_Browse_Info(Browse_Info_Type Browse_Type, Source_Type Source, string Code, string Static_HTML_Source, string Label)
        {
            // Create the collections for the labels and static html source
            labelsByLanguage = new Dictionary<Web_Language_Enum, string>();
            staticHtmlSourceByLanguage = new Dictionary<Web_Language_Enum, string>();

            // Add the parameter information as the default labels and source
            labelsByLanguage[Web_Language_Enum.DEFAULT] = Label;
            staticHtmlSourceByLanguage[Web_Language_Enum.DEFAULT] = Static_HTML_Source;

            // Save all of these parameters
            code = Code;
            browseType = Browse_Type;
            source = Source;

            // If this is the special ALL or NEW, then the source will be a database table/set
            if ((code == "all") || (code == "new"))
            {
                dataType = Result_Data_Type.Table;
            }
            else
            {
                dataType = Result_Data_Type.Text;
            }
        }
示例#2
0
        /// <summary> Constructor for a new instance of the Item_Aggregation_Child_Page class </summary>
        /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param>
        /// <param name="Source">Source of this browse or info page</param>
        /// <param name="Code">Code for this info or browse page</param>
        /// <param name="Static_HTML_Source">Filename of the static source file for this browse or info page</param>
        /// <param name="Label">Label for this browse or info page which will be displayed on the navigation tab</param>
        public Item_Aggregation_Child_Page(Visibility_Type Browse_Type, Source_Type Source, string Code, string Static_HTML_Source, string Label)
        {
            // Create the collections for the labels and static html source
            Label_Dictionary  = new Dictionary <Web_Language_Enum, string>();
            Source_Dictionary = new Dictionary <Web_Language_Enum, string>();

            // Add the parameter information as the default labels and source
            Label_Dictionary[Web_Language_Enum.DEFAULT]  = Label;
            Source_Dictionary[Web_Language_Enum.DEFAULT] = Static_HTML_Source;

            // Save all of these parameters
            this.Code        = Code;
            this.Browse_Type = Browse_Type;
            this.Source      = Source;

            // If this is the special ALL or NEW, then the source will be a database table/set
            if ((Code == "all") || (Code == "new"))
            {
                Data_Type = Result_Data_Type.Table;
            }
            else
            {
                Data_Type = Result_Data_Type.Text;
            }

            // Add the label
            if (Label.Length > 0)
            {
                Label_Dictionary[Web_Language_Enum.English] = Label;
            }
        }
        /// <summary> Constructor for a new instance of the Item_Aggregation_Child_Page class </summary>
        /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param>
        /// <param name="Source">Source of this browse or info page</param>
        /// <param name="Code">Code for this info or browse page</param>
        /// <param name="Static_HTML_Source">Filename of the static source file for this browse or info page</param>
        /// <param name="Label">Label for this browse or info page which will be displayed on the navigation tab</param>
        public Item_Aggregation_Child_Page(Visibility_Type Browse_Type, Source_Type Source, string Code, string Static_HTML_Source, string Label)
        {
            // Create the collections for the labels and static html source
            Label_Dictionary = new Dictionary<Web_Language_Enum, string>();
            Source_Dictionary = new Dictionary<Web_Language_Enum, string>();

            // Add the parameter information as the default labels and source
            Label_Dictionary[Web_Language_Enum.DEFAULT] = Label;
            Source_Dictionary[Web_Language_Enum.DEFAULT] = Static_HTML_Source;

            // Save all of these parameters
            this.Code = Code;
            this.Browse_Type = Browse_Type;
            this.Source = Source;

            // If this is the special ALL or NEW, then the source will be a database table/set
            if ((Code == "all") || (Code == "new"))
            {
                Data_Type = Result_Data_Type.Table;
            }
            else
            {
                Data_Type = Result_Data_Type.Text;
            }

            // Add the label
            if ( Label.Length > 0 )
                Label_Dictionary[Web_Language_Enum.English] = Label;
        }
示例#4
0
        /// <summary> Constructor for a new instance of the Item_Aggregation_Browse_Info class </summary>
        /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param>
        /// <param name="Source">Source of this browse or info page</param>
        /// <param name="Code">Code for this info or browse page</param>
        /// <param name="Static_HTML_Source">Filename of the static source file for this browse or info page</param>
        /// <param name="Label">Label for this browse or info page which will be displayed on the navigation tab</param>
        public Item_Aggregation_Browse_Info(Browse_Info_Type Browse_Type, Source_Type Source, string Code, string Static_HTML_Source, string Label)
        {
            // Create the collections for the labels and static html source
            labelsByLanguage           = new Dictionary <Web_Language_Enum, string>();
            staticHtmlSourceByLanguage = new Dictionary <Web_Language_Enum, string>();

            // Add the parameter information as the default labels and source
            labelsByLanguage[Web_Language_Enum.DEFAULT]           = Label;
            staticHtmlSourceByLanguage[Web_Language_Enum.DEFAULT] = Static_HTML_Source;

            // Save all of these parameters
            code       = Code;
            browseType = Browse_Type;
            source     = Source;

            // If this is the special ALL or NEW, then the source will be a database table/set
            if ((code == "all") || (code == "new"))
            {
                dataType = Result_Data_Type.Table;
            }
            else
            {
                dataType = Result_Data_Type.Text;
            }
        }