Exemplo n.º 1
0
        private void ActionUser(string state)
        {
            string userCodes = "";

            for (int i = 0; i < gvUser.Rows.Count; i++)
            {
                CheckBox chk = (CheckBox)(gvUser.Rows[i].FindControl("chkUser"));
                if (chk.Checked)
                {
                    userCodes += gvUser.DataKeys[i].Value.ToString() + ";";
                }
            }

            if (userCodes != "")
            {
                //DBManager.DeleteDeptUser(DeptCode, userCodes);
                DepartmentBLL bll = new DepartmentBLL();
                bll.DeleteDeptUser(DeptCode, userCodes);
            }

            InitUser();
        }