修正
This commit is contained in:
@@ -120,21 +120,13 @@ namespace NX.ERP.U8.Store
|
||||
/// <returns></returns>
|
||||
private string GetHeadTemplate()
|
||||
{
|
||||
|
||||
if (!string.IsNullOrEmpty(strTemlateHead))
|
||||
{
|
||||
return strTemlateHead;
|
||||
}
|
||||
else
|
||||
if (string.IsNullOrEmpty(strTemlateHead))
|
||||
{
|
||||
lock (lockHeadobj)
|
||||
{
|
||||
|
||||
if (!string.IsNullOrEmpty(strTemlateHead))
|
||||
{
|
||||
return strTemlateHead;
|
||||
}
|
||||
else
|
||||
if (string.IsNullOrEmpty(strTemlateHead))
|
||||
|
||||
{
|
||||
strTemlateHead = FileHelp.ReadFile(HeadFile);
|
||||
if (string.IsNullOrEmpty(strTemlateHead))
|
||||
@@ -142,16 +134,12 @@ namespace NX.ERP.U8.Store
|
||||
this.LoadTemplate();
|
||||
strTemlateHead = GetHeadTemplate();
|
||||
}
|
||||
return strTemlateHead;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return strTemlateHead;
|
||||
|
||||
}
|
||||
|
||||
@@ -165,21 +153,12 @@ namespace NX.ERP.U8.Store
|
||||
/// <returns></returns>
|
||||
private string GetBodyTemplate()
|
||||
{
|
||||
|
||||
if (!string.IsNullOrEmpty(strTemlateBody))
|
||||
{
|
||||
return strTemlateBody;
|
||||
}
|
||||
else
|
||||
if (string.IsNullOrEmpty(strTemlateBody))
|
||||
{
|
||||
lock (lockBodyobj)
|
||||
{
|
||||
if (string.IsNullOrEmpty(strTemlateBody))
|
||||
|
||||
if (!string.IsNullOrEmpty(strTemlateBody))
|
||||
{
|
||||
return strTemlateHead;
|
||||
}
|
||||
else
|
||||
{
|
||||
strTemlateBody = FileHelp.ReadFile(BodyFile);
|
||||
if (string.IsNullOrEmpty(strTemlateBody))
|
||||
@@ -187,15 +166,10 @@ namespace NX.ERP.U8.Store
|
||||
this.LoadTemplate();
|
||||
strTemlateBody = GetHeadTemplate();
|
||||
}
|
||||
return strTemlateBody;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return strTemlateBody;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user