多次改配编号在GP后加数字

dev
cjy 2 weeks ago
parent 27dd5ed8fe
commit 23159f5d6e

@ -350,7 +350,28 @@ namespace DS.WMS.Core.Op.Method
} }
#endregion #endregion
//更新原单信息 //更新原单信息
if (info.CustomerNo.Contains("-GP"))
{
var strArr = info.CustomerNo.Split('-');
var last = strArr.LastOrDefault();
if (last == "GP")
{
info.CustomerNo = info.CustomerNo + "-2";
}
else
{
int num = int.Parse(last);
num = num + 1;
var first = strArr.FirstOrDefault();
info.CustomerNo = info.CustomerNo + "-GP" + "-" + num;
}
}
else
{
info.CustomerNo = info.CustomerNo + "-GP"; info.CustomerNo = info.CustomerNo + "-GP";
}
info.IsBooking = false; info.IsBooking = false;
info.IsCustoms = false; info.IsCustoms = false;
info.IsLand = false; info.IsLand = false;

Loading…
Cancel
Save