本文整理汇总了C#中GISADataset.GetIndexFRDCARows方法的典型用法代码示例。如果您正苦于以下问题:C# GISADataset.GetIndexFRDCARows方法的具体用法?C# GISADataset.GetIndexFRDCARows怎么用?C# GISADataset.GetIndexFRDCARows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GISADataset
的用法示例。
在下文中一共展示了GISADataset.GetIndexFRDCARows方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetTermosIndexados
private string GetTermosIndexados(GISADataset.FRDBaseRow FRDBaseRow, params TipoNoticiaAut[] TipoNoticiaAut) {
StringBuilder Result = new StringBuilder();
ArrayList ResultArray = new ArrayList();
foreach (GISADataset.IndexFRDCARow index in FRDBaseRow.GetIndexFRDCARows()) {
if (Array.IndexOf(TipoNoticiaAut, System.Enum.ToObject(typeof(Model.TipoNoticiaAut), index.ControloAutRow.IDTipoNoticiaAut)) >= TipoNoticiaAut.GetLowerBound(0)) {
foreach (GISADataset.ControloAutDicionarioRow cadr in index.ControloAutRow.GetControloAutDicionarioRows()) {
if (cadr.IDTipoControloAutForma == Convert.ToInt64(TipoControloAutForma.FormaAutorizada)) {
ResultArray.Add(cadr.DicionarioRow.Termo);
}
}
}
}
ResultArray.Sort();
foreach (string s in ResultArray)
{
if (Result.Length > 0)
{
Result.Append("\\li128\\par\\li0{}");
}
Result.Append(s);
}
if (Result.Length > 0)
{
Result.Append("\\li128\\par\\li0{}");
}
return Result.ToString();
}
示例2: GetControloAutFormaAut
private string GetControloAutFormaAut(GISADataset.FRDBaseRow frd, TipoNoticiaAut[] noticiaAut){
ArrayList Results = new ArrayList();
foreach (GISADataset.IndexFRDCARow idx in frd.GetIndexFRDCARows()) {
if (Array.IndexOf(noticiaAut, System.Enum.ToObject(typeof(TipoNoticiaAut), idx.ControloAutRow.IDTipoNoticiaAut)) >= 0) {
foreach (GISADataset.ControloAutDicionarioRow cad in idx.ControloAutRow.GetControloAutDicionarioRows()) {
if (cad.IDTipoControloAutForma == (long)TipoControloAutForma.FormaAutorizada) {
Results.Add(cad.DicionarioRow.Termo);
}
}
}
}
Results.Sort();
string Result = "";
foreach (string s in Results) {
if (Result.Length > 0)
Result += " / ";
Result += s;
}
return Result;
}
示例3: HasTipologiaChanged
public static bool HasTipologiaChanged(GISADataset.FRDBaseRow frdRow, out string newTip)
{
newTip = string.Empty;
var newTipRow = frdRow.GetIndexFRDCARows().SingleOrDefault(r => r.RowState == DataRowState.Added && r["Selector"] != DBNull.Value && r.Selector == -1);
if (newTipRow != null)
{
newTip = newTipRow.ControloAutRow.GetControloAutDicionarioRows().Single(r => r.IDTipoControloAutForma == (long)TipoControloAutForma.FormaAutorizada).DicionarioRow.Termo;
return true;
}
var remTipRow = GisaDataSetHelper.GetInstance().IndexFRDCA.Cast<GISADataset.IndexFRDCARow>().SingleOrDefault(r => r.RowState == DataRowState.Deleted && System.Convert.ToInt64(r["IDFRDBase", DataRowVersion.Original]) == frdRow.ID && r["Selector", DataRowVersion.Original] != DBNull.Value && System.Convert.ToInt64(r["Selector", DataRowVersion.Original]) == -1);
if (remTipRow != null) { newTip = null; return true; }
return false;
}
示例4: HasIndexacaoChanged
public static List<string> HasIndexacaoChanged(GISADataset.FRDBaseRow frdRow)
{
var newIdxRows = frdRow.GetIndexFRDCARows().Where(r => r.RowState == DataRowState.Added && (r.ControloAutRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.Ideografico || r.ControloAutRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.Onomastico || r.ControloAutRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.ToponimicoGeografico));
if (newIdxRows.Count() > 0)
return newIdxRows.Where(r => r.ControloAutRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.Ideografico || r.ControloAutRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.Onomastico || r.ControloAutRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.ToponimicoGeografico).Select(r => r.ControloAutRow.GetControloAutDicionarioRows().Single(cad => cad.IDTipoControloAutForma == (long)TipoControloAutForma.FormaAutorizada).DicionarioRow.Termo).ToList();
var remIdxRows = GisaDataSetHelper.GetInstance().IndexFRDCA.Cast<GISADataset.IndexFRDCARow>().Where(r => r.RowState == DataRowState.Deleted && (long)r["IDFRDBase", DataRowVersion.Original] == frdRow.ID);
foreach (var idx in remIdxRows)
{
var res = new List<string>();
var caRow = GisaDataSetHelper.GetInstance().ControloAut.Cast<GISADataset.ControloAutRow>().Single(r => r.ID == (long)idx["IDControloAut", DataRowVersion.Original]);
if (caRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.Ideografico || caRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.Onomastico || caRow.IDTipoNoticiaAut == (long)TipoNoticiaAut.ToponimicoGeografico)
res.Add(caRow.GetControloAutDicionarioRows().Single(r => r.IDTipoControloAutForma == 1).DicionarioRow.Termo);
return res;
}
return null;
}
示例5: DeleteCAX
//metodo responsavel por eliminar toda a nuvem do CA actual em memoria
public static PersistencyHelper.DeleteCAXPreConcArguments DeleteCAX(GISADataset.ControloAutRow caRow)
{
GISADataset.ControloAutDicionarioRow[] cadRows = caRow.GetControloAutDicionarioRows();
GISADataset.DicionarioRow dRow = null;
PersistencyHelper.DeleteCAXPreConcArguments args = new PersistencyHelper.DeleteCAXPreConcArguments();
// eliminar registos de "Dicionario" e de "ControloAutDicionario"
cadRows.ToList().ForEach(cadRow =>
{
dRow = cadRow.DicionarioRow;
args.termos.Add(dRow);
cadRow.Delete();
});
args.caRowID = caRow.ID;
args.catCode = getCatCode(caRow.TipoNoticiaAutRow);
// eliminar registos de IndexFRDCA
caRow.GetIndexFRDCARows().ToList().ForEach(idx => idx.Delete());
// Somente para notícias de autoridade relacionaveis
caRow.GetControloAutRelRowsByControloAutControloAutRel().ToList().ForEach(carRow => carRow.Delete());
caRow.GetControloAutRelRowsByControloAutControloAutRelAlias().ToList().ForEach(carRow => carRow.Delete());
caRow.GetControloAutEntidadeProdutoraRows().ToList().ForEach(caepRow => caepRow.Delete());
caRow.GetControloAutDatasExistenciaRows().ToList().ForEach(cadeRow => cadeRow.Delete());
caRow.Delete();
return args;
}