public static AddressBookCollection GetEntries( string BLetter)
 {
     DataSet dsData = DBTask.ExecuteDataset(ConfigurationSettings.AppSettings[Web.Global.CfgKeyConnString]
         ,"ContactInfo_GetContactList",BLetter);
     AddressBookCollection entryList = new AddressBookCollection();
     foreach(DataRow row in dsData.Tables[0].Rows)
     {	Address AB = new Address();
         AB.ContactID = Convert.ToInt32(row["ContactID"]);
         AB.FullName = row["FullName"].ToString();
         AB.OfficialEmail  = row["OfficialEmail"].ToString();
         AB.PersonalEmail = row["PersonalEmail"].ToString();
         AB.OfficePhone   = row["OfficePhone"].ToString();
         AB.HomePhone  = row["HomePhone"].ToString();
         entryList.Add(AB);
     }
     return entryList;
 }
Beispiel #2
0
        public static AddressBookCollection GetEntries(string BLetter)
        {
            DataSet dsData = DBTask.ExecuteDataset(ConfigurationSettings.AppSettings[Web.Global.CfgKeyConnString]
                                                   , "ContactInfo_GetContactList", BLetter);
            AddressBookCollection entryList = new AddressBookCollection();

            foreach (DataRow row in dsData.Tables[0].Rows)
            {
                Address AB = new Address();
                AB.ContactID     = Convert.ToInt32(row["ContactID"]);
                AB.FullName      = row["FullName"].ToString();
                AB.OfficialEmail = row["OfficialEmail"].ToString();
                AB.PersonalEmail = row["PersonalEmail"].ToString();
                AB.OfficePhone   = row["OfficePhone"].ToString();
                AB.HomePhone     = row["HomePhone"].ToString();
                entryList.Add(AB);
            }
            return(entryList);
        }