コード例 #1
0
    public static string pega_email_cont()
    {
        string resultado;
        string script = "SELECT email_cont FROM par_contab WITH(NOLOCK)";

        resultado = SreDblib.GetCampoScript(script);
        if (resultado.Trim() == "")
        {
            resultado = Srelib.space(18);
        }
        return(resultado);
        //
    }
コード例 #2
0
    public static string PegaCusto(String c)
    {
        string resultado;
        string script = "SELECT centro FROM centro_custo WITH(NOLOCK) WHERE conta=" + Srelib.QStr(c);

        resultado = SreDblib.GetCampoScript(script);
        if (resultado.Trim() == "")
        {
            resultado = Srelib.space(18);
        }
        return(resultado);
        //
    }