예제 #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);
        }
예제 #2
0
        // Add YourName Above Here  #1


        private DataSourceBackend()
        {
            ExampleBackend    = ExampleBackend.Instance;
            PhotoBackend      = PhotoBackend.Instance;
            ClinicBackend     = ClinicBackend.Instance;
            ResultLogBackend  = ResultLogBackend.Instance;
            ResultDataBackend = ResultDataBackend.Instance;
            PhoneBackend      = PhoneBackend.Instance;
            TechnicianBackend = TechnicianBackend.Instance;
            InventoryBackend  = InventoryBackend.Instance;
            VersionOSBackend  = VersionOSBackend.Instance;
            VersionAppBackend = VersionAppBackend.Instance;
            HistoryOSBackend  = HistoryOSBackend.Instance;
            HistoryAppBackend = HistoryAppBackend.Instance;
            // Add YourName Above Here #2
        }