1
This commit is contained in:
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public static class HJGL_ElectrodeBakeService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -23,7 +23,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.HJGL_ElectrodeBake> qq = from x in db.HJGL_ElectrodeBake orderby x.ElectrodeCode select x;
|
||||
private static IQueryable<Model.HJGL_ElectrodeBake> qq = from x in Funs.DB.HJGL_ElectrodeBake 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_ElectrodeBake> q = qq;
|
||||
if (!string.IsNullOrEmpty(projectId))
|
||||
{
|
||||
@@ -273,6 +274,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListDataPrint(DateTime startDate, DateTime endDate)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return from x in db.HJGL_ElectrodeBakeItem
|
||||
join y in db.HJGL_ElectrodeBake on x.ElectrodeID equals y.ElectrodeID
|
||||
where y.ElectrodeDate >= startDate && y.ElectrodeDate <= endDate
|
||||
|
||||
Reference in New Issue
Block a user