public void InitializeFilterDropDownLists(WACFilterControl fc, List <WACParameter> parms)
 {
     foreach (string ddlID in DDLBinders.Keys)
     {
         DropDownList  ddl   = fc.FindControl(ddlID) as DropDownList;
         DDLDataObject ddlDO = DDLBinders[ddlID];
         if (ddl != null && ddlDO != null)
         {
             ddlDO.DataBindDDL(ddl, parms, null);
         }
     }
     //ContentStateChanged(fc, WACFilterControl.FilterState.Initialized);
 }
Beispiel #2
0
        private void ResetFilterDDLs(ServiceRequest _request)
        {
            WACFilterViewModel fvm = null;
            WACFilterControl   fc  = getFilterFromRequest(_request);

            if (fc != null)
            {
                fvm = GetViewModelForControl(fc) as WACFilterViewModel;
            }
            if (fvm != null)
            {
                fvm.ResetReloadFilterDropDownLists(fc, _request.ParmList);
            }
        }
Beispiel #3
0
        private WACFilterControl getFilterFromRequest(ServiceRequest _request)
        {
            WACFilterControl filter = null;

            if (IsFilterControl(_request.Requestor))
            {
                filter = (WACFilterControl)_request.Requestor;
            }
            else
            {
                filter = (WACFilterControl)_request.ServiceFor;
            }
            return(filter);
        }
 public void ResetReloadFilterDropDownLists(WACFilterControl fc, List <WACParameter> parms)
 {
     foreach (string ddlID in DDLBinders.Keys)
     {
         DropDownList  ddl   = fc.FindControl(ddlID) as DropDownList;
         DDLDataObject ddlDO = DDLBinders[ddlID];
         if (ddl != null && ddlDO != null)
         {
             ddl.Items.Clear();
             ddlDO.DataBindDDL(ddl, parms, null);
         }
     }
     ContentStateChanged(fc, WACFilterControl.FilterState.Reset);
 }
Beispiel #5
0
    protected void WACPR_TaxParcelFilter_FilterContentsChanged(object sender, WAC_Event.UserControlResultEventArgs e)
    {
        WACFilterControl filter = (WACFilterControl)sender;

        base.ContainedFilterStateChanged(this, filter, WACPR_TaxParcelGrid, WACPR_TaxParcelForm, e.Parms);
    }