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(); } } }
private void simpleButton24_Click(object sender, EventArgs e) { if (BasicClass.BasicFile.GetPermissions("收款记录") != string.Empty) { Form fr = new Finance.frKJFLInMoney(); fr.ShowDialog(); } else { MessageBox.Show("没有权限 "); } }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (gridView1.FocusedRowHandle > 0) { Form fr = new Form(); if (Convert.ToInt32(gridView1.GetFocusedRowCellValue("TypeID")) == 0) { fr = new frKJFL(Convert.ToInt32(gridView1.GetFocusedRowCellValue("ID"))); } else { fr = new frKJFLInMoney(Convert.ToInt32(gridView1.GetFocusedRowCellValue("ID"))); } fr.ShowDialog(); } }