Beispiel #1
0
        private void Popular()
        {
            string id      = "";
            string data    = "";
            string nota    = "";
            string cfop    = "";
            string cliente = "";
            string cd      = "";
            string estado  = "";

            for (int a = 0; a < itemSource.Rows.Count; a++)
            {
                id      = itemSource.Rows[a]["id"] + "";
                data    = itemSource.Rows[a]["data"] + "";
                nota    = itemSource.Rows[a]["nota"] + "";
                cfop    = itemSource.Rows[a]["cfop"] + "";
                cliente = itemSource.Rows[a]["cliente"] + "";
                cd      = itemSource.Rows[a]["cd"] + "";
                estado  = itemSource.Rows[a]["uf"] + "";
                ListExpedicaoItem nova = new ListExpedicaoItem();
                nova.Id      = id;
                nova.Data    = data;
                nova.Nota    = nota;
                nova.Cfop    = cfop;
                nova.Cliente = cliente;
                nova.Cd      = cd;
                nova.Estado  = estado;
                Add(nova);
            }
        }
Beispiel #2
0
        void itens_Excluido(ListExpedicaoItem item)
        {
            try
            {
                Painel.Children.Remove(item);
            }
            catch { }

            try
            {
                Itens.Remove(item);
            }
            catch { }
        }
Beispiel #3
0
 public String ObterID(ListExpedicaoItem index)
 {
     try
     {
         for (int a = 0; a < Itens.Count; a++)
         {
             if (index == Itens[a])
             {
                 return(Itens[a].Id);
             }
         }
         return(null);
     }
     catch { return(null); }
 }
Beispiel #4
0
 public Boolean?ObterExpedicao(ListExpedicaoItem index)
 {
     try
     {
         for (int a = 0; a < Itens.Count; a++)
         {
             if (index == Itens[a])
             {
                 return(Itens[a].Expedir);
             }
         }
         return(null);
     }
     catch { return(null); }
 }
Beispiel #5
0
        private void Itens_ChangeCheck(ListExpedicaoItem index)
        {
            int c = ObterItensAtivo().Count;

            if (c > 0 && efeito == false)
            {
                on.Begin();
                efeito = true;
            }
            if (c == 0 && efeito == true)
            {
                efeito = false;
                off.Begin();
            }
            if (c == 1)
            {
                lbl_info.Content = "" + c + " Nota Selecionada " + notas() + "";
            }

            if (c > 1)
            {
                lbl_info.Content = "" + c + " Notas Selecionadas " + notas() + "";
            }
        }