数据库变更CNPC_XJYJ
This commit is contained in:
@@ -12,7 +12,7 @@ namespace BLL
|
||||
/// </summary>
|
||||
public static class CQMSConstructionLogService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取项目级施工日志
|
||||
@@ -40,7 +40,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLog"></param>
|
||||
public static void AddConstructionLog(Model.CQMS_ConstructionLog ConstructionLog)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.CQMS_ConstructionLog newConstructionLog = new Model.CQMS_ConstructionLog
|
||||
{
|
||||
ConstructionLogId = ConstructionLog.ConstructionLogId,
|
||||
@@ -102,7 +102,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLog"></param>
|
||||
public static void UpdateConstructionLog(Model.CQMS_ConstructionLog ConstructionLog)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.CQMS_ConstructionLog newConstructionLog = db.CQMS_ConstructionLog.FirstOrDefault(e => e.ConstructionLogId == ConstructionLog.ConstructionLogId);
|
||||
if (newConstructionLog != null)
|
||||
{
|
||||
@@ -161,7 +161,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLogId"></param>
|
||||
public static void DeleteConstructionLogById(string ConstructionLogId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.CQMS_ConstructionLog ConstructionLog = db.CQMS_ConstructionLog.FirstOrDefault(e => e.ConstructionLogId == ConstructionLogId);
|
||||
if (ConstructionLog != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user