예제 #1
0
        public static bool repe_mail(String mail)
        {
            DataTable  dt  = new DataTable();
            SqlCommand cmd = new SqlCommand("[SQLeados].[repeticionDeMail]", conexion);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add("@mail", SqlDbType.NVarChar).Value = mail;
            dt.Load(cmd.ExecuteReader());
            if (CasoData.obtenerStringPrimeraCelda(dt) == "1")
            {
                return(true);
            }
            return(false);
        }
예제 #2
0
        public static bool repe_TipoDOCYNumero_enCliente(String numero, String tipo)
        {
            DataTable  dt  = new DataTable();
            SqlCommand cmd = new SqlCommand("[SQLeados].[repeticionDeTIPODOCYNumeroEnCliente]", conexion);

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add("@tipo", SqlDbType.NVarChar).Value   = tipo;
            cmd.Parameters.Add("@numero", SqlDbType.NVarChar).Value = numero;
            dt.Load(cmd.ExecuteReader());
            if (CasoData.obtenerStringPrimeraCelda(dt) == "1")
            {
                return(true);
            }
            return(false);
        }