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); }
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); }
public virtual void OpsLogicSelected() { CmsOpsModel.SetToOps(); SetSession(); UpdateView(); }
public virtual void CmsLogicSelected() { SetSession(); CmsOpsModel.SetToCms(); UpdateView(); }