Ejemplo n.º 1
0
        public static int GetMaxForQuickContacts()
        {
            DataAccessLayer.DataAccessComponents.DataAccessComponent dac = new DataAccessLayer.DataAccessComponents.DataAccessComponent();
            IDataReader reader = dac.SelectStatement("Select Max(QuickContactId) From QuickContact");
            int         result = 0;

            while (reader.Read())
            {
                result = reader.GetInt32(0);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public static string GetUserForQuickContacts(int id)
        {
            DataAccessLayer.DataAccessComponents.DataAccessComponent dac = new DataAccessLayer.DataAccessComponents.DataAccessComponent();
            IDataReader reader = dac.SelectStatement("Select Name From QuickContact Where QuickContactId = " + id);
            string      result = "";

            while (reader.Read())
            {
                result = reader.GetString(0);
            }
            return(result);
        }
Ejemplo n.º 3
0
 public static string GetUserForQuickContacts(int id)
 {
     DataAccessLayer.DataAccessComponents.DataAccessComponent dac = new DataAccessLayer.DataAccessComponents.DataAccessComponent("","");
     IDataReader reader = dac.SelectStatement("Select Name From QuickContact Where QuickContactId = " + id);
     string result = "";
     while (reader.Read())
     {
         result = reader.GetString(0);
     }
     return result;
 }
Ejemplo n.º 4
0
 public static int GetMaxForQuickContacts()
 {
     DataAccessLayer.DataAccessComponents.DataAccessComponent dac = new DataAccessLayer.DataAccessComponents.DataAccessComponent("","");
     IDataReader reader = dac.SelectStatement("Select Max(QuickContactId) From QuickContact");
     int result = 0;
     while (reader.Read())
     {
         result = reader.GetInt32(0);
     }
     return result;
 }