Example #1
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle > -1)
     {
         int  _TypeID = Convert.ToInt32(gridView1.GetFocusedRowCellValue("TypeID"));
         int  _MainID = Convert.ToInt32(gridView1.GetFocusedRowCellValue("TableID"));
         Form fr      = new Form();
         if (_TypeID == 3 || _TypeID == (int)BasicClass.Enums.MoneyTableType.Vouchers)
         {
             fr = new frVouchers(_MainID);
         }
         else if (_TypeID == (int)BasicClass.Enums.MoneyTableType.OutMoney)
         {
             fr = new BsOutMoneyForm(_MainID);
         }
         else if (_TypeID == (int)BasicClass.Enums.MoneyTableType.BackMoney)
         {
             fr = new BsInMoneyForm(_MainID);
         }
         else if (_TypeID == (int)BasicClass.Enums.MoneyTableType.KJFL)
         {
             fr = new frKJFL(_MainID);
         }
         else if (_TypeID == (int)BasicClass.Enums.MoneyTableType.KJFLInMoney)
         {
             fr = new frKJFLInMoney(_MainID);
         }
         if (_TypeID > 0)
         {
             fr.ShowDialog();
         }
     }
 }
Example #2
0
 private void simpleButton28_Click(object sender, EventArgs e)
 {
     if (BasicClass.BasicFile.GetPermissions("记帐凭证") != string.Empty)
     {
         Form fr = new Finance.frVouchers();
         fr.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有权限 ");
     }
 }