Exemplo n.º 1
0
        public void UpdateHospitalList()
        {
            string outMessage = string.Empty;

            this.HospitalList = CustomHospitalBusiness.GetNearbyAgencyEventHospitalList(this._agencyEventId, this._showRoutedDistance, SelectedHospitalType, out outMessage);
            if (!string.IsNullOrWhiteSpace(outMessage))
            {
                MessageBox.Show(outMessage, "Atenção!", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
Exemplo n.º 2
0
        public CheckHospitalViewModel(string agencyEventId)
        {
            string outMessage = string.Empty;

            this._agencyEventId = agencyEventId;

            CADSystem.CadContext.Parameter.ClearCache(true);

            this._showRoutedDistance = (CADSystem.CadContext.Parameter.GetParameterListItem("sisgraph", "CheckHosp", "CalculateRoutedDistance") == "T" ? true : false);
            string HospitalTypesToShow = CADSystem.CadContext.Parameter.GetParameterListItem("sisgraph", "CheckHosp", "HospitalTypesToShow");

            this.HospitalTypesList = HospitalTypesToShow.Split(new char[] { ';' }).ToList <string>();
            HospitalTypesList.Insert(0, String.Empty);

            this.HospitalList = CustomHospitalBusiness.GetNearbyAgencyEventHospitalList(this._agencyEventId, this._showRoutedDistance, HospitalTypesToShow, out outMessage);

            if (!string.IsNullOrWhiteSpace(outMessage))
            {
                MessageBox.Show(outMessage, "Atenção!", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }