public VMReportSummary() { VMLocationLotParkingReportID = new VMLocationLotParkingReport(); VMLocationLotPassReportID = new VMLocationLotPassReport(); VMLocationLotViolationsID = new VMLocationLotViolations(); }
public LocationLotParkingReport(string apitoken, User objLoginUser) { SelectedRowItem = null; LotParkingReportList = null; try { DALReport dal_Report = new DALReport(); VMReportSummary result = dal_Report.GetLocationLotReport(apitoken, objLoginUser); var VMLocationLotParkingReportID = result.VMLocationLotParkingReportID; #region Parking Report if (VMLocationLotParkingReportID != null) { LotTotalCheckIn = VMLocationLotParkingReportID.LotTotalCheckIn; LotTotalCheckOut = VMLocationLotParkingReportID.LotTotalCheckOut; LotTotalFOC = VMLocationLotParkingReportID.LotTotalFOC; LotRevenueCash = VMLocationLotParkingReportID.LotRevenueCash; LotRevenueEpay = VMLocationLotParkingReportID.LotRevenueEpay; LotParkingReportList = VMLocationLotParkingReportID.LotParkingReportList; } #endregion #region Pass Report try { objVMVehiclePassReport = result.VMLocationLotPassReportID; } catch (Exception ex) { throw ex; } #endregion #region Violation Report try { objVMClampedVehiclesSummary = result.VMLocationLotViolationsID; } catch (Exception ex) { throw ex; } #endregion try { #region Total Cash and Epay objStationVehicleReport = new StationVehicles(); objStationVehicleReport.StationVehicleCash = result.Cash; objStationVehicleReport.StationVehicleEPay = result.EPay; } catch (Exception ex) { throw ex; } #endregion } catch (Exception ex) { throw ex; } }