Ejemplo n.º 1
0
 public void ControlStudentCharacters(StudentEnrollmentBDO student)
 {
     int cat = GetCategory(student.GradeLevel);
     Boolean ret = false;
     TraitService trait = new TraitService();
     List<Trait> traitlist = new List<Trait>();
     traitlist = trait.GetAllTraitsOfCategory(cat);
     foreach (Trait t in traitlist)
     {
         StudentTrait st = new StudentTrait
         {
             StudentSY = student.StudentSY,
             TraitsID = t.TraitsID,
             StudentEnrTraitCode = student.StudentSY + t.TraitsID,
             LockFirst = false,
             LockSecond = false,
             LockFourth = false,
             LockThird = false
         };
         string message = string.Empty;
         StudentTraitBDO stb = new StudentTraitBDO();
         TranslateStuTraitsToStuTraitsBDO(st, stb);
         ret = stl.AddStudentCharacters(stb, ref message);
     }
 }
Ejemplo n.º 2
0
 public void TranslateGradeLevelToGradeLevelBDO(GradeLevel gl, GradeLevelBDO g) {
     FeeService fs = new FeeService();
     TraitService ts = new TraitService();
     g.Description = gl.Description;
     g.GradeLev = gl.GradeLev;
     g.StudentFees = fs.ToFeeBDOList(gl.StudentFees);
     g.Traits = ts.ToTraitBDOList(gl.Traits);
 }
Ejemplo n.º 3
0
        public void TranslateGradeLevelToGradeLevelBDO(GradeLevel gl, GradeLevelBDO g)
        {
            FeeService   fs = new FeeService();
            TraitService ts = new TraitService();

            g.Description = gl.Description;
            g.GradeLev    = gl.GradeLev;
            g.StudentFees = fs.ToFeeBDOList(gl.StudentFees);
            g.Traits      = ts.ToTraitBDOList(gl.Traits);
        }