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

            CustomerInfoApprovalModel customerinfoapproval = new CustomerInfoApprovalModel();
            DataTable dt = DbUtil.Current.RetrieveMultiple(customerinfoapproval, pc, obc);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                customerinfoapproval = new CustomerInfoApprovalModel();
                customerinfoapproval.ConvertFrom(dt, i);
                customerinfoapprovals.Add(customerinfoapproval);
            }

            return(customerinfoapprovals);
        }
        /// <summary>
        /// 根据主键获取实体
        /// </summary>
        /// <param name="approvalid"></param>
        /// <returns>实体</returns>
        public CustomerInfoApprovalModel Retrieve(string approvalid)
        {
            CustomerInfoApprovalModel customerinfoapproval = new CustomerInfoApprovalModel();

            customerinfoapproval.ApprovalId = approvalid;

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

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

            customerinfoapproval.ConvertFrom(dt);

            return(customerinfoapproval);
        }