private static string ExtractLeaseInfo(XElement lease) { List<string> st = new List<string>(); List<string> ftlist = new List<string>(); string ret = string.Empty; var temp = GetElements("LeaseFile"); if (temp == null) return ret; st.Add("LEASE"); FileTransactions fTrans = new FileTransactions(); fTrans.GetIdValues(lease); foreach (XElement de in temp) { Identification idvals = new Identification(); if (de.Attribute("location").Value == "Identification") { idvals.GetIdValues(lease); if (de.Attribute("orgval").Value != string.Empty) { if (idvals.IdValues.ContainsKey(de.Attribute("orgval").Value)) st.Add(idvals.IdValues[de.Attribute("orgval").Value]); } } else st.Add(GetItem(de.Attribute("location").Value, lease)); } return String.Join("|", st); }
private static Dictionary<string, string> ExtractLeaseInfo(XElement lease) { Dictionary<string, string> st = new Dictionary<string, string>(); //List<string> ftlist = new List<string>(); string ret = string.Empty; var temp = GetElements("LeaseFile"); if (temp == null) return st; FileTransactions fTrans = new FileTransactions(); fTrans.GetIdValues(lease); foreach (XElement de in temp) { Identification idvals = new Identification(); if (de.Attribute("location").Value == "Identification") { idvals.GetIdValues(lease); if (de.Attribute("orgval").Value != string.Empty) { if (idvals.IdValues.ContainsKey(de.Attribute("orgval").Value)) st.Add(de.Attribute("outputname").Value, idvals.IdValues[de.Attribute("orgval").Value]); } } else st.Add(de.Attribute("outputname").Value,GetItem(de.Attribute("location").Value, lease)); } return st; }