Exemple #1
0
        private void dataGridViewOcr_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            foreach (DataGridViewRow rw in this.dataGridViewOcr.Rows)
            {
                for (int i = 0; i < rw.Cells.Count; i++)
                {
                    if (rw.Cells[8].Value == null || rw.Cells[8].Value == DBNull.Value || String.IsNullOrWhiteSpace(rw.Cells[8].Value.ToString()))
                    {
                        rw.Cells[8].Value = "Técnico responsável";
                    }

                    if (rw.Cells[9].Value == null || rw.Cells[9].Value == DBNull.Value || String.IsNullOrWhiteSpace(rw.Cells[9].Value.ToString()))
                    {
                        rw.Cells[9].Value = DateTime.Now;
                    }

                    if (rw.Cells[10].Value == null || rw.Cells[10].Value == DBNull.Value || String.IsNullOrWhiteSpace(rw.Cells[10].Value.ToString()))
                    {
                        rw.Cells[10].Value = "Solução";
                    }

                    if (rw.Cells[11].Value == null || rw.Cells[11].Value == DBNull.Value || String.IsNullOrWhiteSpace(rw.Cells[11].Value.ToString()))
                    {
                        rw.Cells[11].Value = "Em espera";
                    }
                }
            }

            FormOcr.solOco     = dataGridViewOcr.CurrentRow.Cells[1].Value.ToString();
            FormOcr.dataOco    = dataGridViewOcr.CurrentRow.Cells[2].Value.ToString();
            FormOcr.catOco     = dataGridViewOcr.CurrentRow.Cells[3].Value.ToString();
            FormOcr.localOco   = dataGridViewOcr.CurrentRow.Cells[4].Value.ToString();
            FormOcr.equipOco   = dataGridViewOcr.CurrentRow.Cells[5].Value.ToString();
            FormOcr.descOco    = dataGridViewOcr.CurrentRow.Cells[6].Value.ToString();
            FormOcr.obserOco   = dataGridViewOcr.CurrentRow.Cells[7].Value.ToString();
            FormOcr.tecOco     = dataGridViewOcr.CurrentRow.Cells[8].Value.ToString();
            FormOcr.dataSolOco = dataGridViewOcr.CurrentRow.Cells[9].Value.ToString();
            FormOcr.soluOco    = dataGridViewOcr.CurrentRow.Cells[10].Value.ToString();
            FormOcr.statusOco  = dataGridViewOcr.CurrentRow.Cells[11].Value.ToString();

            FormOcr objFormOcr = new FormOcr();

            objFormOcr.ShowDialog();
        }
Exemple #2
0
        private void toolStripButton1_Click_1(object sender, EventArgs e)
        {
            FormOcr fmOcr = new FormOcr();

            fmOcr.ShowDialog();
        }
Exemple #3
0
        // Bruno Brunelli

        // Cadastro de Ocorrencia
        private void registroOcorrênciaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormOcr fmOcr = new FormOcr();

            fmOcr.ShowDialog();
        }