修正项目
This commit is contained in:
28
NX.ERP.U8/Base/SupplierDAL.cs
Normal file
28
NX.ERP.U8/Base/SupplierDAL.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Dapper;
|
||||
using NX.ERP.Model;
|
||||
|
||||
namespace NX.ERP.U8
|
||||
{
|
||||
public class SupplierDAL
|
||||
{
|
||||
public IEnumerable<Supplier> GetList()
|
||||
{
|
||||
|
||||
|
||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
{
|
||||
var sql = @"select
|
||||
cVenCode AS SupplierCode,
|
||||
cVenName AS SupplierName,
|
||||
cVenPostCode AS PostalCode,
|
||||
cVenAddress AS Address,
|
||||
cVenPerson AS Contract from Vendor ";
|
||||
return conn.Query<Supplier>(sql, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user