示例#1
0
文件: Program.cs 项目: vochita/PSSC
        static void owners()
        {
            Console.WriteLine("PROFESOR");
            int selector = 0;
            int maxItem = 6;
            Owner owner = new Owner();
            do
            {
                Console.WriteLine("Optiuni Student\n");
                Console.WriteLine("1-Vizualizare nivel Universitate");
                Console.WriteLine("2-Vizualizare Nivel studenti");
                Console.WriteLine("3-Add Date nivel Universitate");
                Console.WriteLine("4-Update Date nivel Universitate");
                Console.WriteLine("5-Delete Date nivel Universitate");
                Console.WriteLine("6-Exit");
                selector = Convert.ToInt32(Console.ReadLine());
                switch (selector)
                {
                    case 1: owner.ViewDB(Globals.selectALL, Globals.Tabela1);
                        break;
                    case 2: owner.ViewDB(Globals.selectALL, Globals.Tabela2);
                        break;
                    case 3: owner.AddDB();
                        break;
                    case 4: owner.UpdateDB();
                        break;
                    case 5: owner.DeleteDB(Globals.Tabela1);
                        break;
                    case 6: break;
                    default: break;
                }

            } while (selector != maxItem);
        }
示例#2
0
        static void owners()
        {
            Console.WriteLine("OWNER");
            int   selector = 0;
            int   maxItem  = 14;
            Owner owner    = new Owner();

            if (owner.login() == true)
            {
                do
                {
                    Console.WriteLine("Optiuni Owner\n");
                    Console.WriteLine("1-Vizualizare nivel Universitate");
                    Console.WriteLine("2-Vizualizare Nivel studenti");
                    Console.WriteLine("3-Add Date nivel Universitate");
                    Console.WriteLine("4-Update Date nivel Universitate by prof");
                    Console.WriteLine("5-Update Date nivel Universitate by facultate");
                    Console.WriteLine("6-Update Date nivel Universitate by curs");
                    Console.WriteLine("7-Delete Date nivel Universitate by prof");
                    Console.WriteLine("8-Delete Date nivel Universitate by facultate");
                    Console.WriteLine("9-Delete Date nivel Universitate by curs");
                    Console.WriteLine("10-Find anythink in Universitate by prof ");
                    Console.WriteLine("11-Find anythink in Universitate by materie ");
                    Console.WriteLine("12-Find anythink in Universitate by facultate ");
                    Console.WriteLine("13-Find anythink in UniversitateIntermediere by student ");
                    Console.WriteLine("14-Exit");
                    selector = Convert.ToInt32(Console.ReadLine());
                    switch (selector)
                    {
                    case 1:
                        break;

                    case 2:
                        break;

                    case 3:
                        break;

                    case 4:
                        break;

                    case 5:
                        break;

                    case 6:
                        break;

                    case 7:
                        break;

                    case 8:
                        break;

                    case 9:
                        break;

                    case 10:
                        break;

                    case 11:
                        break;

                    case 12:
                        break;

                    case 13:
                        break;

                    case 14:
                        break;

                    default: break;
                    }
                } while (selector != maxItem);
            }
            else
            {
                Console.WriteLine("Eroare la autentificare!");
            }
        }