/// <summary>
        /// 根据条件获取实体集合
        /// </summary>
        /// <param name="pc">pc</param>
        /// <param name="obc">obc</param>
        /// <returns>实体</returns>
        public List <ProductSalesGroupInfoModel> RetrieveMultiple(ParameterCollection pc, OrderByCollection obc)
        {
            List <ProductSalesGroupInfoModel> productsalesgroupinfos = new List <ProductSalesGroupInfoModel>();

            ProductSalesGroupInfoModel productsalesgroupinfo = new ProductSalesGroupInfoModel();
            DataTable dt = DbUtil.Current.RetrieveMultiple(productsalesgroupinfo, pc, obc);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                productsalesgroupinfo = new ProductSalesGroupInfoModel();
                productsalesgroupinfo.ConvertFrom(dt, i);
                productsalesgroupinfos.Add(productsalesgroupinfo);
            }

            return(productsalesgroupinfos);
        }
        /// <summary>
        /// 根据主键获取实体
        /// </summary>
        /// <param name="salegroupid"></param>
        /// <returns>实体</returns>
        public ProductSalesGroupInfoModel Retrieve(string salegroupid)
        {
            ProductSalesGroupInfoModel productsalesgroupinfo = new ProductSalesGroupInfoModel();

            productsalesgroupinfo.SaleGroupId = salegroupid;

            DataTable dt = DbUtil.Current.Retrieve(productsalesgroupinfo);

            if (dt.Rows.Count < 1)
            {
                return(null);
            }

            productsalesgroupinfo.ConvertFrom(dt);

            return(productsalesgroupinfo);
        }