Пример #1
0
        private void cd_condpgto_Leave(object sender, EventArgs e)
        {
            string vParam = "a.cd_condpgto|=|'" + cd_condpgto.Text.Trim() + ";" +
                            "|not exists|(select 1 from tb_fat_vendedor_x_condpgto x " +
                            "               where x.cd_condpgto = a.cd_condpgto " +
                            "               and x.cd_vendedor = '" + Cd_vendedor.Trim() + "')";

            FormBusca.UtilPesquisa.EDIT_LEAVE(vParam, new Componentes.EditDefault[] { cd_condpgto, ds_condpgto },
                                              new CamadaDados.Financeiro.Cadastros.TCD_CadCondPgto());
        }
Пример #2
0
        private void cd_tabelapreco_Leave(object sender, EventArgs e)
        {
            string vParam = "a.cd_tabelapreco|=|'" + cd_tabelapreco.Text.Trim() + "';" +
                            "|not exists|(select 1 from tb_fat_vendedor_x_tabpreco x " +
                            "               where x.cd_tabelapreco = a.cd_tabelapreco " +
                            "               and x.cd_vendedor = '" + Cd_vendedor.Trim() + "')";

            FormBusca.UtilPesquisa.EDIT_LEAVE(vParam, new Componentes.EditDefault[] { cd_tabelapreco, ds_tabelapreco },
                                              new CamadaDados.Diversos.TCD_CadTbPreco());
        }
Пример #3
0
        private void bb_tabelapreco_Click(object sender, EventArgs e)
        {
            string vColunas = "a.ds_tabelapreco|Tabela Preço|200;" +
                              "a.cd_tabelapreco|Codigo|80";
            string vParam = "|not exists|(select 1 from tb_fat_vendedor_x_tabpreco x " +
                            "               where x.cd_tabelapreco = a.cd_tabelapreco " +
                            "               and x.cd_vendedor = '" + Cd_vendedor.Trim() + "')";

            FormBusca.UtilPesquisa.BTN_BUSCA(vColunas, new Componentes.EditDefault[] { cd_tabelapreco, ds_tabelapreco },
                                             new CamadaDados.Diversos.TCD_CadTbPreco(), vParam);
        }
Пример #4
0
        private void bb_condpgto_Click(object sender, EventArgs e)
        {
            string vColunas = "a.ds_condpgto|Condição Pagamento|200;" +
                              "a.cd_condpgto|Codigo|80";
            string vParam = "|not exists|(select 1 from tb_fat_vendedor_x_condpgto x " +
                            "               where x.cd_condpgto = a.cd_condpgto " +
                            "               and x.cd_vendedor = '" + Cd_vendedor.Trim() + "')";

            FormBusca.UtilPesquisa.BTN_BUSCA(vColunas, new Componentes.EditDefault[] { cd_condpgto, ds_condpgto },
                                             new CamadaDados.Financeiro.Cadastros.TCD_CadCondPgto(), vParam);
        }