Exemple #1
0
 private void label34_Click(object sender, EventArgs e)
 {
     if (BasicClass.BasicFile.GetPermissions("采购订单") != string.Empty)
     {
         Form fr = new Stock.frStock();
         fr.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有权限 ");
     }
 }
Exemple #2
0
 private void simpleButton5_Click(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle > -1)
     {
         int TypeID = Convert.ToInt32(gridView1.GetFocusedRowCellValue(_coState));
         int ID     = Convert.ToInt32(gridView1.GetFocusedRowCellValue(_coMainID));
         if (TypeID == (int)BasicClass.Enums.TableType.Stock)
         {
             Form fr = new frStock(ID);
             fr.ShowDialog();
         }
         else if (TypeID == (int)BasicClass.Enums.TableType.NeedStock)
         {
             Form fr = new frNeedStock(ID);
             fr.ShowDialog();
         }
     }
 }