public override void LoadData(DataRow CurrentDataRow, IDbConnection conn) { IsLoaded = false; CurrentFRDBase = (GISADataset.FRDBaseRow)CurrentDataRow; if (DragDropHandlerTipoInformacional == null) { DragDropHandlerTipoInformacional = new ControloAutDragDrop(lstVwTipoInformacional, new TipoNoticiaAut[] { TipoNoticiaAut.TipologiaInformacional }, CurrentFRDBase); DragDropHandlerSubTipoInformacional = new ControloAutDragDrop(lstVwSubTipoInformacional, new TipoNoticiaAut[] { TipoNoticiaAut.TipologiaInformacional }, CurrentFRDBase); DragDropHandlerDiploma = new ControloAutDragDrop(lstVwDiplomaLegalRegulamentacao, new TipoNoticiaAut[] { TipoNoticiaAut.Diploma }, CurrentFRDBase); DragDropHandlerModelo = new ControloAutDragDrop(lstVwModelo, new TipoNoticiaAut[] { TipoNoticiaAut.Modelo }, CurrentFRDBase); DragDropHandlerTipoInformacional.AddControloAut += AddControloAut; DragDropHandlerSubTipoInformacional.AddControloAut += AddControloAut; DragDropHandlerDiploma.AddControloAut += AddControloAut; DragDropHandlerModelo.AddControloAut += AddControloAut; } else { DragDropHandlerTipoInformacional.FRDBase = CurrentFRDBase; DragDropHandlerSubTipoInformacional.FRDBase = CurrentFRDBase; } FRDRule.Current.LoadConteudoEEstrutura(GisaDataSetHelper.GetInstance(), CurrentFRDBase.ID, conn); OnShowPanel(); IsLoaded = true; }
public override void LoadData(DataRow CurrentDataRow, IDbConnection conn) { IsLoaded = false; CurrentFRDBase = (GISADataset.FRDBaseRow)CurrentDataRow; if (DragDropHandler1 == null) { DragDropHandler1 = new ControloAutDragDrop(lstVwIndexacao, new TipoNoticiaAut[] {TipoNoticiaAut.Ideografico, TipoNoticiaAut.Onomastico, TipoNoticiaAut.ToponimicoGeografico}, CurrentFRDBase); DragDropHandler1.AddControloAut += AddControloAut; } else DragDropHandler1.FRDBase = CurrentFRDBase; string QueryFilter = "IDFRDBase=" + CurrentFRDBase.ID.ToString(); string WhereQueryFilter = "WHERE " + QueryFilter; FRDRule.Current.LoadIndexacaoData(GisaDataSetHelper.GetInstance(), CurrentFRDBase.ID, conn); OnShowPanel(); IsLoaded = true; }
public override void LoadData(DataRow CurrentDataRow, IDbConnection conn) { IsLoaded = false; CurrentFRDBase = (GISADataset.FRDBaseRow)CurrentDataRow; if (DragDropHandlerTipoInformacional == null) { DragDropHandlerTipoInformacional = new ControloAutDragDrop(lstVwTipoInformacional, new TipoNoticiaAut[] {TipoNoticiaAut.TipologiaInformacional}, CurrentFRDBase); DragDropHandlerSubTipoInformacional = new ControloAutDragDrop(lstVwSubTipoInformacional, new TipoNoticiaAut[] { TipoNoticiaAut.TipologiaInformacional}, CurrentFRDBase); DragDropHandlerDiploma = new ControloAutDragDrop(lstVwDiplomaLegalRegulamentacao, new TipoNoticiaAut[] {TipoNoticiaAut.Diploma}, CurrentFRDBase); DragDropHandlerModelo = new ControloAutDragDrop(lstVwModelo, new TipoNoticiaAut[] {TipoNoticiaAut.Modelo}, CurrentFRDBase); DragDropHandlerTipoInformacional.AddControloAut += AddControloAut; DragDropHandlerSubTipoInformacional.AddControloAut += AddControloAut; DragDropHandlerDiploma.AddControloAut += AddControloAut; DragDropHandlerModelo.AddControloAut += AddControloAut; } else { DragDropHandlerTipoInformacional.FRDBase = CurrentFRDBase; DragDropHandlerSubTipoInformacional.FRDBase = CurrentFRDBase; } FRDRule.Current.LoadConteudoEEstrutura(GisaDataSetHelper.GetInstance(), CurrentFRDBase.ID, conn); OnShowPanel(); IsLoaded = true; }