1
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public class HJGL_EMaterialRegistService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.HJGL_EMaterialRegist> qq = from x in db.HJGL_EMaterialRegist orderby x.EMaterialRegistCode select x;
|
||||
private static IQueryable<Model.HJGL_EMaterialRegist> qq = from x in Funs.DB.HJGL_EMaterialRegist orderby x.EMaterialRegistCode select x;
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询列表
|
||||
@@ -37,6 +37,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string projectId, int startRowIndex, int maximumRows)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
IQueryable<Model.HJGL_EMaterialRegist> q = qq;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
@@ -277,6 +278,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListDataPrint(string eMaterialRegistId)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return from x in db.HJGL_EMaterialRegistItem
|
||||
join y in db.HJGL_EMaterialRegist on x.EMaterialRegistId equals y.EMaterialRegistId
|
||||
where y.EMaterialRegistId == eMaterialRegistId
|
||||
|
||||
Reference in New Issue
Block a user