private void DanhSachmauBieu() { daMauBieu dMB = new daMauBieu(); stoMauBieu.DataSource = dMB.DanhSach(); stoMauBieu.DataBind(); }
private void DanhSachMau() { daMauBieu dMB = new daMauBieu(); stoBieuDN.DataSource = dMB.DanhSach(); stoBieuDN.DataBind(); IDMauBieuDinhNghia = 1; }
protected void DanhSachChiTieuMauBieuTD(object sender, StoreReadDataEventArgs e) { daChiTieuMauBieu dCTMB = new daChiTieuMauBieu(); dCTMB.CTMB.IDMauBieu = int.Parse(cboBieuBaoCao.SelectedItem.Value); stoChiTieuMB.DataSource = dCTMB.DanhSach(); stoChiTieuMB.DataBind(); daMauBieu dMB = new daMauBieu(); dMB.MB.ID = int.Parse(cboBieuBaoCao.SelectedItem.Value); dMB.ThongTin(); Nhom = dMB.MB.Nhom.Value; }
protected void btnCapNhat_Click(object sender, DirectEventArgs e) { daMauBieu dMB = new daMauBieu(); dMB.MB.ID = ucMauBieu1.IDMauBieuBaoCao; dMB.MB.Ma = ucMauBieu1.Ma; dMB.MB.Ten = ucMauBieu1.Ten; dMB.MB.TenTat = ucMauBieu1.TenTat; dMB.MB.TieuDe1 = ucMauBieu1.TieuDe1; dMB.MB.TieuDe2 = ucMauBieu1.TieuDe2; dMB.MB.TieuDe3 = ucMauBieu1.TieuDe3; dMB.MB.Muc = ucMauBieu1.Muc; dMB.MB.Cap = ucMauBieu1.Cap; dMB.MB.Nhom = ucMauBieu1.Nhom; dMB.MB.NgayApDung = ucMauBieu1.NgayApDung; dMB.MB.NgayKetThuc = ucMauBieu1.NgayKetThuc; dMB.MB.GhiChu = ucMauBieu1.GhiChu; dMB.MB.NguoiTao = daPhien.MaNSD + ":" + daPhien.TenNguoiSuDung; dMB.ThemSua(); DanhSachmauBieu(); wMauBieu.Hide(); }