예제 #1
0
 public static Clinic FromRClinics(this RAM.Clinic app)
 {
     return(new Clinic()
     {
         clinicID = app.clinicID,
         clinicName = app.clinicName
     });
 }
예제 #2
0
 public static RAM.Clinic ToRAMClinic(RAM.Clinic clinics)
 {
     return(new RAM.Clinic()
     {
         clinicID = clinics.clinicID,
         clinicName = clinics.clinicName
     });
 }
예제 #3
0
        private void BreastImagingDashboard_Load(object sender, EventArgs e)
        {
            //comboBox1.Text = "This Year";

            trigger = false;
            object defaultClinic = null;
            foreach (Clinic c in SessionManager.Instance.ActiveUser.UserClinicList)
            {
                comboBox2.Items.Add(c);
                if (c.clinicID == DashboardClinicId)
                {
                    defaultClinic = c;
                }
            }
            if (defaultClinic != null)
            {
                comboBox2.SelectedItem = defaultClinic;
            }
            else
            {
                if (comboBox2.Items.Count > 0)
                {
                    comboBox2.SelectedIndex = 0;
                    DashboardClinicId = ((Clinic)comboBox2.SelectedItem).clinicID;
                }
            }

            Clinic all = new Clinic();
            all.clinicID = -1;
            all.clinicName = "All Clinics";
            comboBox2.Items.Add(all);

            //LoadDashboardElements();

            SessionManager.Instance.ClearActivePatient();

            SessionManager.Instance.NewActivePatient +=
                new SessionManager.NewActivePatientEventHandler(NewActivePatient);

            dateTimePicker1.Value = DateTime.Now;

            CompositeAllFilter currentFilter = null;
            OlderApptFilter oaf = new OlderApptFilter();
            List<IModelFilter> listOfFilters = new List<IModelFilter>();
            listOfFilters.Add(oaf); //add the filter
            currentFilter = new CompositeAllFilter(listOfFilters);
            fastDataListView1.ModelFilter = currentFilter;

            trigger = true;
            GetNewAppointmentList();

            p_AtRisk.clinicId = DashboardClinicId;
            p_HighRiskBrcaQueue.clinicId = DashboardClinicId;
            p_HighRiskLifetimeBreastQueue.clinicId = DashboardClinicId;
            p_HighRiskColonQueue.clinicId = DashboardClinicId;

            p_AtRisk.AddHandlersWithLoad(null, atRiskLoaded, null);
        }
예제 #4
0
파일: Reporting.cs 프로젝트: mahitosh/HRA4
        private void Reporting_Load(object sender, EventArgs e)
        {
            //using (SqlDataReader reader = BCDB2.Instance.ExecuteReader("SELECT clinicID, clinicName FROM lkpclinics"))
            //{
            //    while (reader.Read())
            //    {
            //        Clinic c = new Clinic();
            //        c.clinicID = reader.GetInt32(0);
            //        c.clinicName = reader.GetString(1);

            //        ClinicCombo.Items.Add(c);
            //    }
            //}

            foreach (Clinic c in SessionManager.Instance.ActiveUser.UserClinicList)
            {
                ClinicCombo.Items.Add(c);
            }
            if (ClinicCombo.Items.Count > 0)
            {
                ClinicCombo.SelectedIndex = 0;
                clinicId = ((Clinic)(ClinicCombo.SelectedItem)).clinicID;
            }
            Clinic all = new Clinic();
            all.clinicID = -1;
            all.clinicName = "All Clinics";
            ClinicCombo.Items.Add(all);

            dateTimePicker1.Value = StartTime;
            dateTimePicker2.Value = EndTime;

            backgroundWorker2.RunWorkerAsync();
        }