Exemplo n.º 1
0
        /// <summary>
        /// Clear the Data List, and build up a new one
        /// </summary>
        /// <returns></returns>
        public List <ResultLogModel> GetDefaultDataSet()
        {
            DataList.Clear();
            // Call backend clinic so ids match
            ClinicBackend      ClinicData = ClinicBackend.Instance;
            List <ClinicModel> clinics    = ClinicData.Index();

            // Call backend phones
            PhoneBackend      PhoneData = PhoneBackend.Instance;
            List <PhoneModel> phones    = PhoneData.Index();

            // Call backend to technicians
            TechnicianBackend      TechnicianData = TechnicianBackend.Instance;
            List <TechnicianModel> tech           = TechnicianData.Index();

            // Call backend for photos
            PhotoBackend      PhotoData = PhotoBackend.Instance;
            List <PhotoModel> photos    = PhotoData.Index();

            DataList.Add(new ResultLogModel {
                ClinicID = clinics[0].ID, PhoneID = phones[0].ID, UserID = tech[0].ID, BilirubinValue = 20, PhotoID = photos[0].ID
            });                                                                                                                                                      // Default
            DataList.Add(new ResultLogModel {
                ClinicID = clinics[1].ID, PhoneID = phones[1].ID, UserID = tech[1].ID, BilirubinValue = 2, PhotoID = photos[1].ID
            });
            DataList.Add(new ResultLogModel {
                ClinicID = clinics[2].ID, PhoneID = phones[2].ID, UserID = tech[2].ID, BilirubinValue = 3.5, PhotoID = photos[2].ID
            });
            //DataList.Add(new ResultLogModel { ClinicID = clinics[3].ID, PhoneID = phones[3].ID, UserID = tech[3].ID, BilirubinValue = 10, PhotoID = photos[3].ID });


            return(DataList);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Clear the Data List, and build up a new one
        /// </summary>
        /// <returns></returns>
        public List <PhoneModel> GetDefaultDataSet()
        {
            DataList.Clear();

            // call backend on Clinics so ID's match
            ClinicBackend      ClinicData = ClinicBackend.Instance;
            List <ClinicModel> clinics    = ClinicData.Index();

            DataList.Add(new PhoneModel {
                ClinicID             = clinics[0].ID,
                DeviceModel          = "Samsung 7",
                SerialNumber         = "1234abcd",
                ID                   = "f85345ba-e35c-43c2-8a44-635839d8ecb9",
                TransmitSuccessImage = true,
                TransmitFailImage    = true,
                ReadingCaptureCount  = 2
            }); // Default, force a guid, and Transfer Images for the Default Phone

            DataList.Add(new PhoneModel {
                ClinicID = clinics[0].ID, DeviceModel = "Samsung 8", SerialNumber = "Q24D38HTDEX"
            });
            DataList.Add(new PhoneModel {
                ClinicID = clinics[0].ID, DeviceModel = "DROID RAZR M", SerialNumber = "W97A68JGKTS"
            });
            DataList.Add(new PhoneModel {
                ClinicID = clinics[0].ID, DeviceModel = "Samsung J7 V", SerialNumber = "H66B49KILQT"
            });

            return(DataList);
        }
        /// <summary>
        /// Clear the Data List, and build up a new one
        /// </summary>
        /// <returns></returns>
        public List <InventoryModel> GetDefaultDataSet()
        {
            DataList.Clear();


            //Call backend clinic so ids match
            ClinicBackend      ClinicData = ClinicBackend.Instance;
            List <ClinicModel> clinics    = ClinicData.Index();

            DataList.Add(new InventoryModel {
                ClinicID = clinics[0].ID, TestStripStock = 30
            });                                                                                  // Default
            DataList.Add(new InventoryModel {
                ClinicID = clinics[1].ID, TestStripStock = 20
            });
            DataList.Add(new InventoryModel {
                ClinicID = clinics[2].ID, TestStripStock = 15
            });
            //DataList.Add(new InventoryModel { ClinicID = clinics[3].ID,  TestStripStock = 50 });

            return(DataList);
        }