App_Code/DAL/KNet_WareHouse_DirectInto_Printer_Setup.cs

(开头部分) 17KB

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

using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using KNet.DBUtility;
namespace KNet.DAL
{
    /// <summary>
    /// 数据访问类KNet_WareHouse_DirectInto_Printer_Setup。
    /// </summary>
    public class KNet_WareHouse_DirectInto_Printer_Setup
    {
        public KNet_WareHouse_DirectInto_Printer_Setup()
        { }
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string PrinterTitle)
        {
            int rowsAffected;
            SqlParameter[] parameters = {
					new SqlParameter("@PrinterTitle", SqlDbType.NVarChar,50)};
            parameters[0].Value = PrinterTitle;

            int result = DbHelperSQL.RunProcedure("Proc_KNet_WareHouse_DirectInto_Printer_Setup_Exists", parameters, out rowsAffected);
            if (result == 1)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        /// <summary>
        ///  增加一条数据
        /// </summary>
        public void Add(KNet.Model.KNet_WareHouse_DirectInto_Printer_Setup model)
        {
            int rowsAffected;
            SqlParameter[] parameters = {
					
					new SqlParameter("@Tex_ID", SqlDbType.NVarChar,50),
					new SqlParameter("@PrinterTitle", SqlDbType.NVarChar,50),
					new SqlParameter("@PrinterYN", SqlDbType.Bit,1),
					new SqlParameter("@PrinterDatetime", SqlDbType.DateTime),
					new SqlParameter("@TopComtont", SqlDbType.NText),
					new SqlParameter("@BotComtont", SqlDbType.NText),
					new SqlParameter("@PrintStatShow", SqlDbType.Bit,1),
					new SqlParameter("@PrintAmount_Recodor", SqlDbType.Bit,1),
					new SqlParameter("@PrintAmount_Sum", SqlDbType.Bit,1),
					new SqlParameter("@PrintDiscount_Sum", SqlDbType.Bit,1),
					new SqlParameter("@PrintTotalNet_Sum", SqlDbType.Bit,1),
					new SqlParameter("@PrintTotalNet_BigWrite", SqlDbType.Bit,1)};
            
            parameters[0].Value = model.Tex_ID;
            parameters[1].Value = model.PrinterTitle;
            parameters[2].Value = model.PrinterYN;
后面还有 350 行代码,购买后查看完整代码

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

AI 解读

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

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