コード例 #1
0
        /// <summary>
        /// Сохранить список карт обследования
        /// </summary>
        /// <param name="saveBrachialPlexusCardInfo">Информация о карте, которую сохраняем</param>
        private void Save(CBrachialPlexusCard saveBrachialPlexusCardInfo)
        {
            var brachialPlexusCardsStr = new StringBuilder();

            foreach (CBrachialPlexusCard brachialPlexusCardInfo in _brachialPlexusCardList)
            {
                brachialPlexusCardsStr.Append(
                    "HospitalizationId=" + brachialPlexusCardInfo.HospitalizationId + DataSplitStr +
                    "VisitId=" + brachialPlexusCardInfo.VisitId + DataSplitStr +
                    "Diaphragm=" + brachialPlexusCardInfo.Diaphragm + DataSplitStr +
                    "EMNG=" + brachialPlexusCardInfo.EMNG + DataSplitStr +
                    "EMNGDate=" + CConvertEngine.DateTimeToString(brachialPlexusCardInfo.EMNGDate) + DataSplitStr +
                    "HornersSyndrome=" + brachialPlexusCardInfo.HornersSyndrome + DataSplitStr +
                    "IsEMNGEnabled=" + brachialPlexusCardInfo.IsEMNGEnabled + DataSplitStr +
                    "IsMyelographyEnabled=" + brachialPlexusCardInfo.IsMyelographyEnabled + DataSplitStr +
                    "Myelography=" + brachialPlexusCardInfo.Myelography + DataSplitStr +
                    "MyelographyDate=" + CConvertEngine.DateTimeToString(brachialPlexusCardInfo.MyelographyDate) + DataSplitStr +
                    "MyelographyType=" + brachialPlexusCardInfo.MyelographyType + DataSplitStr +
                    "TinelsSymptom=" + brachialPlexusCardInfo.TinelsSymptom + DataSplitStr +
                    "VascularStatus=" + brachialPlexusCardInfo.VascularStatus + DataSplitStr +
                    "CardSide=" + brachialPlexusCardInfo.SideOfCard + ObjSplitStr);

                if (saveBrachialPlexusCardInfo != null && saveBrachialPlexusCardInfo.IsEqual(brachialPlexusCardInfo))
                {
                    CDatabaseEngine.SaveBitmapToFile(
                        brachialPlexusCardInfo.Picture,
                        GetPicturePath(brachialPlexusCardInfo.GetPictureFileName()));
                }
            }

            CDatabaseEngine.PackText(brachialPlexusCardsStr.ToString(), _brachialPlexusCardPath);
        }
コード例 #2
0
        /// <summary>
        /// Сохранить список акушерских анамнезов
        /// </summary>
        private void Save()
        {
            var obstetricHistorysStr = new StringBuilder();

            foreach (CObstetricHistory obstetricHistoryInfo in _obstetricHistoryList)
            {
                obstetricHistorysStr.Append(
                    "PatientId=" + obstetricHistoryInfo.PatientId + DataSplitStr +
                    "Chronology=" + CConvertEngine.ListToString(obstetricHistoryInfo.Chronology) + DataSplitStr +
                    "ApgarScore=" + obstetricHistoryInfo.ApgarScore + DataSplitStr +
                    "BirthInjury=" + obstetricHistoryInfo.BirthInjury + DataSplitStr +
                    "ChildbirthWeeks=" + obstetricHistoryInfo.ChildbirthWeeks + DataSplitStr +
                    "ComplicationsDuringChildbirth=" + obstetricHistoryInfo.ComplicationsDuringChildbirth + DataSplitStr +
                    "ComplicationsInPregnancy=" + obstetricHistoryInfo.ComplicationsInPregnancy + DataSplitStr +
                    "DrugsInPregnancy=" + obstetricHistoryInfo.DrugsInPregnancy + DataSplitStr +
                    "DurationOfLabor=" + obstetricHistoryInfo.DurationOfLabor + DataSplitStr +
                    "Fetal=" + obstetricHistoryInfo.Fetal + DataSplitStr +
                    "HeightAtBirth=" + obstetricHistoryInfo.HeightAtBirth + DataSplitStr +
                    "HospitalTreatment=" + obstetricHistoryInfo.HospitalTreatment + DataSplitStr +
                    "IsTongsUsing=" + obstetricHistoryInfo.IsTongsUsing + DataSplitStr +
                    "IsVacuumUsing=" + obstetricHistoryInfo.IsVacuumUsing + DataSplitStr +
                    "ObstetricParalysis=" + obstetricHistoryInfo.ObstetricParalysis + DataSplitStr +
                    "OutpatientCare=" + obstetricHistoryInfo.OutpatientCare + DataSplitStr +
                    "WeightAtBirth=" + obstetricHistoryInfo.WeightAtBirth + ObjSplitStr);
            }

            CDatabaseEngine.PackText(obstetricHistorysStr.ToString(), _obstetricHistoryPath);
        }
コード例 #3
0
        /// <summary>
        /// Сохранить список операционных протоколов
        /// </summary>
        private void Save()
        {
            var operationProtocolsStr = new StringBuilder();

            foreach (COperationProtocol operationProtocolInfo in _operationProtocolList)
            {
                operationProtocolsStr.Append(
                    "OperationId=" + operationProtocolInfo.OperationId + DataSplitStr +
                    "OperationCourse=" + operationProtocolInfo.OperationCourse + DataSplitStr +
                    "TreatmentPlanDate=" + CConvertEngine.DateTimeToString(operationProtocolInfo.TreatmentPlanDate) + DataSplitStr +
                    "TreatmentPlanInspection=" + operationProtocolInfo.TreatmentPlanInspection + DataSplitStr +
                    "IsTreatmentPlanActiveInOperationProtocol=" + operationProtocolInfo.IsTreatmentPlanActiveInOperationProtocol + DataSplitStr +
                    "ADFirst=" + operationProtocolInfo.ADFirst + DataSplitStr +
                    "ADSecond=" + operationProtocolInfo.ADSecond + DataSplitStr +
                    "Breath=" + operationProtocolInfo.Breath + DataSplitStr +
                    "ChDD=" + operationProtocolInfo.ChDD + DataSplitStr +
                    "Complaints=" + operationProtocolInfo.Complaints + DataSplitStr +
                    "State=" + operationProtocolInfo.State + DataSplitStr +
                    "HeartRhythm=" + operationProtocolInfo.HeartRhythm + DataSplitStr +
                    "HeartSounds=" + operationProtocolInfo.HeartSounds + DataSplitStr +
                    "IsDairyEnabled=" + operationProtocolInfo.IsDairyEnabled + DataSplitStr +
                    "Pulse=" + operationProtocolInfo.Pulse + DataSplitStr +
                    "StLocalis=" + operationProtocolInfo.StLocalis + DataSplitStr +
                    "Stomach=" + operationProtocolInfo.Stomach + DataSplitStr +
                    "Stool=" + operationProtocolInfo.Stool + DataSplitStr +
                    "Temperature=" + operationProtocolInfo.Temperature + DataSplitStr +
                    "TimeWriting=" + CConvertEngine.DateTimeToString(operationProtocolInfo.TimeWriting, true) + DataSplitStr +
                    "Urination=" + operationProtocolInfo.Urination + DataSplitStr +
                    "Wheeze=" + operationProtocolInfo.Wheeze + DataSplitStr + ObjSplitStr);
            }

            CDatabaseEngine.PackText(operationProtocolsStr.ToString(), _operationProtocolPath);
        }
コード例 #4
0
        /// <summary>
        /// Сохранить список операций
        /// </summary>
        private void Save()
        {
            _operationList.Sort(COperation.Compare);

            var operationsStr = new StringBuilder();

            foreach (COperation operationInfo in _operationList)
            {
                operationsStr.Append(
                    "Id=" + operationInfo.Id + DataSplitStr +
                    "HospitalizationId=" + operationInfo.HospitalizationId + DataSplitStr +
                    "PatientId=" + operationInfo.PatientId + DataSplitStr +
                    "DateOfOperation=" + CConvertEngine.DateTimeToString(operationInfo.DateOfOperation) + DataSplitStr +
                    "StartTimeOfOperation=" + CConvertEngine.DateTimeToString(operationInfo.StartTimeOfOperation, true) + DataSplitStr +
                    "EndTimeOfOperation=" + CConvertEngine.DateTimeToString(operationInfo.EndTimeOfOperation, true) + DataSplitStr +
                    "Name=" + operationInfo.Name + DataSplitStr +
                    "Surgeons=" + CConvertEngine.ListToString(operationInfo.Surgeons) + DataSplitStr +
                    "Assistents=" + CConvertEngine.ListToString(operationInfo.Assistents) + DataSplitStr +
                    "OperationTypes=" + CConvertEngine.ListToString(operationInfo.OperationTypes) + DataSplitStr +
                    "HeAnaesthetist=" + operationInfo.HeAnaesthetist + DataSplitStr +
                    "SheAnaesthetist=" + operationInfo.SheAnaesthetist + DataSplitStr +
                    "ScrubNurse=" + operationInfo.ScrubNurse + DataSplitStr +
                    "Orderly=" + operationInfo.Orderly + ObjSplitStr);
            }

            CDatabaseEngine.PackText(operationsStr.ToString(), _operationPath);
        }
コード例 #5
0
        /// <summary>
        /// Сохранить список выписных эпикризов
        /// </summary>
        private void Save()
        {
            var dischargeEpicrisissStr = new StringBuilder();

            foreach (CDischargeEpicrisis dischargeEpicrisisInfo in _dischargeEpicrisisList)
            {
                dischargeEpicrisissStr.Append(
                    "HospitalizationId=" + dischargeEpicrisisInfo.HospitalizationId + DataSplitStr +
                    "AnalysisDate=" + CConvertEngine.DateTimeToString(dischargeEpicrisisInfo.AnalysisDate) + DataSplitStr +
                    "AfterOperation=" + dischargeEpicrisisInfo.AfterOperation + DataSplitStr +
                    "ConservativeTherapy=" + dischargeEpicrisisInfo.ConservativeTherapy + DataSplitStr +
                    "Ekg=" + dischargeEpicrisisInfo.Ekg + DataSplitStr +
                    "OakEritrocits=" + dischargeEpicrisisInfo.OakEritrocits + DataSplitStr +
                    "OakHb=" + dischargeEpicrisisInfo.OakHb + DataSplitStr +
                    "OakLekocits=" + dischargeEpicrisisInfo.OakLekocits + DataSplitStr +
                    "OakSoe=" + dischargeEpicrisisInfo.OakSoe + DataSplitStr +
                    "OamColor=" + dischargeEpicrisisInfo.OamColor + DataSplitStr +
                    "OamDensity=" + dischargeEpicrisisInfo.OamDensity + DataSplitStr +
                    "OamEritrocits=" + dischargeEpicrisisInfo.OamEritrocits + DataSplitStr +
                    "OamLekocits=" + dischargeEpicrisisInfo.OamLekocits + DataSplitStr +
                    "AdditionalAnalises=" + dischargeEpicrisisInfo.AdditionalAnalises + DataSplitStr +
                    "Recomendations=" + CConvertEngine.ListToString(dischargeEpicrisisInfo.Recomendations) + DataSplitStr +
                    "AdditionalRecomendations=" + CConvertEngine.ListToString(dischargeEpicrisisInfo.AdditionalRecomendations) + ObjSplitStr);
            }

            CDatabaseEngine.PackText(dischargeEpicrisissStr.ToString(), _dischargeEpicrisisPath);
        }
コード例 #6
0
        /// <summary>
        /// Сохранить список анамнезов
        /// </summary>
        private void Save()
        {
            var anamnesesStr = new StringBuilder();

            foreach (CAnamnese anamneseInfo in _anamneseList)
            {
                anamnesesStr.Append(
                    "PatientId=" + anamneseInfo.PatientId + DataSplitStr +
                    "AnMorbi=" + anamneseInfo.AnMorbi + DataSplitStr +
                    "TraumaDate=" + CConvertEngine.DateTimeToString(anamneseInfo.TraumaDate) + ObjSplitStr);
            }

            CDatabaseEngine.PackText(anamnesesStr.ToString(), _anamnesePath);
        }
コード例 #7
0
        /// <summary>
        /// Сохранить список операционных мед. сестёр
        /// </summary>
        private void Save()
        {
            _scrubNurseList.Sort(CScrubNurse.Compare);

            var scrubNursesStr = new StringBuilder();

            foreach (CScrubNurse scrubNurseInfo in _scrubNurseList)
            {
                scrubNursesStr.Append(
                    "Id=" + scrubNurseInfo.Id + DataSplitStr +
                    "Name=" + scrubNurseInfo.Name + ObjSplitStr);
            }

            CDatabaseEngine.PackText(scrubNursesStr.ToString(), _scrubNursePath);
        }
コード例 #8
0
        /// <summary>
        /// Сохранить список этапных эпикризов
        /// </summary>
        private void Save()
        {
            var lineOfCommunicationEpicrisissStr = new StringBuilder();

            foreach (CLineOfCommunicationEpicrisis lineOfCommunicationEpicrisisInfo in _lineOfCommunicationEpicrisisList)
            {
                lineOfCommunicationEpicrisissStr.Append(
                    "HospitalizationId=" + lineOfCommunicationEpicrisisInfo.HospitalizationId + DataSplitStr +
                    "AdditionalInfo=" + lineOfCommunicationEpicrisisInfo.AdditionalInfo + DataSplitStr +
                    "Plan=" + lineOfCommunicationEpicrisisInfo.Plan + DataSplitStr +
                    "WritingDate=" + CConvertEngine.DateTimeToString(lineOfCommunicationEpicrisisInfo.WritingDate) + ObjSplitStr);
            }

            CDatabaseEngine.PackText(lineOfCommunicationEpicrisissStr.ToString(), _lineOfCommunicationEpicrisisPath);
        }
コード例 #9
0
ファイル: COrderlyWorker.cs プロジェクト: kong8313/MyPrograms
        /// <summary>
        /// Сохранить список санитаров
        /// </summary>
        private void Save()
        {
            _orderlyList.Sort(COrderly.Compare);

            var orderlysStr = new StringBuilder();

            foreach (COrderly orderlyInfo in _orderlyList)
            {
                orderlysStr.Append(
                    "Id=" + orderlyInfo.Id + DataSplitStr +
                    "Name=" + orderlyInfo.Name + ObjSplitStr);
            }

            CDatabaseEngine.PackText(orderlysStr.ToString(), _orderlyPath);
        }
コード例 #10
0
        /// <summary>
        /// Сохранить список карт обследования
        /// </summary>
        private void Save()
        {
            var rangeOfMotionCardsStr = new StringBuilder();

            foreach (CRangeOfMotionCard rangeOfMotionCardInfo in _rangeOfMotionCardList)
            {
                rangeOfMotionCardsStr.Append(
                    "HospitalizationId=" + rangeOfMotionCardInfo.HospitalizationId + DataSplitStr +
                    "VisitId=" + rangeOfMotionCardInfo.VisitId + DataSplitStr +
                    "OppositionFinger=" + rangeOfMotionCardInfo.OppositionFinger + DataSplitStr +
                    "Fields=" + CConvertEngine.ListToString(rangeOfMotionCardInfo.Fields) + ObjSplitStr);
            }

            CDatabaseEngine.PackText(rangeOfMotionCardsStr.ToString(), _rangeOfMotionCardPath);
        }
コード例 #11
0
ファイル: CSurgeonWorker.cs プロジェクト: kong8313/MyPrograms
        /// <summary>
        /// Сохранить список хирургов
        /// </summary>
        private void Save()
        {
            _surgeonList.Sort(CSurgeon.Compare);

            var surgeonsStr = new StringBuilder();

            foreach (CSurgeon surgeonInfo in _surgeonList)
            {
                surgeonsStr.Append(
                    "Id=" + surgeonInfo.Id + DataSplitStr +
                    "Header=" + surgeonInfo.Header + DataSplitStr +
                    "Name=" + surgeonInfo.Name + ObjSplitStr);
            }

            CDatabaseEngine.PackText(surgeonsStr.ToString(), _surgeonPath);
        }
コード例 #12
0
        /// <summary>
        /// Сохранить список переводных эпикризов
        /// </summary>
        private void Save()
        {
            var transferableEpicrisissStr = new StringBuilder();

            foreach (CTransferableEpicrisis transferableEpicrisisInfo in _transferableEpicrisisList)
            {
                transferableEpicrisissStr.Append(
                    "HospitalizationId=" + transferableEpicrisisInfo.HospitalizationId + DataSplitStr +
                    "AfterOperationPeriod=" + transferableEpicrisisInfo.AfterOperationPeriod + DataSplitStr +
                    "Plan=" + transferableEpicrisisInfo.Plan + DataSplitStr +
                    "WritingDate=" + CConvertEngine.DateTimeToString(transferableEpicrisisInfo.WritingDate) + DataSplitStr +
                    "AdditionalInfo=" + transferableEpicrisisInfo.AdditionalInfo + DataSplitStr +
                    "DisabilityList=" + transferableEpicrisisInfo.DisabilityList + DataSplitStr +
                    "IsIncludeDisabilityList=" + transferableEpicrisisInfo.IsIncludeDisabilityList + ObjSplitStr);
            }

            CDatabaseEngine.PackText(transferableEpicrisissStr.ToString(), _transferableEpicrisisPath);
        }
コード例 #13
0
        /// <summary>
        /// Сохранить список типов операций
        /// </summary>
        private void Save()
        {
            _operationTypeList.Sort(COperationType.Compare);

            var operationTypesStr = new StringBuilder();

            foreach (COperationType operationTypeInfo in _operationTypeList)
            {
                operationTypesStr.Append(
                    "Id=" + operationTypeInfo.Id + DataSplitStr +
                    "IdParent=" + operationTypeInfo.IdParent + DataSplitStr +
                    "Type=" + operationTypeInfo.Type + DataSplitStr +
                    "NodeFolderStated=" + operationTypeInfo.NodeFolderStated + DataSplitStr +
                    "Name=" + operationTypeInfo.Name + ObjSplitStr);
            }

            CDatabaseEngine.PackText(operationTypesStr.ToString(), _operationTypePath);
        }
コード例 #14
0
        /// <summary>
        /// Сохранить список нозологий
        /// </summary>
        private void Save()
        {
            _nosologyList.Sort(CNosology.Compare);

            var nosologysStr = new StringBuilder();

            foreach (CNosology nosologyInfo in _nosologyList)
            {
                nosologysStr.Append(
                    "Id=" + nosologyInfo.Id + DataSplitStr +
                    "IdParent=" + nosologyInfo.IdParent + DataSplitStr +
                    "Type=" + nosologyInfo.Type + DataSplitStr +
                    "NodeFolderStated=" + nosologyInfo.NodeFolderStated + DataSplitStr +
                    "Name=" + nosologyInfo.Name + ObjSplitStr);
            }

            CDatabaseEngine.PackText(nosologysStr.ToString(), _nosologyPath);
        }
コード例 #15
0
        /// <summary>
        /// Сохранить список карт обследования
        /// </summary>
        private void Save()
        {
            var obstetricParalysisCardsStr = new StringBuilder();

            foreach (CObstetricParalysisCard obstetricParalysisCardInfo in _obstetricParalysisCardList)
            {
                obstetricParalysisCardsStr.Append(
                    "HospitalizationId=" + obstetricParalysisCardInfo.HospitalizationId + DataSplitStr +
                    "VisitId=" + obstetricParalysisCardInfo.VisitId + DataSplitStr +
                    "CardSide=" + obstetricParalysisCardInfo.SideOfCard + DataSplitStr +
                    "GlobalAbductionPicturesSelection=" + CConvertEngine.ListToString(obstetricParalysisCardInfo.GlobalAbductionPicturesSelection) + DataSplitStr +
                    "GlobalExternalRotationPicturesSelection=" + CConvertEngine.ListToString(obstetricParalysisCardInfo.GlobalExternalRotationPicturesSelection) + DataSplitStr +
                    "HandToMouthPicturesSelection=" + CConvertEngine.ListToString(obstetricParalysisCardInfo.HandToMouthPicturesSelection) + DataSplitStr +
                    "HandToNeckPicturesSelection=" + CConvertEngine.ListToString(obstetricParalysisCardInfo.HandToNeckPicturesSelection) + DataSplitStr +
                    "HandToSpinePicturesSelection=" + CConvertEngine.ListToString(obstetricParalysisCardInfo.HandToSpinePicturesSelection) + DataSplitStr +
                    "ComboBoxes=" + CConvertEngine.ListToString(obstetricParalysisCardInfo.ComboBoxes) + ObjSplitStr);
            }

            CDatabaseEngine.PackText(obstetricParalysisCardsStr.ToString(), _obstetricParalysisCardPath);
        }
コード例 #16
0
        /// <summary>
        /// Сохранить список госпитализаций
        /// </summary>
        private void Save()
        {
            _hospitalizationList.Sort(CHospitalization.Compare);

            var hospitalizationsStr = new StringBuilder();

            foreach (CHospitalization hospitalizationInfo in _hospitalizationList)
            {
                hospitalizationsStr.Append(
                    "Id=" + hospitalizationInfo.Id + DataSplitStr +
                    "PatientId=" + hospitalizationInfo.PatientId + DataSplitStr +
                    "DeliveryDate=" + CConvertEngine.DateTimeToString(hospitalizationInfo.DeliveryDate, true) + DataSplitStr +
                    "ReleaseDate=" + CConvertEngine.DateTimeToString(hospitalizationInfo.ReleaseDate) + DataSplitStr +
                    "NumberOfCaseHistory=" + hospitalizationInfo.NumberOfCaseHistory + DataSplitStr +
                    "Diagnose=" + hospitalizationInfo.Diagnose + DataSplitStr +
                    "FotoFolderName=" + hospitalizationInfo.FotoFolderName + DataSplitStr +
                    "DoctorInChargeOfTheCase=" + hospitalizationInfo.DoctorInChargeOfTheCase + ObjSplitStr);
            }

            CDatabaseEngine.PackText(hospitalizationsStr.ToString(), _hospitalizationPath);
        }
コード例 #17
0
        /// <summary>
        /// Сохранить список осмотров в отделении
        /// </summary>
        private void Save()
        {
            var medicalInspectionsStr = new StringBuilder();

            foreach (CMedicalInspection medicalInspectionInfo in _medicalInspectionList)
            {
                medicalInspectionsStr.Append(
                    "HospitalizationId=" + medicalInspectionInfo.HospitalizationId + DataSplitStr +
                    "AnamneseAnMorbi=" + medicalInspectionInfo.AnamneseAnMorbi + DataSplitStr +
                    "StLocalisDescription=" + medicalInspectionInfo.StLocalisDescription + DataSplitStr +
                    "StLocalisRentgen=" + medicalInspectionInfo.StLocalisRentgen + DataSplitStr +
                    "AnamneseAnVitae=" + CConvertEngine.ListToString(medicalInspectionInfo.AnamneseAnVitae) + DataSplitStr +
                    "AnamneseCheckboxes=" + CConvertEngine.ListToString(medicalInspectionInfo.AnamneseCheckboxes) + DataSplitStr +
                    "AnamneseTextBoxes=" + CConvertEngine.ListToString(medicalInspectionInfo.AnamneseTextBoxes) + DataSplitStr +
                    "Complaints=" + medicalInspectionInfo.Complaints + DataSplitStr +
                    "ExpertAnamnese=" + medicalInspectionInfo.ExpertAnamnese + DataSplitStr +
                    "InspectionPlan=" + medicalInspectionInfo.InspectionPlan + DataSplitStr +
                    "IsAnamneseActive=" + medicalInspectionInfo.IsAnamneseActive + DataSplitStr +
                    "IsPlanEnabled=" + medicalInspectionInfo.IsPlanEnabled + DataSplitStr +
                    "IsStLocalisPart1Enabled=" + medicalInspectionInfo.IsStLocalisPart1Enabled + DataSplitStr +
                    "IsStLocalisPart2Enabled=" + medicalInspectionInfo.IsStLocalisPart2Enabled + DataSplitStr +
                    "LnFirstDateStart=" + CConvertEngine.DateTimeToString(medicalInspectionInfo.LnFirstDateStart) + DataSplitStr +
                    "LnWithNumberDateEnd=" + CConvertEngine.DateTimeToString(medicalInspectionInfo.LnWithNumberDateEnd) + DataSplitStr +
                    "LnWithNumberDateStart=" + CConvertEngine.DateTimeToString(medicalInspectionInfo.LnWithNumberDateStart) + DataSplitStr +
                    "StLocalisPart1Fields=" + CConvertEngine.ListToString(medicalInspectionInfo.StLocalisPart1Fields) + DataSplitStr +
                    "StLocalisPart1OppositionFinger=" + medicalInspectionInfo.StLocalisPart1OppositionFinger + DataSplitStr +
                    "StLocalisPart2ComboBoxes=" + CConvertEngine.ListToString(medicalInspectionInfo.StLocalisPart2ComboBoxes) + DataSplitStr +
                    "StLocalisPart2LeftHand=" + CConvertEngine.ListToString(medicalInspectionInfo.StLocalisPart2LeftHand) + DataSplitStr +
                    "StLocalisPart2NumericUpDown=" + medicalInspectionInfo.StLocalisPart2NumericUpDown + DataSplitStr +
                    "StLocalisPart2RightHand=" + CConvertEngine.ListToString(medicalInspectionInfo.StLocalisPart2RightHand) + DataSplitStr +
                    "StLocalisPart2TextBoxes=" + CConvertEngine.ListToString(medicalInspectionInfo.StLocalisPart2TextBoxes) + DataSplitStr +
                    "StLocalisPart2WhichHand=" + medicalInspectionInfo.StLocalisPart2WhichHand + DataSplitStr +
                    "StPraesensComboBoxes=" + CConvertEngine.ListToString(medicalInspectionInfo.StPraesensComboBoxes) + DataSplitStr +
                    "StPraesensNumericUpDowns=" + CConvertEngine.ListToString(medicalInspectionInfo.StPraesensNumericUpDowns) + DataSplitStr +
                    "StPraesensTextBoxes=" + CConvertEngine.ListToString(medicalInspectionInfo.StPraesensTextBoxes) + DataSplitStr +
                    "TeoRisk=" + medicalInspectionInfo.TeoRisk + ObjSplitStr);
            }

            CDatabaseEngine.PackText(medicalInspectionsStr.ToString(), _medicalInspectionPath);
        }
コード例 #18
0
ファイル: CCardWorker.cs プロジェクト: kong8313/MyPrograms
        /// <summary>
        /// Сохранить список карт обследования
        /// </summary>
        /// <param name="saveCardInfo">Информация о карте, которую сохраняем</param>
        private void Save(CCard saveCardInfo)
        {
            var cardsStr = new StringBuilder();

            foreach (CCard cardInfo in _cardList)
            {
                cardsStr.Append(
                    "HospitalizationId=" + cardInfo.HospitalizationId + DataSplitStr +
                    "VisitId=" + cardInfo.VisitId + DataSplitStr +
                    "CardSide=" + cardInfo.CurrentSideOfCard + DataSplitStr +
                    "CurrentCardType=" + cardInfo.CurrentCardType + ObjSplitStr);

                if (saveCardInfo != null && saveCardInfo.IsEqual(cardInfo))
                {
                    CDatabaseEngine.SaveBitmapToFile(
                        cardInfo.Picture,
                        GetPicturePath(cardInfo.GetPictureFileName()));
                }
            }

            CDatabaseEngine.PackText(cardsStr.ToString(), _cardPath);
        }
コード例 #19
0
ファイル: CVisitWorker.cs プロジェクト: kong8313/MyPrograms
        /// <summary>
        /// Сохранить список консультаций
        /// </summary>
        private void Save()
        {
            _visitList.Sort(CVisit.Compare);

            var visitsStr = new StringBuilder();

            foreach (CVisit visitInfo in _visitList)
            {
                visitsStr.Append(
                    "Id=" + visitInfo.Id + DataSplitStr +
                    "PatientId=" + visitInfo.PatientId + DataSplitStr +
                    "VisitDate=" + CConvertEngine.DateTimeToString(visitInfo.VisitDate, true) + DataSplitStr +
                    "Evenly=" + visitInfo.Evenly + DataSplitStr +
                    "Recommendation=" + visitInfo.Recommendation + DataSplitStr +
                    "Comments=" + visitInfo.Comments + DataSplitStr +
                    "Doctor=" + visitInfo.Doctor + DataSplitStr +
                    "IsLastParagraphForCertificateNeeded=" + visitInfo.IsLastParagraphForCertificateNeeded + DataSplitStr +
                    "IsLastOdkbParagraphForCertificateNeeded=" + visitInfo.IsLastOdkbParagraphForCertificateNeeded + DataSplitStr +
                    "Diagnose=" + visitInfo.Diagnose + ObjSplitStr);
            }

            CDatabaseEngine.PackText(visitsStr.ToString(), _visitPath);
        }
コード例 #20
0
        /// <summary>
        /// Сохранить список пациентов
        /// </summary>
        private void Save()
        {
            _patientList.Sort(CPatient.Compare);

            var patientsStr = new StringBuilder();

            foreach (CPatient patientInfo in _patientList)
            {
                patientsStr.Append(
                    "Birthday=" + CConvertEngine.DateTimeToString(patientInfo.Birthday) + DataSplitStr +
                    "BuildingNumber=" + patientInfo.BuildingNumber + DataSplitStr +
                    "CityName=" + patientInfo.CityName + DataSplitStr +
                    "FlatNumber=" + patientInfo.FlatNumber + DataSplitStr +
                    "HomeNumber=" + patientInfo.HomeNumber + DataSplitStr +
                    "Id=" + patientInfo.Id + DataSplitStr +
                    "LastName=" + patientInfo.LastName + DataSplitStr +
                    "Name=" + patientInfo.Name + DataSplitStr +
                    "NosologyList=" + CConvertEngine.ListToString(patientInfo.NosologyList) + DataSplitStr +
                    "Patronymic=" + patientInfo.Patronymic + DataSplitStr +
                    "Phone=" + patientInfo.Phone + DataSplitStr +
                    "PrivateFolder=" + patientInfo.PrivateFolder + DataSplitStr +
                    "Relatives=" + patientInfo.Relatives + DataSplitStr +
                    "IsSpecifyLegalRepresent=" + patientInfo.IsSpecifyLegalRepresent + DataSplitStr +
                    "LegalRepresent=" + patientInfo.LegalRepresent + DataSplitStr +
                    "WorkPlace=" + patientInfo.WorkPlace + DataSplitStr +
                    "EMail=" + patientInfo.EMail + DataSplitStr +
                    "InsuranceSeries=" + patientInfo.InsuranceSeries + DataSplitStr +
                    "InsuranceNumber=" + patientInfo.InsuranceNumber + DataSplitStr +
                    "InsuranceType=" + patientInfo.InsuranceType + DataSplitStr +
                    "InsuranceName=" + patientInfo.InsuranceName + DataSplitStr +
                    "PassInformation=" + patientInfo.PassInformation + DataSplitStr +
                    "StreetName=" + patientInfo.StreetName + ObjSplitStr);
            }

            CDatabaseEngine.PackText(patientsStr.ToString(), _patientPath);
        }