321
This commit is contained in:
parent
c07aacc08e
commit
f84d8cf3c9
|
|
@ -386,6 +386,34 @@ namespace ZR.Admin.WebApi.Controllers.Business
|
|||
port.Remarks = "";
|
||||
port.OpticalCableOffRemarks = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(parm.EquipmentModel))
|
||||
{
|
||||
var t = parm.Remarks.Split(",");
|
||||
if (t.Length > 0 && t.Length > 2)
|
||||
{
|
||||
parm.EquipmentModel = t[1].Trim();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
if (string.IsNullOrEmpty(parm.BusinessType))
|
||||
{
|
||||
var t = parm.Remarks.Split(" ");
|
||||
if (t.Length > 0 && t.Length > 2)
|
||||
{
|
||||
parm.EquipmentModel = t[2].Trim();
|
||||
}
|
||||
|
||||
}
|
||||
if (string.IsNullOrEmpty(parm.BusinessType) && parm.Remarks.Length > 0)
|
||||
{
|
||||
parm.BusinessType = parm.Remarks.Substring(0, 1);
|
||||
}
|
||||
}
|
||||
|
||||
port.EquipmentModel = parm.EquipmentModel;
|
||||
port.BusinessType = parm.BusinessType;
|
||||
port.HistoryRemarks = ToHistoryString(parm.HistoryFault);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user