252 lines
11 KiB
C#
252 lines
11 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="LecturePageModel.cs" company="BTU/IIT">
|
|
// Company copyright tag.
|
|
// </copyright>
|
|
// <author>stubbfel</author>
|
|
// <sience>18.06.2013</sience>
|
|
//----------------------------------------------------------------------
|
|
namespace CampusAppWP8.Model.Lecture
|
|
{
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using CampusAppWP8.Model.Utility;
|
|
using CampusAppWP8.Resources;
|
|
|
|
/// <summary>
|
|
/// Model for the LecturePage
|
|
/// </summary>
|
|
[DataContract]
|
|
public class LecturePageModel
|
|
{
|
|
#region Members
|
|
|
|
/// <summary>
|
|
/// List for the courses of the BTU
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// need to be extend to full list
|
|
/// </remarks>
|
|
private List<ListPickerItemModel> courseList;
|
|
|
|
/// <summary>
|
|
/// List of the degrees
|
|
/// </summary>
|
|
private List<ListPickerItemModel> degreeList;
|
|
|
|
/// <summary>
|
|
/// List of the semester
|
|
/// </summary>
|
|
private List<ListPickerItemModel> semesterList;
|
|
|
|
/// <summary>
|
|
/// List for the number of semester
|
|
/// </summary>
|
|
private List<ListPickerItemModel> numberList;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="LecturePageModel" /> class.
|
|
/// </summary>
|
|
public LecturePageModel()
|
|
{
|
|
}
|
|
#endregion
|
|
|
|
#region Proberty
|
|
|
|
/// <summary>
|
|
/// Gets or sets the selected course index
|
|
/// </summary>
|
|
[DataMember]
|
|
public int SelectCourseIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the selected degree index
|
|
/// </summary>
|
|
[DataMember]
|
|
public int SelectDegreeIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the selected semester-index
|
|
/// </summary>
|
|
[DataMember]
|
|
public int SelectSemesterIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the selected from-index
|
|
/// </summary>
|
|
[DataMember]
|
|
public int SelectFromIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the selected to-index
|
|
/// </summary>
|
|
[DataMember]
|
|
public int SelectToIndex { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets List for the courses of the BTU
|
|
/// </summary>
|
|
public List<ListPickerItemModel> CourseList
|
|
{
|
|
get
|
|
{
|
|
return this.courseList;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets List of the degrees
|
|
/// </summary>
|
|
public List<ListPickerItemModel> DegreeList
|
|
{
|
|
get
|
|
{
|
|
return this.degreeList;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets List of the semester
|
|
/// </summary>
|
|
public List<ListPickerItemModel> SemesterList
|
|
{
|
|
get
|
|
{
|
|
return this.semesterList;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets List for the number of semester
|
|
/// </summary>
|
|
public List<ListPickerItemModel> NumberList
|
|
{
|
|
get
|
|
{
|
|
return this.numberList;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region Methods
|
|
|
|
#region public
|
|
|
|
/// <summary>
|
|
/// Load all ListPickerLists
|
|
/// </summary>
|
|
public void LoadLists()
|
|
{
|
|
this.LoadCourseList();
|
|
this.LoadDegreeList();
|
|
this.LoadNumberList();
|
|
this.LoadSemesterList();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region private
|
|
|
|
/// <summary>
|
|
/// Load the NumberList
|
|
/// </summary>
|
|
private void LoadNumberList()
|
|
{
|
|
this.numberList = new List<ListPickerItemModel>();
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "1", Value = "1" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "2", Value = "2" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "3", Value = "3" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "4", Value = "4" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "5", Value = "5" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "5", Value = "6" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "7", Value = "7" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "8", Value = "8" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "9", Value = "9" });
|
|
this.numberList.Add(new ListPickerItemModel() { Text = "10", Value = "10" });
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Load the SemesterList
|
|
/// </summary>
|
|
private void LoadSemesterList()
|
|
{
|
|
this.semesterList = new List<ListPickerItemModel>();
|
|
this.semesterList.Add(new ListPickerItemModel() { Text = "SoSe 13", Value = "20131" });
|
|
this.semesterList.Add(new ListPickerItemModel() { Text = "WiSe 13/14", Value = "20132" });
|
|
this.semesterList.Add(new ListPickerItemModel() { Text = "SoSe 14", Value = "20131" });
|
|
}
|
|
|
|
/// <summary>
|
|
/// Load the DegreeList
|
|
/// </summary>
|
|
private void LoadDegreeList()
|
|
{
|
|
this.degreeList = new List<ListPickerItemModel>();
|
|
this.degreeList.Add(new ListPickerItemModel() { Text = AppResources.Degree_Bachelor, Value = "82" });
|
|
this.degreeList.Add(new ListPickerItemModel() { Text = AppResources.Degree_Master, Value = "88" });
|
|
this.degreeList.Add(new ListPickerItemModel() { Text = AppResources.Degree_Diploma, Value = "11" });
|
|
}
|
|
|
|
/// <summary>
|
|
/// Load the DegreeList
|
|
/// </summary>
|
|
private void LoadCourseList()
|
|
{
|
|
this.courseList = new List<ListPickerItemModel>();
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Architektur", Value = "013" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Bauingenieurwesen", Value = "017" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Betriebswirtschaftslehre", Value = "021" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Wirtschaftsrecht für Technologieunternehmen", Value = "042" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Elektrotechnik", Value = "048" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Informatik ", Value = "079" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Maschinenbau", Value = "104" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Mathematik", Value = "105" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Physik ", Value = "128" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Wirtschaftsingenieurwesen", Value = "179" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Wirtschaftswissenschaften ", Value = "184" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Biomedizinische Gerätetechnik ", Value = "215" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Verfahrenstechnik", Value = "226" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Wirtschaftsmathematik ", Value = "276" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Kultur und Technik ", Value = "711" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Physik der Halbleiter-Technologie", Value = "744" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Angewandte Mathematik ", Value = "749" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Technologie- und Innovationsmanagement", Value = "764" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Stadt- und Regionalplanung", Value = "766" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Informations- und Medientechnik ", Value = "767" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "World Heritage Studies", Value = "768" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Umweltingenieurwesen und Verfahrenstechnik", Value = "770" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Environmental and Resource Management", Value = "771" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Landnutzung und Wasserbewirtschaftung", Value = "772" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Bauen und Erhalten", Value = "773" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Umweltingenieurwesen", Value = "774" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "eBusiness", Value = "794" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Civil Engineering", Value = "798" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Structural Engineering", Value = "799" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Electrical Power Engineering ", Value = "800" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Euro Hydroinformatics and Water Management", Value = "841" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Technologien Biogener Rohstoffe", Value = "842" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Environmental Technologies", Value = "843" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Process Engineering and Plant Design", Value = "844" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Architekturvermittlung", Value = "845" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Nachwachsende Rohstoffe und Erneuerbare Energien", Value = "851" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Energieträger aus Biomasse und Abfällen", Value = "852" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Power Engineering", Value = "853" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Verfahrenstechnik - Prozess- und Anlagentechnik", Value = "857" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Architektur.Studium.Generale", Value = "858" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Verarbeitungstechnologien der Werkstoffe", Value = "860" });
|
|
this.courseList.Add(new ListPickerItemModel() { Text = "Forensic Sciences and Engineering", Value = "871" });
|
|
this.courseList = this.courseList.OrderBy(o => o.Text).ToList();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
}
|
|
}
|