数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class NoFourLetoffService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取四不放过
|
||||
@@ -38,7 +38,7 @@ namespace BLL
|
||||
/// <param name="noFourLetoff"></param>
|
||||
public static void AddNoFourLetoff(Model.Accident_NoFourLetoff noFourLetoff)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Accident_NoFourLetoff newNoFourLetoff = new Model.Accident_NoFourLetoff
|
||||
{
|
||||
NoFourLetoffId = noFourLetoff.NoFourLetoffId,
|
||||
@@ -62,7 +62,7 @@ namespace BLL
|
||||
/// <param name="noFourLetoff"></param>
|
||||
public static void UpdateNoFourLetoff(Model.Accident_NoFourLetoff noFourLetoff)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Accident_NoFourLetoff newNoFourLetoff = db.Accident_NoFourLetoff.FirstOrDefault(e => e.NoFourLetoffId == noFourLetoff.NoFourLetoffId);
|
||||
if (newNoFourLetoff != null)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace BLL
|
||||
/// <param name="noFourLetoffId"></param>
|
||||
public static void DeleteNoFourLetoffByNoFourLetoffId(string noFourLetoffId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Accident_NoFourLetoff noFourLetoff = db.Accident_NoFourLetoff.FirstOrDefault(e => e.NoFourLetoffId == noFourLetoffId);
|
||||
if (noFourLetoff != null)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ namespace BLL
|
||||
/// <param name="accidentHandleId"></param>
|
||||
public static void DeleteNoFourLetoffByAccidentHandleId(string accidentHandleId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = (from x in db.Accident_NoFourLetoff where x.AccidentHandleId == accidentHandleId select x).ToList();
|
||||
if (q!=null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user