Exemple #1
0
        public void PhanQuyen()
        {
            if (combonvpq.SelectedIndex < 0)
            {
                ToastNotification.Show(this, "Chưa chọn giáo viên", null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter);
                return;
            }
            if (comboquyenhan.SelectedIndex < 0)
            {
                ToastNotification.Show(this, "Chưa chọn quyền hạn", null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter);
                return;
            }


            DataTable numberr;

            numberr = _db.PhanQuyen(ref err, Convert.ToInt32(combonvpq.SelectedValue), qh);
            if (numberr.Rows.Count > 0)
            {
                ToastNotification.Show(this, numberr.Rows[0]["ErrMsg"].ToString(), null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter);
            }
        }