Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 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();
     }
 }
Ejemplo n.º 4
0
 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()));
             }
         }
     }
 }