This commit is contained in:
@@ -93,29 +93,36 @@ namespace VEPROMS.CSLA.Library
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
public ItemInfoList LibraryDocumentUsageList
|
||||
{
|
||||
get
|
||||
{
|
||||
bool first = true;
|
||||
ItemInfoList iil = null;
|
||||
if (DocumentEntries == null) return null;
|
||||
foreach (EntryInfo myEntry in DocumentEntries)
|
||||
{
|
||||
foreach (ItemInfo myitem in myEntry.MyContent.ContentItems)
|
||||
{
|
||||
if (first)
|
||||
{
|
||||
iil = new ItemInfoList(myitem);
|
||||
first = false;
|
||||
}
|
||||
else
|
||||
iil.AddItem(myitem);
|
||||
public ItemInfoList LibraryDocumentUsageList
|
||||
{
|
||||
get
|
||||
{
|
||||
bool first = true;
|
||||
ItemInfoList iil = null;
|
||||
if (DocumentEntries == null) return null;
|
||||
foreach (EntryInfo myEntry in DocumentEntries)
|
||||
{
|
||||
foreach (ItemInfo myitem in myEntry.MyContent.ContentItems)
|
||||
{
|
||||
if (first)
|
||||
{
|
||||
iil = new ItemInfoList(myitem);
|
||||
first = false;
|
||||
}
|
||||
else
|
||||
iil.AddItem(myitem);
|
||||
}
|
||||
}
|
||||
return iil;
|
||||
}
|
||||
}
|
||||
}
|
||||
return iil;
|
||||
}
|
||||
}
|
||||
#region DocumentConfig
|
||||
[NonSerialized]
|
||||
private DocumentConfig _DocumentConfig;
|
||||
public DocumentConfig DocumentConfig
|
||||
{ get { return (_DocumentConfig != null ? _DocumentConfig : _DocumentConfig = new DocumentConfig(this)); } }
|
||||
#endregion
|
||||
|
||||
}
|
||||
public partial class DocumentInfoList
|
||||
{
|
||||
@@ -276,7 +283,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
_MyFile = new FileInfo(string.Format(@"{0}\tmp_{1}{2}{3}", TemporaryFolder, MyDocument.DocID, Unique, MyDocument.FileExtension));
|
||||
FileStream fs = _MyFile.Create();
|
||||
fs.Write(MyDocument.DocContent, 0, MyDocument.DocContent.Length);
|
||||
if(MyDocument.DocContent != null)fs.Write(MyDocument.DocContent, 0, MyDocument.DocContent.Length);
|
||||
fs.Close();
|
||||
_MyFile.CreationTime = _MyDocument.DTS;
|
||||
_MyFile.LastWriteTime = _MyDocument.DTS;
|
||||
|
Reference in New Issue
Block a user