Exemple #1
0
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onFacilitySearchClick(object sender, CommandEventArgs e)
    {
        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // create new activity filter
        filter.ActivityFilter = getActivityFilter(e);
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
Exemple #2
0
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onNewSearchClick(object sender, CommandEventArgs e)
    {
        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // Search for country according to code
        filter.AreaFilter = getAreaFilter(e);

        // go to facility levels page
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onFacilitySearchClick(object sender, CommandEventArgs e)
    {
        string code = e.CommandArgument.ToString().ToUpper();

        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // Change activity filter
        filter.ActivityFilter = getActivityFilter(e);
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
Exemple #4
0
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onFacilitySearchClick(object sender, CommandEventArgs e)
    {
        string code = e.CommandArgument.ToString();

        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // create waste type filter according to command argument
        filter.WasteTypeFilter = LinkSearchBuilder.GetWasteTypeFilter(code);

        // go to facility levels page
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
    /// <summary>
    /// new search on facility click
    /// alternative Server.Transfer("FacilityLevels.aspx");
    /// </summary>
    protected void onNewSearchClick(object sender, CommandEventArgs e)
    {
        string code = e.CommandArgument.ToString().ToUpper();

        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // create new area filter
        filter.AreaFilter = getAreaFilter(e);

        // go to facility search page with new filter
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onFacilitySearchClick(object sender, CommandEventArgs e)
    {
        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // create pollutant filter
        filter.PollutantFilter = getPollutantFilter(e);
        // set medium filter
        filter.MediumFilter = LinkSearchBuilder.GetMediumFilter(false, false, false, true);

        // go to facility levels page
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
Exemple #7
0
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onNewSearchClick(object sender, CommandEventArgs e)
    {
        string code = e.CommandArgument.ToString().ToUpper();

        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        if (!code.Equals("TOTAL_KEY"))
        {
            // create new elements of waste filter
            filter.WasteReceiverFilter           = new WasteReceiverFilter();
            filter.WasteReceiverFilter.CountryID = QueryLayer.ListOfValues.GetCountry(code).LOV_CountryID;
        }

        // go to facility search page with new filter
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
    /// <summary>
    /// new search on facility click
    /// </summary>
    protected void onFacilitySearchClick(object sender, CommandEventArgs e)
    {
        string[] args = e.CommandArgument.ToString().Split('¤');
        if (args == null || args.Length != 2)
        {
            return;                                   // safe check
        }
        string facilityName = args[0];
        string treatment    = args[1].ToUpper().Trim();

        // create facility search filter
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // wastetype
        filter.WasteTypeFilter = new WasteTypeFilter();
        filter.WasteTypeFilter.NonHazardousWaste           = false;
        filter.WasteTypeFilter.HazardousWasteCountry       = false;
        filter.WasteTypeFilter.HazardousWasteTransboundary = true;

        // receiver
        filter.WasteReceiverFilter           = new WasteReceiverFilter();
        filter.WasteReceiverFilter.CountryID = QueryLayer.ListOfValues.GetCountry(CountryCode).LOV_CountryID;

        // location
        filter.FacilityLocationFilter = new FacilityLocationFilter();
        filter.FacilityLocationFilter.FacilityName = facilityName;
        filter.FacilityLocationFilter.CityName     = String.Empty;

        // treatmentSafe check, make sure a treatment is present in order to get result
        bool unspec = treatment.Equals("U"), rec = treatment.Equals("R"), disp = treatment.Equals("D");

        if (!disp && !rec && !unspec)
        {
            // safe check, make sure a treatment is present in order to get result
            filter.WasteTreatmentFilter = LinkSearchBuilder.GetWasteTreatmentFilter(true, true, true);
        }
        else
        {
            filter.WasteTreatmentFilter = LinkSearchBuilder.GetWasteTreatmentFilter(unspec, rec, disp);
        }


        // create new facility search
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }
    /// <summary>
    /// invoke facility search for this row
    /// </summary>
    protected void onFacilitySearchClick(object sender, CommandEventArgs e)
    {
        string arg = e.CommandArgument.ToString();

        string[] codeAndLevel = arg.Split('&');
        if (codeAndLevel.Length < 2)
        {
            return;                          //safe check, must have min two value
        }
        // create facility search filter from activity search criteria
        FacilitySearchFilter filter = FilterConverter.ConvertToFacilitySearchFilter(SearchFilter);

        // create pollutant and medium filter
        filter.PollutantFilter = getPollutantFilter(e);
        filter.MediumFilter    = getMediumFilter(e);

        // go to facility levels page
        LinkSearchRedirecter.ToFacilitySearch(Response, filter);
    }