2023-01-13 15:30:20 +08:00
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
|
using Epost.BLL;
|
|
|
|
|
using Epost.Model;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Epost.DAL.Cache;
|
|
|
|
|
using Epost.Common;
|
|
|
|
|
using System.Web.Helpers;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace Epost.TestToolsWeb.Tests.Controllers
|
|
|
|
|
{
|
|
|
|
|
[TestClass]
|
|
|
|
|
public class UnitTest1
|
|
|
|
|
{
|
|
|
|
|
OrderBLL bll = new OrderBLL();
|
|
|
|
|
[TestMethod]
|
|
|
|
|
public void d()
|
|
|
|
|
{
|
2024-01-12 16:53:44 +08:00
|
|
|
|
string showmes = "211100|394892345|938275908324|93875|934725";
|
|
|
|
|
if (showmes.Length > 30)
|
2023-01-13 15:30:20 +08:00
|
|
|
|
{
|
2024-01-12 16:53:44 +08:00
|
|
|
|
string newstr = showmes.Substring(30, showmes.Length-30);
|
|
|
|
|
if (newstr.Length > 30)
|
2023-01-13 15:30:20 +08:00
|
|
|
|
{
|
2024-01-12 16:53:44 +08:00
|
|
|
|
showmes = showmes.Substring(0, 30) + "\r" + newstr.Substring(0, 30) + "\r" + newstr.Substring(30, newstr.Length-30);
|
2023-01-13 15:30:20 +08:00
|
|
|
|
}
|
2024-01-12 16:53:44 +08:00
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
showmes = showmes.Substring(0, 30) + "\r" + newstr;
|
|
|
|
|
}
|
|
|
|
|
|
2023-01-13 15:30:20 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|