25 lines
651 B
C#
25 lines
651 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 UnitDAL
|
|
{
|
|
public IEnumerable<Unit> GetList()
|
|
{
|
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
|
{
|
|
var sql = @"select
|
|
cComunitCode AS UnitCode,
|
|
cComUnitName AS UnitName,bMainUnit as MainUnit, cGroupCode as GroupCode from ComputationUnit ";
|
|
return conn.Query<Unit>(sql, null);
|
|
}
|
|
}
|
|
}
|
|
}
|