예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #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()));
             }
         }
     }
 }