This commit is contained in:
@ -19,13 +19,19 @@ namespace Epost.TestToolsWeb.Tests.Controllers
|
||||
[TestMethod]
|
||||
public void d()
|
||||
{
|
||||
string sku = "211100";
|
||||
if (sku.Substring(0, 1) == "2" && sku.Substring(1, 1) != "5")
|
||||
string showmes = "211100|394892345|938275908324|93875|934725";
|
||||
if (showmes.Length > 30)
|
||||
{
|
||||
if (sku.Length >= 7)
|
||||
string newstr = showmes.Substring(30, showmes.Length-30);
|
||||
if (newstr.Length > 30)
|
||||
{
|
||||
sku = sku.Substring(1, 6);
|
||||
showmes = showmes.Substring(0, 30) + "\r" + newstr.Substring(0, 30) + "\r" + newstr.Substring(30, newstr.Length-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
showmes = showmes.Substring(0, 30) + "\r" + newstr;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user