예제 #1
0
 public Boolean UpdateSY(ref SchoolYear schoolyear, ref string message)
 {
     message = String.Empty;
     SchoolYearBDO syBDO = new SchoolYearBDO();
     TranslateSYDTOToSYBDO(schoolyear, syBDO);
     return syLogic.UpdateSY(ref syBDO, ref message);
 }
예제 #2
0
        public Boolean UpdateSY(ref SchoolYear schoolyear, ref string message)
        {
            message = String.Empty;
            SchoolYearBDO syBDO = new SchoolYearBDO();

            TranslateSYDTOToSYBDO(schoolyear, syBDO);
            return(syLogic.UpdateSY(ref syBDO, ref message));
        }
예제 #3
0
        public SchoolYear GetSY(string schoolyear)
        {
            SchoolYearBDO SYbdo = new SchoolYearBDO();
            SYbdo = syLogic.GetSY(schoolyear);
            SchoolYear u = new SchoolYear();
            TranslateSYBDOToSYDTO(SYbdo, u);

            return u;
        }
예제 #4
0
        public SchoolYear GetSY(string schoolyear)
        {
            SchoolYearBDO SYbdo = new SchoolYearBDO();

            SYbdo = syLogic.GetSY(schoolyear);
            SchoolYear u = new SchoolYear();

            TranslateSYBDOToSYDTO(SYbdo, u);

            return(u);
        }
예제 #5
0
 public List<SchoolYear> GetAllSY()
 {
     List<SchoolYearBDO> syBDOList = syLogic.GetAllSY();
     List<SchoolYear> allSY = new List<SchoolYear>();
     foreach (SchoolYearBDO syBDO in syBDOList)
     {
         SchoolYear sy = new SchoolYear();
         TranslateSYBDOToSYDTO(syBDO, sy);
         allSY.Add(sy);
     }
     return allSY;
 }
예제 #6
0
        public List <SchoolYear> GetAllSY()
        {
            List <SchoolYearBDO> syBDOList = syLogic.GetAllSY();
            List <SchoolYear>    allSY     = new List <SchoolYear>();

            foreach (SchoolYearBDO syBDO in syBDOList)
            {
                SchoolYear sy = new SchoolYear();
                TranslateSYBDOToSYDTO(syBDO, sy);
                allSY.Add(sy);
            }
            return(allSY);
        }
예제 #7
0
 private void TranslateSYBDOToSYDTO(SchoolYearBDO syBDO, SchoolYear schoolyear)
 {
     schoolyear.SY = syBDO.SY;
     schoolyear.CurrentSY = syBDO.CurrentSY;
 }
예제 #8
0
 private void TranslateSYBDOToSYDTO(SchoolYearBDO syBDO, SchoolYear schoolyear)
 {
     schoolyear.SY        = syBDO.SY;
     schoolyear.CurrentSY = syBDO.CurrentSY;
 }