数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class ViolationPersonService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取违规人员记录
|
||||
@@ -40,7 +40,7 @@ namespace BLL
|
||||
/// <param name="violationPerson"></param>
|
||||
public static void AddViolationPerson(Model.Check_ViolationPerson violationPerson)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Check_ViolationPerson newViolationPerson = new Model.Check_ViolationPerson
|
||||
{
|
||||
ViolationPersonId = violationPerson.ViolationPersonId,
|
||||
@@ -69,7 +69,7 @@ namespace BLL
|
||||
/// <param name="violationPerson"></param>
|
||||
public static void UpdateViolationPerson(Model.Check_ViolationPerson violationPerson)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Check_ViolationPerson newViolationPerson = db.Check_ViolationPerson.FirstOrDefault(e => e.ViolationPersonId == violationPerson.ViolationPersonId);
|
||||
if (newViolationPerson != null)
|
||||
{
|
||||
@@ -96,7 +96,7 @@ namespace BLL
|
||||
/// <param name="violationPersonId"></param>
|
||||
public static void DeleteViolationPersonById(string violationPersonId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Check_ViolationPerson violationPerson = db.Check_ViolationPerson.FirstOrDefault(e => e.ViolationPersonId == violationPersonId);
|
||||
if (violationPerson != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user