private void gridView1_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView view = sender as GridView;
            var      pro  = view.GetRow(e.RowHandle) as Cliente;

            if (pro != null)
            {
                List <long> product = (from a in proveedors
                                       where a.IDCliente == pro.IDCliente
                                       select a.IDProducto).ToList();
                var resp = (from a in productos
                            where product.Contains(a.IDProducto)
                            select a).ToList();


                if (resp != null)
                {
                    e.IsEmpty = false;
                }
                else
                {
                    e.IsEmpty = true;
                }
            }
        }
Exemple #2
0
        private void gridView1_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView  view = sender as GridView;
            Customers c    = (Customers)view.GetRow(e.RowHandle);

            e.IsEmpty = c.Orders.Count == 0;
        }
        private void grvroottct_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView            view = sender as GridView;
            TheoChungTu_PNH_DTO cat  = view.GetRow(e.RowHandle) as TheoChungTu_PNH_DTO;

            if (cat != null)
            {
                e.IsEmpty = !lst_pnhct.Any(x => x.MaPhieuNhapHang == cat.ChungTu);
            }
        }
Exemple #4
0
        private void gridView1_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView     view  = sender as GridView;
            PhieuBanHang Phieu = view.GetRow(e.RowHandle) as PhieuBanHang;

            if (Phieu != null)
            {
                e.IsEmpty = !CT_phieu.Any(x => x.MaPBH == Phieu.MaBH);
            }
        }
Exemple #5
0
        private void grvNhanVien_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView grv = sender as GridView;

            EmployeesDTO infor = grv.GetRow(e.RowHandle) as EmployeesDTO;

            if (infor != null)
            {
                e.IsEmpty = !listTheoHangHoaBuy.Any(x => x.MaNV == infor.iMaNV);
            }
        }
Exemple #6
0
        private void grvNCC_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView grv = sender as GridView;

            SupplierDTO infor = grv.GetRow(e.RowHandle) as SupplierDTO;

            if (infor != null)
            {
                e.IsEmpty = !listInforBuy.Any(x => x.MaNCC == infor.MaNCC);
            }
        }
        private void grvCabecera_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            //si cabecera (Exportacion) no tiene detalle (Detalle exportacion) el signo + se habilita
            GridView           view     = sender as GridView;
            CEExportacionSaldo cabecera = view.GetRow(e.RowHandle) as CEExportacionSaldo;

            if (cabecera != null)
            {
                e.IsEmpty = !lstDetalleExportaciones.Any(x => x.Exportacion_Id == cabecera.Exp_Id);
            }
        }
Exemple #8
0
        private void gridViewGroupUser_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView grv = sender as GridView;

            GroupUser user = grv.GetRow(e.RowHandle) as GroupUser;

            if (user != null)
            {
                e.IsEmpty = !listUser.Any(x => x.groupID == user.GR_ID);
            }
        }
Exemple #9
0
        private void grvCongNo_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView grv = sender as GridView;

            InforDetailBuy infor = grv.GetRow(e.RowHandle) as InforDetailBuy;

            if (infor != null)
            {
                e.IsEmpty = !listChiTiet.Any(x => x.MaPhieu == infor.MaPhieu);
            }
        }
        private void grvThongTinChuyenKho_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView grv = sender as GridView;

            InforTransWarehouseDTO infor = grv.GetRow(e.RowHandle) as InforTransWarehouseDTO;

            if (infor != null)
            {
                e.IsEmpty = !listDetailTransWarehouse.Any(x => x.MaPhieuChuyen == infor.MaPhieuChuyen);
            }
        }
        private void grvKhachHang_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView grv = sender as GridView;

            CustomerDTO infor = grv.GetRow(e.RowHandle) as CustomerDTO;

            if (infor != null)
            {
                e.IsEmpty = !listInforSell.Any(x => x.MaKH == infor.MaKH);
            }
        }
Exemple #12
0
        private void gridViewMain_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            // neu loai quyen khong co quyen thi dau cong khong xuat hien
            GridView  view      = sender as GridView;
            LoaiQuyen loaiQuyen = view.GetRow(e.RowHandle) as LoaiQuyen;

            if (loaiQuyen != null)
            {
                e.IsEmpty = !quyens.Any(x => x.LoaiQuyenId == loaiQuyen.LoaiQuyenId);
            }
        }
Exemple #13
0
 private void gridView_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
 {
     if (e.RowHandle >= 0)
     {
         Probe probe = gridView.GetRow(e.RowHandle) as Probe;
         if (probe.IsNotNull())
         {
             e.IsEmpty = probe.Screenings.Count == 0;
         }
     }
 }
Exemple #14
0
        private void gvTieuChiDanhGia_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            var      dao  = new NoiDungChiTietDAO();
            GridView view = sender as GridView;
            var      tcdg = view.GetRow(e.RowHandle) as dynamic;

            if (tcdg != null)
            {
                var lst = dao.GetAllTieuChi(tcdg.MaTC) as List <NoiDungChiTiet>;
                e.IsEmpty = lst.Count <= 0;
            }
        }
 private void bandedGridViewTaiSan_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
 {
     try
     {
         //TaiSanHienThi c = (TaiSanHienThi)bandedGridViewTaiSan.GetRow(e.RowHandle);
         //e.IsEmpty = c.childs == null || c.childs.Count == 0;
         TaiSanHienThi c = (TaiSanHienThi)gridViewTaiSan.GetRow(e.RowHandle);
         e.IsEmpty = c.childs == null || c.childs.Count == 0;
     }
     catch (Exception ex)
     {
         Debug.WriteLine(this.Name + "->bandedGridViewTaiSan_MasterRowEmpty: " + ex.Message);
     }
 }
Exemple #16
0
        private void gridViewMaster_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            ShipsMD5 s = (ShipsMD5)gridViewMaster.GetRow(e.RowHandle);

            e.IsEmpty = s.ShipsMD5Detail.Count == 0;
        }
Exemple #17
0
 private void mainEquityView_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
 {
     e.IsEmpty = false;
 }
 void grvBangGia_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
 {
     e.IsEmpty = false;
 }
Exemple #19
0
 private void gvResult_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
 {
     e.IsEmpty = false;
 }