예제 #1
0
 private void ShowDetail()
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         object obj = dataGridView1.SelectedRows[0].Cells[0].Value;
         if (obj is int)
         {
             int id = Convert.ToInt32(obj);
             FinanceDetailForm fdf = new FinanceDetailForm(this.User, 1, id);
             fdf.ShowDialog();
         }
         else
         {
             MessageBox.Show("获取不到合法的ID值!");
         }
     }
     else
     {
         MessageBox.Show("请先选择一个流水账!");
     }
 }
예제 #2
0
        private void 报销明细ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FinanceDetailForm fdf = new FinanceDetailForm(this.User);

            AddTabPage("报销明细", fdf);
        }