全局处理问题:public static Model.SGGLDB db = Funs.DB;
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace BLL
|
||||
{
|
||||
public static class GJSXMonitorService
|
||||
{
|
||||
//public static Model.SGGLDB db = Funs.DB;
|
||||
//
|
||||
|
||||
/// <summary>
|
||||
/// 关键事项新增通知提醒责任人、抄送人
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public static class GJSXProcessService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user