Esempio n. 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;
 }
Esempio n. 2
0
 public Class(int id, string division, BasicClass basicClass)
 {
     this.mID = id;
     this.mDivision = division;
     this.mBasicClass = basicClass;
     this.mName = mBasicClass.NameWithRomeDigits + " " + division;
     int grade;
     int.TryParse(mBasicClass.NameWithDigits, out grade);
     this.Grade = grade;
     this.Groups = new List<string>();
     //this.mDetails = new List<ClassDetails> { };
     //this.mDetails = details.Select(x => x).ToList<ClassDetails>();
 }
Esempio n. 3
0
        private void ImportBasicClasses(ref OleDbConnection connection)
        {
            string BasicClassesSelect = "SELECT [BClass ID] AS ID, [BClass Name] AS NameDigits, [BClass Recode] AS NameWords, [BClassNameRome] AS NameRomeDigits " +
                                        "FROM BasicClass";
            OleDbCommand command = new OleDbCommand(BasicClassesSelect, connection);
            using (OleDbDataReader dataReader = command.ExecuteReader())
            {

                while (dataReader.Read())
                {
                    BasicClass basicClass = new BasicClass(
                        int.Parse(dataReader["ID"].ToString()),
                        dataReader["NameDigits"].ToString(),
                        dataReader["NameWords"].ToString(),
                        dataReader["NameRomeDigits"].ToString());
                    this.mBasicClasses.Add(basicClass);
                }
            }
        }
Esempio n. 4
0
 public Class(int id, string division, BasicClass basicClass, List<ClassDetails> details)
     : this(id, division, basicClass)
 {
     this.mDetails = details.Select(x => x.DeepCopy()).ToList();
     this.Groups = new List<string>();
 }
Esempio n. 5
0
 public ClassDetails(int id, int group, ClassType type, BasicClass bclass, EducationForm educationform, Class detailed)
     : this(id, group, type, bclass, educationform)
 {
     this.SetDetailed(detailed);
 }