Exemple #1
0
 private void simpleButton2_Click(object sender, EventArgs e)
 {
     if (gridView1.FocusedRowHandle > -1)
     {
         Form fr = new Stock.frSBack(int.Parse(gridView1.GetFocusedRowCellValue("ID").ToString()), true);
         fr.ShowDialog();
     }
 }
Exemple #2
0
 private void label37_Click(object sender, EventArgs e)
 {
     if (BasicClass.BasicFile.GetPermissions("采购收货") != string.Empty)
     {
         Form fr = new Stock.frSBack();
         fr.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有权限 ");
     }
 }
Exemple #3
0
        private void repositoryItemButtonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            BasicClass.cResult r = new BasicClass.cResult();
            int o = int.Parse(gridView1.GetFocusedRowCellValue(_coWhys).ToString());

            if (typeID == 1)
            {
                if (o == 3)
                {
                    if (gridView1.GetFocusedRowCellValue(_coIndexs).ToString() != "")
                    {
                        Form fr = new Sell.frSell(int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                        fr.ShowDialog();
                    }
                }
                else if (o == 4)
                {
                    Form fr = new Finance.BsInMoneyForm(int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                    fr.ShowDialog();
                }
                else if (o == 5)
                {
                    Form fr = new Sell.frSellBack(int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                    fr.ShowDialog();
                }
            }
            else if (typeID == 2)
            {
                if (o == 1)
                {
                    if (gridView1.GetFocusedRowCellValue(_coIndexs).ToString() != "")
                    {
                        Form fr = new Stock.frSBack(int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                        fr.ShowDialog();
                    }
                }
                else if (o == 2)
                {
                    Form fr = new Finance.BsOutMoneyForm(int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                    fr.ShowDialog();
                }
                else if (o == 6)
                {
                }
            }
            else if (typeID == 3)
            {
                if (o == 3)
                {
                    if (gridView1.GetFocusedRowCellValue(_coIndexs).ToString() != "")
                    {
                        //Form fr = new Sell.frSellProcess(int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                        //fr.ShowDialog();
                    }
                }
                else if (o == 8)
                {
                    if (gridView1.GetFocusedRowCellValue(_coIndexs).ToString() != "")
                    {
                        //Form fr = new Task.frP2Pack (int.Parse(gridView1.GetFocusedRowCellValue(_coIndexs).ToString()));
                        //fr.ShowDialog();
                    }
                }
            }
        }