示例#1
0
        public static WasteTransferSearchFilter ConvertToWasteTransferSearchFilter(AreaOverviewSearchFilter filter)
        {
            WasteTransferSearchFilter converted = new WasteTransferSearchFilter();

            converted.AreaFilter = clone(filter.AreaFilter) as AreaFilter;
            converted.YearFilter = clone(filter.YearFilter) as YearFilter;
            return(converted);
        }
示例#2
0
        public static WasteTransferSearchFilter ConvertToWasteTransferSearchFilter(IndustrialActivitySearchFilter filter)
        {
            WasteTransferSearchFilter converted = new WasteTransferSearchFilter();

            converted.AreaFilter     = clone(filter.AreaFilter) as AreaFilter;
            converted.YearFilter     = clone(filter.YearFilter) as YearFilter;
            converted.ActivityFilter = clone(filter.ActivityFilter) as ActivityFilter;
            return(converted);
        }
示例#3
0
        public static WasteTransferSearchFilter ConvertToWasteTransferSearchFilter(WasteTransferTimeSeriesFilter filter)
        {
            WasteTransferSearchFilter converted = new WasteTransferSearchFilter();

            converted.ActivityFilter  = clone(filter.ActivityFilter) as ActivityFilter;
            converted.AreaFilter      = clone(filter.AreaFilter) as AreaFilter;
            converted.WasteTypeFilter = clone(filter.WasteTypeFilter) as WasteTypeFilter;
            converted.YearFilter      = null;

            return(converted);
        }
示例#4
0
        public static FacilitySearchFilter ConvertToFacilitySearchFilter(WasteTransferSearchFilter filter)
        {
            FacilitySearchFilter converted = new FacilitySearchFilter();

            converted.AreaFilter           = clone(filter.AreaFilter) as AreaFilter;
            converted.YearFilter           = clone(filter.YearFilter) as YearFilter;
            converted.ActivityFilter       = clone(filter.ActivityFilter) as ActivityFilter;
            converted.WasteTypeFilter      = clone(filter.WasteTypeFilter) as WasteTypeFilter;
            converted.WasteTreatmentFilter = clone(filter.WasteTreatmentFilter) as WasteTreatmentFilter;
            converted.WasteReceiverFilter  = null;

            return(converted);
        }
示例#5
0
        /// <summary>
        /// Creates a new object that is a deep copy of the current instance.
        /// </summary>
        public object Clone()
        {
            WasteTransferSearchFilter clone = this.MemberwiseClone() as WasteTransferSearchFilter;

            clone.AreaFilter = this.AreaFilter != null?this.AreaFilter.Clone() as AreaFilter : null;

            clone.YearFilter = this.YearFilter != null?this.YearFilter.Clone() as YearFilter : null;

            clone.ActivityFilter = this.ActivityFilter != null?this.ActivityFilter.Clone() as ActivityFilter : null;

            clone.WasteTypeFilter = this.WasteTypeFilter != null?this.WasteTypeFilter.Clone() as WasteTypeFilter : null;

            clone.WasteTreatmentFilter = this.WasteTreatmentFilter != null ? this.WasteTreatmentFilter as WasteTreatmentFilter : null;
            return(clone);
        }