全局处理问题:public static Model.SGGLDB db = Funs.DB;

This commit is contained in:
2026-04-23 11:36:49 +08:00
parent 5a38880a14
commit 746cb57619
315 changed files with 641 additions and 449 deletions
@@ -11,7 +11,7 @@ namespace BLL
/// </summary>
public static class DesignChangeOrderService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 记录数
@@ -34,6 +34,7 @@ namespace BLL
/// <returns></returns>
public static IEnumerable GetListData(string projectId, string cNProfessionalId, string contents, string startDate, string endDate, int startRowIndex, int maximumRows)
{
Model.SGGLDB db = Funs.DB;
IQueryable<Model.Comprehensive_DesignChangeOrder> q = from x in db.Comprehensive_DesignChangeOrder
where x.ProjectId == projectId
orderby x.ChangeOrderCode descending
@@ -88,6 +89,7 @@ namespace BLL
}
public static IEnumerable GetListDataForDataType(string installtionId,string projectId, string cNProfessionalId, string contents, string startDate, string endDate, int startRowIndex, int maximumRows)
{
Model.SGGLDB db = Funs.DB;
IQueryable<Model.Comprehensive_DesignChangeOrder> q = from x in db.Comprehensive_DesignChangeOrder
where x.ProjectId == projectId
orderby x.ChangeOrderCode descending