Exemplo n.º 1
0
Arquivo: Form1.cs Projeto: hr4e/csharp
        public Form1()
        {
            //this.FormBorderStyle = FormBorderStyle.None; //uncomment to make completely full screen, so close button
            //this.WindowState = FormWindowState.Maximized; //uncomment to make full screen
            InitializeComponent();
            intakeStatus.newPatient = true;
            patientForm = new FormData();
            clinicData = new ClinicData();

            xmlHandler = new XMLHandler(this, patientForm);
            xmlReader = new XMLReader(this, patientForm, clinicData);
            xmlReader.LoadClinicSettings();

            intakeStatus = new IntakeTabStatus();
            triageStatus = new TriageTabStatus();
            clinicTabStatus = new ClinicTabStatus();
            pharmacyTabStatus = new PharmacyTabStatus();

            //set scribe list
            string[] providers = clinicData.GetProviders();
            for (int i = 0; i < providers.Length; i++)
            {
                comboBoxScribeList.Items.Add(providers[i]);
            }
            comboBoxScribeList.Text = "NI";

            InitializeIntakeData();
            InitializeTriageData();
            InitializeClinicTabData();
            InitializeAdminTab();
        }
Exemplo n.º 2
0
        public int Post(Requests request)
        {
            var c = new Clinic()
            {
                Name                   = request.Name,
                Tag                    = request.Tag,
                Description            = request.Description,
                OpeningTime            = request.OpeningTime,
                Location               = request.Location,
                PhoneNumber            = request.PhoneNumber,
                Email                  = request.Email,
                Website                = request.Website,
                Treatments             = request.Treatments,
                Reviews                = request.Reviews,
                RewardsAndCertificates = request.RewardsAndCertificates,
                Language               = request.Language,
                JoinDate               = request.JoinDate
            };
            ClinicData cd = new ClinicData(Db);

            return(cd.addClinic(c));
        }
Exemplo n.º 3
0
        public void Delete(ClinicIdRequest request)
        {
            ClinicData cd = new ClinicData(Db);

            cd.DeleteClinicById(request.ClinicId);
        }
Exemplo n.º 4
0
        public Clinic Get(ClinicIdRequest request)
        {
            ClinicData cd = new ClinicData(Db);

            return(cd.getClinicById(request.ClinicId));
        }
Exemplo n.º 5
0
        public List <Clinic> Get(GetClinicRequest request)
        {
            ClinicData cd = new ClinicData(Db);

            return(cd.getClinicList());
        }