|
|
@@ -2030,15 +2030,14 @@ namespace JLHHJSvr.Helper
|
|
|
var copy_time = DateTime.Now.ToString("yyyMMdd_mmhhss");
|
|
|
if (mattress_copy.mattresscode.IndexOf("@@") > -1)
|
|
|
{
|
|
|
- mattress_copy.mattresscode = mattress_copy.mattresscode.Substring(mattress_copy.mattresscode.IndexOf("@@"));
|
|
|
+ mattress_copy.mattresscode = mattress_copy.mattresscode.Substring(0, mattress_copy.mattresscode.IndexOf("@@"));
|
|
|
}
|
|
|
-
|
|
|
mattress_copy.mattresscode += " @@";
|
|
|
mattress_copy.mattresscode += copy_time;
|
|
|
|
|
|
if (mattress_copy.mattressrelcode.IndexOf("@@") > -1)
|
|
|
{
|
|
|
- mattress_copy.mattressrelcode = mattress_copy.mattressrelcode.Substring(mattress_copy.mattressrelcode.IndexOf("@@"));;
|
|
|
+ mattress_copy.mattresscode = mattress_copy.mattresscode.Substring(0, mattress_copy.mattresscode.IndexOf("@@"));
|
|
|
}
|
|
|
|
|
|
mattress_copy.mattressrelcode += " @@";
|
|
|
@@ -2847,14 +2846,14 @@ namespace JLHHJSvr.Helper
|
|
|
var copy_time = DateTime.Now.ToString("yyyMMdd_mmhhss");
|
|
|
if (child.mattresscode.IndexOf("@@") > -1)
|
|
|
{
|
|
|
- child.mattresscode = child.mattresscode.Substring(child.mattresscode.IndexOf("@@"));
|
|
|
+ child.mattresscode = child.mattresscode.Substring(0, child.mattresscode.IndexOf("@@")).Trim();
|
|
|
child.mattresscode += " @@";
|
|
|
child.mattresscode += copy_time;
|
|
|
}
|
|
|
|
|
|
if (child.mattressrelcode.IndexOf("@@") > -1)
|
|
|
{
|
|
|
- child.mattressrelcode = child.mattressrelcode.Substring(child.mattressrelcode.IndexOf("@@"));
|
|
|
+ child.mattresscode = child.mattressrelcode.Substring(0, child.mattressrelcode.IndexOf("@@")).Trim();
|
|
|
child.mattressrelcode += " @@";
|
|
|
child.mattressrelcode += copy_time;
|
|
|
}
|