示例#1
0
 public ClassDetails(int id, int group, ClassType type, BasicClass bclass, EducationForm educationform)
 {
     this.mID = id;
     this.mGroup = group;
     this.mType = type;
     this.mBClass = bclass;
     this.mEducationForm = educationform;
     //this.mDetailed = detailed;
 }
示例#2
0
 private void ImportEducationForms(ref OleDbConnection connection)
 {
     string EducationFormsSelect = "SELECT [EdForm ID] AS ID, [EdForm Name] AS Name, [EdFormSN] AS ShortName " +
                                   "FROM [Code EdForm]";
     OleDbCommand command = new OleDbCommand(EducationFormsSelect, connection);
     using (OleDbDataReader dataReader = command.ExecuteReader())
     {
         while (dataReader.Read())
         {
             EducationForm form = new EducationForm(
                 int.Parse(dataReader["ID"].ToString()),
                 dataReader["Name"].ToString(),
                 dataReader["ShortName"].ToString());
             this.mEducationForms.Add(form);
         }
     }
 }
示例#3
0
 public ClassDetails(int id, int group, ClassType type, BasicClass bclass, EducationForm educationform, Class detailed)
     : this(id, group, type, bclass, educationform)
 {
     this.SetDetailed(detailed);
 }