|
@@ -278,7 +278,7 @@ namespace WCS.WorkEngineering.Systems
|
|
|
else if (ps.PropertyType == typeof(ProtocolData<WCS_Robot531>[]))
|
|
|
{
|
|
|
if (pack.Robot531.Any())
|
|
|
- db.Insertable(pack.Robot531.Select(x => x.Data).ToList()).ExecuteCommand();
|
|
|
+ db.Insertable(pack.Robot531.Select(x => x.Data).ToList()).ToSqlString();
|
|
|
}
|
|
|
else if (ps.PropertyType == typeof(ProtocolData<WCS_SRM520>[]))
|
|
|
{
|
|
@@ -292,7 +292,8 @@ namespace WCS.WorkEngineering.Systems
|
|
|
}
|
|
|
else if (ps.PropertyType == typeof(ProtocolData<WCS_SRM537>[]))
|
|
|
{
|
|
|
- if (pack.SRM537.Any()) db.Insertable(pack.SRM537.Select(x => x.Data).ToList()).ExecuteCommand();
|
|
|
+ if (pack.SRM537.Any())
|
|
|
+ db.Insertable(pack.SRM537.Select(x => x.Data).Where(x => x.Alarm == 0).ToList()).ExecuteCommand();
|
|
|
}
|
|
|
else if (ps.PropertyType == typeof(ProtocolData<WCS_Station520>[]))
|
|
|
{
|