数据库变更CNPC_XJYJ
This commit is contained in:
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class HeadMonthReportBService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据安全统计主键获取安全统计信息
|
||||
@@ -69,7 +69,7 @@ namespace BLL
|
||||
/// <param name="headMonthReport">安全统计实体</param>
|
||||
public static void AddHeadMonthReport(Model.Manager_HeadMonthReportB headMonthReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
string newKeyID = SQLHelper.GetNewID(typeof(Model.Manager_HeadMonthReportB));
|
||||
Model.Manager_HeadMonthReportB newHeadMonthReport = new Model.Manager_HeadMonthReportB
|
||||
{
|
||||
@@ -94,7 +94,7 @@ namespace BLL
|
||||
/// <param name="headMonthReport">安全统计实体</param>
|
||||
public static void UpdateHeadMonthReport(Model.Manager_HeadMonthReportB headMonthReport)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Manager_HeadMonthReportB newHeadMonthReport = db.Manager_HeadMonthReportB.First(e => e.HeadMonthReportId == headMonthReport.HeadMonthReportId);
|
||||
newHeadMonthReport.MonthReportCode = headMonthReport.MonthReportCode;
|
||||
newHeadMonthReport.Months = headMonthReport.Months;
|
||||
@@ -114,7 +114,7 @@ namespace BLL
|
||||
/// <param name="headMonthReportId">安全统计主键</param>
|
||||
public static void DeleteHeadMonthReportByHeadMonthReportId(string headMonthReportId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.Manager_HeadMonthReportB headMonthReport = db.Manager_HeadMonthReportB.First(e => e.HeadMonthReportId == headMonthReportId);
|
||||
db.Manager_HeadMonthReportB.DeleteOnSubmit(headMonthReport);
|
||||
db.SubmitChanges();
|
||||
|
||||
Reference in New Issue
Block a user