private void Initialize(CWorkersKeeper workersKeeper) { InitializeComponent(); _workersKeeper = workersKeeper; _scrubNurseWorker = workersKeeper.ScrubNurseWorker; }
private void Initialize(CWorkersKeeper workersKeeper) { InitializeComponent(); _workersKeeper = workersKeeper; _surgeonWorker = _workersKeeper.SurgeonWorker; }
public SurgeonForm( CWorkersKeeper workersKeeper, OperationViewForm operationViewForm, string objectBoxNameOnForm) { Initialize(workersKeeper); _operationViewForm = operationViewForm; _objectBoxNameOnForm = objectBoxNameOnForm; }
public NosologyViewForm(CWorkersKeeper workersKeeper, CNosology nosologyInfo, string defaultParentFolderName, string notEditableNosologyName) { InitializeComponent(); _workersKeeper = workersKeeper; _nosologyWorker = workersKeeper.NosologyWorker; if (!string.IsNullOrEmpty(notEditableNosologyName)) { textBoxNosologyName.ReadOnly = true; textBoxNosologyName.Text = notEditableNosologyName; } if (nosologyInfo == null) { _nosologyInfo = new CNosology(); Text = "Добавление новой нозологии"; AddAllParentNosologyesToComboBox(string.Empty); comboBoxParentNodeName.Text = defaultParentFolderName; } else { _nosologyInfo = new CNosology(nosologyInfo); Text = "Редактирование нозологии"; textBoxNosologyName.Text = _nosologyInfo.Name; AddAllParentNosologyesToComboBox(nosologyInfo.Name); if (nosologyInfo.IdParent != -1) { CNosology nosology = _nosologyWorker.GetById(nosologyInfo.IdParent); comboBoxParentNodeName.Text = nosology.Name; } } }
public CPatientWorker(CWorkersKeeper workersKeeper, string dataPath) { _patientPath = Path.Combine(dataPath, "patients.save"); _workersKeeper = workersKeeper; _configurationEngine = _workersKeeper.ConfigurationEngine; Load(); }
public AnamneseForm(CWorkersKeeper workersKeeper, CAnamnese anamnese) { InitializeComponent(); _anamneseInfo = anamnese; _anamneseWorker = workersKeeper.AnamneseWorker; _configurationEngine = workersKeeper.ConfigurationEngine; }
public PatientListForm(CWorkersKeeper workersKeeper) { _stopSaveParameters = true; InitializeComponent(); _workersKeeper = workersKeeper; _patientWorker = _workersKeeper.PatientWorker; _configurationEngine = workersKeeper.ConfigurationEngine; }
private void Initialize(CWorkersKeeper workersKeeper, string selectedOperationTypes) { InitializeComponent(); _workersKeeper = workersKeeper; _operationTypeWorker = workersKeeper.OperationTypeWorker; _selectedOperationTypes = selectedOperationTypes.Split(new[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries); }
public NosologyRemoveForm(CWorkersKeeper workersKeeper, CNosology nosologyInfo) { InitializeComponent(); _nosologyInfo = nosologyInfo; _nosologyWorker = workersKeeper.NosologyWorker; _patientWorker = workersKeeper.PatientWorker; _patientsWithCurrentNoslogyCnt = _patientWorker.GetCountContainedNosology(_nosologyInfo.Name); }
public ObstetricParalysisCardForm( CWorkersKeeper workersKeeper, CObstetricParalysisCard obstetricParalysisCard) { InitializeComponent(); _obstetricParalysisCardInfo = obstetricParalysisCard; _obstetricParalysisCardWorker = workersKeeper.ObstetricParalysisCardWorker; _configurationEngine = workersKeeper.ConfigurationEngine; }
public RangeOfMotionCardForm( CWorkersKeeper workersKeeper, CRangeOfMotionCard rangeOfMotionCard) { InitializeComponent(); _rangeOfMotionCardInfo = rangeOfMotionCard; _rangeOfMotionCardWorker = workersKeeper.RangeOfMotionCardWorker; _configurationEngine = workersKeeper.ConfigurationEngine; }
public OperationTypeForm( CWorkersKeeper workersKeeper, OperationViewForm operationViewForm, string selectedOperationTypes) { Initialize(workersKeeper, selectedOperationTypes); _operationViewForm = operationViewForm; }
public OperationTypeRemoveForm(CWorkersKeeper workersKeeper, COperationType operationTypeInfo) { InitializeComponent(); _operationTypeInfo = operationTypeInfo; _operationTypeWorker = workersKeeper.OperationTypeWorker; _operationWorker = workersKeeper.OperationWorker; _operationsWithCurrentOperationTypeCnt = _operationWorker.GetCountContainedOperationType(_operationTypeInfo.Name); }
public BrachialPlexusCardForm(CWorkersKeeper workersKeeper, CBrachialPlexusCard brachialPlexusCard) { InitializeComponent(); _configurationEngine = workersKeeper.ConfigurationEngine; _brachialPlexusCardWorker = workersKeeper.BrachialPlexusCardWorker; _brachialPlexusCardInfo = brachialPlexusCard; _shadePaint = new ShadePaint(_brachialPlexusCardInfo.Picture, string.Empty); }
public ObstetricHistoryForm( CWorkersKeeper workersKeeper, CObstetricHistory obstetricHistory) { InitializeComponent(); _obstetricHistoryInfo = obstetricHistory; _obstetricHistoryWorker = workersKeeper.ObstetricHistoryWorker; _configurationEngine = workersKeeper.ConfigurationEngine; }
private void Initialize(CWorkersKeeper workersKeeper, List <string> selectedNosologies, bool hideRemoveAndEditButtons) { InitializeComponent(); _workersKeeper = workersKeeper; _nosologyWorker = workersKeeper.NosologyWorker; _selectedNosologies = selectedNosologies; _hideRemoveAndEditButtons = hideRemoveAndEditButtons; }
public GlobalSettingsForm(CWorkersKeeper workersKeeper, PatientListForm patientListForm) { InitializeComponent(); _globalSettings = workersKeeper.GlobalSettings; _patientListForm = patientListForm; textBoxBranchManager.Text = _globalSettings.BranchManager; textBoxDepartmentName.Text = _globalSettings.DepartmentName; textBoxDischargeEpicrisisHeader.Text = _globalSettings.DischargeEpicrisisHeaderFileName; textBoxHeAnaesthetist.Text = _globalSettings.HeAnaesthetist; textBoxSheAnaesthetist.Text = _globalSettings.SheAnaesthetist; checkBoxShowDbIndexes.Checked = _globalSettings.ShowDbIndexes; }
public PaintDoublePictureForm(string formName, CWorkersKeeper workersKeeper, CCard cardLeftInfo, CCard cardRightInfo) { InitializeComponent(); _configurationEngine = workersKeeper.ConfigurationEngine; Text = formName; _cardWorker = workersKeeper.CardWorker; _cardLeftInfo = cardLeftInfo; _cardRightInfo = cardRightInfo; _shadePaintLeft = new ShadePaint(cardLeftInfo.Picture, "Левая сторона"); _shadePaintRight = new ShadePaint(cardRightInfo.Picture, "Правая сторона"); }
/// <summary> /// Открыть папку с сохранёнными версиями баз /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void menuItemFileDatabaseSaveFolder_Click(object sender, EventArgs e) { string saveDataFolder; CWorkersKeeper.GetSaveDataLocation(out saveDataFolder); if (Directory.Exists(saveDataFolder)) { Process.Start("explorer.exe", saveDataFolder); } else { MessageBox.ShowDialog("Папка пока не существует", "Информация", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public VisitViewForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CVisit visitInfo, PatientViewForm patientViewForm, AddUpdate action) { _stopSaveParameters = true; InitializeComponent(); _additionalDocumentsFolderPath = Path.Combine(Application.StartupPath, AdditionalDocumentsFolderName); _workersKeeper = workersKeeper; _visitWorker = workersKeeper.VisitWorker; _patientInfo = patientInfo; _patientViewForm = patientViewForm; _configurationEngine = workersKeeper.ConfigurationEngine; _action = action; _visitInfo = visitInfo; _saveVisitInfo = new CVisit(_visitInfo); PutSurgeonsToComboBox(); dateTimePickerVisitDate.Value = _visitInfo.VisitDate; textBoxDiagnose.Text = _visitInfo.Diagnose; textBoxRecommendation.Text = _visitInfo.Recommendation; textBoxComments.Text = _visitInfo.Comments; textBoxEvenly.Text = _visitInfo.Evenly; checkBoxLastParagraph.Checked = _visitInfo.IsLastParagraphForCertificateNeeded; checkBoxLastParagraphOdkb.Checked = _visitInfo.IsLastOdkbParagraphForCertificateNeeded; comboBoxDoctor.Text = _visitInfo.Doctor; textBoxPassInfoSeries.Text = _patientInfo.PassInformation.Series; textBoxPassInfoNumber.Text = _patientInfo.PassInformation.Number; textBoxPassInfoSubdivisionCode.Text = _patientInfo.PassInformation.SubdivisionCode; textBoxPassInfoOrganization.Text = _patientInfo.PassInformation.Organization; if (_patientInfo.PassInformation.DeliveryDate.HasValue) { dateTimePickerPassInfoDeliveryDate.Checked = true; dateTimePickerPassInfoDeliveryDate.Value = _patientInfo.PassInformation.DeliveryDate.Value; } Text = _action == AddUpdate.Add ? "Добавление новой консультации" : "Просмотр данных о консультации"; }
public OperationViewForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, COperation operationInfo, HospitalizationViewForm hospitalizationViewForm, AddUpdate action) { _stopSaveParameters = true; InitializeComponent(); _workersKeeper = workersKeeper; _operationWorker = workersKeeper.OperationWorker; _orderlyWorker = workersKeeper.OrderlyWorker; _scrubNurseWorker = workersKeeper.ScrubNurseWorker; _patientInfo = patientInfo; _hospitalizationInfo = hospitalizationInfo; _hospitalizationViewForm = hospitalizationViewForm; _configurationEngine = workersKeeper.ConfigurationEngine; PutObjectsToComboBox(_orderlyWorker.OrderlyList, comboBoxOrderly); PutObjectsToComboBox(_scrubNurseWorker.ScrubNurseList, comboBoxScrubNurse); _action = action; _operationInfo = operationInfo; _saveOperationInfo = new COperation(_operationInfo); textBoxName.Text = _operationInfo.Name; textBoxAssistents.Text = ListToMultilineString(_operationInfo.Assistents); textBoxSurgeons.Text = ListToMultilineString(_operationInfo.Surgeons); textBoxOperationTypes.Text = ListToMultilineString(_operationInfo.OperationTypes); comboBoxScrubNurse.Text = _operationInfo.ScrubNurse; textBoxSheAnestethist.Text = _operationInfo.SheAnaesthetist; textBoxHeAnestethist.Text = _operationInfo.HeAnaesthetist; comboBoxOrderly.Text = _operationInfo.Orderly; dateTimePickerDateOfOperation.Value = _operationInfo.DateOfOperation; dateTimePickerStartTimeOfOperation.Value = _operationInfo.StartTimeOfOperation; dateTimePickerEndTimeOfOperation.Checked = _operationInfo.EndTimeOfOperation.HasValue; if (_operationInfo.EndTimeOfOperation.HasValue) { dateTimePickerEndTimeOfOperation.Value = _operationInfo.EndTimeOfOperation.Value; } Text = action == AddUpdate.Add ? "Добавление операции" : "Просмотр данных об операции"; }
public HospitalizationViewForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, PatientViewForm patientviewForm, AddUpdate action) { _stopSaveParameters = true; InitializeComponent(); _workersKeeper = workersKeeper; _hospitalizationWorker = workersKeeper.HospitalizationWorker; _operationWorker = workersKeeper.OperationWorker; _patientInfo = patientInfo; _patientViewForm = patientviewForm; _configurationEngine = workersKeeper.ConfigurationEngine; PutSurgeonsToComboBox(); _realPrivateFolder = CConvertEngine.GetFullPrivateFolderPath(_patientInfo.PrivateFolder); _action = action; _hospitalizationInfo = hospitalizationInfo; _saveHospitalizationInfo = new CHospitalization(_hospitalizationInfo); dateTimePickerDeliveryDate.Value = _hospitalizationInfo.DeliveryDate; if (_hospitalizationInfo.ReleaseDate.HasValue) { dateTimePickerReleaseDate.Checked = true; dateTimePickerReleaseDate.Value = _hospitalizationInfo.ReleaseDate.Value; } else { dateTimePickerReleaseDate.Checked = false; } textBoxFotoFolderName.Text = _hospitalizationInfo.FotoFolderName; textBoxCaseHistory.Text = _hospitalizationInfo.NumberOfCaseHistory; textBoxDiagnose.Text = _hospitalizationInfo.Diagnose; comboBoxDoctorInChargeOfTheCase.Text = _hospitalizationInfo.DoctorInChargeOfTheCase; Text = _action == AddUpdate.Add ? "Добавление новой госпитализации" : "Просмотр данных о госпитализации"; }
public TransferableEpicrisisForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, CTransferableEpicrisis transferableEpicrisisInfo) { InitializeComponent(); _patientInfo = patientInfo; _hospitalizationInfo = hospitalizationInfo; _transferableEpicrisisInfo = transferableEpicrisisInfo; _operationWorker = workersKeeper.OperationWorker; _transferableEpicrisisWorker = workersKeeper.TransferableEpicrisisWorker; _globalSettings = workersKeeper.GlobalSettings; _configurationEngine = workersKeeper.ConfigurationEngine; }
public LineOfCommunicationEpicrisisForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, CLineOfCommunicationEpicrisis lineOfCommunicationEpicrisis) { InitializeComponent(); _patientInfo = patientInfo; _hospitalizationInfo = hospitalizationInfo; _lineOfCommunicationEpicrisisInfo = lineOfCommunicationEpicrisis; _operationWorker = workersKeeper.OperationWorker; _lineOfCommunicationEpicrisisWorker = workersKeeper.LineOfCommunicationEpicrisisWorker; _globalSettings = workersKeeper.GlobalSettings; _configurationEngine = workersKeeper.ConfigurationEngine; }
public ColorInfoForm(CWorkersKeeper workersKeeper, PatientListForm patientForm) { _stopSaveParameters = true; InitializeComponent(); _configurationEngine = workersKeeper.ConfigurationEngine; _patientForm = patientForm; panelNoColor.BackColor = _configurationEngine.RowNoColor; panelLightColor.BackColor = _configurationEngine.RowLightColor; panelReleaseDateColor.BackColor = _configurationEngine.RowReleaseDateColor; panelLineOfCommunicationColor.BackColor = _configurationEngine.RowLineOfCommunicationColor; ShowDefaultButtonIfColorsAreDefault(); }
public MedicalInspectionForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, CMedicalInspection medicalInspectionInfo) { InitializeComponent(); _workersKeeper = workersKeeper; _patientInfo = patientInfo; _hospitalizationInfo = hospitalizationInfo; _medicalInspectionInfo = medicalInspectionInfo; _operationWorker = workersKeeper.OperationWorker; _medicalInspectionWorker = workersKeeper.MedicalInspectionWorker; _globalSettings = workersKeeper.GlobalSettings; _configurationEngine = workersKeeper.ConfigurationEngine; }
public OperationProtocolForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, COperation operationInfo, COperationProtocol operationProtocolInfo) { InitializeComponent(); _patientInfo = patientInfo; _hospitalizationInfo = hospitalizationInfo; _operationProtocolInfo = operationProtocolInfo; _operationInfo = operationInfo; _operationProtocolWorker = workersKeeper.OperationProtocolWorker; _globalSettings = workersKeeper.GlobalSettings; _configurationEngine = workersKeeper.ConfigurationEngine; }
public DischargeEpicrisisForm( CWorkersKeeper workersKeeper, CPatient patientInfo, CHospitalization hospitalizationInfo, CMedicalInspection medicalInspection, CDischargeEpicrisis dischargeEpicrisisInfo) { InitializeComponent(); _patientInfo = patientInfo; _hospitalizationInfo = hospitalizationInfo; _dischargeEpicrisisInfo = dischargeEpicrisisInfo; _medicalInspection = medicalInspection; _operationWorker = workersKeeper.OperationWorker; _dischargeEpicrisisWorker = workersKeeper.DischargeEpicrisisWorker; _globalSettings = workersKeeper.GlobalSettings; _configurationEngine = workersKeeper.ConfigurationEngine; }
public DictophoneForm(CWorkersKeeper workersKeeper, string privateFolder) { InitializeComponent(); _mp3SoundCapture = new Mp3SoundCapture { NormalizeVolume = false, OutputType = Mp3SoundCapture.Outputs.Wav, UseSynchronizationContext = true, WaitOnStop = true }; _mp3SoundCapture.Starting += mp3SoundCapture_Starting; _mp3SoundCapture.Stopped += mp3SoundCapture_Stopped; _privateFolder = privateFolder; _configurationEngine = workersKeeper.ConfigurationEngine; }
public ScrubNurseViewForm(CWorkersKeeper workersKeeper, CScrubNurse scrubNurseInfo) { InitializeComponent(); _workersKeeper = workersKeeper; _scrubNurseWorker = _workersKeeper.ScrubNurseWorker; if (scrubNurseInfo == null) { _scrubNurseInfo = new CScrubNurse(); Text = "Добавление новой операц. мед. сестры"; } else { _scrubNurseInfo = scrubNurseInfo; Text = "Редактирование операц. мед. сестры"; textBoxScrubNurseName.Text = _scrubNurseInfo.Name; } }