1
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public static class HJGL_ElectrodeSecondaryBakeService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -23,7 +23,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.HJGL_ElectrodeSecondaryBake> qq = from x in db.HJGL_ElectrodeSecondaryBake orderby x.ElectrodeCode select x;
|
||||
private static IQueryable<Model.HJGL_ElectrodeSecondaryBake> qq = from x in Funs.DB.HJGL_ElectrodeSecondaryBake orderby x.ElectrodeCode select x;
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询列表
|
||||
@@ -34,6 +34,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string projectId, int startRowIndex, int maximumRows)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
IQueryable<Model.HJGL_ElectrodeSecondaryBake> q = qq;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
@@ -186,8 +187,8 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListDataPrint(DateTime startDate, DateTime endDate)
|
||||
{
|
||||
return from x in db.HJGL_ElectrodeSecondaryBake
|
||||
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return from x in db.HJGL_ElectrodeSecondaryBake
|
||||
where x.ElectrodeDate >= startDate && x.ElectrodeDate <= endDate
|
||||
orderby x.ElectrodeCode
|
||||
select new
|
||||
|
||||
Reference in New Issue
Block a user