예제 #1
0
 public void cmb1_selected(object sender, int index)
 {
     if (cmb.SelectedValue != "")
     {
         cmb2.Clear();
         dt = createTable("select cast(pedido as varchar(25)) as codigo, cast(pedido as varchar(25))  as descricao from pedidoscompra where fornecedor = '" + cmb1.SelectedValue + "' order by data_pedido desc");
         fill(dt, cmb2);
         cmb2.Focus();
     }
 }
예제 #2
0
 public void cmb_selected(object sender, int index)
 {
     //carregar de acordo
     if (cmb.SelectedValue != "")
     {
         cmb1.Clear();
         dt = createTable("select cnt.codigo, ct.nome as descricao from contatos_contato ct inner join contatos cnt on ct.contatoid = cnt.id where cnt.codigo = '" + cmb.SelectedValue + "' order by cnt.nome");
         fill(dt, cmb1);
         cmb1.Focus();
     }
 }
예제 #3
0
 public void btn3_onClick(object sender)
 {
     cmb.Focus();
 }