コード例 #1
0
ファイル: Program.cs プロジェクト: urnb/Training2020
        static void Main(string[] args)
        {
            Patient    p  = new Patient();
            Problems   pr = new Problems();
            Treatment  t  = new Treatment();
            Patientlog pl = new Patientlog();
            Staff      s  = new Staff();
            Doctor     d  = new Doctor();
            Manager    m  = new Manager();
            Nurse      n  = new Nurse();
            WardBoy    w  = new WardBoy();
            Salary     sl = new Salary();

            //Console.WriteLine("Hello World!");
        }
コード例 #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("-----Start-----");

            Patient P = new Patient();

            //List<Patient> PT = new List<Patient>();
            Console.WriteLine("Is Emergency? (Yes OR No) ");
            P.nature = Console.ReadLine();
            if (P.nature == "Yes")
            {
                Console.WriteLine("Emergency Case!!!Admit The Patient Immediately And Call The Doctor For Operating");
                //Since The Case Is Emergency The Details Can Be Taken Later.
            }
            else
            {
                Console.WriteLine("Patient Name : ");
                P.PatientName = Console.ReadLine();
                if (P.PatientName == "")
                {
                    return;
                }
                Console.WriteLine("Patient Number : ");
                P.PatientNumber = Console.ReadLine();
                Console.WriteLine("Patient Address : ");
                P.PatientAddress = Console.ReadLine();
                P.patientAllergies.Add(new Allergies()
                {
                    name = "Pollen Allergy", description = "Sneeze,Itchy Eyes", duration = "5 years"
                });
                P.patientSymptoms.Add(new PatientSymptoms()
                {
                    name = "Viral fever", description = "Head Ache.Body Pain", duration = "2 Days"
                });
                P.patientSymptoms.Add(new PatientSymptoms()
                {
                    name = "Cold", description = "Runny Nose,Sneezing", duration = "3 Days"
                });

                P.visit = true;
                P.VisitEntry();

                Nurse N = new Nurse();
                N.Name    = "ABC";
                N.Address = "ChurchGate";

                WardBoy W = new WardBoy();
                W.Name    = "PQR";
                W.Address = "Dadar";

                Doctor D = new Doctor();
                D.Name         = "XYZ";
                D.Address      = "Mumbai";
                D.Availability = 'Y';
                D.Specialty    = "Physician MD";

                Receptionist RP = new Receptionist();
                RP.ApproveAppointment(D, N, W, P);
            }


            //Accountant AC = new Accountant();
            //AC.CalSalary(D);

            Console.WriteLine("-----Complete-----");
            Console.Read();
        }