protected void GVAnphamMau_RowDeleting(object sender, GridViewDeleteEventArgs e) { #region GhiLog Lichsu_Thaotac_HethongDAL actionDAL = new Lichsu_Thaotac_HethongDAL(); T_Lichsu_Thaotac_Hethong action = new T_Lichsu_Thaotac_Hethong(); action.Ma_Nguoidung = _user.UserID; action.TenDaydu = _user.UserFullName; action.HostIP = IpAddress(); action.NgayThaotac = DateTime.Now; #endregion int _id = Convert.ToInt32(GVAnphamMau.DataKeys[e.RowIndex].Value); AnPhamMauDAL _apDAL = new AnPhamMauDAL(); _apDAL.DeleteOneFromT_Anphammau(_id); action.Thaotac = "[Xóa ấn phẩm mẫu]-->[Mã ấn phẩm mẫu:" + _id.ToString() + " ]"; actionDAL.InserT_Lichsu_Thaotac_Hethong(action); BindList_AnphamMau(); }