private void btn_FinishedGoods_Click(object sender, EventArgs e)
        {
            string user = Class.valiballecommon.GetStorage().UserName;


            if (Database.ADMMFUpdate.IsHavePermisionUser(user))
            {
                WMS.View.FinishedGoodsUI finishedGoodsUI = new WMS.View.FinishedGoodsUI();
                finishedGoodsUI.Show();
            }
            else
            {
                MessageBox.Show("You don't have permission to use this function ", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
Example #2
0
        private void btn_FinishedGoods_Click(object sender, EventArgs e)
        {
            string user = Class.valiballecommon.GetStorage().UserName;


            if (Database.ADMMFUpdate.IsHavePermisionUser(user) || Class.valiballecommon.GetStorage().Permission == "admin")
            {
                WMS.View.FinishedGoodsUI finishedGoodsUI = new WMS.View.FinishedGoodsUI();
                finishedGoodsUI.WindowState = FormWindowState.Maximized;
                finishedGoodsUI.Show();
            }
            else
            {
                MessageBox.Show("Bạn không có quyền cho chức năng này", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }