public NotifiedAlertViolatorDetailsUserControlViewModel(SupervisorNotificationDTO supervisorNotificationDTO)
        {
            _supervisorNotificationDTO = supervisorNotificationDTO;
            _ADPUTSclient = new ADPUTSServiceClient();
            client        = new ServiceLayerClient();

            if (supervisorNotificationDTO.DangerousViolatorDetails != null && !string.IsNullOrEmpty(supervisorNotificationDTO.DangerousViolatorDetails.PlateNumber))
            {
                GetDangerousVehicleDetails(supervisorNotificationDTO.DangerousViolatorDetails.PlateNumber);
            }


            GetLicenseDetails();
            GetTrafficProfile();


            if (supervisorNotificationDTO.DangerousViolatorDetails != null && supervisorNotificationDTO.DangerousViolatorDetails.BusinessRuleId != null)
            {
                GetBusinessRuleName(Convert.ToInt32(supervisorNotificationDTO.DangerousViolatorDetails.BusinessRuleId));
            }

            if (supervisorNotificationDTO.DangerousViolatorDetails != null && !string.IsNullOrEmpty(supervisorNotificationDTO.DangerousViolatorDetails.MediaURL))
            {
                IsAttachmentAvailable = true;
            }

            GetVehicleDetails();

            _violatorDetailsExpanded = true;
        }
 public ViolationItemDetailsViewModel()
 {
     //PlateNumber = plateNum;
     adpUTSclient = new ADPUTSServiceClient();
     _client      = new ServiceLayerClient();
     //_activeIndex = -1;
     LoadData();
 }
Esempio n. 3
0
        public IssueFineViewModel()
        {
            client       = new ServiceLayerReference.ServiceLayerClient();
            adpUTSclient = new ADPUTSServiceClient();


            LoadData();
            GetVehicleViolationTypes();
        }
        public DagerousViolatorDetailsUserControlViewModel()
        {
            adpUTSclient = new ADPUTSServiceClient();
            client       = new ServiceLayerClient();

            ShowVideoCommand = new Command(ShowVideo);
            ShowImageCommand = new Command(ShowImage);

            //ImagePoupVM = new ImagePopupViewModel();

            //DangerousVehicleDetails = new DangerousVehicleDetailsDTO();
            //VehicleDetailResponse = new ADPUTSserviceReference.VehicleDetailsResponse();

            //GetDangerousVehicleDetails(vehicleResp.PlateInfo.PlateNo);
            _violatorDetailsExpanded = true;



            //ImagePoupVM = new ImagePopupViewModel();

            //this.PlateNumber="1234";
            //GetDangerousVehicleDetails(this.PlateNumber);
        }