コード例 #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();
         }
     }
 }
コード例 #2
0
ファイル: frmMain.cs プロジェクト: zanderphh/Hownet
 private void label40_Click(object sender, EventArgs e)
 {
     if (BasicClass.BasicFile.GetPermissions("付供应商货款") != string.Empty)
     {
         Form fr = new Finance.BsOutMoneyForm();
         fr.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有权限 ");
     }
 }