public OrderContractPrivilegeFilter(IOrderContractPrivilegeFilter sourceFilter)
 {
     if (sourceFilter != null)
     {
         this.ETAFrom                    = sourceFilter.ETAFrom;
         this.ETATo                      = sourceFilter.ETATo;
         this.OrderCreateTimeFrom        = sourceFilter.OrderCreateTimeFrom;
         this.OrderCreateTimeTo          = sourceFilter.OrderCreateTimeTo;
         this.ProductFullNameFilterValue = sourceFilter.ProductFullNameFilterValue;
         this.ProductKeys                = sourceFilter.ProductKeys;
         this.SupplierId                 = sourceFilter.SupplierId;
         this.UserName                   = sourceFilter.UserName;
     }
 }
 /// <summary>
 /// 获取订单列表,根据IOrderContractPrivilegeFilter过滤。
 /// 只返回IQueryable对象,外面业务层决定分页逻辑
 /// </summary>
 /// <param name="db"></param>
 /// <param name="filter"></param>
 /// <param name="ProductsTotal">商品数量小计</param>
 /// <param name="PaymentTotal">采购额小计</param>
 /// <returns></returns>
 public IQueryable <OrderContract> GetIndexListOrderContract(IOwinContext context,
                                                             ExtendedIdentityDbContext db, IOrderContractPrivilegeFilter filter,
                                                             out double ProductsTotal, out double PaymentTotal)
 {
     return(m_orderContractImpl.GetIndexListOrderContract(context,
                                                          db, filter, out ProductsTotal, out PaymentTotal));
 }