全局处理问题: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)
{