数据库变更CNPC_XJYJ
This commit is contained in:
@@ -26,7 +26,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static bool IsExistWeldJointCode(string weldJointCode, string pipelineId, string weldJointId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_WeldJoint jot = null;
|
||||
if (!string.IsNullOrEmpty(weldJointId))
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace BLL
|
||||
/// <param name="weldJoint"></param>
|
||||
public static void AddWeldJoint(Model.HJGL_WeldJoint weldJoint)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_WeldJoint newWeldJoint = new Model.HJGL_WeldJoint
|
||||
{
|
||||
WeldJointId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint)),
|
||||
@@ -108,7 +108,7 @@ namespace BLL
|
||||
/// <param name="weldJoint"></param>
|
||||
public static void UpdateWeldJoint(Model.HJGL_WeldJoint weldJoint)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_WeldJoint newWeldJoint = db.HJGL_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJoint.WeldJointId);
|
||||
if (newWeldJoint != null)
|
||||
{
|
||||
@@ -153,7 +153,7 @@ namespace BLL
|
||||
/// <param name="weldJoint"></param>
|
||||
public static void WriteBackWeldJoint(Model.HJGL_WeldJoint weldJoint)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_WeldJoint newWeldJoint = db.HJGL_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJoint.WeldJointId);
|
||||
if (newWeldJoint != null)
|
||||
{
|
||||
@@ -172,7 +172,7 @@ namespace BLL
|
||||
/// <param name="weldJointId"></param>
|
||||
public static void DeleteWeldJointById(string weldJointId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_WeldJoint weldline = db.HJGL_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJointId);
|
||||
if (weldline != null)
|
||||
{
|
||||
@@ -189,7 +189,7 @@ namespace BLL
|
||||
/// <param name="operateState">日报操作(增加、删除)</param>
|
||||
public static void UpdateWeldJointAddG(string weldJointId, string jointAttribute, string operateState)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
if (operateState == Const.BtnDelete || jointAttribute != "固定口")
|
||||
{
|
||||
Model.HJGL_WeldJoint deleteWeldJoint = db.HJGL_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJointId);
|
||||
@@ -218,7 +218,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static Model.View_HJGL_WeldJoint GetViewWeldJointById(string weldJointId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
return db.View_HJGL_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJointId);
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static bool GetWelderLimitDN(string projectId, string welderId, DateTime weldingDate)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
var jots = from x in db.HJGL_WeldJoint
|
||||
join y in db.HJGL_WeldingDaily on x.WeldingDailyId equals y.WeldingDailyId
|
||||
|
||||
Reference in New Issue
Block a user