|
|
@@ -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 (
|