Exemple #1
0
        private void gvEpp_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            IdEpp         = Int32.Parse(gvEpp.GetFocusedRowCellValue("IdEpp").ToString());
            mListaDetalle = new EppDetalleBL().ListaTodosActivo(IdEpp);
            mLista.First(x => x.IdEpp == IdEpp).EppDetalle = mListaDetalle.Count > 0 ? mListaDetalle : null;

            AttachSummaryEPP();
        }
Exemple #2
0
 void grvLichSu_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     e.ChildList = BCBanHangDataProvider.Instance.GetLichSuThayDoiGiaDetail(
         bteTrungTam.Tag == null ? 0 : ((DMTrungTamInfor)bteTrungTam.Tag).IdTrungTam,
         Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdSanPham")),
         Convert.ToDateTime(dteStart.EditValue),
         Convert.ToDateTime(dteEnd.EditValue));
 }
Exemple #3
0
 private void viewExpense_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     switch (gridList.LevelTree.Nodes[e.RelationIndex].RelationName)
     {
         case "Costs":
             e.ChildList = Factory.Manager<ExpenseCostManager>().GetAll(GetGridValue(viewExpense, e.RowHandle));
             break;
     }
 }
Exemple #4
0
        void ViewOnMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            object row = ((XpandXafGridView)sender).GetRow(e.RowHandle);

            if (e.RelationIndex > -1)
            {
                e.ChildList = (IList)MasterDetailRules[e.RelationIndex].CollectionMember.MemberInfo.GetValue(row);
            }
        }
Exemple #5
0
        private void avbGridView_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            string avbID = avbGridView.GetRowCellValue(e.RowHandle, colAVBID).ToString();
            int    nor   = this.accountDataSet.AVD.Select("AVBID = " + avbID).Length;

            if (nor == 0)
            {
                this.avdTableAdapter.Fill(this.accountDataSet.AVD, (int)avbGridView.GetRowCellValue(e.RowHandle, colAVBID));
            }
        }
Exemple #6
0
        private void mainViewMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var schema = _gridProtocolBinder.ElementAt(e.RowHandle);

            if (schema == null)
            {
                return;
            }

            e.ChildList = schema.SchemaItems;
        }
Exemple #7
0
        private void mainViewMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var schema = _gridViewBinder.ElementAt(e.RowHandle);

            if (schema == null)
            {
                return;
            }

            e.ChildList = schema.OptimizedParameters;
        }
Exemple #8
0
        private void gvRelations_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            GridView fakeMasterView = (GridView)sender;

            GridView realMasterView    = (GridView)fakeMasterView.ParentView;
            int      realMasterRow     = fakeMasterView.SourceRowHandle;
            int      realListSourceRow = realMasterView.GetDataSourceRowIndex(realMasterRow);
            int      realRelationIndex = fakeMasterView.GetDataSourceRowIndex(e.RowHandle); // real relation indexes correspond to fake row indexes

            e.ChildList = GetRelationList(realMasterView, realListSourceRow, realRelationIndex);
        }
Exemple #9
0
        private void mainEquityView_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            if (e.RowHandle != DevExpress.XtraGrid.GridControl.InvalidRowHandle)
            {
                var masterView   = sender as GridView;
                var masterRecord = masterView?.GetRow(e.RowHandle) as B3Provider.Records.B3EquityInfo;
                var options      = providerClient.OptionInstruments.Where(o => o.B3IDUnderlying == masterRecord?.B3ID).ToList();

                e.ChildList = options;
            }
        }
        private void gridView1_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            // GridView view = sender as GridView;
            //// var value = view.GetRowCellValue(e.RowHandle, colMaPTB);
            // var value2 = a.xemThongPhieuTra((string)value);

            //  if (value2 != null)
            // {
            //   e.ChildList = value2;
            // }
        }
Exemple #11
0
        private void mainViewMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var applicationDTO = _gridApplicationsBinder.ElementAt(e.RowHandle);

            if (applicationDTO == null)
            {
                return;
            }

            e.ChildList = applicationDTO.Parameters;
        }
 void ViewOnMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     if (e.RelationIndex > -1)
     {
         var currentObject        = ((IMasterDetailColumnView)sender).GetRow(e.RowHandle);
         var masterDetailRuleInfo = GetRule(e.RelationIndex, currentObject, GetFrame(sender as IMasterDetailColumnView));
         if (masterDetailRuleInfo != null)
         {
             e.ChildList = (IList)masterDetailRuleInfo.CollectionMember.MemberInfo.GetValue(currentObject);
         }
     }
 }
Exemple #13
0
        private void tsfGridView_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            string tafID = tsfGridView.GetRowCellValue(e.RowHandle, colAREFIDf).ToString();
            string qry   = "TAFID = " + tafID;
            //MessageBox.Show(qry);
            int nor = this.teklifDataSet.TAF.Select("TAFID = " + tafID).Length;

            if (nor == 0)
            {
                this.tafTableAdapter.Fill(this.teklifDataSet.TAF, qry, Program.USR);
            }
        }
        /// <summary>
        /// Alt satır bilgilerini doldurur
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridView1_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var zimmet = (ZimmetDefteri)grdVZimmet.GetRow(e.RowHandle);

            if (zimmet.GelenEvrakId != null)
            {
                var dataSource = new GelenEvrakViewDTO
                {
                    GelenEvraklarView = new GelenEvraklarViewDTO
                    {
                        Aciklama                  = zimmet.GelenEvrak.Aciklama,
                        DosyaNoKonusu             = zimmet.GelenEvrak.DosyaNoKonusu,
                        Personel                  = zimmet.GelenEvrak.Personel.TamIsim,
                        Durum                     = zimmet.GelenEvrak.Durum,
                        TarihTsg                  = zimmet.GelenEvrak.TarihTSG,
                        EvrakiCikaranMakam        = zimmet.GelenEvrak.EvrakiCikaranMakam.Makam,
                        EvrakKayitNo              = zimmet.GelenEvrak.EvrakKayitNo,
                        EvrakKayitTarihi          = zimmet.GelenEvrak.EvrakKayitTarihi,
                        EvrakSonTarihi            = zimmet.GelenEvrak.EvrakSonTarihi,
                        GizlilikDerecesi          = zimmet.GelenEvrak.GizlilikDerecesi.Derece,
                        GuvenlikNoOncelikDerecesi = zimmet.GelenEvrak.GuvenlikNoOncelikDerecesi.Derece
                    }
                };
                e.ChildList = new BindingSource(dataSource, "GelenEvraklarView");
            }
            else
            {
                if (zimmet.GidenEvrakId == null)
                {
                    return;
                }
                var dataSource = new GidenEvrakViewDTO
                {
                    GidenEvraklarView = new GidenEvraklarViewDTO
                    {
                        Aciklama                  = zimmet.GidenEvrak.Aciklama,
                        DosyaNoKonusu             = zimmet.GidenEvrak.DosyaNoKonusu,
                        GonderdigiMakam           = zimmet.GidenEvrak.GonderdigiMakam.Makam,
                        Durum                     = zimmet.GidenEvrak.Durum,
                        TarihTsg                  = zimmet.GidenEvrak.TarihTSG,
                        EvrakiCikaranMakam        = zimmet.GidenEvrak.EvrakiCikaranMakam.Makam,
                        EvrakKayitNo              = zimmet.GidenEvrak.EvrakKayitNo,
                        EvrakKayitTarihi          = zimmet.GidenEvrak.EvrakKayitTarihi,
                        EvrakSonTarihi            = zimmet.GidenEvrak.EvrakSonTarihi,
                        GizlilikDerecesi          = zimmet.GidenEvrak.GizlilikDerecesi.Derece,
                        GuvenlikNoOncelikDerecesi = zimmet.GidenEvrak.GuvenlikNoOncelikDerecesi.Derece
                    }
                };
                e.ChildList = new BindingSource(dataSource, "GidenEvraklarView");
            }
        }
Exemple #15
0
        private void gvNoiDungChiTiet_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var      dao  = new DiemDanhGiaRenLuyenDAO();
            var      daob = new LuaChonChiTietDAO();
            GridView view = sender as GridView;
            var      tcdg = view.GetRow(e.RowHandle) as dynamic;

            if (tcdg != null)
            {
                var hocky       = cbbHocKy.EditValue as string;
                var namhoc      = cbbNamHoc.EditValue as string;
                int namhoc2     = int.Parse(namhoc.Split('-')[0].ToString());
                var lst         = dao.GetAllByMSSV(MSSV, namhoc2, hocky);
                var lstrenluyen = dao._db.ViewLuaChonChiTiets.ToList();
                if (lst.Count() <= 0)
                {
                    foreach (var item in lstrenluyen)
                    {
                        dao.AddOrUpdate(new Model.DTO.DGRenLuyen()
                        {
                            NamHoc = namhoc2,
                            MaHK   = hocky,
                            MSSV   = MSSV,
                            MaLC   = item.MaLC
                        }, 0);
                    }
                    lst = dao.GetAllByMSSV(MSSV, namhoc2, hocky);
                }
                var lc        = daob.GetAllLuaChon(tcdg.MaCT) as List <LuaChonChiTiet>;
                var lstsource = from a in lst.Where(x => lc.Any(y => y.MaLC == x.MaLC))
                                join b in lc on a.MaLC equals b.MaLC
                                select new
                {
                    MaLCView = (b.MaLC >= 10) ? "0" + b.MaLC : "00" + b.MaLC,
                    b.MaLC,
                    b.MoTa,
                    DiemTT  = b.DiemMin,
                    DiemTD  = b.DiemMax,
                    DiemSV  = a.DiemSVDG,
                    DiemLTT = a.DiemLT,
                    DiemGV  = a.DiemCVHT
                };
                e.ChildList = lstsource.ToList();
            }
        }
Exemple #16
0
        protected override void Tablo_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var entity = tablo.GetRow <OdemesiGecikenAlacaklarRaporuL>(e.RowHandle);

            if (entity == null)
            {
                return;
            }

            using (var bll = new GecikmeAciklamalariBll())
            {
                var list = bll.List(x => x.OdemeBilgileriId == entity.PortfoyNo).EntityListConvert <GecikmeAciklamalariL>().ToList();
                if (list.Any())
                {
                    e.ChildList = list;
                }
            }
        }
        private void gvDangky_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            List <DK_Customer> lst    = new List <DK_Customer>();
            BindingSource      source = new BindingSource();

            if (p == 0)
            {
                for (int i = 0; i < Convert.ToInt32(gvDangky.GetRowCellValue(e.RowHandle, gvDangky.Columns[3])); i++)
                {
                    source.AllowNew = true;
                    lst.Add(new DK_Customer()
                    {
                        Sophong = Convert.ToInt32(gvDangky.GetRowCellValue(e.RowHandle, gvDangky.Columns[0]))
                    });
                }
            }
            else if (p == 1)
            {
                var iddk      = Convert.ToInt32(txtSo.Text);
                var sophong   = Convert.ToInt32(gvDangky.GetRowCellValue(e.RowHandle, gvDangky.Columns[0]));
                var listkhach = db.DK_Customers.Where(m => m.IdDK == iddk && m.Sophong == sophong);
                source.AllowNew = true;
                foreach (var item in listkhach.ToList())
                {
                    lst.Add(new DK_Customer()
                    {
                        CMND = item.CMND, Hoten = item.Hoten, Gioitinh = item.Gioitinh, Quoctich = item.Quoctich, Sophong = Convert.ToInt32(gvDangky.GetRowCellValue(e.RowHandle, gvDangky.Columns[0])), Id = item.Id
                    });
                }
                int t = Convert.ToInt32(gvDangky.GetRowCellValue(e.RowHandle, gvDangky.Columns[3])) - listkhach.Count();
                for (int i = 0; i < t; i++)
                {
                    lst.Add(new DK_Customer()
                    {
                        Sophong = Convert.ToInt32(gvDangky.GetRowCellValue(e.RowHandle, gvDangky.Columns[0]))
                    });
                }
            }
            source.DataSource = lst;
            e.ChildList       = source;
        }
Exemple #18
0
        public override IList MasterRowGetChildList(MasterRowGetChildListEventArgs e)
        {
            var o  = _gridView.GetRow(e.RowHandle) as Venda;
            var bs = new BindingSource(o, this._relationName);
            var ds = bs.DataSource as Venda;
            List <ItemVenda> items = ds.ItensVendas.ToList();
            var query = from i in items
                        select new
            {
                i.Produto.DescricaoProduto,
                i.Produto.UnidadeMedida.NomeUnidadeMedida,
                i.Produto.CategoriaProduto.NomeCategoriaProduto,
                i.Quantidade,
                i.ValorUnitario,
                i.Desconto,
                i.TotalItem,
            };
            var lista = query.ToList();

            bs.DataSource = lista;
            return(lista);
        }
        private void grvChinhSach_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            switch (grcBangGia.LevelTree.Nodes["ChinhSach"].Nodes[e.RelationIndex].RelationName)
            {
            case "SanPhamKem": e.ChildList = GetListSanPhamKem(Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdDKMua")));
                break;

            case "SieuThi": e.ChildList = GetListSieuThiApDung(Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdChinhSach")));
                break;

            case "DoiTuong": e.ChildList = GetListDoiTuongApDung(Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdChinhSach")));
                break;

            case "KhuyenMai": e.ChildList = GetListKhuyenMai(Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdChinhSach")));
                break;

            case "ThanhToan": e.ChildList = GetListThanhToan(Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdChinhSach")));
                break;

            case "ThoiGian": e.ChildList = GetListThoiGian(Convert.ToInt32(((ColumnView)sender).GetRowCellValue(e.RowHandle, "IdChinhSach")));
                break;
            }
        }
		private void OnGetGroupChildList(object sender, MasterRowGetChildListEventArgs e)
		{
			if (e.RowHandle != GridControl.InvalidRowHandle && _securityGroups[e.RowHandle].Users != null)
				e.ChildList = _securityGroups[e.RowHandle].Users.ToArray();
		}
 void ViewOnMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e) {
     object row = ((IMasterDetailXafGridView)sender).GetRow(e.RowHandle);
     if (e.RelationIndex > -1)
         e.ChildList = (IList)RequestRules.Invoke(Frame)[e.RelationIndex].CollectionMember.MemberInfo.GetValue(row);
 }
Exemple #22
0
 private void gridView_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     var Row = (MasterDetailInfo)gridView.GetRow(e.RowHandle);
     e.ChildList = Row.GetChildList(e.RelationIndex);
 }
Exemple #23
0
 protected virtual void Tablo_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
 }
Exemple #24
0
 public abstract IList MasterRowGetChildList(MasterRowGetChildListEventArgs e);
Exemple #25
0
 private void gridView1_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     e.ChildList = MasterRowGetChildList(e);
 }
		private void OnGetLibraryChildList(object sender, MasterRowGetChildListEventArgs e)
		{
			if (e.RowHandle != GridControl.InvalidRowHandle)
				e.ChildList = _pages.Where(x => x.libraryId == _libraries[e.RowHandle].id).ToArray();
		}
Exemple #27
0
 private void gridViewMasterStock_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     (this.ParentForm as MainForm).RefreshData((receiptMasterBindingSource.CurrencyManager.Current as DataRowView).Row as MDataSet.ReceiptMasterRow);
 }
Exemple #28
0
 private void gridViewMasterStock_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     (this.ParentForm as MainForm).RefreshData((receiptMasterBindingSource.CurrencyManager.Current as DataRowView).Row as MDataSet.ReceiptMasterRow);
 }
Exemple #29
0
        private void gridView1_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            ManifestPackageVM row = gridView1.GetRow(e.RowHandle) as ManifestPackageVM;

            e.ChildList = row.Installers;
        }
Exemple #30
0
        private void gridViewStock_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            ARTICULO row = (ARTICULO)this.gridViewArticulo.GetRow(e.RowHandle);

            e.ChildList = (IList) new BindingSource((object)row, "BODEGASTOCK");
        }
Exemple #31
0
        private void schemaViewMasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
        {
            var schemaItem = schemaItemAt(sender, e.RowHandle);

            e.ChildList = _presenter.DynamicParametersFor(schemaItem);
        }
Exemple #32
0
 private void viewActs_MasterRowGetChildList(object sender, MasterRowGetChildListEventArgs e)
 {
     var actID = GetGridValue(viewActs, e.RowHandle);
     switch (gridList.LevelTree.Nodes[e.RelationIndex].RelationName)
     {
         case "Steps":
             e.ChildList = Factory.Manager<StepManager>().GetForAct(actID);
             break;
         case "Documents":
             e.ChildList = Factory.Manager<ActDocumentManager>().GetForActAll(actID, CurrentInfo.OfficeID);
             break;
         case "Status":
             e.ChildList =
                 Factory.Manager<StateHistoryManager>().GetForAct(actID).FindAll(
                     s => !string.IsNullOrEmpty(s.Description));
             break;
         case "Notes":
             e.ChildList = Factory.Manager<NoteManager>().GetForAct(actID);
             break;
         case "History":
             e.ChildList = Factory.Manager<ActHistoryManager>().GetForAct(actID);
             break;
     }
 }