private async void LoadVehicleData()
        {
            try
            {
                _objHeaderModel.TokenCode       = Settings.TokenCode;
                _objDriver_SelectVehicleRequest = new Driver_SelectVehicleRequest
                {
                    Id        = Settings.UserId,
                    CompanyId = Settings.CompanyId,
                    ClientId  = _objAddWorksheetRequestModel.ClientId
                };
                await Navigation.PushPopupAsync(new LoadingPopPage());

                _objDriverSelectVehicleResonse = await _apiServices.GetDriverSelectVehicleListAsync(new Get_API_Url().VehicleListApi(_baseUrlVehicle), true, _objHeaderModel, _objDriver_SelectVehicleRequest);

                if (_objDriverSelectVehicleResonse.Response.StatusCode == 200)
                {
                    DependencyService.Get <IToast>().Show("Sucess!!");
                    dropdownVehicleName.ItemsSource = _objDriverSelectVehicleResonse.Response.VechicleListByEmployeeId;
                    await Navigation.PopAllPopupAsync();
                }
                else
                {
                    DependencyService.Get <IToast>().Show("Something Bad Happend please Try again Later!");
                    await Navigation.PopAllPopupAsync();
                }
            }
            catch (Exception ex)
            {
                var msg = ex.Message;
            }
        }
        public AddWorkSheetPage()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            _objAddWorksheetRequestModel   = new AddWorkSheetRequestModel();
            _objAddWorksheetResponseModel  = new AddWorksheetResponseModel();
            _objDriver_LoadTypeResponse    = new Driver_LoadTypeResponse();
            _objDriverSelectVehicleResonse = new DriverSelectVehicleResonse();
            _objLoadCompanySiteResponse    = new LoadCompanySiteResponse();
            _objDriver_GetClientsResponse  = new Driver_GetClientsResponse();
            _objAddWorkSheetNumberResponse = new AddWorkSheetNumberResponse();
            _objShiftDataViewModel         = new ShiftDataViewModel();
            dropdownShift.ItemsSource      = _objShiftDataViewModel.GetShiftType();
            _objHeaderModel        = new HeaderModel();
            _apiServices           = new RestApi();
            _baseUrlLoadTypes      = Settings.Url + Domain.GetLoadTypesApiConstant;
            _baseUrlVehicle        = Settings.Url + Domain.SelectVehicleApiConstant;
            _baseUrlCompanySite    = Settings.Url + Domain.GetCompanySitesApiConstant;
            _baseUrlGetClients     = Settings.Url + Domain.GetClientsApiConstant;
            _baseUrlAddWorkSheet   = Settings.Url + Domain.AddWorkSheetApiConstant;
            _baseUrlGetWorksheetNo = Settings.Url + Domain.GetWorksheetNumberApiConstant;

            BindingContext = _objAddWorksheetRequestModel;
            // xyz("WKA009");
        }
 public Driver_SelectVehiclePage()
 {
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     _objDriverSelectVehicleResonse = new DriverSelectVehicleResonse();
     _baseUrl        = Settings.Url + Domain.SelectVehicleApiConstant;
     _apiServices    = new RestApi();
     _objHeaderModel = new HeaderModel();
     LoadPageData();
 }