Ejemplo n.º 1
0
        protected void gvDanhSachHangMucThietHai_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int  ma = int.Parse(gvDanhSachHangMucThietHai.DataKeys[e.RowIndex].Value.ToString());
            bool kq = dmdao.XoaDanhMucThietHai(ma);

            if (kq == true)
            {
                loadDanhSach(mathamchieu);
            }
        }
Ejemplo n.º 2
0
        protected void grDanhMucThietHaiSR01_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            GridViewRow        grRow     = grDanhMucThietHaiSR01.Rows[e.RowIndex];
            string             id        = ((HiddenField)grRow.FindControl("hiddenID")).Value;
            string             thamchieu = Session["ThamChieu"].ToString();
            DanhMucThietHaiDAO dao       = new DanhMucThietHaiDAO();
            bool kq = dao.XoaDanhMucThietHai(int.Parse(id));

            if (kq == true)
            {
                loadDanhMucThietHai();
                int    maGDV   = int.Parse(Request.Cookies["MaGDV"].Value);
                string noidung = gdv.LayTenTheoMa(maGDV) + " delete summary of loss SR01 of case " + thamchieu + " .";
            }
            Response.Write("<script>parent.reloaData();</script>");
        }