Exemple #1
0
        private void Nr_Pedido_Leave(object sender, EventArgs e)
        {
            UtilPesquisa.EDIT_LEAVE("a.nr_pedido|=|'" + Nr_Pedido.Text + "'",
                                    new Componentes.EditDefault[] { Nr_Pedido, Nm_Empresa, NM_Clifor, Nr_cpf_cnpj, CD_Clifor },
                                    new TCD_Pedido());

            if (Nr_Pedido.Text != "")
            {
                buscarRegistros();
            }
            else
            {
                BS_Registro_Pedido.Clear();
                BS_Lancamento_Item.Clear();
                BS_Registro_Pedido.ResetBindings(true);
            }
            //vTP_Modo = TTpModo.tm_Insert;
        }
Exemple #2
0
        private void Busca_Entregue()
        {
            QtdEntregue.Enabled    = false;
            dtEntrega.Enabled      = false;
            Nm_Responsavel.Enabled = false;
            Observacao.Enabled     = false;

            BS_Lancamento_Item.Clear();

            if (BS_Registro_Pedido.Current != null)
            {
                (BS_Registro_Pedido.Current as TRegistro_LanPedido_Item).EntregaPedido =
                    tcn.Busca("", Nr_Pedido.Text, (BS_Registro_Pedido.Current as TRegistro_LanPedido_Item).Cd_produto, (BS_Registro_Pedido.Current as TRegistro_LanPedido_Item).Id_pedidoitem.ToString(), false, "", 0, null);
                BS_Registro_Pedido.ResetBindings(true);
                BS_Lancamento_Item.ResetBindings(true);
                TList_LanEntregaPedido lista = (BS_Registro_Pedido.Current as TRegistro_LanPedido_Item).EntregaPedido;

                TotalEntrada.Value = Convert.ToDecimal(lista.Where(p => p.Tp_Movimento.Equals("E")).Sum(p => p.QTD_Entregue));
                TotalSaida.Value   = Convert.ToDecimal(lista.Where(p => p.Tp_Movimento.Equals("S")).Sum(p => p.QTD_Entregue));
            }
        }
Exemple #3
0
        private void bb_NrPedido_Click(object sender, EventArgs e)
        {
            string vColunas = "b.nm_empresa|Empresa|350;" +
                              "d.cd_clifor|Cód. Clifor|80;" +
                              "d.nm_clifor|Nome Clifor|350;" +
                              "nr_cgc_cpf|CPF/CGC|350;" +
                              "a.nr_pedido|Nrº. Pedido|80;" +
                              "a.TP_Movimento|Tipo Movimento|80";

            UtilPesquisa.BTN_BUSCA(vColunas, new Componentes.EditDefault[] { Nr_Pedido, Nm_Empresa, NM_Clifor, Nr_cpf_cnpj, CD_Clifor },
                                   new TCD_Pedido(), "");

            if (Nr_Pedido.Text != "")
            {
                buscarRegistros();
            }
            else
            {
                BS_Registro_Pedido.Clear();
                BS_Lancamento_Item.Clear();
                BS_Registro_Pedido.ResetBindings(true);
            }
        }