/// <summary> /// 判断记录是否符合时间范围 /// </summary> /// <param name="_dtime"></param> /// <param name="_conditon"></param> private bool AddRecordByTime(DateTime _dtime, ListFilterCondition _conditon) { bool _IsBolMerg = false; if (_dtime >= _conditon.StartTime && _dtime <= _conditon.EndTime) { _IsBolMerg = true; } return _IsBolMerg; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _conditon) { List<ProcessLoggingInfo> list = (List<ProcessLoggingInfo>)_List; List<ProcessLoggingInfo> returnlist = new List<ProcessLoggingInfo>(); foreach (ProcessLoggingInfo _item in list) { if (AddRecordByTime(_item.ProcessDate.Value, _conditon)) { if (_item.ProcessContentInquired.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.ProcessCustomerUnit.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.ProcessHandlingSuggestion.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.Processlinkman.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.ProcessProductName.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.ProcessPurchasingDate.Value.ToString("yyyy-MM-dd HH:mm:ss").Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.ProcessServiceUser.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.ProcessStandard.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.Processtel.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } } } return returnlist; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _conditon) { List<CunChuInfo> list = (List<CunChuInfo>)_List; List<CunChuInfo> returnlist = new List<CunChuInfo>(); foreach (CunChuInfo _item in list) { if (AddRecordByTime(_item.s_date.Value, _conditon)) { if (_item.s_cqcs.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_csmc.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_jlr.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_sd.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_sded.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_sywdfw.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_syxdsdfw.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_wd.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.s_wded.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } } } return returnlist; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _Condition) { List<ChuKuInfo> list = (List<ChuKuInfo>)_List; List<ChuKuInfo> returnlist = new List<ChuKuInfo>(); foreach (ChuKuInfo _item in list) { if (AddRecordByTime(_item.y_date.Value, _Condition)) { if (_item.y_cpdm.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_cpzczh.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_dw.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_fhrqz.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_ggxh.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_ghdw.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_mjph.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_pm.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_sccj.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_scph.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_yxq.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_zgy.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } if (_item.y_zlqk.Contains(_Condition.FilterText)) { returnlist.Add(_item); continue; } } } return returnlist; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _conditon) { List<BuLiangShiJianInfo> list = (List<BuLiangShiJianInfo>)_List; List<BuLiangShiJianInfo> returnlist = new List<BuLiangShiJianInfo>(); foreach (BuLiangShiJianInfo _gjinfo in list) { if (AddRecordByTime(_gjinfo.b_bgsj.Value, _conditon)) { if (_gjinfo.b_bgr.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_cpdm.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_fzr.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_fzrqz.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_ggxh.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_qyzgfzryj.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_sccj.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_scrq.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_sydw.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_sydwyj.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_ylqxmc.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_zgclqk.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_zgjbr.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.b_zlsgqk.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } } } return returnlist; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _condition) { List<KPS.Model.BuHeGePinJiLuInfo> oldlist = (List<KPS.Model.BuHeGePinJiLuInfo>)_List; List<KPS.Model.BuHeGePinJiLuInfo> _returnlist = new List<Model.BuHeGePinJiLuInfo>(); if (oldlist != null && oldlist.Count > 0) { foreach (KPS.Model.BuHeGePinJiLuInfo _item in oldlist) { if (AddRecordByTime(_item.y_date.Value, _condition)) { if (_item.y_cpdm.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_cpzczh.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_dw.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_fhrqz.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_ggxh.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_ghdw.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_mjph.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_pm.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_sccj.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_scph.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_yxq.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_zgy.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } if (_item.y_zlqk.Contains(_condition.FilterText)) { _returnlist.Add(_item); continue; } } } } return _returnlist; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _conditon) { List<GouJinInfo> list = (List<GouJinInfo>)_List; List<GouJinInfo> returnlist=new List<GouJinInfo>(); foreach (GouJinInfo _gjinfo in list) { if (AddRecordByTime(_gjinfo.p_date.Value, _conditon)) { if (_gjinfo.p_clmc.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_cpmc.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_date.Value.ToString("yyyy-MM-dd HH:mm:ss").Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_dw.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_ggxh.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_gys.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_jsr.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_mjph.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_ph.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_zczh.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } if (_gjinfo.p_zzs.Contains(_conditon.FilterText)) { returnlist.Add(_gjinfo); continue; } } } return returnlist; }
public System.Collections.ICollection FilterList(System.Collections.ICollection _List, ListFilterCondition _conditon) { List<XiaoShouInfo> list = (List<XiaoShouInfo>)_List; List<XiaoShouInfo> returnlist = new List<XiaoShouInfo>(); foreach (XiaoShouInfo _item in list) { if (AddRecordByTime(_item.p_date.Value, _conditon)) { if (_item.p_clmc.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_cpmc.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_dw.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_ggxh.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_gys.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_jsr.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_mjph.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_ph.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_zczh.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } if (_item.p_zzs.Contains(_conditon.FilterText)) { returnlist.Add(_item); continue; } } } return returnlist; }