private void BindData() { if (_annotations == null) { gridView.DataBind(); return; } LocalizedUtils localUtils = new LocalizedUtils(ucLocalCulture); //ISTAT.EntityMapper.EntityMapper eMapper = new ISTAT.EntityMapper.EntityMapper(ucLocalCulture.TwoLetterISOLanguageName); IList<ISTAT.ENTITY.Annotation> lAnnoations = new List<ISTAT.ENTITY.Annotation>(); foreach (IAnnotationMutableObject annotation in _annotations) { if (annotation.Type == null || ((annotation.Type != null) && (annotation.Type.Trim() != "@ORDER@" && annotation.Type.Trim() != "CategoryScheme_node_order"))) { // Valore standard per le codelist immesso automaticmante lAnnoations.Add(new ISTAT.ENTITY.Annotation( annotation.Id, annotation.Title, annotation.Type, (annotation.Uri != null) ? annotation.Uri.AbsoluteUri : string.Empty, localUtils.GetLocalizedText(annotation.Text))); } } gridView.DataSource = lAnnoations.OrderBy(ann => ann.ID).ToList(); gridView.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (Request["IDSET"] != null) _idSet = Int32.Parse(Request["IDSET"]); //Org.Sdmxsource.Sdmx.Api.Exception.SdmxException.SetMessageResolver(new Org.Sdmxsource.Util.ResourceBundle.MessageDecoder()); _sdmxUtils = new SDMXUtils(); _localizedUtils = new LocalizedUtils(base.CurrentLocale); AnnotationGeneral.ucLocalCulture = base.CurrentLocale; //_entityMapper = new EntityMapper(Utils.LocalizedLanguage); //_artIdentity = Utils.GetIdentityFromRequest(Request); //_artIdentity = SDMXIdentifier.CreateFromString(Request["AI"]); SetAction(); if (!IsPostBack) { _dfMutable = null; CommonInit(); SetQueryForm(); GetCSTrees(); } switch (_action) { case DLEnums.Action.INSERT: SetInsertForm(); break; case DLEnums.Action.UPDATE: SetEditForm(); break; //case DLEnums.Action.VIEW: // SetViewForm(); // Utils.ResetBeforeUnload(); break; } RefreshConditionSummary(); }