|
|
@@ -2369,8 +2369,8 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
return "请输入新机发货仓库编号";
|
|
|
}
|
|
|
- OldSnList = OldSn.Replace("\r", "").Split('\n');
|
|
|
- NewSnList = NewSn.Replace("\r", "").Split('\n');
|
|
|
+ OldSnList = OldSn.Replace("\r", "").Replace("\n", ",").Split(',');
|
|
|
+ NewSnList = NewSn.Replace("\r", "").Replace("\n", ",").Split(',');
|
|
|
if (OldSnList.Length != NewSnList.Length)
|
|
|
{
|
|
|
return "原机具SN数量和新机具SN数量不一致";
|
|
|
@@ -2412,7 +2412,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
return "您输入的旧机SN不存在或者不在" + MakerCode + "名下";
|
|
|
}
|
|
|
- PosMachinesTwo newpos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == newForSnNo.SnId && m.BindingState == 0 && m.ActivationState == 0 && m.PreUserId == 0) ?? new PosMachinesTwo();
|
|
|
+ PosMachinesTwo newpos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == newForSnNo.SnId && m.BindingState == 0 && m.ActivationState == 0 && m.BuyUserId == 0 && m.UserId == 0 && m.PreUserId == 0) ?? new PosMachinesTwo();
|
|
|
if (newpos.Id == 0)
|
|
|
{
|
|
|
return "您输入的新机SN不存在或不满足条件";
|