数据库变更CNPC_XJYJ
This commit is contained in:
@@ -35,7 +35,7 @@ namespace BLL
|
||||
|
||||
public static List<Model.HJGL_Batch_PointBatchItem> GetGBatchDetailByBatchId(string batchId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
return (from x in db.HJGL_Batch_PointBatchItem
|
||||
join y in db.HJGL_WeldJoint
|
||||
@@ -91,7 +91,7 @@ namespace BLL
|
||||
/// <param name="isAudit"></param>
|
||||
public static void PointAudit(string pointBatchItemId, bool isAudit)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Batch_PointBatchItem newPointBatchItem = db.HJGL_Batch_PointBatchItem.FirstOrDefault(e => e.PointBatchItemId == pointBatchItemId);
|
||||
if (newPointBatchItem != null)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ namespace BLL
|
||||
/// <param name="welderFirst"></param>
|
||||
public static void UpdateWelderFirst(string pointBatchItemId, bool? welderFirst)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Batch_PointBatchItem newPointBatchItem = db.HJGL_Batch_PointBatchItem.FirstOrDefault(e => e.PointBatchItemId == pointBatchItemId);
|
||||
newPointBatchItem.IsWelderFirst = welderFirst;
|
||||
|
||||
@@ -124,7 +124,7 @@ namespace BLL
|
||||
/// <param name="pipelineFirst"></param>
|
||||
public static void UpdatePipelineFirst(string pointBatchItemId, bool? pipelineFirst)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Batch_PointBatchItem newPointBatchItem = db.HJGL_Batch_PointBatchItem.FirstOrDefault(e => e.PointBatchItemId == pointBatchItemId);
|
||||
newPointBatchItem.IsPipelineFirst = pipelineFirst;
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace BLL
|
||||
/// <param name="checkId"></param>
|
||||
public static void DeleteBatchDetail(string jotId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Batch_PointBatchItem batch = db.HJGL_Batch_PointBatchItem.FirstOrDefault(e => e.WeldJointId == jotId);
|
||||
if (batch != null)
|
||||
{
|
||||
@@ -177,7 +177,7 @@ namespace BLL
|
||||
/// <param name="batchDetailId"></param>
|
||||
public static void DeleteBatchDetailById(string batchDetailId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
Model.HJGL_Batch_PointBatchItem batch = db.HJGL_Batch_PointBatchItem.FirstOrDefault(e => e.PointBatchItemId == batchDetailId);
|
||||
if (batch != null)
|
||||
{
|
||||
@@ -191,7 +191,7 @@ namespace BLL
|
||||
/// <param name="pointBatchId"></param>
|
||||
public static void AutoPoint(string pointBatchId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
int pointNum = 0;
|
||||
int pointNumG = 0;
|
||||
|
||||
Reference in New Issue
Block a user