コード例 #1
0
 private void LoadPasseTypesAndPriceDetails(string SelectedVehicle)
 {
     try
     {
         ShowLoading(true);
         if (App.Current.Properties.ContainsKey("LoginUser") && App.Current.Properties.ContainsKey("apitoken"))
         {
             User                objloginuser           = (User)App.Current.Properties["LoginUser"];
             VMPass              vm_Pass                = new VMPass();
             DALPass             dal_Pass               = new DALPass();
             VehicleLotPassPrice objVehicleLotPassPrice = new VehicleLotPassPrice();
             objVehicleLotPassPrice.VehicleTypeCode      = SelectedVehicle;
             objVehicleLotPassPrice.LocationID           = objloginuser.LocationParkingLotID.LocationID.LocationID;
             objVehicleLotPassPrice.LocationParkingLotID = objloginuser.LocationParkingLotID.LocationParkingLotID;
             List <PassPrice> lstVMPass = dal_Pass.GetPassPriceDetails(Convert.ToString(App.Current.Properties["apitoken"]), objVehicleLotPassPrice);
             if (objReNewVehicle != null && objReNewVehicle.CustomerVehiclePassID != 0)
             {
                 List <PassPrice> renewSelectedPass = lstVMPass.Where(p => (p.PassTypeID.PassTypeCode.ToUpper() == objReNewVehicle.PassPriceID.PassTypeID.PassTypeCode.ToUpper()) && p.StationAccess.ToUpper() == objReNewVehicle.PassPriceID.StationAccess.ToUpper()).ToList();
                 LstVehiclePasses.ItemsSource = renewSelectedPass;
             }
             else
             {
                 LstVehiclePasses.ItemsSource = lstVMPass;
             }
         }
         ShowLoading(false);
     }
     catch (Exception ex)
     {
         ShowLoading(false);
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "NewPassPage.xaml.cs", "", "LoadPasseTypesAndPriceDetails");
     }
 }
コード例 #2
0
        private void LoadPasseTypesAndPriceDetails(string SelectedVehicle)
        {
            try
            {
                if (App.Current.Properties.ContainsKey("LoginUser") && App.Current.Properties.ContainsKey("apitoken"))
                {
                    User objloginuser = (User)App.Current.Properties["LoginUser"];

                    DALPass dal_Pass = new DALPass();


                    VehicleLotPassPrice objVehicleLotPassPrice = new VehicleLotPassPrice();
                    objVehicleLotPassPrice.VehicleTypeCode      = SelectedVehicle;
                    objVehicleLotPassPrice.LocationParkingLotID = objloginuser.LocationParkingLotID.LocationParkingLotID;
                    var lstVMPass = dal_Pass.GetPassPriceDetails(Convert.ToString(App.Current.Properties["apitoken"]), objVehicleLotPassPrice);
                }
            }
            catch (Exception ex)
            {
                dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "NewPassPage.xaml.cs", "", "LoadPasseTypesAndPriceDetails");
            }
        }