Exemple #1
0
        private static string GenNewStudentId()
        {
            string idOut;

            do
            {
                idOut = "M" + DateTime.Today.Year + GenId.GetId(4);
            } while (App.DataS.Students.StudentExist(idOut));

            return(idOut);
        }
Exemple #2
0
        private static string GenNewStaffId()
        {
            string idOut;

            do
            {
                idOut = "ST" + DateTime.Today.Year + "-" + GenId.GetId(3) + "-" + GenId.GetId(4);
            } while (App.DataS.Hr.StaffIdExist(idOut));

            return(idOut);
        }
        private static string GenNewInsId()
        {
            string idOut;

            do
            {
                idOut = "I" + DateTime.Today.Year + "-" + GenId.GetId(2) + "-" + GenId.GetId(3);
            } while (App.DataS.Pedagogy.Inscriptions.InscExist(idOut));

            return(idOut);
        }