Exemplo n.º 1
0
        private void advBandedGridView2_DoubleClick(object sender, EventArgs e)
        {
            this.Enabled = false;

            Globals.id_sud_spr = 1;
            Form ff = new sud_delo();

            ff.Show();
        }
Exemplo n.º 2
0
        private void передатьВСудToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Enabled = false;

            Globals.id_sud_spr = 1;
            Form ff = new sud_delo();

            ff.Show();
        }
Exemplo n.º 3
0
        private void передатьВСудToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Enabled = false;
            var rowHandle = advBandedGridView1.FocusedRowHandle;

            Globals.prom_byt = (int)advBandedGridView1.GetRowCellValue(rowHandle, "prom_byt");
            if (Globals.prom_byt == 1)
            {
                if (advBandedGridView1.GetRowCellValue(rowHandle, "yenergy") is DBNull || advBandedGridView1.GetRowCellValue(rowHandle, "yenergy") == "")
                {
                    Globals.yenergya = 0;
                }
                else
                {
                    Globals.yenergya = (double)advBandedGridView1.GetRowCellValue(rowHandle, "yenergy");
                }
                if (advBandedGridView1.GetRowCellValue(rowHandle, "ypeni") is DBNull || advBandedGridView1.GetRowCellValue(rowHandle, "ypeni") == "")
                {
                    Globals.ypenia = 0;
                }
                else
                {
                    Globals.ypenia = (double)advBandedGridView1.GetRowCellValue(rowHandle, "ypeni");
                }
                if (advBandedGridView1.GetRowCellValue(rowHandle, "yakt") is DBNull || advBandedGridView1.GetRowCellValue(rowHandle, "yakt") == "")
                {
                    Globals.yakta = 0;
                }
                {
                    Globals.yakta = (double)advBandedGridView1.GetRowCellValue(rowHandle, "yakt");
                }
            }
            else
            {
                if (advBandedGridView1.GetRowCellValue(rowHandle, "yenergy") is DBNull || advBandedGridView1.GetRowCellValue(rowHandle, "yenergy") == "")
                {
                    Globals.yenergya = 0;
                }
                else
                {
                    Globals.yenergya = (double)advBandedGridView1.GetRowCellValue(rowHandle, "yenergy");
                }
            }
            Globals.id_sud_spr = 2;
            Form ff = new sud_delo();

            ff.Show();
        }