Backup/DAL/FZ_Shipper.cs
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Tsr.DBUtility;
namespace Tsr.DAL
{
/// <summary>
/// 大理福致计算机有限公司 Http://www.dlzr.com
/// 田绍荣 文件名:FZ_Shipper 创建时间:2009-04-01 14:16:21
/// </summary>
public class FZ_Shipper
{
public FZ_Shipper()
{}
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(string shipperCoding)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("select count(1) from FZ_Shipper");
strSql.Append(" where shipperCoding=@shipperCoding ");
SqlParameter[] parameters = {
new SqlParameter("@shipperCoding", SqlDbType.VarChar,50)};
parameters[0].Value = shipperCoding;
return DbHelperSQL.Exists(strSql.ToString(),parameters);
}
/// <summary>
/// 增加一条数据
/// </summary>
public void Add(Tsr.Model.FZ_Shipper model)
{
StringBuilder strSql=new StringBuilder();
strSql.Append("insert into FZ_Shipper(");
strSql.Append("shipperCoding,shipperName,shipperPinyin,shipperSpokesman,shipperShopCardNo,shipperTaxpayerNo,shipperLinkmanName,shipperLinkmanPhone,shipperUsed,ShipperBank,Accounts)");
strSql.Append(" values (");
strSql.Append("@shipperCoding,@shipperName,@shipperPinyin,@shipperSpokesman,@shipperShopCardNo,@shipperTaxpayerNo,@shipperLinkmanName,@shipperLinkmanPhone,@shipperUsed,@ShipperBank,@Accounts)");
SqlParameter[] parameters = {
new SqlParameter("@shipperCoding", SqlDbType.VarChar,15),
new SqlParameter("@shipperName", SqlDbType.NVarChar,30),
new SqlParameter("@shipperPinyin", SqlDbType.NVarChar,30),
new SqlParameter("@shipperSpokesman", SqlDbType.NVarChar,4),
new SqlParameter("@shipperShopCardNo", SqlDbType.VarChar,15),
new SqlParameter("@shipperTaxpayerNo", SqlDbType.VarChar,19),
new SqlParameter("@shipperLinkmanName", SqlDbType.NVarChar,4),
new SqlParameter("@shipperLinkmanPhone", SqlDbType.VarChar,30),
new SqlParameter("@shipperUsed", SqlDbType.Bit,1),
new SqlParameter("@ShipperBank", SqlDbType.NVarChar,50),
new SqlParameter("@Accounts", SqlDbType.NVarChar,50)};
parameters[0].Value = model.shipperCoding;
parameters[1].Value = model.shipperName;
parameters[2].Value = model.shipperPinyin;
parameters[3].Value = model.shipperSpokesman;
parameters[4].Value = model.shipperShopCardNo;
后面还有 266 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
