This commit is contained in:
1 parent
e98f6c1e92
commit
abf2a8919c
2 files changed
+160
-17
No files matched your search
@@ -39,6 +39,24 @@ namespace VEPROMS.CSLA.Library
|
||||
this.Add(new PartInfo(dr, itemInfo));
|
||||
IsReadOnly = true;
|
||||
}
|
||||
public PartInfo Find(E_FromType fromType)
|
||||
{
|
||||
foreach(PartInfo partInfo in this)
|
||||
{
|
||||
if ((E_FromType)partInfo.FromType == fromType)
|
||||
return partInfo;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public PartInfo Find(ItemInfo itemInfo)
|
||||
{
|
||||
foreach (PartInfo partInfo in this)
|
||||
{
|
||||
if (partInfo.MyItem.ItemID == itemInfo.ItemID)
|
||||
return partInfo;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public partial class PartInfo : IVEDrillDownReadOnly
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user