全局处理问题: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
+3 -2
View File
@@ -12,7 +12,7 @@ namespace BLL
/// </summary>
public static class GJSXItemService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 根据关键事项ID查询所有关键事项进展
@@ -31,7 +31,7 @@ namespace BLL
/// <returns></returns>
public static System.Collections.IEnumerable GetIEnumerableByGJSXID(string GJSXID)
{
return from x in db.GJSX_detail
return from x in Funs.DB.GJSX_detail
where x.GJSXID == GJSXID
orderby x.Sort
select new
@@ -155,6 +155,7 @@ namespace BLL
/// <returns></returns>
public static bool IsExistOperateionId(string GJSXID, string operationId)
{
Model.SGGLDB db = Funs.DB;
var q = from x in db.GJSX_detail where x.GJSXID == GJSXID && x.Progress_user == operationId select x;
if (q.Count() > 0)
{
+1 -1
View File
@@ -21,7 +21,7 @@ namespace BLL
{
public static class GJSXMonitorService
{
//public static Model.SGGLDB db = Funs.DB;
//
/// <summary>
/// 关键事项新增通知提醒责任人、抄送人
+1 -1
View File
@@ -8,7 +8,7 @@ namespace BLL
{
public static class GJSXProcessService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 添加
+2 -1
View File
@@ -8,7 +8,7 @@ namespace BLL
{
public static class GJSXService
{
public static Model.SGGLDB db = Funs.DB;
/// <summary>
/// 根据主键获取信息
@@ -104,6 +104,7 @@ namespace BLL
public static System.Collections.IEnumerable GetListData(string projectId)
{
Model.SGGLDB db = Funs.DB;
IQueryable<Model.GJSX> q = GetGJSXList().AsQueryable();
if (!string.IsNullOrEmpty(projectId))