代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -3,7 +3,6 @@ using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
@@ -11,7 +10,7 @@ namespace BLL
|
||||
|
||||
public static class HJGL_PipelineComponentjointService
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
#region 获取列表
|
||||
@@ -31,7 +30,7 @@ namespace BLL
|
||||
(string.IsNullOrEmpty(table.PipelineComponentId) || x.PipelineComponentId.Contains(table.PipelineComponentId)) &&
|
||||
(string.IsNullOrEmpty(table.PipelineComponentCode) || x.PipelineComponentCode.Contains(table.PipelineComponentCode)) &&
|
||||
(string.IsNullOrEmpty(table.WeldJointId) || x.WeldJointId.Contains(table.WeldJointId)) &&
|
||||
(string.IsNullOrEmpty(table.WeldJointCode) || x.WeldJointCode.Contains(table.WeldJointCode))
|
||||
(string.IsNullOrEmpty(table.WeldJointCode) || x.WeldJointCode.Contains(table.WeldJointCode))
|
||||
select x
|
||||
;
|
||||
|
||||
@@ -120,13 +119,13 @@ namespace BLL
|
||||
/// 根据焊口号更改状态
|
||||
/// </summary>
|
||||
/// <param name="WeldJointId"></param>
|
||||
public static void UpdateStateByWeldJointId(string WeldJointId,DateTime TaskDate)
|
||||
public static void UpdateStateByWeldJointId(string WeldJointId, DateTime TaskDate)
|
||||
{
|
||||
|
||||
Model.HJGL_Pipeline_ComponentJoint table = Funs.DB.HJGL_Pipeline_ComponentJoint.FirstOrDefault(x => x.WeldJointId == WeldJointId);
|
||||
if (table != null)
|
||||
{
|
||||
table.State =1;
|
||||
{
|
||||
table.State = 1;
|
||||
Funs.DB.SubmitChanges();
|
||||
GetProductionByPipelineComponentId(table.PipelineComponentId, TaskDate);
|
||||
}
|
||||
@@ -134,10 +133,10 @@ namespace BLL
|
||||
}
|
||||
public static void GetProductionByPipelineComponentId(string PipelineComponentId, DateTime TaskDate)
|
||||
{
|
||||
var q = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId).ToList();
|
||||
if (q.Count!=0)
|
||||
var q = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId).ToList();
|
||||
if (q.Count != 0)
|
||||
{
|
||||
var NotProductionNum = (from x in q where x.State == 0||x.State ==null select x).Count(); //未生产数量
|
||||
var NotProductionNum = (from x in q where x.State == 0 || x.State == null select x).Count(); //未生产数量
|
||||
var ProductionNum = (from x in q where x.State == 1 select x).Count(); //已生产数量
|
||||
if (NotProductionNum == 0) //全部完成
|
||||
{
|
||||
@@ -154,10 +153,10 @@ namespace BLL
|
||||
HJGL_PipelineComponentService.UpdateProductionState(PipelineComponentId, 1, TaskDate);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static void DeleteHJGL_Pipeline_ComponentJointById(string Id)
|
||||
{
|
||||
|
||||
@@ -172,7 +171,7 @@ namespace BLL
|
||||
public static void DeleteHJGL_Pipeline_ComponentJointByPipelineComponentId(string PipelineComponentId)
|
||||
{
|
||||
|
||||
var table = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId);
|
||||
var table = Funs.DB.HJGL_Pipeline_ComponentJoint.Where(x => x.PipelineComponentId == PipelineComponentId);
|
||||
if (table != null)
|
||||
{
|
||||
Funs.DB.HJGL_Pipeline_ComponentJoint.DeleteAllOnSubmit(table);
|
||||
|
||||
Reference in New Issue
Block a user