This commit is contained in:
parent
3b5e898cea
commit
2ebafa48ce
@ -36,26 +36,54 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
string sep = "\r\nUsed In:\r\n ";
|
string sep = "\r\nUsed In:\r\n ";
|
||||||
foreach (EntryInfo myEntry in DocumentEntries)
|
if (DocumentEntries == null)
|
||||||
|
sb.Append("None");
|
||||||
|
else
|
||||||
{
|
{
|
||||||
foreach (ItemInfo myItem in myEntry.MyContent.ContentItems)
|
foreach (EntryInfo myEntry in DocumentEntries)
|
||||||
{
|
{
|
||||||
ItemInfo proc = myItem.MyProcedure;
|
foreach (ItemInfo myItem in myEntry.MyContent.ContentItems)
|
||||||
sb.Append(sep + proc.MyContent.Number + " - " + proc.MyContent.Text);
|
{
|
||||||
sep = "\r\n ";
|
ItemInfo proc = myItem.MyProcedure;
|
||||||
|
sb.Append(sep + proc.MyContent.Number + " - " + proc.MyContent.Text);
|
||||||
|
sep = "\r\n ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return sb.ToString();
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return iil;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public partial class DocumentInfoList
|
public partial class DocumentInfoList
|
||||||
{
|
{
|
||||||
public static DocumentInfoList GetLibraries()
|
public static DocumentInfoList GetLibraries(bool forceload)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (_DocumentInfoList != null)
|
if (!forceload && _DocumentInfoList != null)
|
||||||
return _DocumentInfoList;
|
return _DocumentInfoList;
|
||||||
DocumentInfoList tmp = DataPortal.Fetch<DocumentInfoList>(new LibraryCriteria(true));
|
DocumentInfoList tmp = DataPortal.Fetch<DocumentInfoList>(new LibraryCriteria(true));
|
||||||
DocumentInfo.AddList(tmp);
|
DocumentInfo.AddList(tmp);
|
||||||
@ -220,6 +248,15 @@ namespace VEPROMS.CSLA.Library
|
|||||||
Console.WriteLine(ex.Message);
|
Console.WriteLine(ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public string FullName
|
||||||
|
{
|
||||||
|
get { return _MyFile.FullName; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if(FullName != value)
|
||||||
|
_MyFile = new FileInfo(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
public void SaveFile()
|
public void SaveFile()
|
||||||
{
|
{
|
||||||
// TODO: Add Try & Catch logic
|
// TODO: Add Try & Catch logic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user