1
This commit is contained in:
@@ -11,7 +11,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class HJGL_EMInventoryRecordsService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 记录数
|
||||
@@ -25,7 +25,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 定义变量
|
||||
/// </summary>
|
||||
private static IQueryable<Model.HJGL_EMInventoryRecords> qq = from x in db.HJGL_EMInventoryRecords orderby x.UpdateTime select x;
|
||||
private static IQueryable<Model.HJGL_EMInventoryRecords> qq = from x in Funs.DB.HJGL_EMInventoryRecords orderby x.UpdateTime select x;
|
||||
/// <summary>
|
||||
/// 获取分页列表
|
||||
/// </summary>
|
||||
@@ -37,6 +37,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static IEnumerable GetListData(string projectId, string unitId, string materialid, string models, string specifications, int startRowIndex, int maximumRows)
|
||||
{
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
IQueryable<Model.HJGL_EMInventoryRecords> q = qq;
|
||||
q = q.Where(e => e.ProjectId == projectId);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace BLL
|
||||
{
|
||||
public static class HJGL_ElectrodeRecoveryService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据焊条发放回收记录ID获取焊条发放回收记录信息
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL.HJGL.MaterialManage
|
||||
{
|
||||
public class HJGL_MaterialApplyService
|
||||
{
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 根据焊条发放回收记录ID获取焊条发放回收记录信息
|
||||
|
||||
Reference in New Issue
Block a user