11
This commit is contained in:
@@ -534,9 +534,13 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
Model.Repair_RepairRecord repairRecord = BLL.RepairRecordService.GetRepairRecordById(repairRecordId);
|
||||
var pipe = BLL.Pipeline_WeldJointService.GetViewWeldJointById(repairRecord.WeldJointId);
|
||||
string pipelineId = string.Empty;
|
||||
string weldingMethodId = string.Empty;
|
||||
string grooveTypeId = string.Empty;
|
||||
if (pipe != null)
|
||||
{
|
||||
pipelineId = pipe.PipelineId;
|
||||
weldingMethodId= pipe.WeldingMethodId;
|
||||
grooveTypeId = pipe.GrooveTypeId;
|
||||
}
|
||||
var t = from x in Funs.DB.Batch_BatchTrustItem where x.RepairRecordId == repairRecordId select x;
|
||||
if (t.Count() == 0)
|
||||
@@ -557,6 +561,8 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
newRepairTrust.WorkAreaId = repairRecord.WorkAreaId;
|
||||
newRepairTrust.DetectionTypeId = repairRecord.DetectionTypeId;
|
||||
newRepairTrust.PipelineId = pipelineId;
|
||||
newRepairTrust.WeldingMethodId = weldingMethodId;
|
||||
newRepairTrust.GrooveTypeId= grooveTypeId;
|
||||
BLL.Batch_BatchTrustService.AddBatchTrust(newRepairTrust); // 新增返修委托单
|
||||
|
||||
Model.Batch_BatchTrustItem newRepairTrustItem = new Model.Batch_BatchTrustItem();
|
||||
@@ -572,6 +578,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
var exp = BLL.RepairRecordService.GetExportItem(repairRecordId);
|
||||
if (exp != null)
|
||||
{
|
||||
var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(exp.First().WeldJointId);
|
||||
string exportTrustCode = string.Empty;
|
||||
if (repairRecord.RepairRecordCode.Substring(repairRecord.RepairRecordCode.Length - 4) == "K1R2")
|
||||
{
|
||||
@@ -600,6 +607,8 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
newExportTrust.WorkAreaId = repairRecord.WorkAreaId;
|
||||
newExportTrust.DetectionTypeId = repairRecord.DetectionTypeId;
|
||||
newExportTrust.PipelineId = pipelineId;
|
||||
newExportTrust.WeldingMethodId = jot.WeldingMethodId;
|
||||
newExportTrust.GrooveTypeId = jot.GrooveTypeId;
|
||||
|
||||
BLL.Batch_BatchTrustService.AddBatchTrust(newExportTrust); // 新增扩透委托单
|
||||
foreach (var q in exp)
|
||||
|
||||
Reference in New Issue
Block a user