DAL/ProInSubInfor.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Data;
using DBUtility;
namespace DAL
{
//成品入库明细表
public partial class ProInSubInfor
{
public bool Exists(int ID)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select count(1) from ProInSubInfor");
strSql.Append(" where ");
strSql.Append(" ID = @ID ");
SqlParameter[] parameters = {
new SqlParameter("@ID", SqlDbType.Int,4)
};
parameters[0].Value = ID;
return DbHelperSQL.Exists(strSql.ToString(), parameters);
}
/// <summary>
/// 增加一条数据
/// </summary>
public int Add(Model.ProInSubInfor model)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("insert into ProInSubInfor(");
strSql.Append("ProInID,ProInNumber,MateID,ProICount,ProITaxPrice,TaxRate,ProIPrice,ProITaxAcount,ProIAcount,TaxAcount,ProIRemark,BuilderID,BuiderTime,PIIState,PLoss");
strSql.Append(") values (");
strSql.Append("@ProInID,@ProInNumber,@MateID,@ProICount,@ProITaxPrice,@TaxRate,@ProIPrice,@ProITaxAcount,@ProIAcount,@TaxAcount,@ProIRemark,@BuilderID,@BuiderTime,@PIIState,@PLoss");
strSql.Append(") ");
strSql.Append(";select @@IDENTITY");
SqlParameter[] parameters = {
new SqlParameter("@ProInID", SqlDbType.Int,4) ,
new SqlParameter("@ProInNumber", SqlDbType.VarChar,50) ,
new SqlParameter("@MateID", SqlDbType.Int,4) ,
new SqlParameter("@ProICount", SqlDbType.Decimal,9) ,
new SqlParameter("@ProITaxPrice", SqlDbType.Decimal,9) ,
new SqlParameter("@TaxRate", SqlDbType.Decimal,9) ,
new SqlParameter("@ProIPrice", SqlDbType.Decimal,9) ,
new SqlParameter("@ProITaxAcount", SqlDbType.Decimal,9) ,
new SqlParameter("@ProIAcount", SqlDbType.Decimal,9) ,
new SqlParameter("@TaxAcount", SqlDbType.Decimal,9) ,
new SqlParameter("@ProIRemark", SqlDbType.VarChar,500) ,
new SqlParameter("@BuilderID", SqlDbType.Int,4) ,
new SqlParameter("@BuiderTime", SqlDbType.DateTime) ,
new SqlParameter("@PIIState", SqlDbType.Int,4) ,
new SqlParameter("@PLoss", SqlDbType.Int,4)
};
parameters[0].Value = model.ProInID;
parameters[1].Value = model.ProInNumber;
parameters[2].Value = model.MateID;
parameters[3].Value = model.ProICount;
parameters[4].Value = model.ProITaxPrice;
后面还有 320 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
