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