private void enviarPedidoToolStripMenuItem_Click(object sender, EventArgs e) { if (dtgPedido.CurrentRow.Cells["statusPedido"].Value.ToString() == "Aguardando") { frmPedido novoEnviarPedido = new frmPedido(); novoEnviarPedido.Text = "Enviando material"; novoEnviarPedido.prioridade = dtgPedido.CurrentRow.Cells["prioridade"].Value.ToString(); novoEnviarPedido.idPedido = Convert.ToInt32(dtgPedido.CurrentRow.Cells["idPedido"].Value); novoEnviarPedido.lblCodigo.Text = "Código \n" + dtgPedido.CurrentRow.Cells["codigo"].Value.ToString(); novoEnviarPedido.lblNomeMaterial.Text = "Nome \n" + dtgPedido.CurrentRow.Cells["nomematerial"].Value.ToString(); novoEnviarPedido.lblQuantidade.Text = "Quantidade \n" + dtgPedido.CurrentRow.Cells["quantidadePedido"].Value.ToString(); novoEnviarPedido.lblUnidadedeMedida.Text = "UM \n" + dtgPedido.CurrentRow.Cells["um"].Value.ToString(); novoEnviarPedido.lblLote.Text = "Lote \n" + dtgPedido.CurrentRow.Cells["lotePedido"].Value.ToString(); novoEnviarPedido.lblOdf.Text = "ODF \n" + dtgPedido.CurrentRow.Cells["odf"].Value.ToString(); novoEnviarPedido.txtObservacao.Text = dtgPedido.CurrentRow.Cells["observacao"].Value.ToString(); novoEnviarPedido.ShowDialog(); } }
private void receberPedidoToolStripMenuItem_Click(object sender, EventArgs e) { if (dtgPedido.CurrentRow.Cells["statusPedido"].Value.ToString() == "Enviado") { frmPedido novoEnviarPedido = new frmPedido(); novoEnviarPedido.Text = "Recebendo material"; novoEnviarPedido.idPedido = Convert.ToInt32(dtgPedido.CurrentRow.Cells["idPedido"].Value); novoEnviarPedido.lblCodigoMrecebido.Text = "Código:\n" + dtgPedido.CurrentRow.Cells["codigo"].Value.ToString(); novoEnviarPedido.lblNomeMrecebido.Text = "Nome:\n" + dtgPedido.CurrentRow.Cells["nomeMaterial"].Value.ToString(); novoEnviarPedido.lblQuantidadeMrecebido.Text = "Quantidade:\n" + dtgPedido.CurrentRow.Cells["quantidadeEnviada"].Value.ToString(); novoEnviarPedido.lblNota.Text = "Nota:\n" + dtgPedido.CurrentRow.Cells["notaFiscal"].Value.ToString(); novoEnviarPedido.lblLoteMrecebido.Text = "Lote:\n" + dtgPedido.CurrentRow.Cells["loteEnviado"].Value.ToString(); novoEnviarPedido.txtObservacao.Text = dtgPedido.CurrentRow.Cells["observacao"].Value.ToString(); novoEnviarPedido.lblQuantidadeSolicitada.Text = "Quantidade solicitada:\n" + dtgPedido.CurrentRow.Cells["quantidadePedido"].Value.ToString(); novoEnviarPedido.lblLoteSolicitado.Text = "Lote solicitado:\n" + dtgPedido.CurrentRow.Cells["lotePedido"].Value.ToString(); novoEnviarPedido.ShowDialog(); } }
private void btnPedidos_Click(object sender, EventArgs e) { frmPedido novoEnviarPedido = new frmPedido(); novoEnviarPedido.ShowDialog(); }
private void novoPedidoToolStripMenuItem_Click(object sender, EventArgs e) { frmPedido novoEnviarPedido = new frmPedido(); novoEnviarPedido.ShowDialog(); }