App_Code/DAL/KNet_WareHouse_Ownall.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using KNet.DBUtility;
namespace KNet.DAL
{
/// <summary>
/// 数据访问类KNet_WareHouse_Ownall。
/// </summary>
public class KNet_WareHouse_Ownall
{
public KNet_WareHouse_Ownall()
{ }
#region 成员方法
/// <summary>
/// 是否存在该记录
/// </summary>
public bool Exists(string HouseNo,string ProductsBarCode)
{
int rowsAffected;
SqlParameter[] parameters = {
new SqlParameter("@HouseNo", SqlDbType.NVarChar,50),
new SqlParameter("@ProductsBarCode", SqlDbType.NVarChar,50)};
parameters[0].Value = HouseNo;
parameters[1].Value = ProductsBarCode;
int result = DbHelperSQL.RunProcedure("Proc_KNet_WareHouse_Ownall_Exists", parameters, out rowsAffected);
if (result == 1)
{
return true;
}
else
{
return false;
}
}
/// <summary>
/// 增加一条数据 (Y)
/// </summary>
public void Add(KNet.Model.KNet_WareHouse_Ownall model)
{
int rowsAffected;
SqlParameter[] parameters = {
new SqlParameter("@HouseNo", SqlDbType.NVarChar,50),
new SqlParameter("@ProductsName", SqlDbType.NVarChar,50),
new SqlParameter("@ProductsBarCode", SqlDbType.NVarChar,50),
new SqlParameter("@ProductsPattern", SqlDbType.NVarChar,50),
new SqlParameter("@ProductsUnits", SqlDbType.NVarChar,50),
new SqlParameter("@WareHouseAmount", SqlDbType.Int,4),
new SqlParameter("@WareHouseTotalNet", SqlDbType.Decimal,9),
new SqlParameter("@WareHouseDiscount", SqlDbType.Decimal,9),
new SqlParameter("@OrderNumber", SqlDbType.NVarChar,50),
new SqlParameter("@SingleStorage", SqlDbType.NVarChar,50),
new SqlParameter("@StorageTime", SqlDbType.DateTime),
new SqlParameter("@StorageVolume", SqlDbType.Int,4),
后面还有 179 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
