Exemplo n.º 1
0
 public void Initialise(System.Web.UI.Page p)
 {
     _page = p;
     if (p.IsPostBack)
     {
         return;
     }
     if (_page.Session["IFleetOverviewController"] != null)
     {
         repopulateFilters();
     }
     else
     {
         ThreeCascadeModel.bind();
         OwnCountryModel.bind();
         CarSegmentModel.clear();
         CarClassModel.clear();
         CarGroupModel.clear();
         VehiclePredicamentModel.bind();
         VehiclePredicamentModel.SelectedIndex = 3;
         if (_page.Session["IForeignNonRevenueController"] != null)
         {
             fromNonRev();
         }
     }
     OperstatModel.bind();
     MoveTypeModel.bind();
     NonRevDaysModel.FirstItem = "";
     NonRevDaysModel.bind();
     PagerMaxModel.bind();
     UpdateView();
 }
Exemplo n.º 2
0
 void setFeedback()
 {
     ThreeCascadeModel.DueCountryModel.SetFeedback();
     ThreeCascadeModel.PoolModel.SetFeedback();
     ThreeCascadeModel.LocationGroupModel.SetFeedback();
     OwnCountryModel.SetFeedback();
     CarSegmentModel.SetFeedback();
     CarClassModel.SetFeedback();
     CarGroupModel.SetFeedback();
     VehiclePredicamentModel.SetFeedback();
 }
Exemplo n.º 3
0
        private void repopulateFilters()
        {
            IFleetOverviewController foc = (IFleetOverviewController)_page.Session["IFleetOverviewController"];

            ThreeCascadeModel.rebind(foc.ThreeCascadeModel.DueCountryModel.SelectedIndex, foc.ThreeCascadeModel.PoolModel.SelectedIndex, foc.ThreeCascadeModel.LocationGroupModel.SelectedIndex, foc.ThreeCascadeModel.DueCountryModel.SelectedValue, foc.ThreeCascadeModel.PoolModel.SelectedValue);
            OwnCountryModel.rebind(foc.OwnCountryModel.SelectedIndex);
            CarSegmentModel.rebind(foc.CarSegmentModel.SelectedIndex, OwnCountryModel.SelectedValue);
            CarClassModel.rebind(foc.CarClassModel.SelectedIndex, OwnCountryModel.SelectedValue, CarSegmentModel.SelectedValue);
            CarGroupModel.rebind(foc.CarClassModel.SelectedIndex, OwnCountryModel.SelectedValue, CarSegmentModel.SelectedValue, CarClassModel.SelectedValue);
            VehiclePredicamentModel.rebind(foc.VehiclePredicamentModel.SelectedIndex);
            //_page.Session["IFleetOverviewController"] = null;
        }
Exemplo n.º 4
0
 void setFeedback()
 {
     OperstatModel.SetFeedback();
     MoveTypeModel.SetFeedback();
     VehiclePredicamentModel.SetFeedback();
     NonRevDaysModel.SetFeedback();
     ThreeCascadeModel.DueCountryModel.SetFeedback();
     ThreeCascadeModel.PoolModel.SetFeedback();
     ThreeCascadeModel.LocationGroupModel.SetFeedback();
     OwnCountryModel.SetFeedback();
     CarSegmentModel.SetFeedback();
     CarClassModel.SetFeedback();
     CarGroupModel.SetFeedback();
 }
Exemplo n.º 5
0
 public void OwnCountrySelected()
 {
     if (OwnCountryModel.SelectedIndex <= 0)
     {
         CarSegmentModel.clear();
     }
     else
     {
         CarSegmentModel.bind(OwnCountryModel.SelectedValue);
     }
     CarClassModel.clear();
     CarGroupModel.clear();
     UpdateView();
 }
Exemplo n.º 6
0
 public void Initialise(System.Web.UI.Page p)
 {
     _page = p;
     if (p.IsPostBack)
     {
         checkPostback(); return;
     }
     ThreeCascadeModel.bind();
     OwnCountryModel.bind();
     CarSegmentModel.clear();
     CarClassModel.clear();
     CarGroupModel.clear();
     VehiclePredicamentModel.bind();
     VehiclePredicamentModel.SelectedIndex = 3;
     UpdateView();
 }