Beispiel #1
0
 private void report1_CellClick(object sender, Gscr.CellEventArgs e)
 {
     if (e.Cell.RowIndex == 1 && e.Cell.ColumnIndex == 2)
     {
         System.Diagnostics.Process.Start("http://www.microsoft.com/zh-cn/download/details.aspx?id=14422");
     }
 }
Beispiel #2
0
 private void report1_CellClick(object sender, Gscr.CellEventArgs e)
 {
     if (this.report1.Rows[e.Cell.RowIndex].Band == Gscr.Band.Detail && e.Cell.ColumnIndex == 8)
     {
         if (!(e.Cell.Value == null || e.Cell.Value == DBNull.Value))
         {
             System.Diagnostics.Process.Start(e.Cell.Value.ToString());
         }
     }
 }
Beispiel #3
0
        private void report1_CellClick(object sender, Gscr.CellEventArgs e)
        {
            if (e.Cell.RowIndex == 1 && e.Cell.ColumnIndex == 5)
            {
                MessageBox.Show("你点击了<" + e.Cell.Tag.ToString() + ">", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            if (e.Cell.RowIndex == 9 && e.Cell.ColumnIndex == 5)
            {
                MessageBox.Show("你点击了<" + e.Cell.Value.ToString() + ">", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #4
0
 private void report1_CellEndEdit(object sender, Gscr.CellEventArgs e)
 {
     if (e.Cell != null)
     {
         if (this.report1.Rows[e.Cell.RowIndex].Band == Gscr.Band.Detail)
         {
             if (this.report1.Columns[e.Cell.ColumnIndex].ColumnName == "数量" ||
                 this.report1.Columns[e.Cell.ColumnIndex].ColumnName == "单价")
             {
                 this.report1[e.Cell.RowIndex, "金额"].Value = Decimal.Parse(this.report1[e.Cell.RowIndex, "数量"].Value.ToString()) * Decimal.Parse(this.report1[e.Cell.RowIndex, "单价"].Value.ToString());
             }
         }
     }
 }
Beispiel #5
0
 private void report1_CellClick(object sender, Gscr.CellEventArgs e)
 {
 }
Beispiel #6
0
        private void report1_CellClick(object sender, Gscr.CellEventArgs e)
        {
            if (e.Cell.RowIndex == 1 && e.Cell.ColumnIndex == 1)
            {
                frmExample1 frm1 = new frmExample1();
                frm1.Show();
            }

            if (e.Cell.RowIndex == 2 && e.Cell.ColumnIndex == 1)
            {
                frmExample2 frm2 = new frmExample2();
                frm2.Show();
            }

            if (e.Cell.RowIndex == 3 && e.Cell.ColumnIndex == 1)
            {
                frmExample3 frm3 = new frmExample3();
                frm3.Show();
            }

            if (e.Cell.RowIndex == 4 && e.Cell.ColumnIndex == 1)
            {
                frmExample4 frm4 = new frmExample4();
                frm4.Show();
            }

            if (e.Cell.RowIndex == 5 && e.Cell.ColumnIndex == 1)
            {
                frmExample5 frm5 = new frmExample5();
                frm5.Show();
            }

            if (e.Cell.RowIndex == 6 && e.Cell.ColumnIndex == 1)
            {
                frmExample6 frm6 = new frmExample6();
                frm6.Show();
            }

            if (e.Cell.RowIndex == 7 && e.Cell.ColumnIndex == 1)
            {
                frmExample7 frm7 = new frmExample7();
                frm7.Show();
            }

            if (e.Cell.RowIndex == 8 && e.Cell.ColumnIndex == 1)
            {
                frmReportDesigner frmRptDesigner = new frmReportDesigner();
                frmRptDesigner.Show();
            }

            if (e.Cell.RowIndex == 9 && e.Cell.ColumnIndex == 1)
            {
                frmExample9 frm9 = new frmExample9();
                frm9.Show();
            }

            if (e.Cell.RowIndex == 10 && e.Cell.ColumnIndex == 1)
            {
                frmExample10 frm10 = new frmExample10();
                frm10.Show();
            }

            if (e.Cell.RowIndex == 11 && e.Cell.ColumnIndex == 1)
            {
                frmExample11 frm11 = new frmExample11();
                frm11.Show();
            }

            if (e.Cell.RowIndex == 12 && e.Cell.ColumnIndex == 1)
            {
                frmExample12 frm12 = new frmExample12();
                frm12.Show();
            }

            if (e.Cell.RowIndex == 13 && e.Cell.ColumnIndex == 1)
            {
                frmExample13 frm13 = new frmExample13();
                frm13.Show();
            }

            if (e.Cell.RowIndex == 14 && e.Cell.ColumnIndex == 1)
            {
                frmExample14 frm14 = new frmExample14();
                frm14.Show();
            }

            if (e.Cell.RowIndex == 15 && e.Cell.ColumnIndex == 1)
            {
                frmExample15 frm15 = new frmExample15();
                frm15.Show();
            }

            if (e.Cell.RowIndex == 16 && e.Cell.ColumnIndex == 1)
            {
                frmExample16 frm16 = new frmExample16();
                frm16.Show();
            }

            if (e.Cell.RowIndex == 17 && e.Cell.ColumnIndex == 1)
            {
                frmExample17 frm17 = new frmExample17();
                frm17.Show();
            }

            if (e.Cell.RowIndex == 18 && e.Cell.ColumnIndex == 1)
            {
                frmExample18 frm18 = new frmExample18();
                frm18.Show();
            }

            if (e.Cell.RowIndex == 19 && e.Cell.ColumnIndex == 1)
            {
                frmExample19 frm19 = new frmExample19();
                frm19.Show();
            }

            if (e.Cell.RowIndex == 20 && e.Cell.ColumnIndex == 1)
            {
                frmExample20 frm20 = new frmExample20();
                frm20.Show();
            }
        }