Пример #1
0
 public NFCCardPaymentReceiptPagae()
 {
     InitializeComponent();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     dal_Exceptionlog           = new DALExceptionManagment();
     dal_home = new DALHome();
 }
Пример #2
0
 public ActivatePassReciptPage(string generatedPassType, string StationType)
 {
     InitializeComponent();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     dal_Exceptionlog           = new DALExceptionManagment();
     dal_home = new DALHome();
 }
        public int GovernmentVehicleAutoCheckOut()
        {
            int resultcount = 0;
            DALExceptionManagment objExceptionlog = new DALExceptionManagment();

            try
            {
                using (SqlConnection sqlconn_obj = new SqlConnection(SqlHelper.GetDBConnectionString()))
                {
                    using (SqlCommand sqlcmd_obj = new SqlCommand("OPAPP_PROC_UPDATE_VEHICLEAUTOCHECKOUT", sqlconn_obj))
                    {
                        sqlcmd_obj.CommandType = CommandType.StoredProcedure;
                        sqlcmd_obj.Parameters.AddWithValue("@STATUSNAME", "Government");
                        sqlcmd_obj.CommandTimeout = 0;
                        sqlconn_obj.Open();
                        resultcount = sqlcmd_obj.ExecuteNonQuery();
                    }
                }
            }
            catch (Exception ex)
            {
                objExceptionlog.InsertException("WebAPI", ex.Message, "DALVehicleCheckOut", "Proc: " + "OPAPP_PROC_UPDATE_VEHICLEAUTOCHECKOUT", "GovernmentVehicleAutoCheckOut");
                throw;
            }
            return(resultcount);
        }
Пример #4
0
 public MasterDetailHomePage(ParkedVehiclesFilter lstFilters)
 {
     InitializeComponent();
     dal_Exceptionlog = new DALExceptionManagment();
     LoadLoginUserLocationLots();
     try
     {
         if (App.Current.Properties.ContainsKey("LoginUser") && App.Current.Properties.ContainsKey("apitoken"))
         {
             LoadParkedVehicle(lstFilters);
         }
     }
     catch (Exception ex)
     {
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "MonthlyPassCashPaymentPage.xaml.cs", "", "MasterDetailHomePage");
     }
     try
     {
         CheckNFCSupported();
     }
     catch (Exception ex)
     {
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "MonthlyPassCashPaymentPage.xaml.cs", "", "CheckNFCSupported");
         DisplayAlert("Alert", "Unable to proceed,Please contact Admin" + ex.Message, "Ok");
     }
 }
        public NewPassPage(string pass)
        {
            InitializeComponent();
            dal_Exceptionlog = new DALExceptionManagment();
            PassCategory     = pass;
            if (PassCategory == "New Pass")
            {
                PassTypePageHeading.Text = "NEW PASS";
                GetAllVehicleType().Wait();
            }
            else if (PassCategory == "ReNew Pass")
            {
                PassTypePageHeading.Text   = "CHOOSE PASS";
                PassTypePageHeading.Margin = new Thickness(0, 0, 100, 0);

                if (App.Current.Properties.ContainsKey("ReNewPassCustomerVehicle"))
                {
                    objReNewVehicle = (CustomerVehiclePass)App.Current.Properties["ReNewPassCustomerVehicle"];
                    if (objReNewVehicle != null && objReNewVehicle.CustomerVehiclePassID != 0)
                    {
                        GetSelectedVehicleType(objReNewVehicle.CustomerVehicleID.VehicleTypeID.VehicleTypeCode);
                        LoadPasseTypesAndPriceDetails(objReNewVehicle.CustomerVehicleID.VehicleTypeID.VehicleTypeCode);
                    }
                }
            }
        }
Пример #6
0
 public DayPassPaymentConfirmationPage()
 {
     InitializeComponent();
     stLayoutDailyPassGeneratePassReceipt.IsVisible = false;
     dal_CustomerPass = new DALPass();
     dal_Exceptionlog = new DALExceptionManagment();
 }
 string[] receiptlines = new string[16]; // Receipt Lines
 public CheckOutPaymentConfirmationPage()
 {
     InitializeComponent();
     dal_Exceptionlog           = new DALExceptionManagment();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     stLayoutPaymentConfirmCheckOut.IsVisible = false;
 }
Пример #8
0
 public DailyPass()
 {
     InitializeComponent();
     dal_Exceptionlog = new DALExceptionManagment();
     dal_Pass         = new DALPass();
     objCustomerPass  = new CustomerVehiclePass();
 }
 public WeeklyPassPage()
 {
     InitializeComponent();
     dal_Exceptionlog = new DALExceptionManagment();
     dal_Pass         = new DALPass();
     objCustomerPass  = new CustomerVehiclePass();
     dal_DALCheckIn   = new DALCheckIn();
 }
Пример #10
0
 public LotOccupancyPage()
 {
     InitializeComponent();
     objReportUser    = new User();
     dal_Exceptionlog = new DALExceptionManagment();
     lstlots          = new List <VMLocationLots>();
     LoadLoginUserLocationLots();
 }
Пример #11
0
 public ActivatePassReciptPage(CustomerVehiclePass objReceiptDetails)
 {
     InitializeComponent();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     dal_Exceptionlog           = new DALExceptionManagment();
     dal_home = new DALHome();
     LoadCustomerPassPaymentDetails(objReceiptDetails);
 }
 public ConfirmationPage(VehicleCheckIn obj)
 {
     InitializeComponent();
     dal_DALCheckIn             = new DALCheckIn();
     dal_Exceptionlog           = new DALExceptionManagment();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     LoadVehicleChekInDetails(obj);
     printerName = ObjblueToothDevicePrinting.GetBlueToothDevices();
 }
Пример #13
0
 public RecentCheckOutDetailsPage(int CustomerParkingSlotID)
 {
     InitializeComponent();
     dal_Exceptionlog  = new DALExceptionManagment();
     dal_Menubar       = new DALMenubar();
     lstVehicle        = new List <CustomerVehicle>();
     lstVehicleHistory = new List <CustomerParkingSlot>();
     GetVehicleDeatils(CustomerParkingSlotID);
 }
        public ReceiptPage(CustomerParkingSlot objReceipt)
        {
            string vehicleTypeName = string.Empty;

            dal_Exceptionlog = new DALExceptionManagment();
            InitializeComponent();
            ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
            //LoadReceiptDetails(objReceipt);
        }
 string[] receiptlines = new string[17]; // Receipt Lines
 public HistoryPage()
 {
     InitializeComponent();
     dal_Exceptionlog           = new DALExceptionManagment();
     dal_Menubar                = new DALMenubar();
     lstVehicle                 = new List <CustomerVehicle>();
     lstVehicleHistory          = new List <CustomerParkingSlot>();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
 }
 public MonthlyPassPage(string monthlyPassStationType)
 {
     InitializeComponent();
     dal_Exceptionlog = new DALExceptionManagment();
     dal_Pass         = new DALPass();
     dal_DALCheckIn   = new DALCheckIn();
     slAllStationMessage.IsVisible = false;
     objCustomerPass = new CustomerVehiclePass();
 }
 public ValidatePassPage()
 {
     InitializeComponent();
     imageOperatorProfile.IsVisible = false;
     slValidateReceipt.IsVisible    = false;
     ObjblueToothDevicePrinting     = new BlueToothDevicePrinting();
     objResultCustomerVehiclePass   = new CustomerVehiclePass();
     dal_Exceptionlog = new DALExceptionManagment();
     GetAllPassedVehicles();
 }
 public RecentCheckOuts()
 {
     InitializeComponent();
     dal_Exceptionlog           = new DALExceptionManagment();
     lstlots                    = new List <VMLocationLots>();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     objFilter                  = new RecentCheckOutFilter();
     LoadCheckOutPickerDays();
     LoadLoginUserLocationLots();
 }
 public ViolationVehicleInformation(int CustomerParkingSlotID)
 {
     InitializeComponent();
     dal_Home                 = new DALHome();
     dal_violation            = new DALViolationandClamp();
     dal_Exceptionlog         = new DALExceptionManagment();
     slFOC.IsVisible          = false;
     imageViolation.IsVisible = false;
     GetViolationVehcileInformation(CustomerParkingSlotID);
 }
 public OverstayVehicleInformation()
 {
     InitializeComponent();
     slClampVehicle.IsVisible = false;
     slFOC.IsVisible          = false;
     BtnCheckOut.IsVisible    = false;
     dal_Exceptionlog         = new DALExceptionManagment();
     objHome            = new DALHome();
     dal_ViolationClamp = new DALViolationandClamp();
     lstReasons         = new List <ViolationReason>();
 }
 public FiltersPage()
 {
     InitializeComponent();
     dal_Exceptionlog    = new DALExceptionManagment();
     objFilter           = new ParkedVehiclesFilter();
     objSelectedAppTypes = new List <ApplicationType>();
     objSelectedStatus   = new List <Status>();
     dal_Home            = new DALHome();
     GetAllApplicationTypes();
     GetAllStatus();
     GetAllVehicleType();
 }
Пример #22
0
 public PassCheckInVehicleInformation(int CustomerParkingLotID)
 {
     InitializeComponent();
     objHome = new DALHome();
     slClampReason.IsVisible    = false;
     slFOC.IsVisible            = false;
     dal_ViolationClamp         = new DALViolationandClamp();
     dal_Exceptionlog           = new DALExceptionManagment();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     LoadGetViolationReasons();
     LoadParkedVehicleDetails(CustomerParkingLotID);
 }
Пример #23
0
        string[] receiptlines = new string[17]; // Receipt Lines

        public PassCheckInVehicleInformation()
        {
            InitializeComponent();
            objHome = new DALHome();
            slClampReason.IsVisible = false;
            slFOC.IsVisible         = false;
            slCashAndEpay.IsVisible = false;
            dal_ViolationClamp      = new DALViolationandClamp();
            dal_Exceptionlog        = new DALExceptionManagment();
            lstReasons = new List <ViolationReason>();
            ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
        }
Пример #24
0
        public ChangePasswordPage()
        {
            InitializeComponent();
            entryCurrentPassword.TextColor = Color.Red;
            entryNewPassword.TextColor     = Color.Red;
            entryConfirmPassword.TextColor = Color.Red;

            dal_Exceptionlog = new DALExceptionManagment();
            if (App.Current.Properties.ContainsKey("LoginUser") && App.Current.Properties.ContainsKey("apitoken"))
            {
                objloginuser     = (User)App.Current.Properties["LoginUser"];
                entryUserID.Text = objloginuser.UserCode;
            }
        }
Пример #25
0
        public ReNewPassPage()
        {
            InitializeComponent();

            lstCustomerVehicle           = new List <CustomerVehicle>();
            objResultCustomerVehiclePass = new CustomerVehiclePass();
            dal_DALCheckIn   = new DALCheckIn();
            dal_Exceptionlog = new DALExceptionManagment();
            if (App.Current.Properties.ContainsKey("ReNewPassCustomerVehicle"))
            {
                App.Current.Properties.Remove("ReNewPassCustomerVehicle");
            }
            GetAllPassedVehicles();
            BtnChoosePass.IsEnabled = false;
        }
Пример #26
0
 public LotViolationTestPage()
 {
     InitializeComponent();
     ObjblueToothDevicePrinting = new BlueToothDevicePrinting();
     dal_Exceptionlog           = new DALExceptionManagment();
     dal_ViolationClamp         = new DALViolationandClamp();
     dal_DALCheckIn             = new DALCheckIn();
     lstparkingbay                  = new List <ParkingBay>();
     btnCheckIn.IsVisible           = false;
     checkBoxClampVehicle.IsChecked = true;
     chkWarning.IsVisible           = true;
     chkWarning.IsChecked           = true;
     LoadLotVehicleType();
     LoadLocationBayNumbers();
 }
Пример #27
0
        public CustomerVehiclePass CreateMultiStationCustomerPass(string accessToken, VMMultiStationCustomerVehiclePass objInsertPass)
        {
            dal_DALExceptionManagment = new DALExceptionManagment();

            CustomerVehiclePass objCustomerVehiclePass = null;

            try
            {
                string baseUrl = Convert.ToString(App.Current.Properties["BaseURL"]);
                using (var client = new HttpClient())
                {
                    client.BaseAddress = new Uri(baseUrl);
                    client.DefaultRequestHeaders.Accept.Clear();
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    // Add the Authorization header with the AccessToken.
                    client.DefaultRequestHeaders.Add("Authorization", "bearer  " + accessToken);
                    // create the URL string.
                    string url = "api/InstaOperator/postSaveMultiStationCustomerVehiclePass";
                    // make the request

                    var json    = JsonConvert.SerializeObject(objInsertPass);
                    var content = new StringContent(json, Encoding.UTF8, "application/json");
                    HttpResponseMessage response = client.PostAsync(url, content).Result;
                    if (response.IsSuccessStatusCode)
                    {
                        string jsonString = response.Content.ReadAsStringAsync().Result;
                        if (jsonString != null)
                        {
                            APIResponse apiResult = JsonConvert.DeserializeObject <APIResponse>(jsonString);

                            if (apiResult.Result)
                            {
                                List <CustomerVehiclePass> resultobj = JsonConvert.DeserializeObject <List <CustomerVehiclePass> >(Convert.ToString(apiResult.Object));
                                if (resultobj.Count > 0)
                                {
                                    objCustomerVehiclePass = resultobj[0];
                                }
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                dal_DALExceptionManagment.InsertException(accessToken, "OperatarAPP", ex.Message, "DALPass", "", "CreateCustomerPass");
            }
            return(objCustomerVehiclePass);
        }
Пример #28
0
 public MasterDetailHomePage()
 {
     try
     {
         InitializeComponent();
         dal_Exceptionlog = new DALExceptionManagment();
         LoadLoginUserLocationLots();
         Device.StartTimer(TimeSpan.FromMinutes(5), () =>
         {
             LoadParkedVehicle(null);
             LstVWParkingVehicle.IsRefreshing = false;
             return(true);
         });
     }
     catch (Exception ex)
     {
     }
 }
 public ActivatePassPage()
 {
     InitializeComponent();
     slContinue.IsVisible             = false;
     stlayoutNFCCardPayment.IsVisible = false;
     slNFCBarCodeSection.IsVisible    = false;
     dal_Pass         = new DALPass();
     dal_Exceptionlog = new DALExceptionManagment();
     GetAllPassedVehicles();
     try
     {
         CheckNFCSupported();
     }
     catch (Exception ex)
     {
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "ActivatePassPage.xaml.cs", "", "ActivatePassPage()");
         DisplayAlert("Alert", "Unable to proceed,Please contact Admin" + ex.Message, "Ok");
     }
 }
Пример #30
0
 public NFCCardCashPaymentPage(CustomerVehiclePass objNewNFC)
 {
     InitializeComponent();
     dal_CustomerPass          = new DALPass();
     dal_Exceptionlog          = new DALExceptionManagment();
     stLayoutNFCCard.IsVisible = false;
     try
     {
         objCustomerPassNewNFC      = objNewNFC;
         ImgVehicleType.Source      = objCustomerPassNewNFC.CustomerVehicleID.VehicleTypeID.VehicleIcon;
         labelVehicleRegNumber.Text = objCustomerPassNewNFC.CustomerVehicleID.RegistrationNumber;
         labelParkingLocation.Text  = objCustomerPassNewNFC.CreatedBy.LocationParkingLotID.LocationID.LocationName + "-" + objCustomerPassNewNFC.PassPriceID.StationAccess;
         labelNFCCardAmount.Text    = objCustomerPassNewNFC.PassPriceID.CardPrice.ToString("N2");
     }
     catch (Exception ex)
     {
         dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "NFCCardCashPaymentPage.xaml.cs", "", "NFCCardCashPaymentPage");
     }
 }