焊接材料管理修改
This commit is contained in:
@@ -29,7 +29,8 @@ namespace BLL
|
||||
StackingPosition = x.StackingPosition,
|
||||
State= x.State,
|
||||
ReceiveMan=t.PersonName,
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate)
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
|
||||
TrainNumber=x.TrainNumber,
|
||||
}).Distinct();
|
||||
return q.ToList();
|
||||
|
||||
@@ -57,7 +58,8 @@ namespace BLL
|
||||
StackingPosition = x.StackingPosition,
|
||||
State =x.State,
|
||||
ReceiveMan = t.PersonName,
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate)
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
|
||||
TrainNumber = x.TrainNumber,
|
||||
}).FirstOrDefault();
|
||||
var tb_packing = (from x in db.HJGL_PackagingManage where x.PackagingManageId==packagingManageId select x ).FirstOrDefault() ;
|
||||
var PipelineComponentIdList = tb_packing.PipelineComponentId.Split(',');
|
||||
|
||||
@@ -51,6 +51,9 @@ namespace BLL
|
||||
join m in db.Person_Persons on x.ReceiveMan equals m.PersonId into pp
|
||||
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
|
||||
select new PipelineComponentItem
|
||||
{
|
||||
@@ -63,7 +66,8 @@ namespace BLL
|
||||
PlanStartDate = string.Format("{0:g}", y.PlanStartDate),
|
||||
QRCode = x.QRCode,
|
||||
ReceiveMan = p.PersonName,
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate)
|
||||
ReceiveDate = string.Format("{0:g}", x.ReceiveDate),
|
||||
UnitWorkName=unitwork.UnitWorkName,
|
||||
}).FirstOrDefault();
|
||||
bool isPower = Person_PersonsService.IsGeneralUnitByPersonId(personId, projectId);
|
||||
pipelineComponentDetail.pipelineComponentItem = q;
|
||||
|
||||
@@ -237,7 +237,7 @@ namespace BLL
|
||||
ProjectId = newItem.ProjectId,
|
||||
UnitWorkId = newItem.UnitWorkId,
|
||||
UnitId = newItem.UnitId,
|
||||
WeldingDate = newItem.WeldingDate,
|
||||
WeldingDate = newItem.WeldingDate,
|
||||
Tabler = newItem.Tabler,
|
||||
TableDate = newItem.TableDate,
|
||||
Remark = newItem.Remark,
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace BLL
|
||||
public string PlanStartDate { get; set; }
|
||||
|
||||
public string Code { get; set; }
|
||||
public string TrainNumber { get; set; }
|
||||
|
||||
|
||||
}
|
||||
@@ -99,6 +100,7 @@ namespace BLL
|
||||
x.ContactName,
|
||||
x.ContactPhone,
|
||||
x.Remark,
|
||||
x.TrainNumber
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
@@ -144,6 +146,7 @@ namespace BLL
|
||||
ReceiveMan = t.PersonName,
|
||||
ReceiveDate = x.ReceiveDate.HasValue ? string.Format("{0:g}", x.ReceiveDate) : "",
|
||||
PlanStartDate = GetMinPlanStartDate(x.PackagingManageId),
|
||||
TrainNumber = x.TrainNumber,
|
||||
Code = x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).Substring(x.PackagingCode.Substring(0, x.PackagingCode.LastIndexOf("-")).LastIndexOf("-") + 1),
|
||||
|
||||
}).Distinct();
|
||||
@@ -225,6 +228,7 @@ namespace BLL
|
||||
Remark = newtable.Remark,
|
||||
ReceiveDate = newtable.ReceiveDate,
|
||||
ReceiveMan = newtable.ReceiveMan,
|
||||
TrainNumber = newtable.TrainNumber
|
||||
};
|
||||
db.HJGL_PackagingManage.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
@@ -248,6 +252,7 @@ namespace BLL
|
||||
table.Remark = newtable.Remark;
|
||||
table.ReceiveMan = newtable.ReceiveMan;
|
||||
table.ReceiveDate = newtable.ReceiveDate;
|
||||
table.TrainNumber = newtable.TrainNumber;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user