DAL/DAO/Logistics_Transit_W_VDAO.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// ******************************************************************
// 文件名: Logistics_Transit_W_V.cs
// 主要内容: 操作事故对象的方法集合
// ******************************************************************

using System;
using Logistics.IDal;
using Logistics.Model;
using System.Data.SqlClient;
using System.Data;
using Logistics.DAL;
using System.Collections.Generic;
using System.Text;

namespace Logistics.DAL.DAO
{

    [Serializable]
    public class Logistics_Transit_W_VDAO : IDao
    {
        #region IDao 成员

        public SqlConnection connection { get; set; }

        public SqlTransaction transaction { get; set; }

        /// <summary>
        /// 通过条件得到一个实体对象列表
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        public DataTable getModelListByWhere(string where)
        {
            DataTable lo = new DataTable();
            lo = getModelList(0, where, null);
            return lo;
        }

        public DataTable getModelList(int top, string where, string orderBy)
        {
            StringBuilder strSql = new StringBuilder();
            DataTable dt = new DataTable();

            strSql.Append("select ");
            if (top > 0)
            {
                strSql.Append(" top " + top.ToString());
            }
            strSql.Append(" Transit_ID,Weight,Volume ");
            strSql.Append(" FROM Transit_W_V ");

            if (where !=null)
            {
                strSql.Append(" where " + where);
            }
            if (orderBy !=null) { strSql.Append(" order by " + orderBy); }

            dt = SqlUtil.executeSQL(strSql.ToString(), null, connection, transaction);

            return dt;
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。