代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
using NPOI.OpenXmlFormats.Shared;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Model;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
public class APIPipelineComponentService
|
||||
public class APIPipelineComponentService
|
||||
{
|
||||
public static List<PipelineComponentItem> GetPackagingManageList(string projectid)
|
||||
{
|
||||
@@ -16,25 +13,25 @@ namespace BLL
|
||||
{
|
||||
|
||||
var q = (from x in db.HJGL_Pipeline_Component
|
||||
join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
|
||||
join z in db.Base_Unit on x.PreUnit equals z.UnitId into tt
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into pp
|
||||
join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId
|
||||
join z in db.Base_Unit on x.PreUnit equals z.UnitId into tt
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into pp
|
||||
from t in tt.DefaultIfEmpty()
|
||||
from p in pp.DefaultIfEmpty()
|
||||
where y.ProjectId == projectid
|
||||
select new PipelineComponentItem
|
||||
{
|
||||
PipelineComponentId = x.PipelineComponentId,
|
||||
PipelineComponentCode = x.PipelineComponentCode,
|
||||
PreUnit = t.UnitName,
|
||||
DrawingName = x.DrawingName,
|
||||
BoxNumber = x.BoxNumber,
|
||||
State = x.State,
|
||||
PlanStartDate = string.Format("{0:g}", y.PlanStartDate) ,
|
||||
QRCode = x.QRCode,
|
||||
ReceiveMan=p.PersonName,
|
||||
ReceiveDate= string.Format("{0:g}", x.ReceiveDate)
|
||||
}).Distinct();
|
||||
select new PipelineComponentItem
|
||||
{
|
||||
PipelineComponentId = x.PipelineComponentId,
|
||||
PipelineComponentCode = x.PipelineComponentCode,
|
||||
PreUnit = t.UnitName,
|
||||
DrawingName = x.DrawingName,
|
||||
BoxNumber = x.BoxNumber,
|
||||
State = x.State,
|
||||
PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
|
||||
QRCode = x.QRCode,
|
||||
ReceiveMan = p.PersonName,
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate)
|
||||
}).Distinct();
|
||||
return q.ToList();
|
||||
|
||||
}
|
||||
@@ -52,8 +49,8 @@ namespace BLL
|
||||
from t in tt.DefaultIfEmpty()
|
||||
from p in pp.DefaultIfEmpty()
|
||||
join unitwork in db.WBS_UnitWork on y.UnitWorkId equals unitwork.UnitWorkId into unitworks
|
||||
from unitwork in unitworks.DefaultIfEmpty()
|
||||
where x.PipelineComponentId== PipelineComponentId
|
||||
from unitwork in unitworks.DefaultIfEmpty()
|
||||
where x.PipelineComponentId == PipelineComponentId
|
||||
select new PipelineComponentItem
|
||||
{
|
||||
PipelineComponentId = x.PipelineComponentId,
|
||||
@@ -61,12 +58,12 @@ namespace BLL
|
||||
PreUnit = t.UnitName,
|
||||
DrawingName = x.DrawingName,
|
||||
BoxNumber = x.BoxNumber,
|
||||
State = x.State,
|
||||
State = x.State,
|
||||
PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
|
||||
QRCode = x.QRCode,
|
||||
ReceiveMan = p.PersonName,
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
|
||||
UnitWorkName=unitwork.UnitWorkName,
|
||||
UnitWorkName = unitwork.UnitWorkName,
|
||||
Remark = x.Remark
|
||||
}).FirstOrDefault();
|
||||
if (q != null)
|
||||
@@ -84,7 +81,7 @@ namespace BLL
|
||||
|
||||
}
|
||||
}
|
||||
public static void GetComponentConfirmArrival(string PipelineComponentId,string PersonId,string message)
|
||||
public static void GetComponentConfirmArrival(string PipelineComponentId, string PersonId, string message)
|
||||
{
|
||||
var q = BLL.HJGL_PipelineComponentService.GetPipelineComponentById(PipelineComponentId);
|
||||
if (q != null)
|
||||
@@ -92,7 +89,7 @@ namespace BLL
|
||||
if (!string.IsNullOrEmpty(message))
|
||||
{
|
||||
q.State = HJGL_PipelineComponentService.StatePenRec;
|
||||
q.Remark=message;
|
||||
q.Remark = message;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user