public virtual void CountrySelected()
 {
     CmsOpsModel.CountryFilterModel.SetFeedback();
     CarCascadeModel.SuperSelected(CmsOpsModel.CountryFilterModel.SelectedValue);
     CmsOpsModel.GeneralThreeFilterModel.SuperSelected(CmsOpsModel.CountryFilterModel.SelectedValue);
     SetSession();
     UpdateView();
 }
Esempio n. 2
0
        protected override void processBalanceClicked(string s, bool countryClicked = false, bool sessionOnly = false)
        {
            if (CmsOpsModel.CountryFilterModel.SelectedIndex == 0)
            {
                CmsOpsModel.CountryFilterModel.SelectedValue      = s;
                CmsOpsModel.CountryFilterModel.FeedbackLabel.Text = s;
                CarCascadeModel.SuperSelected(s);
                CmsOpsModel.GeneralThreeFilterModel.SuperSelected(s);
            }
            else if (CarCascadeModel.TopModel.SelectedIndex == 0)
            {
                CarCascadeModel.TopModel.SelectedValue      = s;
                CarCascadeModel.TopModel.FeedbackLabel.Text = s;
                CarCascadeModel.MiddleModel.bind(CmsOpsModel.CountryFilterModel.SelectedValue, s);
            }
            else if (CarCascadeModel.MiddleModel.SelectedIndex == 0)
            {
                CarCascadeModel.MiddleModel.SelectedValue      = s;
                CarCascadeModel.MiddleModel.FeedbackLabel.Text = s;
                CarCascadeModel.BottomModel.bind(CmsOpsModel.CountryFilterModel.SelectedValue,
                                                 CarCascadeModel.TopModel.SelectedValue, s);
            }
            else if (CarCascadeModel.BottomModel.SelectedIndex == 0)
            {
                //CarCascadeModel.BottomModel.SelectedValue = s;
                //CarCascadeModel.BottomModel.FeedbackLabel.Text = s;
                //CarCascadeModel.BottomModel.bind(CmsOpsModel.CountryFilterModel.SelectedValue
                //    , CarCascadeModel.TopModel.SelectedValue, CarCascadeModel.MiddleModel.SelectedValue, s);
            }


            //if (CmsOpsModel.CountryFilterModel.SelectedIndex == 0 && CarCascadeModel.TopModel.SelectedIndex == 0)
            //{
            //    CarCascadeModel.TopModel.bind(CmsOpsModel.CountryFilterModel.SelectedValue);
            //}
            if (!sessionOnly)
            {
                UpdateView();
            }


            SetSession();
        }