public static string GetNNFromID(int nID) { if (!PLTypeOfLaw.bRead) { PLTypeOfLaw.ReadTable(); } return(PLTypeOfLaw.m_MapIDtoNN.ContainsKey(nID) ? PLTypeOfLaw.m_MapIDtoNN[nID].ToString() : ""); }
public static int GetIDFromNN(string Key) { if (!PLTypeOfLaw.bRead) { PLTypeOfLaw.ReadTable(); } Key = Key.ToUpper(); return(PLTypeOfLaw.m_MapNNtoID.ContainsKey(Key) ? Convert.ToInt32(PLTypeOfLaw.m_MapNNtoID[Key]) : 0); }
public override string MakeNN(bool bSetNickName) { if (!PLTypeOfLaw.bRead) { PLTypeOfLaw.ReadTable(); } string str = this.MakeListNN(this.Name, PLTypeOfLaw.m_NNs, (short)4); if (bSetNickName) { this.NickName = str; } return(str); }
public static string GetQBIDFromPLID(int nID) { string str; if (!nID.Equals(0)) { if (!PLTypeOfLaw.bRead) { PLTypeOfLaw.ReadTable(); } str = PLTypeOfLaw.m_MapPLIDtoQBID == null ? "" : (PLTypeOfLaw.m_MapPLIDtoQBID.ContainsKey(nID) ? Convert.ToString(PLTypeOfLaw.m_MapPLIDtoQBID[nID]) : ""); } else { str = ""; } return(str); }
public static int GetPLIDFromQBID(string sQBID) { int num1; if (!sQBID.Equals("")) { if (!PLTypeOfLaw.bRead) { PLTypeOfLaw.ReadTable(); } if (PLTypeOfLaw.m_MapPLIDtoQBID == null) { num1 = 0; } else if (PLTypeOfLaw.m_MapPLIDtoQBID.ContainsValue(sQBID)) { int num2 = 0; Dictionary <int, string> .Enumerator enumerator = PLTypeOfLaw.m_MapPLIDtoQBID.GetEnumerator(); while (enumerator.MoveNext()) { Dictionary <int, string> mapPliDtoQbid = PLTypeOfLaw.m_MapPLIDtoQBID; KeyValuePair <int, string> current = enumerator.Current; if (mapPliDtoQbid[current.Key].ToUpper().CompareTo(sQBID.ToUpper()) == 0) { current = enumerator.Current; num2 = current.Key; } } num1 = num2; } else { num1 = 0; } } else { num1 = 0; } return(num1); }