qinqi 2 лет назад
Родитель
Сommit
c56cf871d5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      wwwroot/mes/mst/workstationuser/workstationuser.ashx

+ 2 - 2
wwwroot/mes/mst/workstationuser/workstationuser.ashx

@@ -268,7 +268,7 @@ public class workstationuser : IHttpHandler, IRequiresSessionState
             string ID = form["WORKSTATIONID"];
             string[] ListID = ID.Split(',');
             object isExists = null;
-            for (int i = 0; i < ListID.Length-1; i++)
+            for (int i = 0; i < ListID.Length; i++)
             {
                  isExists = conn.ExecuteScalar(
                     @"SELECT 1
@@ -313,7 +313,7 @@ public class workstationuser : IHttpHandler, IRequiresSessionState
             try
             {
                 int result = 0;
-                for (int i = 0; i < ListID.Length-1; i++) {
+                for (int i = 0; i < ListID.Length; i++) {
                     //string primaryKey = conn.GetSequenceNextval("SEQ_TP_MST_WORKSTATIONUSER").ToString();
                     result = conn.ExecuteNonQuery(@"
                 INSERT INTO TP_MST_WORKSTATIONUSER (