protected void OWRLogDataBind() { using (var dc = new Mars.App.Classes.DAL.FleetDemand.DataAccess()) { rptOWRLog.DataSource = dc.GetOneWayLog(countryKey: null , cmsPoolKey: null , locationGroupKey: null , locationKey: lcOWR.LocationKey , dayKey: null ); rptOWRLog.DataBind(); } }
protected void PSDLogDataBind() { using (var dc = new Mars.App.Classes.DAL.FleetDemand.DataAccess()) { rptPSDLog.DataSource = dc.GetPriceablePercentLog(countryKey: null , cmsPoolKey: null , locationGroupKey: null , locationKey: lcPSD.LocationKey , carClassKey: lcPSD.CarClassKey , reportDateKey: null ); rptPSDLog.DataBind(); } }
protected void RPDLogDataBind() { using (var dc = new Mars.App.Classes.DAL.FleetDemand.DataAccess()) { rptRPDLog.DataSource = dc.GetAvgRpdLog(countryKey: null , cmsPoolKey: null , locationGroupKey: null , locationKey: lcRPD.LocationKey , carClassKey: lcRPD.CarClassKey , reportDateKey: null //reportDateKey ); rptRPDLog.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ddlOWRDayOfWeek.Items.Add(new ListItem("Select", "0")); ddlCMSDayOfWeek.Items.Add(new ListItem("Select", "0")); using (var dc = new Mars.App.Classes.DAL.FleetDemand.DataAccess()) { foreach (var day in dc.GetDimDays()) { ddlOWRDayOfWeek.Items.Add(new ListItem(day.DayOfWeek, day.DayKey.ToString())); ddlCMSDayOfWeek.Items.Add(new ListItem(day.DayOfWeek, day.DayKey.ToString())); } } } }