Exemplo n.º 1
0
        private String recomposeBarCode()
        {
            String strReturn = code1 + "-" + FuncoesUteis.getDigitoMod10(code1).ToString() + " " +
                               code2 + "-" + FuncoesUteis.getDigitoMod10(code2).ToString() + " " +
                               code3 + "-" + FuncoesUteis.getDigitoMod10(code3).ToString() + " " +
                               code4 + "-" + FuncoesUteis.getDigitoMod10(code4).ToString();

            return(strReturn);
        }
Exemplo n.º 2
0
        private bool validateDV(String code, String dv)
        {
            bool isValid = false;

            if (FuncoesUteis.getDigitoMod10(code) == Convert.ToInt16(dv))
            {
                isValid = false;
            }

            return(isValid);
        }