本文整理汇总了C#中GISADataset类的典型用法代码示例。如果您正苦于以下问题:C# GISADataset类的具体用法?C# GISADataset怎么用?C# GISADataset使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GISADataset类属于命名空间,在下文中一共展示了GISADataset类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: GetNewCodigoRow
// returns the updated NivelUnidadeFisicaCodigoRow considering a new Codigo
public static GISADataset.NivelUnidadeFisicaCodigoRow GetNewCodigoRow(GISADataset.NivelRow nivelRow, int ano)
{
GISADataset.NivelRow ParentEDRow = nivelRow.GetRelacaoHierarquicaRowsByNivelRelacaoHierarquica()[0].NivelRowByNivelRelacaoHierarquicaUpper;
DataRow[] DataRows = GisaDataSetHelper.GetInstance().NivelUnidadeFisicaCodigo.Select("ID=" + ParentEDRow.ID.ToString() + " AND Ano=" + System.DateTime.Now.Year.ToString());
GISADataset.NivelUnidadeFisicaCodigoRow codigoRow = null;
if (DataRows.Length == 0)
{
codigoRow = GisaDataSetHelper.GetInstance().NivelUnidadeFisicaCodigo.AddNivelUnidadeFisicaCodigoRow(ParentEDRow, System.DateTime.Now.Year, 1M, new byte[] { }, 0);
}
else
{
codigoRow = (GISADataset.NivelUnidadeFisicaCodigoRow)(DataRows[0]);
codigoRow.Contador = codigoRow.Contador + 1;
}
return codigoRow;
}
开发者ID:aureliopires,项目名称:gisa,代码行数:18,代码来源:UnidadesFisicasHelper.cs
示例17: Generate
protected void Generate(Document doc, GISADataset.RelacaoHierarquicaRow[] rhRows) {
string queryN = "";
string queryRH = "";
foreach (GISADataset.RelacaoHierarquicaRow r in rhRows) {
if (queryN.Length > 0)
queryN += ", ";
queryN += string.Format("{0}", r.NivelRowByNivelRelacaoHierarquica.ID);
if (queryRH.Length > 0)
queryRH += " OR ";
queryRH += string.Format("(ID={0} AND IDUpper={1})", r.ID, r.IDUpper);
}
GisaDataSetHelper.GetNivelDataAdapter(string.Format("WHERE ID IN ({0})", queryN), null, null).Fill(dataSet.Nivel);
GisaDataSetHelper.GetRelacaoHierarquicaDataAdapter(string.Format("WHERE {0}", queryRH), null, null).Fill(dataSet.RelacaoHierarquica);
//PersistencyHelper.cleanDeletedRows()
rhRows = (GISADataset.RelacaoHierarquicaRow[])dataSet.RelacaoHierarquica.Select("");
java.awt.Color hfcolor = new java.awt.Color(128, 128, 128);
Font hffont = new Font(Font.HELVETICA, 6, Font.ITALIC, hfcolor);
HeaderFooter header = new HeaderFooter(new Phrase("Gestão Integrada de Sistemas de Arquivo", hffont), false);
header.setAlignment(ElementConst.ALIGN_CENTER);
header.setBorder(2);
// iTextSharp.text.Rectangle.BOTTOM
header.setBorderColor(hfcolor);
doc.setHeader(header);
HeaderFooter footer = new HeaderFooter(new Phrase("Câmara Municipal do Porto - Departamento de Arquivos - ", hffont), true);
footer.setAlignment(ElementConst.ALIGN_CENTER);
footer.setBorder(1);
// iTextSharp.text.Rectangle.TOP
footer.setBorderColor(hfcolor);
doc.setFooter(footer);
// Headers and footers apply to next page...
doc.open();
GenerateTitle(doc);
float CurrentIndentCm = 0;
DoAddedEntries(rhRows.Length);
Array.Sort(rhRows, new NivelSorter());
foreach (GISADataset.RelacaoHierarquicaRow rhRow in rhRows) {
GenerateInventarioEntry(doc, rhRow, CurrentIndentCm);
}
}
开发者ID:aureliopires,项目名称:gisa,代码行数:46,代码来源:Multinivel.cs
示例18: ForceRefresh
public static void ForceRefresh(GISADataset.RelacaoHierarquicaRowChangeEvent e, MasterPanel mp, frmMain topLevelControl)
{
try
{
if (!(e.Action == DataRowAction.Add || (e.Action == DataRowAction.Change) || e.Action == DataRowAction.Delete))
return;
// verificar se a row foi realmente editada
if (e.Action == DataRowAction.Change && !Concorrencia.isModifiedRow(e.Row))
return;
// descartar modificações intermédias de rows (por exemplo, a atribuição de um ID uma nivelRow quando gravada para a BD)
if (e.Row.NivelRowByNivelRelacaoHierarquica == null || e.Row.NivelRowByNivelRelacaoHierarquicaUpper == null)
return;
// garantir que a alteração occoreu entre duas entidades produtoras
if (!(e.Row.NivelRowByNivelRelacaoHierarquica.IDTipoNivel == TipoNivel.ESTRUTURAL && (e.Row.NivelRowByNivelRelacaoHierarquicaUpper.IDTipoNivel == TipoNivel.LOGICO || e.Row.NivelRowByNivelRelacaoHierarquicaUpper.IDTipoNivel == TipoNivel.ESTRUTURAL)))
return;
if (!topLevelControl.IsFirstMasterPanelInStack(mp) && topLevelControl.MasterPanelCount == 1)
{
if (mp is INivelNavigatorProvider)
{
mp.lblFuncao.Text = "Estrutura orgânica";
var nav = mp as INivelNavigatorProvider;
nav.NivelNavigator.PanelToggleState = NivelNavigator.ToggleState.Estrutural;
nav.NivelNavigator.CollapseAllNodes();
nav.NivelNavigator.ToggleView(false);
}
else if (mp is IControloNivelListProvider)
{
var cnl = mp as IControloNivelListProvider;
cnl.ControloNivelList.CollapseAllNodes();
}
}
}
catch (Exception ex)
{
Debug.Assert(false, ex.ToString());
Trace.WriteLine(ex);
throw ex;
}
}
开发者ID:aureliopires,项目名称:gisa,代码行数:43,代码来源:NavigatorHelper.cs
示例19: GenerateInventarioEntryChildren
protected void GenerateInventarioEntryChildren(Document doc, GISADataset.RelacaoHierarquicaRow rhRow, float CurrentIndentCm) {
GISADataset.RelacaoHierarquicaRow[] childRhRows;
try { {
dataSet.EnforceConstraints = false;
GisaDataSetHelper.GetNivelDataAdapter(string.Format("WHERE ID IN (SELECT ID FROM RelacaoHierarquica WHERE IDUpper={0})", rhRow.ID), null, null).Fill(dataSet.Nivel);
GisaDataSetHelper.GetRelacaoHierarquicaDataAdapter(string.Format("WHERE IDUpper={0}", rhRow.ID), null, null).Fill(dataSet.RelacaoHierarquica);
//PersistencyHelper.cleanDeletedRows()
childRhRows = Nivel.GetChildren(dataSet, rhRow.NivelRowByNivelRelacaoHierarquica);
if (childRhRows.Length == 0)
return;// might not be correct. Was : Exit Sub
DoAddedEntries(childRhRows.Length);
GisaDataSetHelper.GetNivelDesignadoDataAdapter(string.Format("WHERE ID IN (SELECT ID FROM RelacaoHierarquica WHERE IDUpper={0})", rhRow.ID), null, null).Fill(dataSet.NivelDesignado);
GisaDataSetHelper.GetControloAutDataAdapter(string.Format("WHERE ID IN (SELECT NivelControloAut.IDControloAut FROM RelacaoHierarquica inner join NivelControloAut ON RelacaoHierarquica.ID=NivelControloAut.ID WHERE IDUpper={0})", rhRow.ID), null, null).Fill(dataSet.ControloAut);
GisaDataSetHelper.GetNivelControloAutDataAdapter(string.Format("WHERE ID IN (SELECT ID FROM RelacaoHierarquica WHERE IDUpper={0})", rhRow.ID), null, null).Fill(dataSet.NivelControloAut);
GisaDataSetHelper.GetDicionarioDataAdapter(string.Format("WHERE ID IN (SELECT IDDicionario FROM ControloAutDicionario INNER JOIN NivelControloAut ON ControloAutDicionario.IDControloAut=NivelControloAut.IDControloAut INNER JOIN RelacaoHierarquica ON NivelControloAut.ID=RelacaoHierarquica.ID WHERE IDUpper={0})", rhRow.ID), null, null).Fill(dataSet.Dicionario);
GisaDataSetHelper.GetControloAutDicionarioDataAdapter(string.Format("WHERE IDControloAut IN (SELECT IDControloAut FROM NivelControloAut INNER JOIN RelacaoHierarquica ON NivelControloAut.ID=RelacaoHierarquica.ID WHERE IDUpper={0})", rhRow.ID), null, null).Fill(dataSet.ControloAutDicionario);
string query = string.Format("WHERE FRDBase.IDTipoFRDBase=3 AND FRDBase.IDNivel IN (SELECT ID FROM RelacaoHierarquica WHERE IDUpper={0})", rhRow.ID);
GisaDataSetHelper.GetFRDBaseDataAdapter(query, null, null).Fill(dataSet.FRDBase);
GisaDataSetHelper.GetSFRDDatasProducaoDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDDatasProducao.IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.SFRDDatasProducao);
GisaDataSetHelper.GetSFRDUFCotaDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDUFCota.IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.SFRDUFCota);
GisaDataSetHelper.GetSFRDConteudoEEstruturaDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDConteudoEEstrutura.IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.SFRDConteudoEEstrutura);
GisaDataSetHelper.GetSFRDCondicaoDeAcessoDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDCondicaoDeAcesso.IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.SFRDCondicaoDeAcesso);
GisaDataSetHelper.GetSFRDContextoDataAdapter(string.Format("INNER JOIN FRDBase ON SFRDContexto.IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.SFRDContexto);
GisaDataSetHelper.GetControloAutDataAdapter(string.Format("INNER JOIN IndexFRDCA ON ControloAut.ID=IndexFRDCA.IDControloAut INNER JOIN FRDBase ON IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.ControloAut);
GisaDataSetHelper.GetIndexFRDCADataAdapter(string.Format("INNER JOIN FRDBase ON IDFRDBase=FRDBase.ID {0}", query), null, null).Fill(dataSet.IndexFRDCA);
GisaDataSetHelper.GetDicionarioDataAdapter(string.Format("WHERE ID IN (SELECT IDDicionario FROM ControloAutDicionario INNER JOIN IndexFRDCA ON ControloAutDicionario.IDControloAut=IndexFRDCA.IDControloAut INNER JOIN FRDBase ON IndexFRDCA.IDFRDBase=FRDBase.ID {0})", query), null, null).Fill(dataSet.Dicionario);
GisaDataSetHelper.GetControloAutDicionarioDataAdapter(string.Format("WHERE IDControloAut IN (SELECT IDControloAut FROM IndexFRDCA INNER JOIN FRDBase ON IndexFRDCA.IDFRDBase=FRDBase.ID {0})", query), null, null).Fill(dataSet.ControloAutDicionario);
}
}
finally { {
//PersistencyHelper.cleanDeletedRows()
dataSet.EnforceConstraints = true;
}
}
Array.Sort(childRhRows, new NivelSorter());
foreach (GISADataset.RelacaoHierarquicaRow childn in childRhRows) {
GenerateInventarioEntry(doc, childn, CurrentIndentCm + 0.5f);
}
}
开发者ID:aureliopires,项目名称:gisa,代码行数:42,代码来源:Multinivel.cs
示例20: CreateFRDBaseDataDeDescricaoRow
public static GISADataset.FRDBaseDataDeDescricaoRow CreateFRDBaseDataDeDescricaoRow(GISADataset.FRDBaseRow CurrentFRDBase, GISADataset.TrusteeUserRow tuOperator, GISADataset.TrusteeUserRow tuAuthor, DateTime data, long IDTipoNivelRelacionado, bool isImportacao)
{
GISADataset.FRDBaseDataDeDescricaoRow dddRow = null;
dddRow = GisaDataSetHelper.GetInstance().FRDBaseDataDeDescricao.NewFRDBaseDataDeDescricaoRow();
if (CurrentFRDBase.ID <= 0)
throw new Exception(string.Format("Identificador negativo ({0}) no registo de frds!!", CurrentFRDBase.ID));
dddRow.IDFRDBase = CurrentFRDBase.ID;
dddRow.TrusteeUserRowByTrusteeUserFRDBaseDataDeDescricao = tuOperator;
dddRow.TrusteeUserRowByTrusteeUserFRDBaseDataDeDescricaoAuthority = tuAuthor;
dddRow.DataEdicao = GISA.Utils.GUIHelper.getTruncatedCurrentDate();
if (data == DateTime.MinValue)
dddRow["DataAutoria"] = DBNull.Value;
else
dddRow.DataAutoria = data;
dddRow.IDTipoNivelRelacionado = IDTipoNivelRelacionado > 0 ? IDTipoNivelRelacionado : CurrentFRDBase.NivelRow.GetRelacaoHierarquicaRowsByNivelRelacaoHierarquica()[0].IDTipoNivelRelacionado;
dddRow.Importacao = isImportacao;
dddRow.Versao = new byte[] { };
dddRow.isDeleted = 0;
return dddRow;
}
开发者ID:aureliopires,项目名称:gisa,代码行数:21,代码来源:RecordRegisterHelper.cs
注:本文中的GISADataset类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论