Files
U8-Import/NX.ERP.U8/VT.cs
2021-01-22 11:25:03 +08:00

20 lines
583 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dapper;
namespace NX.ERP.U8
{
public class VT
{
public string GetDefaltVTID(string CardNumber)
{
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
{
var strSql= "select DEF_ID from vouchers_base where CardNumber=@CardNumber";
return conn.ExecuteScalar<string>(strSql, new { CardNumber }, null, 100, System.Data.CommandType.Text);
}
}
}
}