private void BtnCadastrar_Click(object sender, EventArgs e) { ConsultaServico frmConServ = new ConsultaServico(); string idCliente = frmConServ.idcliente(cboIdCliente.Text); Controls ctrl = new Controls(); ctrl.SalvarUpSelectRevisao(1, idCliente, cboIdServicos.Text, default, textDataRevisao.Text);
private void BtnNovo_Click(object sender, EventArgs e) { ConsultaServico frmConSer = new ConsultaServico(); string numberId = frmConSer.idcliente(comboBox1.Text); Controls ctrl = new Controls(); ctrl.SalvarUpSelectSevices(1, numberId, default, textNameService.Text, textEquip.Text, textPecas.Text, textServices.Text, textValor.Text, textDesconto.Text, textDataService.Text, textValor.Text, textDefeitos.Text);
public void dataGridViewServicos_CellContentClick(object sender, DataGridViewCellEventArgs e) { int select_row; if (e.RowIndex >= 0) { select_row = e.RowIndex; DataGridViewRow grv = dataGridViewServicos.Rows[select_row]; numberCliente = grv.Cells[0].Value.ToString(); ConsultaServico frmconSer = new ConsultaServico(); textidcliente.Text = frmconSer.NomeCli(numberCliente); textIdServico.Text = grv.Cells[1].Value.ToString(); textNameService.Text = grv.Cells[2].Value.ToString(); textEquip.Text = grv.Cells[3].Value.ToString(); textPecas.Text = grv.Cells[4].Value.ToString(); textServices.Text = grv.Cells[5].Value.ToString(); textValor.Text = grv.Cells[6].Value.ToString(); textDesconto.Text = grv.Cells[7].Value.ToString(); textDataService.Text = grv.Cells[8].Value.ToString(); textValorTotal.Text = grv.Cells[9].Value.ToString(); textDefeitos.Text = grv.Cells[10].Value.ToString(); } else { } }
private void dataGridViewRevisao_CellContentClick(object sender, DataGridViewCellEventArgs e) { int select_row; if (e.RowIndex >= 0) { select_row = e.RowIndex; DataGridViewRow grv = dataGridViewRevisao.Rows[select_row]; numberCliente = grv.Cells[0].Value.ToString(); ConsultaServico frmConSer = new ConsultaServico(); textIdCliente.Text = frmConSer.NomeCli(numberCliente); textidService.Text = grv.Cells[1].Value.ToString(); textIdRevisao.Text = grv.Cells[2].Value.ToString(); textDataRevisao.Text = grv.Cells[3].Value.ToString(); } else { } }
private void cnsultaServiçosToolStripMenuItem_Click(object sender, EventArgs e) { ConsultaServico consul = new ConsultaServico(); consul.ShowDialog(); }
private void consultasToolStripMenuItem_Click(object sender, EventArgs e) { ConsultaServico frm = new ConsultaServico(); frm.Show(); }