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()); }
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()); }
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); }
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); }