protected void dgrDotDanhGia_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "edit") { int id = ConvertUtility.ToInt32(e.CommandArgument); Response.Redirect(AppEnv.AdminUrlParams("dotdanhgia") + "&id=" + id); } if (e.CommandName == "detail") { int id = ConvertUtility.ToInt32(e.CommandArgument); Response.Redirect(AppEnv.AdminUrlParams("dotdanhgiachitiet") + "&id=" + id); } if (e.CommandName == "tbp") { int id = ConvertUtility.ToInt32(e.CommandArgument); Response.Redirect(AppEnv.AdminUrlParams("dotdanhgiatruongbophan") + "&id=" + id); } if (e.CommandName == "ndgnhanvien") { int id = ConvertUtility.ToInt32(e.CommandArgument); Response.Redirect(AppEnv.AdminUrlParams("dotdanhgiachonNDG") + "&id=" + id); } if (e.CommandName == "ndgtruongphong") { int id = ConvertUtility.ToInt32(e.CommandArgument); Response.Redirect(AppEnv.AdminUrlParams("dotdanhgiachonNDGTruongPhong") + "&id=" + id); } if (e.CommandName == "bophan") { int id = ConvertUtility.ToInt32(e.CommandArgument); Response.Redirect(AppEnv.AdminUrlParams("chonbophanvaodotdanhgia") + "&id=" + id); } if (e.CommandName == "delete") { try { int id = ConvertUtility.ToInt32(e.CommandArgument); DotDanhGiaController.Delete(id); lblStatusUpdate.Text = MiscUtility.MSG_UPDATE_SUCCESS; } catch (Exception ex) { lblStatusUpdate.Text = ex.Message; } } }