GP12触摸屏优化
This commit is contained in:
@@ -197,7 +197,12 @@ namespace ZR.Service.Business
|
||||
);
|
||||
if (baseDefect != null)
|
||||
{
|
||||
var propertyName = $"{defect.DefectCode}";
|
||||
// 取得第一个和最后一个字符
|
||||
string code = defect.DefectCode;
|
||||
char firstChar = code[0];
|
||||
char lastChar = code[code.Length - 1];
|
||||
// 组合第一个和最后一个字符
|
||||
string propertyName = $"{firstChar}{lastChar}";
|
||||
dto.AddDynamicProperty(propertyName, defect.DefectNum);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user