数据库变更CNPC_XJYJ
This commit is contained in:
@@ -27,7 +27,7 @@ namespace BLL
|
||||
/// <param name="hotProessReport"></param>
|
||||
public static void AddHotProessReport(Model.HJGL_HotProess_Report hotProessReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_Report newHotProessReport = new Model.HJGL_HotProess_Report();
|
||||
newHotProessReport.HotProessReportId = hotProessReport.HotProessReportId;
|
||||
newHotProessReport.HotProessTrustItemId = hotProessReport.HotProessTrustItemId;
|
||||
@@ -49,7 +49,7 @@ namespace BLL
|
||||
/// <param name="hotProessReport"></param>
|
||||
public static void UpdateHotProessReport(Model.HJGL_HotProess_Report hotProessReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_Report newHotProessReport = db.HJGL_HotProess_Report.FirstOrDefault(e => e.HotProessReportId == hotProessReport.HotProessReportId);
|
||||
if (newHotProessReport != null)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ namespace BLL
|
||||
/// <param name="hotProessReportId"></param>
|
||||
public static void DeleteHotProessReportById(string hotProessReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_Report hotProessReport = db.HJGL_HotProess_Report.FirstOrDefault(e => e.HotProessReportId == hotProessReportId);
|
||||
if (hotProessReport != null)
|
||||
{
|
||||
@@ -84,7 +84,7 @@ namespace BLL
|
||||
/// <param name="hotProessReportId"></param>
|
||||
public static void DeleteAllHotProessReportById(string hotProessTrustItemId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hotProessReport = from x in Funs.DB.HJGL_HotProess_Report where x.HotProessTrustItemId == hotProessTrustItemId select x;
|
||||
if (hotProessReport.ToList().Count>0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user