Example #1
0
        protected void gridChiNhanh_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            string ID = e.Keys[0].ToString();

            data = new dtChiNhanh();
            data.XoaChiNhanh(ID);
            e.Cancel = true;
            gridChiNhanh.CancelEdit();
            LoadGrid();
        }
Example #2
0
        protected void gridChiNhanh_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            string ID = e.Keys[0].ToString();

            data = new dtChiNhanh();
            data.XoaChiNhanh(ID);// xóa all dữ liệu thuộc về chi nhánh
            e.Cancel = true;
            gridChiNhanh.CancelEdit();
            LoadGrid();

            dtLichSuTruyCap.ThemLichSu(Session["IDChiNhanh"].ToString(), Session["IDNhom"].ToString(), Session["IDNhanVien"].ToString(), "Chi nhánh", "Xóa chi nhánh ID: " + ID);
        }