/// <summary> Constructor for a new instance of the Item_Aggregation_Complete_Child_Page class </summary> /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param> /// <param name="Source_Data_Type">Source and data type 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 Complete_Item_Aggregation_Child_Page(Item_Aggregation_Child_Visibility_Enum Browse_Type, Item_Aggregation_Child_Source_Data_Enum Source_Data_Type, 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_Data_Type = Source_Data_Type; //// 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_Data_Type">Source and data type 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(Item_Aggregation_Child_Visibility_Enum Browse_Type, Item_Aggregation_Child_Source_Data_Enum Source_Data_Type, string Code, string Static_HTML_Source, string Label) { // Save all of these parameters this.Code = Code; this.Browse_Type = Browse_Type; this.Source_Data_Type = Source_Data_Type; this.Label = Label; if ( !String.IsNullOrEmpty(Static_HTML_Source)) Source = Static_HTML_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; //} }
/// <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_Data_Type">Source and data type 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(Item_Aggregation_Child_Visibility_Enum Browse_Type, Item_Aggregation_Child_Source_Data_Enum Source_Data_Type, string Code, string Static_HTML_Source, string Label) { // Save all of these parameters this.Code = Code; this.Browse_Type = Browse_Type; this.Source_Data_Type = Source_Data_Type; this.Label = Label; if (!String.IsNullOrEmpty(Static_HTML_Source)) { Source = Static_HTML_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; //} }
/// <summary> Constructor for a new instance of the Item_Aggregation_Complete_Child_Page class </summary> /// <param name="Browse_Type">Flag indicates if this is a browse by, browse, or info page</param> /// <param name="Source_Data_Type">Source and data type 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 Complete_Item_Aggregation_Child_Page(Item_Aggregation_Child_Visibility_Enum Browse_Type, Item_Aggregation_Child_Source_Data_Enum Source_Data_Type, 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_Data_Type = Source_Data_Type; //// 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; } }