|
|
@ -1244,18 +1244,34 @@ namespace Webservice |
|
|
|
//因为客户端先插入,再调用接口,因此取第二条为前置状态 直接访问接口是,应该取第一条进行测试
|
|
|
|
string lastState = string.Empty; |
|
|
|
string lastStation = string.Empty; |
|
|
|
if (inspectTable.Rows.Count > 1) |
|
|
|
|
|
|
|
if (!position.Contains("点修补")) |
|
|
|
{ |
|
|
|
lastState = inspectTable.Rows[1]["inspectResult"].ToString(); |
|
|
|
lastStation = inspectTable.Rows[1]["stationNo"].ToString(); |
|
|
|
if (inspectTable.Rows.Count > 1) |
|
|
|
{ |
|
|
|
lastState = inspectTable.Rows[1]["inspectResult"].ToString(); |
|
|
|
lastStation = inspectTable.Rows[1]["stationNo"].ToString(); |
|
|
|
} |
|
|
|
if (lastState == "合格") |
|
|
|
{ |
|
|
|
if (lastStation != inspectTable.Rows[0]["stationNo"].ToString()) |
|
|
|
{ |
|
|
|
lastState = ""; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(lastState == "合格") |
|
|
|
else |
|
|
|
{ |
|
|
|
if(lastStation != inspectTable.Rows[0]["stationNo"].ToString()) |
|
|
|
if (inspectTable.Rows.Count > 1) |
|
|
|
{ |
|
|
|
lastState = ""; |
|
|
|
lastState = inspectTable.Rows[1]["inspectResult"].ToString(); |
|
|
|
if (lastState.Contains("其它")) |
|
|
|
{ |
|
|
|
lastState = ""; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//string lastOkState = string.Empty;
|
|
|
|
//if (inspectTable.Rows.Count > 0)
|
|
|
|
//{
|
|
|
|