2022-10-15 焊接修改
This commit is contained in:
@@ -16,6 +16,8 @@ namespace BLL
|
||||
{
|
||||
var q = (from x in db.HJGL_PackagingManage
|
||||
join n in db.Base_Project on x.ProjectId equals n.ProjectId
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
|
||||
from t in tt.DefaultIfEmpty()
|
||||
where x.ProjectId == projectId
|
||||
select new PackagingManageDetailItem
|
||||
{
|
||||
@@ -26,6 +28,8 @@ namespace BLL
|
||||
ContactPhone = x.ContactPhone,
|
||||
StackingPosition = x.StackingPosition,
|
||||
State= x.State,
|
||||
ReceiveMan=t.PersonName,
|
||||
ReceiveDate=x.ReceiveDate,
|
||||
}).Distinct();
|
||||
return q.ToList();
|
||||
|
||||
@@ -39,6 +43,8 @@ namespace BLL
|
||||
PackagingManageItem packagingManageItem = new PackagingManageItem();
|
||||
var q = (from x in db.HJGL_PackagingManage
|
||||
join n in db.Base_Project on x.ProjectId equals n.ProjectId
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into tt
|
||||
from t in tt.DefaultIfEmpty()
|
||||
where x.PackagingManageId == packagingManageId
|
||||
select new PackagingManageDetailItem
|
||||
{
|
||||
@@ -49,7 +55,9 @@ namespace BLL
|
||||
ContactName = x.ContactName,
|
||||
ContactPhone = x.ContactPhone,
|
||||
StackingPosition = x.StackingPosition,
|
||||
State =x.State
|
||||
State =x.State,
|
||||
ReceiveMan = t.PersonName,
|
||||
ReceiveDate = x.ReceiveDate,
|
||||
}).FirstOrDefault();
|
||||
var tb_packing = (from x in db.HJGL_PackagingManage where x.PackagingManageId==packagingManageId select x ).FirstOrDefault() ;
|
||||
var PipelineComponentIdList = tb_packing.PipelineComponentId.Split(',');
|
||||
@@ -74,12 +82,14 @@ namespace BLL
|
||||
}
|
||||
|
||||
}
|
||||
public static void GetPackingInfoConfirmArrival(string packagingManageId)
|
||||
public static void GetPackingInfoConfirmArrival(string packagingManageId,string PersonId)
|
||||
{
|
||||
var q= BLL.HJGL_PackagingmanageService.GetHJGL_PackagingManageById(packagingManageId);
|
||||
if (q!=null)
|
||||
{
|
||||
q.State = HJGL_PackagingmanageService.state_2;
|
||||
q.ReceiveMan = PersonId;
|
||||
q.ReceiveDate = DateTime.Now;
|
||||
HJGL_PackagingmanageService.UpdateHJGL_PackagingManage(q);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,9 @@ 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
|
||||
from t in tt.DefaultIfEmpty()
|
||||
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
|
||||
{
|
||||
@@ -30,6 +32,8 @@ namespace BLL
|
||||
State = x.State,
|
||||
PlanStartDate = y.PlanStartDate,
|
||||
QRCode = x.QRCode,
|
||||
ReceiveMan=p.PersonName,
|
||||
ReceiveDate=x.ReceiveDate
|
||||
}).Distinct();
|
||||
return q.ToList();
|
||||
|
||||
@@ -44,7 +48,9 @@ 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
|
||||
from t in tt.DefaultIfEmpty()
|
||||
from p in pp.DefaultIfEmpty()
|
||||
where x.PipelineComponentId== PipelineComponentId
|
||||
select new PipelineComponentItem
|
||||
{
|
||||
@@ -56,6 +62,8 @@ namespace BLL
|
||||
State = x.State,
|
||||
PlanStartDate = y.PlanStartDate,
|
||||
QRCode = x.QRCode,
|
||||
ReceiveMan = p.PersonName,
|
||||
ReceiveDate = x.ReceiveDate
|
||||
}).FirstOrDefault();
|
||||
bool isPower = Person_PersonsService.IsGeneralUnitByPersonId(personId, projectId);
|
||||
pipelineComponentDetail.pipelineComponentItem = q;
|
||||
@@ -64,12 +72,14 @@ namespace BLL
|
||||
|
||||
}
|
||||
}
|
||||
public static void GetComponentConfirmArrival(string PipelineComponentId)
|
||||
public static void GetComponentConfirmArrival(string PipelineComponentId,string PersonId)
|
||||
{
|
||||
var q = BLL.HJGL_PipelineComponentService.GetPipelineComponentById(PipelineComponentId);
|
||||
if (q != null)
|
||||
{
|
||||
q.State = HJGL_PipelineComponentService.state_1;
|
||||
q.ReceiveMan = PersonId;
|
||||
q.ReceiveDate = DateTime.Now;
|
||||
HJGL_PipelineComponentService.UpdatePipelineComponent(q);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user