24 lines
556 B
C#
24 lines
556 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using Dapper;
|
|||
|
|
using NX.ERP.Model;
|
|||
|
|
|
|||
|
|
namespace NX.ERP.U8
|
|||
|
|
{
|
|||
|
|
public class WarehouseDAL
|
|||
|
|
{
|
|||
|
|
public IEnumerable<Warehouse> GetList()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
|||
|
|
{
|
|||
|
|
var sql = "select cWhCode as WarehouseCode,cWhName as WarehouseName from Warehouse";
|
|||
|
|
return conn.Query<Warehouse>(sql, null);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|