Przeglądaj źródła

内部外部操作ids 是string

liyuanyuan 4 lat temu
rodzic
commit
206e4fa166

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/archivesNew.cs

@@ -437,7 +437,7 @@ namespace CallCenterApi.DAL
437 437
             strSql.Append("@archivesid,@Warehousing,@WarehousingDate,@Operator,@remark,@fieldId,@companyName)");
438 438
             strSql.Append(";select @@IDENTITY");
439 439
             SqlParameter[] parameters = {
440
-                    new SqlParameter("@archivesid", SqlDbType.Int ,4),
440
+                    new SqlParameter("@archivesid",  SqlDbType.NVarChar,-1),
441 441
                     new SqlParameter("@Warehousing", SqlDbType.NVarChar,-1),
442 442
                     new SqlParameter("@WarehousingDate", SqlDbType.DateTime),
443 443
                     new SqlParameter("@Operator", SqlDbType.NVarChar,50),
@@ -475,7 +475,7 @@ namespace CallCenterApi.DAL
475 475
             strSql.Append("@archivesid,@Warehousing,@WarehousingDate,@Operator,@remark,@fieldId,@companyName)");
476 476
             strSql.Append(";select @@IDENTITY");
477 477
             SqlParameter[] parameters = {
478
-                    new SqlParameter("@archivesid", SqlDbType.Int ,4),
478
+                    new SqlParameter("@archivesid", SqlDbType.NVarChar,-1),
479 479
                     new SqlParameter("@Warehousing", SqlDbType.NVarChar,-1),
480 480
                     new SqlParameter("@WarehousingDate", SqlDbType.DateTime),
481 481
                     new SqlParameter("@Operator", SqlDbType.NVarChar,50),

+ 7 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/archives/archivesController.cs

@@ -709,7 +709,7 @@ namespace CallCenterApi.Interface.Controllers.archives
709 709
                 {
710 710
                     archivesnewbll.updateState(arc.id, stateid);
711 711
                     arcnames += arc.A_archiveName + ",";
712
-                    arcids += arc.id;
712
+                    arcids += arc.id+",";
713 713
                 }
714 714
                 else
715 715
                 {
@@ -816,7 +816,7 @@ namespace CallCenterApi.Interface.Controllers.archives
816 816
                 {
817 817
                     archivesnewbll.updateState(arc.id, stateid);
818 818
                     arcnames += arc.A_archiveName + ",";
819
-                    arcids += arc.id;
819
+                    arcids += arc.id + ","; ;
820 820
                 }
821 821
                 else
822 822
                 {
@@ -929,7 +929,7 @@ namespace CallCenterApi.Interface.Controllers.archives
929 929
                 {
930 930
                     archivesnewbll.updateState(arc.id, stateid);
931 931
                     arcnames += arc.A_archiveName + ",";
932
-                    arcids += arc.id;
932
+                    arcids += arc.id + ","; ;
933 933
                 }
934 934
                 else
935 935
                 {
@@ -995,7 +995,7 @@ namespace CallCenterApi.Interface.Controllers.archives
995 995
                 {
996 996
                     archivesnewbll.updateState(arc.id, stateid);
997 997
                     arcnames += arc.A_archiveName + ",";
998
-                    arcids += arc.id;
998
+                    arcids += arc.id + ","; ;
999 999
                 }
1000 1000
                 else
1001 1001
                 {
@@ -2448,11 +2448,11 @@ namespace CallCenterApi.Interface.Controllers.archives
2448 2448
                                 var addlog = new addupdatelog();
2449 2449
                                 addlog.OperationDate = DateTime.Now;
2450 2450
                                 addlog.Operator = CurrentUser.UserData.F_UserCode;
2451
-                                addlog.OperationContent = "导入了一条物资,名称为:" + dataRow[1].ToString();
2451
+                                addlog.OperationContent = "导入了一条物资,名称为:" + item;
2452 2452
                                 addlog.archivesid = n2;
2453 2453
                                 addlog.companyName = dataRow[0].ToString();//公司名称
2454 2454
                                 addlog.type = 0;//条件
2455
-
2455
+                                AddorUpdatelog(addlog);
2456 2456
                                 count++;
2457 2457
                             }
2458 2458
                         }
@@ -2478,7 +2478,7 @@ namespace CallCenterApi.Interface.Controllers.archives
2478 2478
                             addlog.archivesid = n;
2479 2479
                             addlog.companyName = dataRow[0].ToString();//公司名称
2480 2480
                             addlog.type = 0;//条件
2481
-
2481
+                            AddorUpdatelog(addlog);
2482 2482
                             count++;
2483 2483
                         }
2484 2484
                     }