DA/DBFillShops.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Common;
namespace DA
{
/// <summary>
/// DB.供货商信息表
/// </summary>
public class DBFillShops: IDisposable
{
string sql;
SqlHelpers sqlh;
// DataSet ds;
SqlDataReader dr;
public DBFillShops()
{
sqlh = new SqlHelpers();
}
public DBFillShops(SqlHelpers sh)
{
sqlh = sh;
}
public void Dispose()
{
sqlh.Dispose();
}
/// <summary>
///DB 查询所有供货商信息的方法
/// </summary>
/// <returns></returns>
public List<CFillShops>DBFillShopsQuery()
{
List<CFillShops> lfs = new List<CFillShops>();
sql = "select * from FillShops";
dr =sqlh.RQuery(sql, null, CommandType.Text);
while (dr.Read())
{
CFillShops fs = new CFillShops();
fs.CfsId1 = Convert.ToInt32(dr["fsId"]);
fs.CfsName1 = dr["fsName"].ToString();
fs.FsSpell = dr["fsSpell"].ToString();
fs.CfsLinkman1 = dr["fsLinkman"].ToString();
fs.CfsLinkphone1 = dr["fsLinkphone"].ToString();
fs.CfsAddress1 = dr["fsAddress"].ToString();
fs.CfsRemark1 = dr["fsRemark"].ToString();
lfs.Add(fs);
}
dr.Close();
return lfs;
}
/// <summary>
/// 根据拼音缩写查询供货商的方法
/// </summary>
/// <param name="spell">拼音缩写</param>
/// <returns></returns>
后面还有 114 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。