|
|
@@ -742,6 +742,19 @@ public class fqcitemsdetail : IHttpHandler, IReadOnlySessionState
|
|
|
new CDAParameter("UPDATEUSERID", HttpContext.Current.Session["userId"])
|
|
|
);
|
|
|
}
|
|
|
+ if (itemsID > 0)
|
|
|
+ {
|
|
|
+ //更新序号
|
|
|
+ int result2 = conn.ExecuteNonQuery(@"
|
|
|
+ UPDATE TP_PM_FQCITEMSDETAIL C SET C.XUHAO = (
|
|
|
+ SELECT DISTINCT A.XUHAO FROM TP_PM_FQCITEMSDETAIL A
|
|
|
+ WHERE A.INSPECTITEM = C.INSPECTITEM
|
|
|
+ AND A.ITEMSID = 164 ) WHERE C.ITEMSID = @ITEMSID@
|
|
|
+ ",
|
|
|
+ new CDAParameter("ITEMSID", itemsID)
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -878,9 +891,9 @@ public class fqcitemsdetail : IHttpHandler, IReadOnlySessionState
|
|
|
sqlStr += " AND INSTR( m.REMARKS, @REMARKS@ ) > 0 ";
|
|
|
sqlPara.Add(new CDAParameter("REMARKS", form["REMARKS"]));
|
|
|
}
|
|
|
-
|
|
|
- sqlStr += "ORDER BY XUHAO,SID DESC";
|
|
|
-
|
|
|
+
|
|
|
+ sqlStr += "ORDER BY XUHAO,SID DESC";
|
|
|
+
|
|
|
int total = 0;
|
|
|
DataTable dt = conn.SelectPages(page, rows, out total, sqlStr, sqlPara.ToArray());
|
|
|
return new JsonResult(dt) { total = total }.ToJson();
|