Пример #1
0
 public virtual void Initialise(Page p)
 {
     _page = p;
     loadCSS(p);
     if (p.IsPostBack)
     {
         return;
     }
     JavascriptModel.SetServiceReference(p);
     JavascriptModel.SetJavaScriptService(p);
     CmsOpsModel.Initialise(p);
     CarCascadeModel.bind(CmsOpsModel.CountryFilterModel.SelectedValue);
 }
Пример #2
0
 protected bool GetSession()
 {
     if (_page.Session[POOLINGFILTERS] == null)
     {
         return(false);
     }
     int[] x = (int[])_page.Session[POOLINGFILTERS];
     if (Convert.ToBoolean(x[4]))
     {
         CmsOpsModel.SetToCms();
     }
     else
     {
         CmsOpsModel.SetToOps();
     }
     CmsOpsModel.CountryFilterModel.rebind(x[0]);
     CmsOpsModel.GeneralThreeFilterModel.rebind(x[1], x[2], x[3], CmsOpsModel.CountryFilterModel.SelectedValue);
     CarCascadeModel.CascadeRebind(x[5], x[6], x[7], CmsOpsModel.CountryFilterModel.SelectedValue);
     return(true);
 }
Пример #3
0
 public virtual void OpsLogicSelected()
 {
     CmsOpsModel.SetToOps();
     SetSession();
     UpdateView();
 }
Пример #4
0
 public virtual void CmsLogicSelected()
 {
     SetSession();
     CmsOpsModel.SetToCms();
     UpdateView();
 }