|
|
@@ -919,6 +919,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string error = "";
|
|
|
decimal amount = 0;
|
|
|
List<string> PosSnList = new List<string>();
|
|
|
+ List<string> opData = new List<string>();
|
|
|
for (int i = 1; i < list.Count; i++)
|
|
|
{
|
|
|
JsonData dr = list[i];
|
|
|
@@ -1045,6 +1046,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
AfterOutNum = toStore.OutNum, //操作后出库数
|
|
|
}).Entity;
|
|
|
db.SaveChanges();
|
|
|
+
|
|
|
+ if(!opData.Contains(posInfo.BuyUserId + ":" + posInfo.BrandId))
|
|
|
+ {
|
|
|
+ opData.Add(posInfo.BuyUserId + ":" + posInfo.BrandId);
|
|
|
+ }
|
|
|
|
|
|
posInfo.StoreId = toStore.Id;
|
|
|
posInfo.BuyUserId = 0;
|
|
|
@@ -1135,6 +1141,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}).Entity;
|
|
|
db.SaveChanges();
|
|
|
|
|
|
+ if(!opData.Contains(posInfo.BuyUserId + ":" + posInfo.BrandId))
|
|
|
+ {
|
|
|
+ opData.Add(posInfo.BuyUserId + ":" + posInfo.BrandId);
|
|
|
+ }
|
|
|
+
|
|
|
posInfo.StoreId = toStore.Id;
|
|
|
posInfo.BuyUserId = 0;
|
|
|
posInfo.UserId = 0;
|
|
|
@@ -1174,6 +1185,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
return "Warning|" + error;
|
|
|
}
|
|
|
+ foreach(string sub in opData)
|
|
|
+ {
|
|
|
+ string[] datalist = sub.Split(":");
|
|
|
+ PublicFunction.SycnMachineCount(int.Parse(datalist[0]), int.Parse(datalist[1]));
|
|
|
+ }
|
|
|
}
|
|
|
AddSysLog("0", "MachinesRejectStore", "Import");
|
|
|
return "success";
|