private void ExpandOrCollapseSelectedItem() { try { if (LotParkingReportList.Count > 0) { if (PreviousSelectedRowItem != null || SelectedRowItem == null) { LotParkingReportList.Where(t => t.Id == PreviousSelectedRowItem.Id).FirstOrDefault().IsVisible = false; LotParkingReportList.Where(t => t.Id == PreviousSelectedRowItem.Id).FirstOrDefault().SelectedImageType = "plus.png"; } LotParkingReportList.Where(t => t.Id == SelectedRowItem.Id).FirstOrDefault().IsVisible = true; } else { SelectedRowItem = null; } PreviousSelectedRowItem = SelectedRowItem; } catch (Exception ex) { throw ex; } }
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; } }