Beispiel #1
0
        public Death(DdtHospital hospitalSession, DdvPatient patient)
        {
            this.hospitalSession = hospitalSession;
            this.patient         = patient;
            InitializeComponent();

            IDdvDoctorService service = DbDataService.GetInstance().GetDdvDoctorService();

            ControlUtils.InitDoctorsByGroupName(service, doctorsBox, "cardioreanimation_department");
            doctorsBox.SelectedValue = hospitalSession.CuringDoctor;
        }
Beispiel #2
0
        public PgDataService(IDbConnectionFactory connectionFactory)
        {
            this.connectionFactory = connectionFactory;

            ddtReleasePatientService     = new PgDdtReleasePatientService(connectionFactory);
            ddtIssuedMedicineListService = new PgDdtIssuedMedicineListService(connectionFactory);
            ddtIssuedActionService       = new PgDdtIssuedActionService(connectionFactory);
            ddtValuesService             = new PgDdtValuesService(connectionFactory);
            ddtInspectionService         = new PgDdtInspectionService(connectionFactory);
            ddtOncologicMarkersService   = new PgDdtOncologicMarkersService(connectionFactory);
            ddvPatientService            = new PgDdvPatientService(connectionFactory);
            ddtHormonesService           = new PgDdtHormonesService(connectionFactory);
            ddtHolterService             = new PgDdtHolterService(connectionFactory);
            ddtJournalService            = new PgDdtJournalService(connectionFactory);
            ddtJournalDayService         = new PgDdtJournalDayService(connectionFactory);
            ddtCureService                   = new PgDdtCureService(connectionFactory);
            ddtConsiliumService              = new PgDdtConsiliumService(connectionFactory);
            ddtPatientService                = new PgDdtPatientService(connectionFactory);
            ddtBloodAnalysisService          = new PgDdtBloodAnalysisService(connectionFactory);
            ddtXrayService                   = new PgDdtXrayService(connectionFactory);
            ddtEkgService                    = new PgDdtEkgService(connectionFactory);
            ddtSerologyService               = new PgDdtSerologyService(connectionFactory);
            ddtEpicrisisService              = new PgDdtEpicrisisService(connectionFactory);
            dssDdtDoctorService              = new PgDdtDoctorService(connectionFactory);
            ddtConsiliumGroupMemberService   = new PgDdtConsiliumGroupMemberService(connectionFactory);
            ddtAnamnesisService              = new PgDdtAnamnesisService(connectionFactory);
            ddvDoctorService                 = new PgDdvDoctorService(connectionFactory);
            ddtEgdsService                   = new PgDdtEgdsService(connectionFactory);
            ddtSpecialistConclusionService   = new PgDdtSpecialistConclusionService(connectionFactory);
            ddtHistoryService                = new PgDdtHistoryService(connectionFactory);
            ddvActiveHospitalPatientsService = new PgDdvActiveHospitalPatientsService(connectionFactory);
            ddtUrineAnalysisService          = new PgDdtUrineAnalysisService(connectionFactory);
            ddtKagService                    = new PgDdtKagService(connectionFactory);
            ddtHospitalService               = new PgDdtHospitalService(connectionFactory);
            ddtTransferService               = new PgDdtTransferService(connectionFactory);
            ddtConsiliumGroupService         = new PgDdtConsiliumGroupService(connectionFactory);
            ddtAlcoProtocolService           = new PgDdtAlcoProtocolService(connectionFactory);
            ddvHistoryService                = new PgDdvHistoryService(connectionFactory);
            ddtCureTypeService               = new PgDdtCureTypeService(connectionFactory);
            dmGroupUsersService              = new PgDmGroupUsersService(connectionFactory);
            ddtIssuedMedicineService         = new PgDdtIssuedMedicineService(connectionFactory);
            dmGroupService                   = new PgDmGroupService(connectionFactory);
            ddtCoagulogramService            = new PgDdtCoagulogramService(connectionFactory);
            ddvAllDiagnosisService           = new PgDdvAllDiagnosisService(connectionFactory);
            ddtConsiliumRelationService      = new PgDdtConsiliumRelationService(connectionFactory);
            ddtUziService                    = new PgDdtUziService(connectionFactory);
            ddtVariousSpecConclusonService   = new PgDdtVariousSpecConclusonService(connectionFactory);
            ddtRelationService               = new PgDdtRelationService(connectionFactory);            ddtTansfusionService = new PgDdtTransfusionService(connectionFactory);
        }
Beispiel #3
0
        internal static void InitDoctors(IDdvDoctorService service, ComboBox control, String defaultId)
        {
            control.Items.Clear();

            IList <DdvDoctor> list = service.GetAll();

            var selectIndex = 0;

            for (var index = 0; index < list.Count; index++)
            {
                var obj = list[index];

                if (obj.ObjectId == defaultId)
                {
                    selectIndex = index;
                }
                control.Items.Add(obj);
            }


            control.ValueMember   = "ObjectId";
            control.DisplayMember = "ShortName";
            control.SelectedIndex = selectIndex;
        }
Beispiel #4
0
        public DoctorList(IDdvDoctorService service)
        {
            InitializeComponent();

            ddtDoctorBindingSource.DataSource = service.GetAll();
        }
Beispiel #5
0
 internal static void InitDoctorsByConsiliumGroupId(IDdvDoctorService service, ComboBox control, string consiliumGroupId)
 {
     control.DataSource    = service.GetByConsiliumGroupId(consiliumGroupId);
     control.ValueMember   = "ObjectId";
     control.DisplayMember = "ShortName";
 }
Beispiel #6
0
 internal static void InitDoctorsByGroupNameAndOrder(IDdvDoctorService service, ComboBox control, string groupName, string orderName)
 {
     control.DataSource    = service.GetByGroupNameAndOrder(groupName, orderName);
     control.ValueMember   = "ObjectId";
     control.DisplayMember = "ShortName";
 }