当前位置: 首页>>代码示例>>C#>>正文


C# GISADataset类代码示例

本文整理汇总了C#中GISADataset的典型用法代码示例。如果您正苦于以下问题:C# GISADataset类的具体用法?C# GISADataset怎么用?C# GISADataset使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


GISADataset类属于命名空间,在下文中一共展示了GISADataset类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AddOrRemoveODRelations

 private void AddOrRemoveODRelations(ObjDigComposto odComp, ObjDigSimples odSimples, GISADataset.ObjetoDigitalRow odRow)
 {
     var frdRow = currentNivel.GetFRDBaseRows().Single();
     if (odComp.state == State.added)
     {
         var imgODRow = odRow.GetSFRDImagemObjetoDigitalRows().SingleOrDefault(r => r.IDFRDBase == frdRow.ID);
         if (imgODRow != null) // esta row é nula no caso dos ODs Simples associados a subdocumentos
         {
             imgODRow.SFRDImagemRowParent.Delete();
             imgODRow.Delete();
         }
         GisaDataSetHelper.GetInstance().ObjetoDigitalRelacaoHierarquica.AddObjetoDigitalRelacaoHierarquicaRow(odRow, currentObjetoDigitalRowComp, new byte[] { }, 0);
     }
     else if (odComp.state == State.deleted)
     {
         if (odRow.GetSFRDImagemObjetoDigitalRows().Count() == 0) // se se tratar de um od simples sem estar relacionado com um subdocumento cria-se relacao com a UI selecionada
             FedoraHelper.RelateODtoUI(odSimples, odRow, currentNivel.GetFRDBaseRows().Single());
     }
 }
开发者ID:aureliopires,项目名称:gisa,代码行数:19,代码来源:ObjetoDigitalFedoraHelper.cs

示例2: GenerateInventarioEntryDetails

		private void GenerateInventarioEntryDetails(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
			
			string entry = "";
			
			Paragraph p;
			GisaDataSetHelper.GetFRDBaseDataAdapter(string.Format("WHERE IDNivel={0}", rhRow.ID), null, null).Fill(dataSet.FRDBase);
			GisaDataSetHelper.GetSFRDDatasProducaoDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDDatasProducao.IDFRDBase=FRDBase.ID WHERE IDNivel={0}", rhRow.ID), null, null).Fill(dataSet.SFRDDatasProducao);
			GisaDataSetHelper.GetSFRDUFCotaDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDUFCota.IDFRDBase=FRDBase.ID WHERE IDNivel={0}", rhRow.ID), null, null).Fill(dataSet.SFRDUFCota);
			//PersistencyHelper.cleanDeletedRows()
			foreach (GISADataset.FRDBaseRow frd in rhRow.NivelRowByNivelRelacaoHierarquica.GetFRDBaseRows()) {
				if (frd.IDTipoFRDBase == (long)TipoFRDBase.FRDOIPublicacao) {
					if (frd.GetSFRDDatasProducaoRows().Length > 0) { {
						if (!frd.GetSFRDDatasProducaoRows()[0].IsInicioTextoNull() && frd.GetSFRDDatasProducaoRows()[0].InicioTexto.Length > 0) {
							entry += frd.GetSFRDDatasProducaoRows()[0].InicioTexto + ", ";
						}
						entry += GetInicioData(frd.GetSFRDDatasProducaoRows()[0]) + " - " + GetFimData(frd.GetSFRDDatasProducaoRows()[0]);
						p = new Paragraph(entry, this.BodyFont);
						p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm + 0.5f));
						doc.add(p);
					}
					}
					entry = frd.GetSFRDUFCotaRows()[0].Cota;
					p = new Paragraph(entry, this.BodyFont);
					p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm + 0.5f));
					doc.add(p);
					entry = Nivel.GetCodigoOfNivel(rhRow.NivelRowByNivelRelacaoHierarquica);
					p = new Paragraph(entry, this.BodyFont);
					p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm + 0.5f));
					doc.add(p);
				}
			}
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:32,代码来源:InventarioMultinivel.cs

示例3: GenerateNewCodigoString

 public static string GenerateNewCodigoString(GISADataset.NivelRow nivelEDRow, int ano)
 {
     DataRow[] DataRows = GisaDataSetHelper.GetInstance().NivelUnidadeFisicaCodigo.Select("ID=" + nivelEDRow.ID.ToString() + " AND Ano=" + System.DateTime.Now.Year.ToString());
     if (DataRows.Length == 0)
         return "UF" + DateTime.Now.Year.ToString() + "-" + 1.ToString();
     else
         return "UF" + DateTime.Now.Year.ToString() + "-" + (((GISADataset.NivelUnidadeFisicaCodigoRow)(DataRows[0])).Contador + 1).ToString();
 }
开发者ID:aureliopires,项目名称:gisa,代码行数:8,代码来源:UnidadesFisicasHelper.cs

示例4: NewRow

 internal protected override DataRow NewRow(GISADataset.ControloAutRow caRow)
 {
     var newRow = GisaDataSetHelper.GetInstance().SFRDAutor.NewSFRDAutorRow();
     newRow.IDFRDBase = FRDBaseRow.ID;
     newRow.IDControloAut = caRow.ID;
     GisaDataSetHelper.GetInstance().SFRDAutor.AddSFRDAutorRow(newRow);
     return newRow;
 }
开发者ID:aureliopires,项目名称:gisa,代码行数:8,代码来源:ControloAutAutorDragDrop.cs

示例5: ControloAutDragDrop

 public ControloAutDragDrop(ListView ListView, TipoNoticiaAut[] TipoNoticiaAutAllowed, GISADataset.ControloAutRow ControloAutRow, Control parent)
     : base(ListView, typeof(GISADataset.ControloAutRow), typeof(GISADataset.ControloAutRow[]))
 {
     this.TipoNoticiaAutAllowed = TipoNoticiaAutAllowed;
     this.FRDBaseRow = null;
     this.ControloAutRow = ControloAutRow;
     this.parent = parent;
 }
开发者ID:aureliopires,项目名称:gisa,代码行数:8,代码来源:ControloAutDragDrop.cs

示例6: GenerateInventarioEntry

		protected override void GenerateInventarioEntry(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
			DoRemovedEntries(1);
			if (rhRow.TipoNivelRelacionadoRow.IDTipoNivel == TipoNivelRelacionado.D) {
				GenerateInventarioEntryDetails(doc, rhRow, CurrentIndentCm);
			}
			else {
				GenerateInventarioEntryChildren(doc, rhRow, CurrentIndentCm);
			}
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:9,代码来源:CatalogoMultinivel.cs

示例7: NewRow

        internal protected virtual DataRow NewRow(GISADataset.ControloAutRow caRow)
        {
            var newRow = GisaDataSetHelper.GetInstance().IndexFRDCA.NewIndexFRDCARow();
		    newRow.FRDBaseRow = FRDBaseRow;
            newRow.ControloAutRow = caRow;
            newRow["Selector"] = DBNull.Value;
            GisaDataSetHelper.GetInstance().IndexFRDCA.AddIndexFRDCARow(newRow);
            return newRow;
        }
开发者ID:aureliopires,项目名称:gisa,代码行数:9,代码来源:ControloAutDragDrop.cs

示例8: getFormaAutorizada

		// Devolve a forma autorizada do CA passado
		public static GISADataset.ControloAutDicionarioRow getFormaAutorizada(GISADataset.ControloAutRow caRow)
		{
			foreach (GISADataset.ControloAutDicionarioRow cadRow in caRow.GetControloAutDicionarioRows())
			{
				if (cadRow.IDTipoControloAutForma == (long)TipoControloAutForma.FormaAutorizada)
					return cadRow;
			}
			return null;
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:10,代码来源:ControloAutHelper.cs

示例9: DomainValueListBoxController

        public DomainValueListBoxController(GISADataset.FRDBaseRow FRDBaseRow, DataTable DomainValues, DataTable SelectionTable, string SelectionColumn, ListBox ListBox, bool ExclusiveSelection)
            : base()

		{
			this.DomainValues = DomainValues;
			this.Selection = new DataView(SelectionTable, "IDFRDBase=" + FRDBaseRow.ID.ToString(), "", DataViewRowState.CurrentRows);
			this.SelectionColumn = SelectionColumn;
			this.ListBox = ListBox;
			this.ExclusiveSelection = ExclusiveSelection;

			((CheckedListBox)ListBox).ItemCheck +=  ListBox_Itemcheck;
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:12,代码来源:DomainValueListBoxController.cs

示例10: UpdateTrustees

        protected override void UpdateTrustees(GISADataset.TrusteeRow tRow)
        {
            GisaDataSetHelper.HoldOpen ho = new GisaDataSetHelper.HoldOpen(GisaDataSetHelper.GetConnection());
            try
            {
                TrusteeRule.Current.LoadTrusteesUsr(GisaDataSetHelper.GetInstance(), ho.Connection);
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex);
                throw;
            }
            finally
            {
                ho.Dispose();
            }

            lstVwTrustees.Items.Clear();
            ListViewItem item = null;
            ListViewItem selItem = null;
            foreach (var t in GisaDataSetHelper.GetInstance().Trustee.Cast<GISADataset.TrusteeRow>().ToList())
            {
#if TESTING
               
                item = lstVwTrustees.Items.Add("");
                if (t == tRow)
                {
                    selItem = item;
                }
                UpdateListViewItem(item, t);
                if (t.BuiltInTrustee)
                {
                    item.ForeColor = System.Drawing.Color.Gray;
                }
#else
				if (! t.BuiltInTrustee && t.IsVisibleObject)
				{
					item = lstVwTrustees.Items.Add("");
					if (t == tRow)
					{
						selItem = item;
					}
					UpdateListViewItem(item, t);
				}
#endif
            }
            lstVwTrustees.Sort();
            if (selItem != null)
            {
                lstVwTrustees.EnsureVisible(selItem.Index);
                lstVwTrustees.selectItem(selItem);
            }
        }
开发者ID:aureliopires,项目名称:gisa,代码行数:53,代码来源:MasterPanelPermissoesDesposito.cs

示例11: FormPickControloAut

		public FormPickControloAut(GISADataset.ControloAutRow ContextControloAut) : base()
		{

			//This call is required by the Windows Form Designer.
			InitializeComponent();

			//Add any initialization after the InitializeComponent() Call
            caList.BeforeNewListSelection += caList_BeforeNewListSelection;
            caList.DoubleClick += caList_DoubleClick;
            btnAdicionar.Click += btnAdicionar_Click;

			mContextControloAut = ContextControloAut;
            caList.FilterVisible = true;
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:14,代码来源:FormPickControloAut.cs

示例12: GeneratePdf

		public override void GeneratePdf() {
			dataSet = new GISADataset();
			foreach (DataTable t in dataSet.Tables) {
				t.RowChanged += new DataRowChangeEventHandler(this.DataRowChanged);
			}
			GisaDataSetHelper.LoadStaticDataTables(dataSet);
			
			Document doc;
			doc = new Document(PageSize.A4, CentimeterToPoint(2.5F), CentimeterToPoint(2.5F), CentimeterToPoint(2.5F), CentimeterToPoint(2.5F));
			com.lowagie.text.pdf.PdfWriter.getInstance(doc, new java.io.FileOutputStream(mFileName, false));
			Generate(doc, mRelacaoHierarquicaRows);
			doc.close();
			dataSet = null;
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:14,代码来源:Multinivel.cs

示例13: FormControloAutRel

		public FormControloAutRel(GISADataset.ControloAutRow ContextCA, Control parent) : base()
		{

			//This call is required by the Windows Form Designer.
			InitializeComponent();

            //Add any initialization after the InitializeComponent() callcaList.BeforeNewListSelection += caList_BeforeNewListSelection;
            btnAccept.Click += btnAccept_Click;
			mContextControloAut = ContextCA;

			this.relacaoCA.ContextNivelRow = ((GISADataset.NivelControloAutRow)(GisaDataSetHelper.GetInstance().NivelControloAut.Select(string.Format("IDControloAut={0}", ContextCA.ID))[0])).NivelRow;            
            caList.BeforeNewListSelection += caList_BeforeNewListSelection;
            this.caList.FilterVisible = true;

            this.parent = parent;
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:16,代码来源:FormControloAutRel.cs

示例14: RegisterRecordModificationCA

        public static void RegisterRecordModificationCA(GISADataset.ControloAutRow CurrentControloAut, bool existsModifiedDataFromRels, GISADataset.TrusteeUserRow tuOperator, GISADataset.TrusteeUserRow tuAuthor, DateTime data)
        {
            // só é registada uma nova entrada no controlo de descrição se alguma informação relativa à FRD 
            // tiver sido modificada; é também possível que já tenha sido registado uma nova entrada no controlo mas
            // nesse caso não se adiciona outra
            if (CurrentControloAut == null || CurrentControloAut.RowState == DataRowState.Detached ||
                GisaDataSetHelper.GetInstance().ControloAutDataDeDescricao.Select("IDControloAut=" + CurrentControloAut.ID.ToString(), "", DataViewRowState.Added).Length > 0)

                return;

            if (existsModifiedDataFromRels || Concorrencia.WasRecordModified(CurrentControloAut))
            {
                var cadddRow = CreateControlAutDataDeDescricaoRow(CurrentControloAut, tuOperator, tuAuthor, data);
                GisaDataSetHelper.GetInstance().ControloAutDataDeDescricao.AddControloAutDataDeDescricaoRow(cadddRow);
            }
        }
开发者ID:aureliopires,项目名称:gisa,代码行数:16,代码来源:RecordRegisterHelper.cs

示例15: GenerateInventarioEntry

		protected override void GenerateInventarioEntry(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
			
			GISADataset.NivelRow n = rhRow.NivelRowByNivelRelacaoHierarquica;
			
			string entry = string.Format("{0}: {1} - {2}", rhRow.TipoNivelRelacionadoRow.Codigo, rhRow.NivelRowByNivelRelacaoHierarquica.Codigo, Nivel.GetDesignacao(n));
			
			Paragraph p = new Paragraph(entry, this.BodyFont);
			p.setIndentationLeft(CentimeterToPoint(CurrentIndentCm));
			doc.add(p);
			DoRemovedEntries(1);
			if (!rhRow.TipoNivelRelacionadoRow.TipoNivelRow.IsDocument) {
				GenerateInventarioEntryChildren(doc, rhRow, CurrentIndentCm);
			}
			else {
				GenerateInventarioEntryDetails(doc, rhRow, CurrentIndentCm);
			}
		}
开发者ID:aureliopires,项目名称:gisa,代码行数:17,代码来源:InventarioMultinivel.cs


注:本文中的GISADataset类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。