Esempio n. 1
0
        static public InfoCfop ObterCfop(string cfop)
        {
            InfoCfop nulo = new InfoCfop();

            nulo.cor = "#000000";

            for (int a = 0; a < cfopinfo.Count; a++)
            {
                if (cfopinfo[a].cfop == cfop)
                {
                    return(cfopinfo[a]);
                }
            }
            return(nulo);
        }
Esempio n. 2
0
        static public void AtualizarCfop()
        {
            try { cfopinfo.Clear(); }
            catch { }
            DataTable tabela = Select.SelectSQL("select * from cfop");

            for (int a = 0; a < tabela.Rows.Count; a++)
            {
                InfoCfop n = new InfoCfop();
                n.cfop    = tabela.Rows[a]["ocfop"] + "";
                n.ativo   = tabela.Rows[a]["ignorar"] + "";
                n.apelido = tabela.Rows[a]["apelido"] + "";
                n.cor     = tabela.Rows[a]["cor"] + "";
                cfopinfo.Add(n);
            }
        }