This commit is contained in:
parent
1eef90f60b
commit
c2a5254e42
@ -2576,7 +2576,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
return(_TransTypeList == null)? _TransTypeList = new TransTypeList(SelectNodes("TransTypeData/TransTypes")): _TransTypeList;
|
||||
return(_TransTypeList == null || _TransTypeList.Count==0)? _TransTypeList = new TransTypeList(SelectNodes("TransTypeData/TransTypes")): _TransTypeList;
|
||||
}
|
||||
}
|
||||
public TransData(XmlNode xmlNode) : base(xmlNode) { }
|
||||
|
@ -95,7 +95,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (xmlNode == null) return null;
|
||||
XmlNodeList xl = xmlNode.SelectNodes(path);
|
||||
if (xl == null) xl = InheritLookupNodes(xmlNode, path);
|
||||
if (xl == null||xl.Count==0) xl = InheritLookupNodes(xmlNode, path);
|
||||
if (xl == null) return null;
|
||||
return xl;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user