static void DeleteSort()
        {
            int         id          = 1;
            SortInfoDal sortInfoDal = new SortInfoDal();
            var         d           = sortInfoDal.Delete(id);

            if (d)
            {
                Console.WriteLine("成功");
            }
            else
            {
                Console.WriteLine("失败");
            }
        }
        static void getsortInfo()
        {
            int id = 1;

            SearchModel searchModel = new SearchModel();

            searchModel.ModelName = "SortInfo";
            SortInfoDal sortInfoDal = new SortInfoDal();
            var         d           = sortInfoDal.GetDataTable(searchModel);

            if (d != null)
            {
                Console.WriteLine("成功");
            }
            else
            {
                Console.WriteLine("失败");
            }
        }
        static void EditSort()
        {
            SortInfo sortInfo = new SortInfo();

            sortInfo.SortName = "水34管";
            sortInfo.Remark   = "  ";
            sortInfo.DelFlag  = false;
            sortInfo.Id       = 1;
            SortInfoDal sortInfoDal = new SortInfoDal();

            bool d = sortInfoDal.Edit(sortInfo);

            if (d)
            {
                Console.WriteLine("成功");
            }
            else
            {
                Console.WriteLine("失败");
            }
        }
        static void AddSort()
        {
            SortInfo sortInfo = new SortInfo();

            sortInfo.SortName = "水管";

            sortInfo.Remark  = "  ";
            sortInfo.DelFlag = false;

            SortInfoDal unitInfoDal = new SortInfoDal();

            bool d = unitInfoDal.Add(sortInfo);

            if (d)
            {
                Console.WriteLine("成功");
            }
            else
            {
                Console.WriteLine("失败");
            }
        }