-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathPHA_OrginBLL.cs
53 lines (47 loc) · 1.42 KB
/
PHA_OrginBLL.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using MIMS.IBusiness;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;
using MIMS.Service;
using MIMS.Entity.Model;
namespace MIMS.Business
{
public class PHA_OrginBLL : IPHA_OrginBLL
{
private static readonly PHA_OrginDAL dal = new PHA_OrginDAL();
public IList GetList()
{
return dal.GetList();
}
public IList GetPageList(string query, string orderField, string orderType, int pageIndex, int pageSize, ref int count)
{
string where = string.Empty;
Dictionary<string, object> prams = new Dictionary<string, object>();
if (!string.IsNullOrEmpty(query))
{
prams.Add("@PinyinCode", "%" + query + "%");
where = " AND PinyinCode like @PinyinCode";
}
return dal.GetPageListWhere(new StringBuilder(where), prams, orderField, orderType, pageIndex, pageSize, ref count);
}
public PHA_Orgin GetEntity(string id)
{
return dal.GetEntity(id);
}
public int Update(PHA_Orgin obj)
{
return dal.Update(obj);
}
public int Insert(PHA_Orgin obj)
{
return dal.Insert(obj);
}
public int Delete(PHA_Orgin obj)
{
return dal.Delete(obj);
}
}
}