Exemple #1
0
        public static string GetTruongNameByTruongId(Int32 truongId)
        {
            if (truongId > 0)
            {
                QLMamNon.Dao.QLMamNonDs.TruongDataTable truongTable = StaticDataFacade.Get(StaticDataKeys.TruongHoc) as QLMamNon.Dao.QLMamNonDs.TruongDataTable;
                QLMamNon.Dao.QLMamNonDs.TruongRow       truongRow   = truongTable.FindByTruongId(truongId);
                return(truongRow.Name);
            }

            return(CommonConstant.EMPTY);
        }
Exemple #2
0
        public static string GetTruongByKhoiId(KhoiTruongTableAdapter khoiTruongTableAdapter, Int32 khoiId)
        {
            int?truongId = GetTruongIdByKhoiId(khoiTruongTableAdapter, khoiId);

            if (truongId != null)
            {
                QLMamNon.Dao.QLMamNonDs.TruongDataTable truongTable = StaticDataFacade.Get(StaticDataKeys.TruongHoc) as QLMamNon.Dao.QLMamNonDs.TruongDataTable;
                QLMamNon.Dao.QLMamNonDs.TruongRow       truongRow   = truongTable.FindByTruongId(truongId.Value);
                return(truongRow.Name);
            }

            return(CommonConstant.EMPTY);
        }