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

            PayPosMachineInfoModel payposmachineinfo = new PayPosMachineInfoModel();
            DataTable dt = DbUtil.Current.RetrieveMultiple(payposmachineinfo, pc, obc);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                payposmachineinfo = new PayPosMachineInfoModel();
                payposmachineinfo.ConvertFrom(dt, i);
                payposmachineinfos.Add(payposmachineinfo);
            }

            return(payposmachineinfos);
        }
        /// <summary>
        /// 根据主键获取实体
        /// </summary>
        /// <param name="posmachineid"></param>
        /// <returns>实体</returns>
        public PayPosMachineInfoModel Retrieve(string posmachineid)
        {
            PayPosMachineInfoModel payposmachineinfo = new PayPosMachineInfoModel();

            payposmachineinfo.PosMachineId = posmachineid;

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

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

            payposmachineinfo.ConvertFrom(dt);

            return(payposmachineinfo);
        }