예제 #1
0
        private string GenerateCampusID(string schoolName)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(random.Next(1, 5000).ToString());
            builder.Append(schoolName.Substring(0, 5));
            builder.Append("/CES/");
            builder.Append(JFunctions.GetSystemDate());
            builder.Append("/");
            builder.Append(JFunctions.GetSystemTime());
            return(builder.ToString());
        }
예제 #2
0
        private string GenerateSchoolID(string SchoolName, string OwnerName)
        {
            StringBuilder id = new StringBuilder();

            id.Append(random.Next(3, 10));
            id.Append("/C/");
            id.Append(SchoolName.Substring(0, 3));
            id.Append("/E/");
            id.Append(OwnerName.Substring(0, 3));
            id.Append("/S/");
            id.Append(JFunctions.GetSystemDate());
            id.Append("/");
            id.Append(JFunctions.GetSystemTime());
            id.Append("/");
            id.Append(random.Next(3, 10));
            return(id.ToString());
        }
예제 #3
0
        private string GenerateParentID(string Firstname, string Lastname)
        {
            Random random = new Random();

            StringBuilder id = new StringBuilder();

            id.Append("C/");
            id.Append(Firstname.Substring(0, 3));
            id.Append("/E/");
            id.Append(Lastname.Substring(0, 3));
            id.Append("/S/");
            id.Append(JFunctions.GetSystemDate());
            id.Append("/");
            id.Append(JFunctions.GetSystemTime());
            id.Append("/");
            id.Append(random.Next(3, 10));
            return(id.ToString());
        }