Beispiel #1
0
        public static string GetEmpresIdsProibVendaNome()
        {
            string s = string.Empty;

            BD             BD = new BD();
            SafeDataReader dr = BD.GetDataReader("SELECT empres_id FROM Empresas WHERE apagado <> 'S' AND venda_nome <> 'S' ", null);

            try
            {
                while (dr.Read())
                {
                    s += "," + dr.GetString(0);
                }
            }
            finally
            {
                dr.Close();
            }
            if (s.Length > 0)
            {
                s = s.Remove(0, 1);
            }
            return(s);
        }
Beispiel #2
0
 /// <summary>
 /// 由一行数据得到一个实体
 /// </summary>
 protected abstract TModel GetModel(SafeDataReader dr);