数据库变更CNPC_XJYJ
This commit is contained in:
@@ -10,7 +10,7 @@ namespace BLL
|
||||
{
|
||||
public class ConstructionLogNewService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
#region 获取人员列表信息
|
||||
/// <summary>
|
||||
@@ -107,7 +107,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLog"></param>
|
||||
public static void AddConstructionLog(Model.InformationProject_ConstructionLog ConstructionLog)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.InformationProject_ConstructionLog newConstructionLog = new Model.InformationProject_ConstructionLog
|
||||
{
|
||||
@@ -131,7 +131,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLog"></param>
|
||||
public static void UpdateConstructionLog(Model.InformationProject_ConstructionLog ConstructionLog)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.InformationProject_ConstructionLog newConstructionLog = db.InformationProject_ConstructionLog.FirstOrDefault(e => e.ConstructionLogId == ConstructionLog.ConstructionLogId);
|
||||
if (newConstructionLog != null)
|
||||
@@ -154,7 +154,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLogId"></param>
|
||||
public static void DeleteConstructionLogById(string ConstructionLogId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.InformationProject_ConstructionLog ConstructionLog = db.InformationProject_ConstructionLog.FirstOrDefault(e => e.ConstructionLogId == ConstructionLogId);
|
||||
if (ConstructionLog != null)
|
||||
@@ -202,7 +202,7 @@ namespace BLL
|
||||
/// <param name="item"></param>
|
||||
public static void AddConstructionLogItem(Model.InformationProject_ConstructionLogItem item)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.InformationProject_ConstructionLogItem newConstructionLog = new Model.InformationProject_ConstructionLogItem
|
||||
{
|
||||
@@ -222,7 +222,7 @@ namespace BLL
|
||||
/// <param name="item"></param>
|
||||
public static void UpdateConstructionLogItem(Model.InformationProject_ConstructionLogItem item)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.InformationProject_ConstructionLogItem newConstructionLog = db.InformationProject_ConstructionLogItem.FirstOrDefault(e => e.ConstructionLogItemId == item.ConstructionLogItemId);
|
||||
if (newConstructionLog != null)
|
||||
@@ -240,7 +240,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLogItemId"></param>
|
||||
public static void DeleteConstructionLogItemById(string ConstructionLogId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getDeleteItem = db.InformationProject_ConstructionLogItem.Where(e => e.ConstructionLogId == ConstructionLogId);
|
||||
if (getDeleteItem.Count() > 0)
|
||||
@@ -257,7 +257,7 @@ namespace BLL
|
||||
/// <param name="ConstructionLogItemId"></param>
|
||||
public static void DeleteConstructionLogItemByConstructionLogItemId(string ConstructionLogItemId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.InformationProject_ConstructionLogItem ConstructionLog = db.InformationProject_ConstructionLogItem.FirstOrDefault(e => e.ConstructionLogItemId == ConstructionLogItemId);
|
||||
if (ConstructionLog != null)
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace BLL
|
||||
{
|
||||
public class PersonStarLevelService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 设置人员星级
|
||||
@@ -16,7 +16,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static string SetPersonStarLevel(string projectId, string userId, int? starLevelValue, string starLevelId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
string levelId = starLevelId;
|
||||
var getPersons = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
|
||||
@@ -76,7 +76,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static string UpPersonStarLevel(string projectId, string userId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
string levelId = string.Empty;
|
||||
var getPersons = db.Sys_User.FirstOrDefault(x => x.UserId == userId);
|
||||
@@ -109,7 +109,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static string collectLog(string projectId, string personId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
string starMark = string.Empty;
|
||||
///已经存在星级的人员 才能升星
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class ProjectConstructionLogService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
#region 获取人员列表信息
|
||||
/// <summary>
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace BLL
|
||||
{
|
||||
public class ProjectPersonStarService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
#region 劳务人员列表
|
||||
/// <summary>
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace BLL
|
||||
{
|
||||
public class StarLevelService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
public static Model.CNPCDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取五星级别
|
||||
@@ -66,7 +66,7 @@ namespace BLL
|
||||
/// <param name="StarLevel"></param>
|
||||
public static void AddStarLevel(Model.Base_StarLevel StarLevel)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_StarLevel newStarLevel = new Model.Base_StarLevel
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace BLL
|
||||
/// <param name="StarLevel"></param>
|
||||
public static void UpdateStarLevel(Model.Base_StarLevel StarLevel)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_StarLevel newStarLevel = db.Base_StarLevel.FirstOrDefault(e => e.StarLevelId == StarLevel.StarLevelId);
|
||||
if (newStarLevel != null)
|
||||
@@ -109,7 +109,7 @@ namespace BLL
|
||||
/// <param name="starLevelId"></param>
|
||||
public static void DeleteStarLevelById(string starLevelId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_StarLevel StarLevel = db.Base_StarLevel.FirstOrDefault(e => e.StarLevelId == starLevelId);
|
||||
if (StarLevel != null)
|
||||
@@ -187,7 +187,7 @@ namespace BLL
|
||||
/// <param name="item"></param>
|
||||
public static void AddStarLevelItem(Model.Base_StarLevelItem item)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_StarLevelItem newStarLevel = new Model.Base_StarLevelItem
|
||||
{
|
||||
@@ -207,7 +207,7 @@ namespace BLL
|
||||
/// <param name="item"></param>
|
||||
public static void UpdateStarLevelItem(Model.Base_StarLevelItem item)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_StarLevelItem newStarLevel = db.Base_StarLevelItem.FirstOrDefault(e => e.StarLevelItemId == item.StarLevelItemId);
|
||||
if (newStarLevel != null)
|
||||
@@ -225,7 +225,7 @@ namespace BLL
|
||||
/// <param name="StarLevelItemId"></param>
|
||||
public static void DeleteStarLevelItemById(string StarLevelId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var getDeleteItem = db.Base_StarLevelItem.Where(e => e.StarLevelId == StarLevelId);
|
||||
if (getDeleteItem.Count() > 0)
|
||||
@@ -242,7 +242,7 @@ namespace BLL
|
||||
/// <param name="StarLevelItemId"></param>
|
||||
public static void DeleteStarLevelItemByStarLevelItemId(string StarLevelItemId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
Model.Base_StarLevelItem StarLevel = db.Base_StarLevelItem.FirstOrDefault(e => e.StarLevelItemId == StarLevelItemId);
|
||||
if (StarLevel != null)
|
||||
|
||||
Reference in New Issue
Block a user