Files

20 lines
542 B
C#
Raw Permalink Normal View History

2021-01-18 16:44:18 +08:00
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)
{
2021-01-25 09:47:41 +08:00
using (var conn = U8LoginContext.Instance.Connection)
2021-01-18 16:44:18 +08:00
{
var strSql= "select DEF_ID from vouchers_base where CardNumber=@CardNumber";
return conn.ExecuteScalar<string>(strSql, new { CardNumber }, null, 100, System.Data.CommandType.Text);
}
}
}
}