Exemplo n.º 1
0
 private void label29_Click(object sender, EventArgs e)
 {
     if (BasicClass.BasicFile.GetPermissions("销售发货") != string.Empty)
     {
         Form fr = new Sell.frSell();
         fr.ShowDialog();
     }
     else
     {
         MessageBox.Show("没有权限 ");
     }
 }
Exemplo n.º 2
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();
                    }
                }
            }
        }