Example #1
0
        /// <summary>
        /// 查询估价人数
        /// </summary>
        /// <returns></returns>
        public GJCountTable GetCount()
        {
            string sql  = "select GJCount from GJCountTable where GJCountId=1";
            var    list = ZHQDBhelper.GetList <GJCountTable>(sql).FirstOrDefault();

            return(list);
        }
Example #2
0
        /// <summary>
        /// 修改估价人数
        /// </summary>
        /// <returns></returns>
        public int UpdCount()
        {
            string sql = "update GJCountTable set GJCount=GJCount+1 where GJCountId=1";
            int    row = ZHQDBhelper.CMD(sql);

            return(row);
        }
Example #3
0
        /// <summary>
        /// 查询车辆款式
        /// </summary>
        /// <returns></returns>
        public List <ZHQKS> GetKS()
        {
            string sql = "select * from ZHQKS";

            return(ZHQDBhelper.GetList <ZHQKS>(sql));
        }
Example #4
0
        /// <summary>
        /// 根据品牌查询车型
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List <ZHQCX> GetCX(int id)
        {
            string sql = $"select * from ZHQCX where ZHQBrandId={id}";

            return(ZHQDBhelper.GetList <ZHQCX>(sql));
        }
Example #5
0
        /// <summary>
        /// 查询品牌
        /// </summary>
        /// <returns></returns>
        public List <ZHQBrand> GetBrand()
        {
            string sql = "select * from ZHQBrand";

            return(ZHQDBhelper.GetList <ZHQBrand>(sql));
        }