数据库变更CNPC_XJYJ
This commit is contained in:
@@ -33,7 +33,7 @@ namespace BLL
|
||||
/// <param name="setHardReport"></param>
|
||||
public static void AddHard_Report(Model.HJGL_Hard_Report setHardReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Report newHardReport = new HJGL_Hard_Report
|
||||
{
|
||||
HardReportId = setHardReport.HardReportId,
|
||||
@@ -57,7 +57,7 @@ namespace BLL
|
||||
/// <param name="updateHardReport"></param>
|
||||
public static void UpdateHard_Report(Model.HJGL_Hard_Report updateHardReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Report newHardReport = db.HJGL_Hard_Report.FirstOrDefault(e => e.HardReportId == updateHardReport.HardReportId);
|
||||
if (newHardReport != null)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace BLL
|
||||
/// <param name="strHardReportId">装置ID</param>
|
||||
public static void DeleteHard_ReportByHardReportId(string strHardReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Report delHardReport = db.HJGL_Hard_Report.FirstOrDefault(e => e.HardReportId == strHardReportId);
|
||||
if (delHardReport != null)
|
||||
{
|
||||
@@ -94,7 +94,7 @@ namespace BLL
|
||||
/// <param name="strHardReportId">装置ID</param>
|
||||
public static void DeleteHard_ReportsByHardTrustItemID(string strHardTrustItemID)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var delHardReports = from x in db.HJGL_Hard_Report where x.HardTrustItemID == strHardTrustItemID select x;
|
||||
if (delHardReports.Count() >0)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace BLL
|
||||
/// <param name="hardTrustItem"></param>
|
||||
public static void AddHardTrustItem(Model.HJGL_Hard_TrustItem hardTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_TrustItem newHardTrustItem = new Model.HJGL_Hard_TrustItem();
|
||||
newHardTrustItem.HardTrustItemID = SQLHelper.GetNewID(typeof(Model.HJGL_Hard_TrustItem));
|
||||
newHardTrustItem.HardTrustID = hardTrustItem.HardTrustID;
|
||||
@@ -64,7 +64,7 @@ namespace BLL
|
||||
/// <param name="hardTrustItem"></param>
|
||||
public static void UpdateHardTrustItem(Model.HJGL_Hard_TrustItem hardTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_TrustItem newHardTrustItem = db.HJGL_Hard_TrustItem.FirstOrDefault(e => e.HardTrustItemID == hardTrustItem.HardTrustItemID);
|
||||
if (newHardTrustItem != null)
|
||||
{
|
||||
@@ -80,7 +80,7 @@ namespace BLL
|
||||
/// <param name="hardTrustId"></param>
|
||||
public static void DeleteHardTrustItemByHardTrustItemID(string hardTrustItemID)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hardTrustItem = (from x in db.HJGL_Hard_TrustItem where x.HardTrustItemID == hardTrustItemID select x).FirstOrDefault();
|
||||
if (hardTrustItem != null)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ namespace BLL
|
||||
/// <param name="hardTrustId"></param>
|
||||
public static void DeleteHardTrustItemById(string hardTrustId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hardTrustItem = (from x in db.HJGL_Hard_TrustItem where x.HardTrustID == hardTrustId select x).ToList();
|
||||
if (hardTrustItem != null)
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <param name="hardTrust"></param>
|
||||
public static void AddHardTrust(Model.HJGL_Hard_Trust hardTrust)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Trust newHardTrust = new Model.HJGL_Hard_Trust();
|
||||
newHardTrust.HardTrustID = hardTrust.HardTrustID;
|
||||
newHardTrust.HardTrustNo = hardTrust.HardTrustNo;
|
||||
@@ -60,7 +60,7 @@ namespace BLL
|
||||
/// <param name="hardTrust"></param>
|
||||
public static void UpdateHardTrust(Model.HJGL_Hard_Trust hardTrust)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Trust newHardTrust = db.HJGL_Hard_Trust.FirstOrDefault(e => e.HardTrustID == hardTrust.HardTrustID);
|
||||
if (newHardTrust != null)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ namespace BLL
|
||||
/// <param name="hardTrustID"></param>
|
||||
public static void DeleteHardTrustById(string hardTrustID)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Hard_Trust hardTrust = db.HJGL_Hard_Trust.FirstOrDefault(e => e.HardTrustID == hardTrustID);
|
||||
if (hardTrust != null)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrustItem"></param>
|
||||
public static void AddHotProessTrustItem(Model.HJGL_HotProess_TrustItem hotProessTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_TrustItem newHotProessTrustItem = new Model.HJGL_HotProess_TrustItem();
|
||||
newHotProessTrustItem.HotProessTrustItemId = SQLHelper.GetNewID(typeof(Model.HJGL_HotProess_TrustItem));
|
||||
newHotProessTrustItem.HotProessTrustId = hotProessTrustItem.HotProessTrustId;
|
||||
@@ -55,7 +55,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrustItem"></param>
|
||||
public static void UpdateHotProessTrustItem(Model.HJGL_HotProess_TrustItem hotProessTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_TrustItem newHotProessTrustItem = db.HJGL_HotProess_TrustItem.FirstOrDefault(e => e.HotProessTrustItemId == hotProessTrustItem.HotProessTrustItemId);
|
||||
if (newHotProessTrustItem != null)
|
||||
{
|
||||
@@ -75,7 +75,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrustItem"></param>
|
||||
public static void UpdateHotProessFeedback(Model.HJGL_HotProess_TrustItem hotProessTrustItem)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_TrustItem newHotProessTrustItem = db.HJGL_HotProess_TrustItem.FirstOrDefault(e => e.HotProessTrustItemId == hotProessTrustItem.HotProessTrustItemId);
|
||||
if (newHotProessTrustItem != null)
|
||||
{
|
||||
@@ -91,7 +91,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrustId"></param>
|
||||
public static void DeleteHotProessTrustItemByItemId(string hotProessTrustItemId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hotProessTrustItem = (from x in db.HJGL_HotProess_TrustItem where x.HotProessTrustItemId == hotProessTrustItemId select x).FirstOrDefault();
|
||||
if (hotProessTrustItem != null)
|
||||
{
|
||||
@@ -106,7 +106,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrustId"></param>
|
||||
public static void DeleteHotProessTrustItemById(string hotProessTrustId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var hotProessTrustItem = (from x in db.HJGL_HotProess_TrustItem where x.HotProessTrustId == hotProessTrustId select x).ToList();
|
||||
if (hotProessTrustItem != null)
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrust"></param>
|
||||
public static void AddHotProessTrust(Model.HJGL_HotProess_Trust hotProessTrust)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_Trust newHotProessTrust = new Model.HJGL_HotProess_Trust();
|
||||
newHotProessTrust.HotProessTrustId = hotProessTrust.HotProessTrustId;
|
||||
newHotProessTrust.HotProessTrustNo = hotProessTrust.HotProessTrustNo;
|
||||
@@ -49,7 +49,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrust"></param>
|
||||
public static void UpdateHotProessTrust(Model.HJGL_HotProess_Trust hotProessTrust)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_Trust newHotProessTrust = db.HJGL_HotProess_Trust.FirstOrDefault(e => e.HotProessTrustId == hotProessTrust.HotProessTrustId);
|
||||
if (newHotProessTrust != null)
|
||||
{
|
||||
@@ -72,7 +72,7 @@ namespace BLL
|
||||
/// <param name="hotProessTrustId"></param>
|
||||
public static void DeleteHotProessTrustById(string hotProessTrustId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_HotProess_Trust hotProessTrust = db.HJGL_HotProess_Trust.FirstOrDefault(e => e.HotProessTrustId == hotProessTrustId);
|
||||
if (hotProessTrust != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user