数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class RectifyItemService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取安全隐患明细
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="rectifyItem"></param>
|
||||
public static void AddRectifyItem(Model.Technique_RectifyItem rectifyItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Technique_RectifyItem newRectifyItem = new Model.Technique_RectifyItem
|
||||
{
|
||||
RectifyItemId = rectifyItem.RectifyItemId,
|
||||
@@ -63,7 +63,7 @@ namespace BLL
|
||||
/// <param name="rectifyItem"></param>
|
||||
public static void UpdateRectifyItem(Model.Technique_RectifyItem rectifyItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Technique_RectifyItem newRectifyItem = db.Technique_RectifyItem.FirstOrDefault(e => e.RectifyItemId == rectifyItem.RectifyItemId);
|
||||
if (newRectifyItem != null)
|
||||
{
|
||||
@@ -82,7 +82,7 @@ namespace BLL
|
||||
/// <param name="rectifyItem"></param>
|
||||
public static void UpdateRectifyItemIsPass(Model.Technique_RectifyItem rectifyItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Technique_RectifyItem newRectifyItem = db.Technique_RectifyItem.FirstOrDefault(e => e.RectifyItemId == rectifyItem.RectifyItemId);
|
||||
if (newRectifyItem != null)
|
||||
{
|
||||
@@ -100,7 +100,7 @@ namespace BLL
|
||||
/// <param name="rectifyItemId"></param>
|
||||
public static void DeleteRectifyItem(string rectifyItemId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Technique_RectifyItem rectifyItem = db.Technique_RectifyItem.FirstOrDefault(e => e.RectifyItemId == rectifyItemId);
|
||||
if (rectifyItem != null)
|
||||
{
|
||||
@@ -115,7 +115,7 @@ namespace BLL
|
||||
/// <param name="rectifyId"></param>
|
||||
public static void DeleteRectifyItemByRectifyId(string rectifyId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Technique_RectifyItem where x.RectifyId == rectifyId select x).ToList();
|
||||
if (q != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user