Example #1
0
 public GalleryImage(GmDataReader dr)
 {
     id        = dr.GetInt32();
     galleryId = dr.GetInt32();
     filename  = dr.GetString();
     name      = dr.GetString();
     text      = dr.GetString();
     status    = (RecordStatus)dr.GetInt32();
 }
        public WatchingScheme(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id     = gr.GetInt32();
            userId = gr.GetInt32();
            name   = gr.GetString();
            data   = WatchingSchemeData.DeserializeString(gr.GetString());
        }
        public Reacard(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id          = gr.GetInt32();
            patientId   = gr.GetInt32();
            date        = gr.GetDateTime();
            reacardData = ReacardData.DeserializeString(gr.GetString());
        }
        public Watching(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id        = gr.GetInt32();
            userId    = gr.GetInt32();
            startTime = gr.GetDateTime();
            endTime   = gr.GetDateTime();
            data      = WatchingData.DeserializeString(gr.GetString());
        }
        public PatientConsultation(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id               = gr.GetInt32();
            patientId        = gr.GetInt32();
            requestDate      = gr.GetDateTime();
            executionDate    = gr.GetDateTime();
            consultationData = ConsultationData.Create(gr.GetString());
        }
Example #6
0
        public Observation(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id                = gr.GetInt32();
            patientId         = gr.GetInt32();
            doctorId          = gr.GetInt32();
            time              = gr.GetDateTime();
            description       = ObservationData.Create(gr.GetString());
            observationTypeId = (ObservationTypeId)gr.GetInt32();
        }
        public Analysis(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id             = gr.GetInt32();
            patientId      = gr.GetInt32();
            analysisTypeId = gr.GetInt32();
            requestDate    = gr.GetDateTime();
            executionDate  = (DateTime)gr.GetDateTime();
            analysisData   = AnalysisData.DeserializeString(gr.GetString());
        }
        public ConfigRecord(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id         = gr.GetInt32();
            restoredId = gr.GetInt32();
            userId     = gr.GetInt32();
            version    = gr.GetInt32();
            time       = gr.GetDateTime();
            config     = Config.DeserializeString(gr.GetString());
            comment    = gr.GetString();
        }
        public Document(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id             = gr.GetInt32();
            date           = gr.GetDateTime();
            userId         = gr.GetInt32();
            documentTypeId = (DocumentTypeId)gr.GetInt32();
            completed      = gr.GetBoolean();
            storekeeperId  = gr.GetInt32();
            nDays          = gr.GetInt32();
            documentData   = DocumentData.DeserializeString(gr.GetString());
        }
 public BannerTopic(GmDataReader dr)
 {
     id   = dr.GetInt32();
     name = dr.GetString();
     b1   = dr.GetInt32();
     b2   = dr.GetInt32();
     b3   = dr.GetInt32();
     b4   = dr.GetInt32();
     b5   = dr.GetInt32();
     b6   = dr.GetInt32();
     b7   = dr.GetInt32();
     b8   = dr.GetInt32();
     b9   = dr.GetInt32();
 }
        public AnalysisType(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id              = gr.GetInt32();
            name            = gr.GetString();
            code            = gr.GetString();
            handbookGroupId = gr.GetString();
        }
Example #12
0
 public Forum(GmDataReader dr)
 {
     id          = dr.GetInt32();
     communityId = dr.GetInt();
     date        = dr.GetDateTime();
     name        = dr.GetString();
     description = dr.GetString();
     status      = (RecordStatus)dr.GetInt();
 }
        public PatientIdentification(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id                 = gr.GetInt32();
            surname            = gr.GetString();
            name               = gr.GetString();
            middleName         = gr.GetString();
            gender             = (GenderId)gr.GetInt();
            birthday           = gr.GetDateTime();
            identificationData = IdentificationData.Create(gr.GetString());
        }
        public Patient(DbDataReader dr)
        {
            GmDataReader gr = new GmDataReader(dr);

            id                      = gr.GetInt32();
            passportId              = gr.GetInt32();
            insuranceId             = gr.GetInt32();
            patientIdentificationId = gr.GetInt32();
            doctorId                = gr.GetInt32();
            diagnosisId             = gr.GetInt32();
            patientData             = PatientData.Create(gr.GetString());
            patientDescription      = PatientDescription.Create(gr.GetString());
            admissionDate           = gr.GetDateTime();
            wardId                  = gr.GetInt32();
            patientTypeId           = (PatientTypeId)gr.GetInt32();
            dischargeTypeId         = (DischargeTypeId)gr.GetInt32();
            dischargeData           = DischargeData.Create(gr.GetString());
            dischargeDate           = gr.GetDateTime();
            patientDiagnoses        = PatientDiagnoses.Create(gr.GetString());
            dietNumber              = gr.GetString();
            status                  = (Status)gr.GetInt32();
        }
Example #15
0
 public Article(GmDataReader dr)
 {
     id       = dr.GetInt();
     parentId = dr.GetInt();
     date     = dr.GetDateTime();
     person   = dr.GetString();
     title    = dr.GetString();
     preview  = dr.GetString();
     header   = dr.GetString();
     text     = dr.GetString();
     company  = dr.GetString();
     cityId   = dr.GetInt32();
     address  = dr.GetString();
     phone    = dr.GetString();
     link     = dr.GetString();
     email    = dr.GetString();
     status   = (RecordStatus)dr.GetInt();
     tag      = dr.GetString();
     isGroup  = dr.GetBoolean();
 }