Previously checked-in a wrong version.
Previously checked-in the wrong version
This commit is contained in:
@@ -174,32 +174,6 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
return null;
|
||||
}
|
||||
public void ListROIDs()
|
||||
{
|
||||
Console.WriteLine("'roid','ParentID','ID','Value','Title'");
|
||||
foreach (string roid in dicRos.Keys)
|
||||
{
|
||||
rochild child = dicRos[roid];
|
||||
if (child.children != null)
|
||||
{
|
||||
Console.WriteLine("'Group','R{0}',{1},{2},{3},'{4}'", child.roid, child.ParentID, child.ID, child.type, child.title);
|
||||
foreach (rochild child1 in child.children)
|
||||
{
|
||||
if (child1.type == 1)
|
||||
Console.WriteLine("'RO','R{0}',{1},{2},{3},'{4}'", child1.roid, child1.ParentID, child1.ID, child1.type, child1.value);
|
||||
else
|
||||
Console.WriteLine("'RO','R{0}',{1},{2},{3}", child1.roid, child1.ParentID, child1.ID, child1.type);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(child.type == 1)
|
||||
Console.WriteLine("'RO','R{0}',{1},{2},{3},'{4}'", child.roid, child.ParentID, child.ID, child.type, child.value);
|
||||
else
|
||||
Console.WriteLine("'RO','R{0}',{1},{2},{3}", child.roid, child.ParentID, child.ID, child.type);
|
||||
}
|
||||
}
|
||||
}
|
||||
public rochild GetRoChild(string ROID)
|
||||
{
|
||||
if (dicRos == null) ParseIntoDictionary(_ROFst != null ? _ROFst.ROLookup : _ROFstInfo.ROLookup);
|
||||
@@ -741,33 +715,13 @@ namespace VEPROMS.CSLA.Library
|
||||
if (child.appid != null && child.appid != "" && child.ID != 0)
|
||||
{
|
||||
string key = string.Format("{0}-{1}", prefix, child.appid);
|
||||
if (_dicROAPID.ContainsKey(key))
|
||||
{
|
||||
rochild child1 = _dicROAPID[key];
|
||||
Console.WriteLine("'Dupicate AppID','{0}',{1},'{2}',{3},{4},'{5}','{6}','{7}'",
|
||||
key, child.type, child.roid, child.ParentID, child.ID, child.title, child.appid, child.value);
|
||||
Console.WriteLine("'Dupicate AppID','{0}',{1},'{2}',{3},{4},'{5}','{6}','{7}'",
|
||||
key, child1.type, child1.roid, child1.ParentID, child1.ID, child1.title, child1.appid, child1.value);
|
||||
}
|
||||
else
|
||||
if (!_dicROAPID.ContainsKey(key))
|
||||
_dicROAPID.Add(key, child);
|
||||
}
|
||||
if (child.children != null)
|
||||
BuildROAPIDDictionary(prefix, child.children);
|
||||
}
|
||||
}
|
||||
private bool IsFirstReturn(rochild child)
|
||||
{
|
||||
if (child.roid.Length < 13) return true;
|
||||
string SubID = child.roid.Substring(12);
|
||||
if (SubID == "") return true;
|
||||
if (SubID == "0000") return true;
|
||||
if (SubID == "0001") return true;
|
||||
if (SubID == "0002") return true;
|
||||
Console.WriteLine("'Not First','{0}',{1},'{2}',{3},{4},'{5}','{6}'",
|
||||
SubID, child.type, child.roid, child.ParentID, child.ID, child.title, child.appid);
|
||||
return false;
|
||||
}
|
||||
private void ProcessMultiReturnValues(string str, int len)
|
||||
{
|
||||
string tstr = str.Substring(0, len);
|
||||
|
Reference in New Issue
Block a user