Пример #1
0
        private bool IsNullOrEmptyArtefactIdentity(ArtefactIdentity aIObject)
        {
            if (aIObject == null)
                return true;

            if (String.IsNullOrEmpty(aIObject.ID) && String.IsNullOrEmpty(aIObject.Agency) && String.IsNullOrEmpty(aIObject.Version) && aIObject.IsFinal == null)
                return true;

            return false;
        }
Пример #2
0
        public static string GetStringKey(ArtefactIdentity rowIdentity)
        {
            string ret;
            ret = String.Format("ID={0}&AGENCY={1}&VERSION={2}", rowIdentity.ID, rowIdentity.Agency, rowIdentity.Version);

            if (rowIdentity.IsFinal != null)
                ret += String.Format("&ISFINAL={0}", rowIdentity.IsFinal);

            return ret;
        }
 private void SetAction()
 {
     if (Request["ACTION"] == null || Utils.ViewMode )
         _action = Action.VIEW;
     else
     {
         if ( Request["ACTION"] == "UPDATE" )
         {
             MyService.User currentUser = Session[SESSION_KEYS.USER_DATA] as User;
             _artIdentity = Utils.GetIdentityFromRequest(Request);
             int agencyOccurence = currentUser.agencies.Count( agency => agency.id.Equals( _artIdentity.Agency) );
             if ( agencyOccurence > 0 )
             {
                 _action = (Action)Enum.Parse(typeof(Action), Request["ACTION"].ToString());
             }
             else
             {
                 _action = Action.VIEW;
             }
         }
         else
         {
             _action = (Action)Enum.Parse(typeof(Action), Request["ACTION"].ToString());
         }
     }
 }
        protected void gvStructureMap_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "Details":
                    GridViewRow gvr = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
                    string smID = ((Label)gvr.FindControl("lblSMID")).Text;
                    string[] SourceID = ((Label)gvr.FindControl("lblSMArtefactSource")).Text.Split(',');
                    string[] TargetID = ((Label)gvr.FindControl("lblSMArtefactTarget")).Text.Split(',');
                    string artType = ((Label)gvr.FindControl("lblSMArtefactType")).Text;

                    AvailableStructures avStruct = AvailableStructures.KEY_FAMILY;

                    if (artType.ToUpper() == "DATAFLOW")
                    {
                        cmbArtefactType.SelectedIndex = 1;
                        avStruct = AvailableStructures.DATAFLOW;
                    }
                    else
                        cmbArtefactType.SelectedIndex = 1;

                    ArtefactIdentity aiSource = new ArtefactIdentity(SourceID[0].Trim(), SourceID[1].Trim(), SourceID[2].Trim());
                    ArtefactIdentity aiTarget = new ArtefactIdentity(TargetID[0].Trim(), TargetID[1].Trim(), TargetID[2].Trim());

                    hdCLMAction.Value = Action.UPDATE.ToString();

                    //++++ General
                    txtSMID.Text = smID;
                    IStructureMapMutableObject smmap = GetCurrentSM();

                    AddTextSMNames.InitTextObjectMutableList = smmap.Names;
                    AddTextSMDescription.InitTextObjectMutableList = smmap.Descriptions;
                    ControlAnnotationsSM.AnnotationObjectList = smmap.Annotations;

                    //++++ Mapping
                    txtArtefactSource.Text = aiSource.ToString();
                    txtArtefactTarget.Text = aiTarget.ToString();

                    PopolateSMLBSource(aiSource, avStruct);
                    PopolateSMLBTarget(aiTarget, avStruct);

                    PopolateSMMapping();

                    Utils.AppendScript("tabindex = 0;");
                    txtSMID.Enabled = false;
                    OpenAddStructureMapPopUp();

                    break;

                case "Annotation":
                    break;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            lblImportCsvTitle.DataBind();
            lblCsvLanguage.DataBind();
            lblcsvFile.DataBind();
            btnImportFromCsv.DataBind();
            lblDSDID.DataBind();
            lblVersion.DataBind();
            lblAgency.DataBind();
            lblValidFrom.DataBind();
            lblValidTo.DataBind();
            lblDSDURI.DataBind();
            lblDSDURN.DataBind();
            lblIsFinal.DataBind();
            lblDSDName.DataBind();
            lblDSDDescription.DataBind();
            lbl_title_new.DataBind();
            lbl_id_new.DataBind();
            lbl_name_new.DataBind();
            lbl_description_new.DataBind();
            lbl_parentid_new.DataBind();
            btnNewConcept.DataBind();
            lbl_title_update.DataBind();
            lbl_id_update.DataBind();
            lbl_name_update.DataBind();
            lbl_description_update.DataBind();
            lbl_parentid_update.DataBind();
            btnUpdateOrganizationUnit.DataBind();
            btnAddNewOrganizationUnit.DataBind();
            btnSaveMemoryOrganizationUnitScheme.DataBind();
            btnSaveAnnotationCode.DataBind();
            lblNumberOfRows.DataBind();
            btnClearFields.DataBind();
            btnClearFieldForUpdate.DataBind();
            btnChangePaging.DataBind();
            lbl_annotation.DataBind();
            lblSeparator.DataBind();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);

            SetAction();

            if (!IsPostBack)
            {
                Utils.PopulateCmbAgencies(cmbAgencies, true);
                ClearSessionPage();
                txtNumberOfRows.Text = Utils.DetailsOrganizationUnitSchemeGridNumberRow.ToString();
                AnnotationGeneralControl.ClearAnnotationsSession();
            }

            switch (_action)
            {
                case Action.INSERT:

                    //ClearSessionPage();
                    AspConfirmationExit = "true";

                    SetInitControls();
                    SetInsertForm();

                    lblNumberOfRows.Visible = false;
                    txtNumberOfRows.Visible = false;
                    btnChangePaging.Visible = false;

                    chkIsFinal.Checked = false;
                    chkIsFinal.Enabled = false;

                    AddTextName_Update.ucOpenTabName = "organizationunits";
                    AddTextName_Update.ucOpenPopUpWidth = 600;
                    AddTextName_Update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_Update.ucOpenTabName = "organizationunits";
                    AddTextDescription_Update.ucOpenPopUpWidth = 600;
                    AddTextDescription_Update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "organizationunits";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "organizationunits";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";
                    if ( !Page.IsPostBack )
                    {
                        cmbAgencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmbAgencies.SelectedIndex = 0;
                        FileDownload31.Visible = false;
                    }
                    break;
                case Action.UPDATE:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);
                    //ClearSessionPage();

                    SetInitControls();
                    SetEditForm();

                    AddTextName_Update.ucOpenTabName = "organizationunits";
                    AddTextName_Update.ucOpenPopUpWidth = 600;
                    AddTextName_Update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_Update.ucOpenTabName = "organizationunits";
                    AddTextDescription_Update.ucOpenPopUpWidth = 600;
                    AddTextDescription_Update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "organizationunits";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "organizationunits";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    /*if (gvConceptschemesItem.Rows.Count > 0)
                        chkIsFinal.Enabled = true;
                    else
                        chkIsFinal.Enabled = false;*/

                    break;
                case Action.VIEW:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);
                    ClearSessionPage();
                    SetViewForm();
                    AddTextName_Update.ucOpenTabName = "organizationunits";
                    AddTextName_Update.ucOpenPopUpWidth = 600;
                    AddTextName_Update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_Update.ucOpenTabName = "organizationunits";
                    AddTextDescription_Update.ucOpenPopUpWidth = 600;
                    AddTextDescription_Update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "organizationunits";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "organizationunits";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";
                    /*
                    FileDownload31.ucID = _artIdentity.ID;
                    FileDownload31.ucAgency = _artIdentity.Agency;
                    FileDownload31.ucVersion = _artIdentity.Version;
                    FileDownload31.ucArtefactType = "OrganizationUnitScheme";
                     * */
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.OrganisationUnitScheme;
            DuplicateArtefact1.ucMaintanableArtefact = GetOrganizationUnitSchemeFromSession();
        }
        /// <summary>
        /// Recupera l'Action della pagina(Insert,update,view)
        /// </summary>
        private void SetAction()
        {
            if ((Request["ACTION"] == null || Utils.ViewMode) || (Request["ISFINAL"] != null && bool.Parse(Request["ISFINAL"])))
                _action = Action.VIEW;
            else
            {
                if ( Request["ACTION"] == "UPDATE" )
                {
                    IRServiceReference.User currentUser = Session[SESSION_KEYS.USER_DATA] as User;
                    _artIdentity = Utils.GetIdentityFromRequest(Request);
                    int agencyOccurence = currentUser.agencies.Count( agency => agency.id.Equals( _artIdentity.Agency) );
                    if ( agencyOccurence > 0 )
                    {
                        _action = (Action)Enum.Parse(typeof(Action), Request["ACTION"].ToString());
                    }
                    else
                    {
                        _action = Action.VIEW;
                    }
                }
                else
                {
                    _action = (Action)Enum.Parse(typeof(Action), Request["ACTION"].ToString());
                }
            }

            if (_action != Action.VIEW)
                AspConfirmationExit = "true";
        }
        private void UpdateSMTarget(ref IStructureMapMutableObject iStructureMapMutableObject, ArtefactIdentity artefactIdentity, string artefactType)
        {
            if (iStructureMapMutableObject == null)
                return;

            iStructureMapMutableObject.TargetRef = new StructureReferenceImpl(artefactIdentity.Agency,
                                                                            artefactIdentity.ID,
                                                                            artefactIdentity.Version,
                                                                            SdmxStructureType.GetFromEnum((SdmxStructureEnumType)Enum.Parse(typeof(SdmxStructureEnumType), artefactType)),
                                                                            null);
            SetSSToSession();
        }
Пример #8
0
 public void ucCodeListSelected(object sender, ArtefactIdentity ai)
 {
     if (ucCodeListSelectedEH != null)
         ucCodeListSelectedEH(sender, new GetCodeListEventArgs() { GetCodeListArtefactIdentity = ai });
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _sdmxObjects = new SdmxObjectsImpl();

            SetAction();

            if (!IsPostBack)
            {
                if (_action != Action.VIEW)
                    Utils.PopulateCmbAgencies(cmb_agencies, true);
                ClearSessionPage();

                //ViewState["SortExpr"] = "Code ASC";
            }

            switch (_action)
            {
                case Action.INSERT:

                    //ClearSessionPage();
                    AspConfirmationExit = "true";

                    SetInitControls();
                    SetInsertForm();
                    SetStructureDetailPanel();
                    chk_isFinal.Checked = false;
                    chk_isFinal.Enabled = false;

                    /* AddTextName_update.ucOpenTabName = "codes";
                     AddTextName_update.ucOpenPopUpWidth = 600;
                     AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                     AddTextDescription_update.ucOpenTabName = "codes";
                     AddTextDescription_update.ucOpenPopUpWidth = 600;
                     AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                     AddTextName_new.ucOpenTabName = "codes";
                     AddTextName_new.ucOpenPopUpWidth = 600;
                     AddTextName_new.ucOpenPopUpName = "df-Dimension";

                     AddTextDescription_new.ucOpenTabName = "codes";
                     AddTextDescription_new.ucOpenPopUpWidth = 600;
                     AddTextDescription_new.ucOpenPopUpName = "df-Dimension";*/

                    if (!Page.IsPostBack)
                    {
                        cmb_agencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmb_agencies.SelectedIndex = 0;
                        FileDownload31.Visible = false;
                    }

                    break;
                case Action.UPDATE:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);

                    SetInitControls();
                    SetEditForm();

                    /*AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    if (gvCodelistsItem.Rows.Count > 0)
                    {
                        chk_isFinal.Enabled = true;
                    }
                    else
                    {
                        chk_isFinal.Enabled = false;
                    }*/
                    break;
                case Action.VIEW:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);
                    ClearSessionPage();
                    SetViewForm();

                    FileDownload31.ucID = _artIdentity.ID;
                    FileDownload31.ucAgency = _artIdentity.Agency;
                    FileDownload31.ucVersion = _artIdentity.Version;
                    FileDownload31.ucArtefactType = "CodeList";
                    break;
            }

            if (!Utils.ViewMode && _action != Action.INSERT)
            {
                DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.Categorisation;
                DuplicateArtefact1.ucMaintanableArtefact = GetCategorizationFromSession();
            }
            else
                DuplicateArtefact1.ucDisable = true;

            lbl_id.DataBind();
            lbl_agency.DataBind();
            lbl_version.DataBind();
            lbl_isFinal.DataBind();
            lbl_uri.DataBind();
            lbl_urn.DataBind();
            lbl_valid_from.DataBind();
            lbl_valid_to.DataBind();
            lbl_name.DataBind();
            lbl_description.DataBind();
            lbl_annotation.DataBind();
            lblCategorySchemeList.DataBind();
            lblAvailableStructures.DataBind();
            btnOpenGridDiv.DataBind();
            btnOpenTreeDiv.DataBind();
            lblSelectedCategory.DataBind();
            lblSelectedItem.DataBind();

            /*lblImportCsvTitle.DataBind();
            lblCsvLanguage.DataBind();
            lblcsvFile.DataBind();

            lbl_title_popup_code.DataBind();

            lbl_id_update.DataBind();
            lbl_order_update.DataBind();
            lbl_parentid_update.DataBind();
            lbl_description_update.DataBind();
            lbl_name_update.DataBind();

            lbl_id_new.DataBind();
            lbl_order_new.DataBind();
            lbl_parentid_new.DataBind();
            lbl_description_new.DataBind();
            lbl_name_new.DataBind();

            imgImportCsv.DataBind();
            btnAddNewCode.DataBind();*/
            btnSaveMemoryCategorization.DataBind();
            /* btnImportFromCsv.DataBind();
             btnSaveAnnotationCode.DataBind();
             btnUpdateCode.DataBind();
             btnNewCode.DataBind();*/
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _epe = (EndPointElement)Session[SESSION_KEYS.CURRENT_ENDPOINT_OBJECT];

            CSVImporter1.OperationComplete += CSVImporter1_OperationComplete;

            SetAction();

            if (!IsPostBack)
            {
                if (!_epe.PartialArtefact)
                {
                    Utils.PopulateCmbAgencies(cmb_agencies, true);
                    //Utils.PopulateCmbLanguages(cmbLanguageForCsv, AVAILABLE_MODES.MODE_FOR_ADD_TEXT);
                }

                ClearSessionPage();
                ViewState["SortExpr"] = SortDirection.Ascending;
                txtNumberOfRows.Text = Utils.DetailsCodelistGridNumberRow.ToString();
            }

            ICodelistMutableObject cl;

            switch (_action)
            {
                case Action.INSERT:

                    //ClearSessionPage();
                    AspConfirmationExit = "true";

                    SetInitControls();
                    SetInsertForm();

                    lblNumberOfRows.Visible = false;
                    txtNumberOfRows.Visible = false;
                    btnChangePaging.Visible = false;

                    chk_isFinal.Checked = false;
                    chk_isFinal.Enabled = false;

                    AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    if (!Page.IsPostBack)
                    {
                        cmb_agencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmb_agencies.SelectedIndex = 0;

                        FileDownload31.Visible = false;
                    }

                    cl = GetCodeListFromSession();
                    if (cl == null) cl = GetCodelistForm(true);
                    else cl = GetCodelistForm(cl);

                    if (cl == null)
                    {
                        cl = new CodelistMutableCore();
                        cl.Id = "@fitt@";
                        cl.AgencyId = "@fitt@";
                        cl.Version = "1.0";
                        cl.AddName("it", "@fitt@");

                    }

                    CSVImporter1.ucCodelist = cl;

                    break;
                case Action.UPDATE:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);

                    SetInitControls();
                    SetEditForm();

                    AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    Categorisations.ucArtefactType = AvailableStructures.CODELIST;
                    Categorisations.ucArtIdentity = _artIdentity;

                    // NEW
                    bool b = (bool)_artIdentity.IsFinal;

                    cl = GetCodeListFromSession();
                    if (cl == null) cl = GetCodelistForm(b);
                    else cl = GetCodelistForm(cl,b);
                    CSVImporter1.ucCodelist = cl;

                    /*if (gvCodelistsItem.Rows.Count > 0 )
                    {
                        chk_isFinal.Enabled = true;
                    }
                    else
                    {
                        chk_isFinal.Enabled = false;
                    }*/
                    break;
                case Action.VIEW:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);
                    ClearSessionPage();
                    SetViewForm();

                    AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    FileDownload31.ucID = _artIdentity.ID;
                    FileDownload31.ucAgency = _artIdentity.Agency;
                    FileDownload31.ucVersion = _artIdentity.Version;
                    FileDownload31.ucArtefactType = "CodeList";

                    Categorisations.ucArtefactType = AvailableStructures.CODELIST;
                    Categorisations.ucArtIdentity = _artIdentity;

                    break;
            }

            if (!_epe.PartialArtefact)
            {
                DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.CodeList;
                DuplicateArtefact1.ucMaintanableArtefact = GetCodeListFromSession();
            }
            else
                DuplicateArtefact1.ucDisable = true;

            lbl_id.DataBind();
            lbl_agency.DataBind();
            lbl_version.DataBind();
            lbl_isFinal.DataBind();
            lbl_uri.DataBind();
            lbl_urn.DataBind();
            lbl_valid_from.DataBind();
            lbl_valid_to.DataBind();
            lbl_name.DataBind();
            lbl_description.DataBind();
            lbl_annotation.DataBind();
            btnChangePaging.DataBind();
            //lblImportCsvTitle.DataBind();
            //lblCsvLanguage.DataBind();
            //lblcsvFile.DataBind();
            lblNoItemsPresent.DataBind();
            lbl_title_popup_code.DataBind();

            lbl_id_update.DataBind();
            lbl_order_update.DataBind();
            lbl_parentid_update.DataBind();
            lbl_description_update.DataBind();
            lbl_name_update.DataBind();
            lbl_title_update.DataBind();
            lbl_id_new.DataBind();
            lbl_order_new.DataBind();
            lbl_parentid_new.DataBind();
            lbl_description_new.DataBind();
            lbl_name_new.DataBind();
            btnClearFields.DataBind();
            btnClearFieldForUpdate.DataBind();
            //imgImportCsv.DataBind();
            btnAddNewCode.DataBind();
            btnSaveMemoryCodeList.DataBind();
            //btnImportFromCsv.DataBind();
            btnSaveAnnotationCode.DataBind();
            btnUpdateCode.DataBind();
            btnNewCode.DataBind();
            lblNumberOfRows.DataBind();
            //lblSeparator.DataBind();
            btnNewCodeOnFinalStructure.DataBind();
            lblYouAreWorkingOnAFinal.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Org.Sdmxsource.Sdmx.Api.Exception.SdmxException.SetMessageResolver(new Org.Sdmxsource.Util.ResourceBundle.MessageDecoder());
            GetDSD1.ucDSDSelectedEH += new EventHandler<UserControls.GetDSDEventArgs>(GetDSD1_ucDSDSelectedEH);
            GetDataFlow1.ucDFSelectedEH += new EventHandler<UserControls.GetDFEventArgs>(GetDataFlow1_ucDFSelectedEH);

            _ccMutable = null;

            _sdmxUtils = new SDMXUtils();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _entityMapper = new EntityMapper(Utils.LocalizedLanguage);
            _artIdentity = Utils.GetIdentityFromRequest(Request);

            GetDSD1.ucAddIconType = AddIconType.cross;
            GetDataFlow1.ucAddIconType = AddIconType.cross;

            SetAction();

            if (!IsPostBack)
            {
                CommonInit();
            }

            switch (_action)
            {
                case Action.INSERT:
                    SetInsertForm();
                    if ( !Page.IsPostBack )
                    {
                        cmbAgencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmbAgencies.SelectedIndex = 0;
                        FileDownload31.Visible = false;
                    }
                    break;
                case Action.UPDATE:
                    SetEditForm();
                    break;
                case Action.VIEW:
                    SetViewForm();
                    Utils.ResetBeforeUnload();
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.ContentConstraint;
            DuplicateArtefact1.ucMaintanableArtefact = _ccMutable;
        }
Пример #12
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="query"></param>
        /// <param name="operation"></param>
        private ISdmxObjects WSExecute(ArtefactIdentity artIdentity, WSConstants.wsOperation operation, bool stub, bool withLike)
        {
            XmlDocument xDomOutput = new XmlDocument();

            WSUtils wsUtils = new WSUtils();

            ISdmxObjects SdmxObject, FilteredSdmxObject;

            FilteredSdmxObject = new SdmxObjectsImpl();

            try
            {
                // File di appoggio per la creazione del xDom
                string OutputFilePath = HttpContext.Current.Server.MapPath("OutputFiles" + "\\" + HttpContext.Current.Session.SessionID + ".xml");

                WsConfigurationSettings wsSettings = null;

                if (operation == WSConstants.wsOperation.GetDataStructureWithRef)
                {
                    wsSettings = wsUtils.GetSettings(WSConstants.wsOperation.GetDataStructure.ToString());
                }
                else
                {
                    wsSettings = wsUtils.GetSettings(FindException(operation));
                }

                XmlDocument xDom = new XmlDocument();

                // Carico il template
                xDom.Load(getTemplate(operation));

                // Imposto ID,Agency e Version
                if (!withLike && artIdentity != null)
                    SetKey(ref xDom, artIdentity);
                else
                    RemoveFilter(xDom);

                if (stub)
                    SetStub(ref xDom);

                FlyCallWS.Streaming.CallWS objWS = new FlyCallWS.Streaming.CallWS(OutputFilePath, WSConstants.MaxOutputFileLength);

                xDomOutput.InnerXml = objWS.SendSOAPQuery(xDom, wsSettings);

                File.Delete(OutputFilePath);

                SdmxObject = LoadSDMXObject(xDomOutput);

                if (withLike && !IsNullOrEmptyArtefactIdentity(artIdentity))
                    switch (operation)
                    {
                        case WSConstants.wsOperation.GetAgencyScheme:
                            var filteredAgency = SdmxObject.AgenciesSchemes.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Base.IAgencyScheme ag in filteredAgency)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && ag.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddAgencyScheme(ag);
                            }
                            break;
                        case WSConstants.wsOperation.GetCategorisation:
                            var filteredCat = SdmxObject.Categorisations.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.CategoryScheme.ICategorisationObject cat in filteredCat)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && cat.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddCategorisation(cat);
                            }
                            break;
                        case WSConstants.wsOperation.GetCategoryScheme:
                            var filteredCS = SdmxObject.CategorySchemes.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.CategoryScheme.ICategorySchemeObject cat in filteredCS)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && cat.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddCategoryScheme(cat);
                            }
                            break;
                        case WSConstants.wsOperation.GetCodelist:
                            var filteredCL = SdmxObject.Codelists.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Codelist.ICodelistObject cl in filteredCL)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && cl.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddCodelist(cl);
                            }
                            break;
                        case WSConstants.wsOperation.GetConceptScheme:
                            var filteredCoS = SdmxObject.ConceptSchemes.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.ConceptScheme.IConceptSchemeObject x in filteredCoS)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddConceptScheme(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetDataflow:
                            var filteredDF = SdmxObject.Dataflows.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.DataStructure.IDataflowObject x in filteredDF)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddDataflow(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetStructureSet:
                            var filteredSS = SdmxObject.StructureSets.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Mapping.IStructureSetObject x in filteredSS)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddStructureSet(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetContentConstraint:
                            var filteredCC = SdmxObject.ContentConstraintObjects.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Registry.IContentConstraintObject x in filteredCC)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddContentConstraintObject(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetOrganisationUnitScheme:
                            var filteredOU = SdmxObject.OrganisationUnitSchemes.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Base.IOrganisationUnitSchemeObject x in filteredOU)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddOrganisationUnitScheme(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetDataConsumerScheme:
                            var filteredDC = SdmxObject.DataConsumerSchemes.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Base.IDataConsumerScheme x in filteredDC)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddDataConsumerScheme(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetDataProviderScheme:
                            var filteredDP = SdmxObject.DataProviderSchemes.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Base.IDataProviderScheme x in filteredDP)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddDataProviderScheme(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetDataStructureWithRef:
                        case WSConstants.wsOperation.GetDataStructure:
                            var filteredDSD = SdmxObject.DataStructures.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.DataStructure.IDataStructureObject x in filteredDSD)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddDataStructure(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetHierarchicalCodelist:
                            var filteredHcl = SdmxObject.HierarchicalCodelists.Where(i => i.Id.ToUpper().Contains(artIdentity.ID.ToUpper()) && i.AgencyId.ToUpper().Contains(artIdentity.Agency.ToUpper()) && i.Version.ToUpper().Contains(artIdentity.Version.ToUpper()));
                            foreach (Org.Sdmxsource.Sdmx.Api.Model.Objects.Codelist.IHierarchicalCodelistObject x in filteredHcl)
                            {
                                if ((artIdentity.IsFinal == null || !(bool)artIdentity.IsFinal) || (bool)artIdentity.IsFinal && x.IsFinal.IsTrue)
                                    FilteredSdmxObject.AddHierarchicalCodelist(x);
                            }
                            break;
                        case WSConstants.wsOperation.GetStructures:
                            break;
                        default:
                            FilteredSdmxObject = SdmxObject;
                            break;
                    }
                else
                    FilteredSdmxObject = SdmxObject;

                return FilteredSdmxObject;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #13
0
 public ISdmxObjects GetAgencyScheme(ArtefactIdentity artIdentity, bool stub, bool withLike)
 {
     return WSExecute(artIdentity, WSConstants.wsOperation.GetAgencyScheme, stub, withLike);
 }
Пример #14
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="xDom"></param>
        /// <param name="operation"></param>
        private void SetKey(ref XmlDocument xDom, ArtefactIdentity artIdentity)
        {
            //string xPathQuery = "//*[local-name()='" + WSConstants.DictWhere[operation] + "']";

            //XmlNode xTempStructNode = xDom.SelectSingleNode(xPathQuery);
            XmlNamespaceManager xManag = GetNamespaceManager(xDom);

            XmlNode xNodeID = xDom.SelectSingleNode("//query:ID", xManag);
            XmlNode xNodeAgency = xDom.SelectSingleNode("//query:AgencyID", xManag);
            XmlNode xNodeVersion = xDom.SelectSingleNode("//query:Version", xManag);

            if (!String.IsNullOrEmpty(artIdentity.ID.Trim()))
                xNodeID.InnerText = artIdentity.ID;
            else
                xNodeID.ParentNode.RemoveChild(xNodeID);

            if (!String.IsNullOrEmpty(artIdentity.Agency.Trim()))
                xNodeAgency.InnerText = artIdentity.Agency;
            else
                xNodeAgency.ParentNode.RemoveChild(xNodeAgency);

            if (!String.IsNullOrEmpty(artIdentity.Version.Trim()))
                xNodeVersion.InnerText = artIdentity.Version;
            else
                xNodeVersion.ParentNode.RemoveChild(xNodeVersion);
        }
        private void PopolateCLMLBTarget(ArtefactIdentity artefactIdentity)
        {
            lbCLMTargetCode.Items.Clear();
            ISdmxObjects sdmxObjects = _wsmodel.GetCodeList(artefactIdentity, false, false);

            foreach (ICode code in sdmxObjects.Codelists.FirstOrDefault().Items)
            {
                lbCLMTargetCode.Items.Add(code.Id);
            }

            ResetLBScrollPosition();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            // TEMPORARY LOG
            TemporaryLog("In caricamento pagina");

            _epe = (EndPointElement)Session[SESSION_KEYS.CURRENT_ENDPOINT_OBJECT];

            lblDSDID.DataBind();
            lblVersion.DataBind();
            lblAgency.DataBind();
            lblValidFrom.DataBind();
            lblValidTo.DataBind();
            lblDSDURI.DataBind();
            lblDSDURN.DataBind();
            lblIsFinal.DataBind();
            lblDSDName.DataBind();
            lblDSDDescription.DataBind();
            lblTitle.DataBind();
            lblNewCategoryId.DataBind();
            lblNewCategoryName.DataBind();
            lblNewCategoryDescription.DataBind();
            //lblParentCategoryNewCategory.DataBind();
            btnNewCategory.DataBind();
            lblTitleUpdateCategory.DataBind();
            lblUpdateCategoryID.DataBind();
            lblUpdateAnnotation.DataBind();
            lblUpdateCategoryName.DataBind();
            lblUpdateCategoryDescription.DataBind();
            lbl_annotation.DataBind();
            lblNewAnnotation.DataBind();
            //lblUpdateCategoryParentID.DataBind();
            btnUpdateCategory.DataBind();
            btnAddNewCategory.DataBind();
            btnSaveMemoryCategoryScheme.DataBind();
            btnDeleteCategory.DataBind();
            btnUpdateSelectedCategory.DataBind();
            lblImportCsvTitle.DataBind();
            lblCsvLanguage.DataBind();
            lblcsvFile.DataBind();
            btnImportFromCsv.DataBind();
            btnCancelMoveCategory.DataBind();
            lblCategoryOrder.DataBind();
            btnDeselectCategory.DataBind();
            btnClearFieldForUpdate.DataBind();
            btnClearFields.DataBind();
            lblSeparator.DataBind();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);

            SetAction();

            if (!IsPostBack)
            {
                lblMoveInstructions.DataBind();
                btnMoveCategory.DataBind();

                if(!_epe.PartialArtefact)
                    Utils.PopulateCmbAgencies(cmbAgencies, true);

                ClearSessionPage();
                AnnotationNewControl.ClearAnnotationsSession();
                AnnotationUpdateControl.ClearAnnotationsSession();
            }

            switch (_action)
            {
                case Action.INSERT:
                    AspConfirmationExit = "true";

                    if (!Page.IsPostBack)
                    {
                        ClearSessionPage();
                    }

                    SetInitControls();
                    SetInsertForm();

                    chkIsFinal.Checked = false;
                    chkIsFinal.Enabled = false;
                    if (!Page.IsPostBack)
                    {
                        cmbAgencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmbAgencies.SelectedIndex = 0;
                        FileDownload31.Visible = false;
                    }
                    break;
                case Action.UPDATE:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);

                    SetInitControls();
                    SetEditForm();

                    break;
                case Action.VIEW:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);

                    ClearSessionPage();

                    SetViewForm();

                    FileDownload31.ucID = _artIdentity.ID;
                    FileDownload31.ucAgency = _artIdentity.Agency;
                    FileDownload31.ucVersion = _artIdentity.Version;
                    FileDownload31.ucArtefactType = "CategoryScheme";

                    break;
            }

            NewCategoryAddTextName.ucOpenTabName = "categories";
            NewCategoryAddTextName.ucOpenPopUpWidth = 600;
            NewCategoryAddTextName.ucOpenPopUpName = "df-Dimension";

            NewCategoryAddTextDescription.ucOpenTabName = "categories";
            NewCategoryAddTextDescription.ucOpenPopUpWidth = 600;
            NewCategoryAddTextDescription.ucOpenPopUpName = "df-Dimension";

            AddText1.ucOpenTabName = "categories";
            AddText1.ucOpenPopUpWidth = 600;
            AddText1.ucOpenPopUpName = "df-Dimension-update";

            AddText2.ucOpenTabName = "categories";
            AddText2.ucOpenPopUpWidth = 600;
            AddText2.ucOpenPopUpName = "df-Dimension-update";

            AnnotationNewControl.AddText_ucOpenTabName = "categories";
            AnnotationNewControl.AddText_ucOpenPopUpWidth = 600;
            AnnotationNewControl.AddText_ucOpenPopUpName = AnnotationNewControl.ClientID;
            AnnotationNewControl.PopUpContainer = "df-Dimension";

            AnnotationUpdateControl.AddText_ucOpenTabName = "categories";
            AnnotationUpdateControl.AddText_ucOpenPopUpWidth = 600;
            AnnotationUpdateControl.AddText_ucOpenPopUpName = AnnotationUpdateControl.ClientID;
            AnnotationUpdateControl.PopUpContainer = "df-Dimension-update";

            if (chkIsFinal.Checked || _action == Action.VIEW)
            {
                btnAddNewCategory.Visible = false;
                btnCancelMoveCategory.Visible = false;
                btnDeleteCategory.Visible = false;
                btnDeselectCategory.Visible = false;
                btnImportFromCsv.Visible = false;
                btnUpdateSelectedCategory.Visible = false;
                btnMoveCategory.Visible = false;
                txtCategoryOrder.Visible = false;
                lblMoveInstructions.Visible = false;
                lblCategoryOrder.Visible = false;
            }
            else
            {
                btnAddNewCategory.Visible = true;
                btnCancelMoveCategory.Visible = true;
                btnDeleteCategory.Visible = true;
                btnDeselectCategory.Visible = true;
                btnImportFromCsv.Visible = true;
                btnUpdateSelectedCategory.Visible = true;
                btnMoveCategory.Visible = true;
                txtCategoryOrder.Visible = true;
                lblMoveInstructions.Visible = true;
                lblCategoryOrder.Visible = true;
            }

            if (!_epe.PartialArtefact)
            {
                DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.CategoryScheme;
                DuplicateArtefact1.ucMaintanableArtefact = GetCategorySchemeFromSession();
            }
            else
                DuplicateArtefact1.ucDisable = true;
        }
        private void PopolateSMLBTarget(ArtefactIdentity artefactIdentity, AvailableStructures StructureType)
        {
            lbSMTargetCode.Items.Clear();

            ISdmxObjects sdmxObjects = GetSdmoxObjectsFromAI(artefactIdentity, StructureType);

            foreach (IDimension dim in sdmxObjects.DataStructures.FirstOrDefault().DimensionList.Dimensions)
            {
                lbSMTargetCode.Items.Add(dim.Id);
            }

            ResetLBScrollPosition();
        }
Пример #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Org.Sdmxsource.Sdmx.Api.Exception.SdmxException.SetMessageResolver(new Org.Sdmxsource.Util.ResourceBundle.MessageDecoder());
            GetCodeList1.ucCLSelectedEH += new EventHandler<UserControls.GetCodeListEventArgs>(GetCodeList1_ucCLSelectedEH);

            _hclMutable = null;

            _sdmxUtils = new SDMXUtils();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _entityMapper = new EntityMapper(Utils.LocalizedLanguage);
            _artIdentity = Utils.GetIdentityFromRequest(Request);

            GetCodeList1.ucAddIconType = AddIconType.cross;

            SetAction();

            if (!IsPostBack)
            {
                CommonInit();
                CurrentEditingAction = EditingAction.Add;
                TreeView1.Nodes.Add(new TreeNode("root", "@root@"));
                TreeView1.Nodes[0].Selected = true;
            }

            EditingAction a = CurrentEditingAction;

            switch (_action)
            {
                case Action.INSERT:
                    SetInsertForm();
                    if (!Page.IsPostBack)
                    {
                        cmbAgencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmbAgencies.SelectedIndex = 0;
                    }
                    break;
                case Action.UPDATE:
                    SetEditForm();
                    break;
                case Action.VIEW:
                    SetViewForm();
                    Utils.ResetBeforeUnload();
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.HierarchicalCodelist;
            DuplicateArtefact1.ucMaintanableArtefact = _hclMutable;
        }
        private void UpdateCLMTarget(ref ICodelistMapMutableObject iCodelistMapMutableObject, ArtefactIdentity artefactIdentity)
        {
            if (iCodelistMapMutableObject == null)
                return;

            iCodelistMapMutableObject.TargetRef = new StructureReferenceImpl(artefactIdentity.Agency,
                                                                            artefactIdentity.ID,
                                                                            artefactIdentity.Version,
                                                                            SdmxStructureType.GetFromEnum(SdmxStructureEnumType.CodeList),
                                                                            null);
            SetSSToSession();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Org.Sdmxsource.Sdmx.Api.Exception.SdmxException.SetMessageResolver(new Org.Sdmxsource.Util.ResourceBundle.MessageDecoder());

            _dfMutable = null;

            _sdmxUtils = new SDMXUtils();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _entityMapper = new EntityMapper(Utils.LocalizedLanguage);
            _artIdentity = Utils.GetIdentityFromRequest(Request);

            SetAction();

            if (!IsPostBack)
            {
                CommonInit();
            }

            switch (_action)
            {
                case Action.INSERT:
                    SetInsertForm();
                    break;
                case Action.UPDATE:
                    SetEditForm();
                    break;
                case Action.VIEW:
                    SetViewForm();
                    Utils.ResetBeforeUnload();
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.Dataflow;
            DuplicateArtefact1.ucMaintanableArtefact = _dfMutable;

            lblDFID.DataBind();
            lblAgency.DataBind();
            lblVersion.DataBind();
            lblIsFinal.DataBind();
            lblURI.DataBind();
            lblURN.DataBind();
            lblValidFrom.DataBind();
            lblValidTo.DataBind();
            lblDSD.DataBind();
            lblDFNames.DataBind();
            lblDFDescriptions.DataBind();
            lbl_annotation.DataBind();

            btnSaveDF.DataBind();
        }
        protected void gvCodeListMap_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "Details":
                    GridViewRow gvr = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
                    string clmID = ((Label)gvr.FindControl("lblCLMID")).Text;
                    string[] clSourceID = ((Label)gvr.FindControl("lblCLMCLSource")).Text.Split(',');
                    string[] clTargetID = ((Label)gvr.FindControl("lblCLMCLTarget")).Text.Split(',');

                    ArtefactIdentity aiCLSource = new ArtefactIdentity(clSourceID[0].Trim(), clSourceID[1].Trim(), clSourceID[2].Trim());
                    ArtefactIdentity aiCLTarget = new ArtefactIdentity(clTargetID[0].Trim(), clTargetID[1].Trim(), clTargetID[2].Trim());

                    hdCLMAction.Value = Action.UPDATE.ToString();

                    //++++ General
                    txtCLMID.Text = clmID;
                    ICodelistMapMutableObject clmap = GetCurrentCLM();

                    AddTextCLMNames.InitTextObjectMutableList = clmap.Names;
                    AddTextCLMDescription.InitTextObjectMutableList = clmap.Descriptions;
                    ControlAnnotationsCLM.AnnotationObjectList = clmap.Annotations;

                    //++++ Mapping

                    //TODO: da rivedere
                    ArtefactTypeInit();

                    txtCLSource.Text = aiCLSource.ToString();
                    txtCLTarget.Text = aiCLTarget.ToString();

                    PopolateCLMLBSource(aiCLSource);
                    PopolateCLMLBTarget(aiCLTarget);

                    PopolateMapping();

                    Utils.AppendScript("tabindex = 0;");
                    txtCLMID.Enabled = false;
                    OpenAddCLMPopUp();

                    break;

                case "Annotation":
                    break;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Org.Sdmxsource.Sdmx.Api.Exception.SdmxException.SetMessageResolver(new Org.Sdmxsource.Util.ResourceBundle.MessageDecoder());

            _dsdMutable = null;

            _sdmxUtils = new SDMXUtils();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _entityMapper = new EntityMapper(Utils.LocalizedLanguage);
            _artIdentity = Utils.GetIdentityFromRequest(Request);

            SetAction();

            CommonInitUserControl();

            if (!IsPostBack)
            {
                CommonInit();
            }

            switch (_action)
            {
                case Action.INSERT:
                    SetInsertForm();
                    break;
                case Action.UPDATE:
                    SetEditForm();
                    break;
                case Action.VIEW:
                    SetViewForm();
                    Utils.ResetBeforeUnload();
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.Dsd;
            DuplicateArtefact1.ucMaintanableArtefact = _dsdMutable;

            lblDSDDescription.DataBind();
            lblDSDName.DataBind();
            lblDSDID.DataBind();
            lblAgency.DataBind();
            lblVersion.DataBind();
            lblIsFinal.DataBind();
            lblDSDURI.DataBind();
            lblValidTo.DataBind();
            lblValidFrom.DataBind();
            lblDSDURN.DataBind();
            lblDSDURI.DataBind();
            lblPMID.DataBind();
            lblCodelist.DataBind();
            lblConcept.DataBind();
            lblTitle.DataBind();
            lblDimType.DataBind();
            lblDimID.DataBind();
            lblDimConceptReference.DataBind();
            lblDimConcept.DataBind();
            lblCodeConceptScheme.DataBind();
            lblCodeCodelist.DataBind();
            lblCodeCodeRappresentation.DataBind();
            btnAddDimension.DataBind();
            btnSaveDSD.DataBind();
            lblAddGroupTitle.DataBind();
            lblGroupID.DataBind();
            lblGroupDimension.DataBind();
            btnAddGroup.DataBind();
            lbl_annotation.DataBind();
            lblAnnotaionPM.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            Org.Sdmxsource.Sdmx.Api.Exception.SdmxException.SetMessageResolver(new Org.Sdmxsource.Util.ResourceBundle.MessageDecoder());

            _ssMutable = null;

            _sdmxUtils = new SDMXUtils();
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);
            _entityMapper = new EntityMapper(Utils.LocalizedLanguage);
            _artIdentity = Utils.GetIdentityFromRequest(Request);

            #region User COntrol Event Handler

            GetCodeListCLMSource.ucCodeListSelectedEH += new EventHandler<UserControls.GetCodeListEventArgs>(GetCodeListCLMSource_ucCodeListSelectedEH);
            GetCodeListCLMTarget.ucCodeListSelectedEH += new EventHandler<UserControls.GetCodeListEventArgs>(GetCodeListCLMTarget_ucCodeListSelectedEH);

            GetDSDSource.ucDSDSelectedEH += new EventHandler<UserControls.GetDSDEventArgs>(GetDSDSource_ucDSDSelectedEH);
            GetDSDTarget.ucDSDSelectedEH += new EventHandler<UserControls.GetDSDEventArgs>(GetDSDTarget_ucDSDSelectedEH);

            GetDataFlowSource.ucDFSelectedEH += new EventHandler<UserControls.GetDFEventArgs>(GetDataFlowSource_ucDFSelectedEH);
            GetDataFlowTarget.ucDFSelectedEH += new EventHandler<UserControls.GetDFEventArgs>(GetDataFlowTarget_ucDFSelectedEH);

            #endregion

            SetAction();

            if (!IsPostBack)
            {
                CommonInit();
            }

            switch (_action)
            {
                case Action.INSERT:
                    SetInsertForm();
                    break;
                case Action.UPDATE:
                    SetEditForm();
                    break;
                case Action.VIEW:
                    SetViewForm();
                    Utils.ResetBeforeUnload();
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.StructureSet;
            DuplicateArtefact1.ucMaintanableArtefact = _ssMutable;

            if (!IsPostBack)
            {
                hdnCLMSourceCodeScrollTop.Value = "0";
                lbCLMSourceCode.Attributes.Add("onclick", "GetListBoxScrollPosition();");
                lbCLMSourceCode.Attributes.Add("onfocus", "SetListBoxScrollPosition();");

                hdnCLMTargetCodeScrollTop.Value = "0";
                lbCLMTargetCode.Attributes.Add("onclick", "GetListBoxScrollPosition();");

            }
            else
            {

                switch (hdnSelectedMappingType.Value)
                {
                    case "CLM":
                        lbCLMSourceCode.Focus();
                        break;
                    case "SM":
                        //lbSMSourceCode.Focus();
                        break;
                    default:
                break;
                }

            }
        }
        protected void btnAddAttribute_Click(object sender, EventArgs e)
        {
            if (!ValidateAttributeData())
            {
                OpenAddAttributePopUp();
                return;
            }

            /*
             * Creo l'attribute
             * ID
             * Concept
             * Eventuale Codelist
             * Assignment status
             * Attachmentlevel
             *      DimensionGroup
             *          Attachment Dimension
             *      Group
             *          Attached Group ID
             * */

            IAttributeMutableObject attr = new AttributeMutableCore();
            attr.Id = txtAttributeID.Text;

            #region "***** Concept Reference ******"

            ArtefactIdentity csIdentity = new ArtefactIdentity();
            string[] conceptData = txtAttributeConcept.Text.Split(',');

            if (conceptData.Length > 0)
            {
                csIdentity.ID = conceptData[0];
                csIdentity.Agency = conceptData[1];
                csIdentity.Version = conceptData[2].Substring(0, conceptData[2].IndexOf(' '));

                string conceptID = conceptData[2].Substring(conceptData[2].LastIndexOf(' ') + 1);

                IStructureReference conceptRef = new StructureReferenceImpl(csIdentity.Agency,
                                                                            csIdentity.ID,
                                                                            csIdentity.Version,
                                                                            SdmxStructureType.GetFromEnum(SdmxStructureEnumType.Concept),
                                                                            new string[] { conceptID });

                attr.ConceptRef = conceptRef;
            }

            #endregion

            #region "***** Codelist Reference ******"

            if (txtAttributeCodelist.Text != string.Empty)
            {
                ArtefactIdentity clIdentity = new ArtefactIdentity();
                string[] clData = txtAttributeCodelist.Text.Split(',');

                clIdentity.ID = clData[0];
                clIdentity.Agency = clData[1];
                clIdentity.Version = clData[2];

                IStructureReference codelistRef = new StructureReferenceImpl(clIdentity.Agency,
                                                                                clIdentity.ID,
                                                                                clIdentity.Version,
                                                                                SdmxStructureType.GetFromEnum(SdmxStructureEnumType.CodeList),
                                                                                null);

                IRepresentationMutableObject representationRef = new RepresentationMutableCore();
                representationRef.Representation = codelistRef;

                attr.Representation = representationRef;
            }

            #endregion

            attr.AssignmentStatus = cmbAssignmentStatus.SelectedValue;
            attr.AttachmentLevel = (AttributeAttachmentLevel)Enum.Parse(typeof(AttributeAttachmentLevel), cmbAttachLevel.SelectedValue);

            switch (attr.AttachmentLevel)
            {
                case AttributeAttachmentLevel.DataSet:
                    break;
                case AttributeAttachmentLevel.DimensionGroup:
                    // Aggiungo le dimensioni selezionate nella list box
                    IList<string> lDim = new List<string>();

                    foreach (ListItem li in lbAttachmentDimension.Items)
                    {
                        if (li.Selected)
                            attr.DimensionReferences.Add(li.Value);
                    }

                    break;
                case AttributeAttachmentLevel.Group:
                    // Aggiungo il gruppo selezionato nella combo
                    attr.AttachmentGroup = cmbAttachedGroupID.SelectedValue;
                    break;
                case AttributeAttachmentLevel.Null:
                    break;
                case AttributeAttachmentLevel.Observation:
                    break;
                default:
                    break;
            }

            try
            {
                if (hdnEditAttribute.Value == "true")
                {
                    foreach (IAttributeMutableObject attrDel in _dsdMutable.Attributes)
                    {
                        if (attrDel.Id == txtAttributeID.Text)
                        {
                            _dsdMutable.Attributes.Remove(attrDel);
                            break;
                        }
                    }
                }

                _dsdMutable.AddAttribute(attr);
                SetDsdToSession();
                SetAttributeTab(_dsdMutable.ImmutableInstance);

                txtAttributeID.Text = "";
                txtAttributeConcept.Text = "";
                txtAttributeCodelist.Text = "";
                cmbAssignmentStatus.SelectedIndex = 0;
                cmbAttachLevel.SelectedIndex = 0;

                lbAttachmentDimension.ClearSelection();
                if (cmbAttachedGroupID.Items.Count >0)
                    cmbAttachedGroupID.SelectedIndex = 0;
                pnlAttachedGroupID.Visible = false;
                pnlAttachmentDimension.Visible = false;

                Utils.ForceBlackClosing();
            }
            catch (Exception ex)
            {
                _dsdMutable.Attributes.Remove(attr);
                OpenAddAttributePopUp();
                Utils.ShowDialog(ex.Message, 600, Resources.Messages.err_add_attribute);
            }
        }
Пример #25
0
        public static ArtefactIdentity GetIdentityFromRequest(HttpRequest Request)
        {
            if (Request["ID"] == null)
                return null;

            ArtefactIdentity artIDRet = null;

            if (Request["ISFINAL"] != null)
                artIDRet = new ArtefactIdentity(Request["ID"], Request["AGENCY"], Request["VERSION"], bool.Parse(Request["ISFINAL"]));
            else
                artIDRet = new ArtefactIdentity(Request["ID"], Request["AGENCY"], Request["VERSION"]);

            return artIDRet;
        }
        protected void btnAddDimension_Click(object sender, EventArgs e)
        {
            if (!ValidateDimensionData())
            {
                OpenAddDimensionPopUp();
                return;
            }

            IDimensionMutableObject dim = new DimensionMutableCore();
            dim.Id = txtDimID.Text;

            switch (cmbDimType.SelectedValue)
            {
                case "FREQUENCY":
                    dim.FrequencyDimension = true;
                    break;
                case "MEASURE":
                    dim.MeasureDimension = true;
                    break;
                case "TIME":
                    dim.TimeDimension = true;
                    break;
            }

            #region "***** Concept Reference ******"

            ArtefactIdentity csIdentity = new ArtefactIdentity();
            string[] conceptData = txtDimConcept.Text.Split(',');

            if (conceptData.Length > 0)
            {
                csIdentity.ID = conceptData[0];
                csIdentity.Agency = conceptData[1];
                csIdentity.Version = conceptData[2].Substring(0, conceptData[2].IndexOf(' '));

                string conceptID = conceptData[2].Substring(conceptData[2].LastIndexOf(' ') + 1);

                IStructureReference conceptRef = new StructureReferenceImpl(csIdentity.Agency,
                                                                            csIdentity.ID,
                                                                            csIdentity.Version,
                                                                            SdmxStructureType.GetFromEnum(SdmxStructureEnumType.Concept),
                                                                            new string[] { conceptID });

                dim.ConceptRef = conceptRef;
            }
            #endregion

            switch (cmbDimType.SelectedValue)
            {
                case "NORMAL":
                case "FREQUENCY":

                    // Remove NTD Normal Dimension
                    foreach (IDimensionMutableObject dimF in _dsdMutable.Dimensions)
                    {
                        if (dimF.ConceptRef.MaintainableId == _ntdNRName)
                        {
                            _dsdMutable.Dimensions.Remove(dimF);
                            break;
                        }
                    }

                    #region "***** Codelist Reference ******"

                    if (txtDimCodelist.Text != string.Empty)
                    {
                        ArtefactIdentity clIdentity = new ArtefactIdentity();
                        string[] clData = txtDimCodelist.Text.Split(',');

                        clIdentity.ID = clData[0];
                        clIdentity.Agency = clData[1];
                        clIdentity.Version = clData[2];

                        IStructureReference codelistRef = new StructureReferenceImpl(clIdentity.Agency,
                                                                                        clIdentity.ID,
                                                                                        clIdentity.Version,
                                                                                        SdmxStructureType.GetFromEnum(SdmxStructureEnumType.CodeList),
                                                                                        null);

                        IRepresentationMutableObject representationRef = new RepresentationMutableCore();
                        representationRef.Representation = codelistRef;

                        dim.Representation = representationRef;

                    }

                    #endregion

                    break;
                case "MEASURE":

                    #region "***** ConceptScheme Reference ******"

                    if (txtDimConceptScheme.Text != string.Empty)
                    {
                        ArtefactIdentity cSchemeIdentity = new ArtefactIdentity();
                        string[] clData = txtDimConceptScheme.Text.Split(',');

                        cSchemeIdentity.ID = clData[0];
                        cSchemeIdentity.Agency = clData[1];
                        cSchemeIdentity.Version = clData[2];

                        IStructureReference cSchemeRef = new StructureReferenceImpl(cSchemeIdentity.Agency,
                                                                                    cSchemeIdentity.ID,
                                                                                    cSchemeIdentity.Version,
                                                                                    SdmxStructureType.GetFromEnum(SdmxStructureEnumType.ConceptScheme),
                                                                                    null);

                        IRepresentationMutableObject representationRef = new RepresentationMutableCore();
                        representationRef.Representation = cSchemeRef;

                        dim.Representation = representationRef;

                    }

                    #endregion

                    break;
                case "TIME":

                    // Remove NTD Time Dimensione
                    foreach (IDimensionMutableObject dimF in _dsdMutable.Dimensions)
                    {
                        if (dimF.ConceptRef.MaintainableId == _ntdTDName)
                        {
                            _dsdMutable.Dimensions.Remove(dimF);
                            break;
                        }
                    }

                    break;
            }

            try
            {
                _dsdMutable.AddDimension(dim);
                SetDsdToSession();
                SetDimensionTab(_dsdMutable.ImmutableInstance);
                PopulateLBDimensionList(_dsdMutable, lbAttachmentDimension);
                PopulateLBDimensionList(_dsdMutable, lbGroupDimension);

                txtDimID.Text = "";
                txtDimConcept.Text = "";
                txtDimCodelist.Text = "";
                txtDimConceptScheme.Text = "";
                cmbDimType.SelectedIndex = 0;

                Utils.ForceBlackClosing();
            }
            catch (Exception ex)
            {
                _dsdMutable.Dimensions.Remove(dim);
                OpenAddDimensionPopUp();
                Utils.ShowDialog(ex.Message, 600, Resources.Messages.err_add_dimension);
            }
        }
Пример #27
0
        public static bool IsNullOrEmptyArtefactIdentity(ArtefactIdentity aIObject)
        {
            if (aIObject == null)
                return true;

            if (String.IsNullOrEmpty(aIObject.ID) && String.IsNullOrEmpty(aIObject.Agency) && String.IsNullOrEmpty(aIObject.Version))
                return true;

            return false;
        }
        private ISdmxObjects GetSdmoxObjectsFromAI(ArtefactIdentity artefactIdentity, AvailableStructures StructureType)
        {
            ISdmxObjects sdmxObjects = null;

            switch (StructureType)
            {
                case AvailableStructures.KEY_FAMILY:
                    sdmxObjects = _wsmodel.GetDataStructure(artefactIdentity, false, false);
                    break;
                case AvailableStructures.DATAFLOW:
                    sdmxObjects = _wsmodel.GetDataFlow(artefactIdentity, false, false);
                    ICrossReference dsd = sdmxObjects.Dataflows.FirstOrDefault().DataStructureRef;

                    sdmxObjects = _wsmodel.GetDataStructure(new ArtefactIdentity(dsd.MaintainableId, dsd.AgencyId, dsd.Version), false, false);
                    break;
            }

            return sdmxObjects;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _localizedUtils = new LocalizedUtils(Utils.LocalizedCulture);

            SetAction();

            if (!IsPostBack)
            {
                Utils.PopulateCmbAgencies(cmb_agencies, true);
                Utils.PopulateCmbAgencies(cmbLanguageForCsv, true);
                ClearSessionPage();
                ViewState["SortExpr"] = SortDirection.Ascending;
                txtNumberOfRows.Text = Utils.DetailsCodelistGridNumberRow.ToString();
            }

            switch (_action)
            {
                case Action.INSERT:

                    //ClearSessionPage();
                    AspConfirmationExit = "true";

                    SetInitControls();
                    SetInsertForm();

                    lblNumberOfRows.Visible = false;
                    txtNumberOfRows.Visible = false;
                    btnChangePaging.Visible = false;

                    chk_isFinal.Checked = false;
                    chk_isFinal.Enabled = false;

                    AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";
                    if ( !Page.IsPostBack )
                    {
                        cmb_agencies.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                        cmb_agencies.SelectedIndex = 0;

                        FileDownload31.Visible = false;
                    }
                    break;
                case Action.UPDATE:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);

                    SetInitControls();
                    SetEditForm();

                    AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    /*if (gvCodelistsItem.Rows.Count > 0 )
                    {
                        chk_isFinal.Enabled = true;
                    }
                    else
                    {
                        chk_isFinal.Enabled = false;
                    }*/
                    break;
                case Action.VIEW:

                    _artIdentity = Utils.GetIdentityFromRequest(Request);
                    ClearSessionPage();
                    SetViewForm();

                    AddTextName_update.ucOpenTabName = "codes";
                    AddTextName_update.ucOpenPopUpWidth = 600;
                    AddTextName_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextDescription_update.ucOpenTabName = "codes";
                    AddTextDescription_update.ucOpenPopUpWidth = 600;
                    AddTextDescription_update.ucOpenPopUpName = "df-Dimension-update";

                    AddTextName_new.ucOpenTabName = "codes";
                    AddTextName_new.ucOpenPopUpWidth = 600;
                    AddTextName_new.ucOpenPopUpName = "df-Dimension";

                    AddTextDescription_new.ucOpenTabName = "codes";
                    AddTextDescription_new.ucOpenPopUpWidth = 600;
                    AddTextDescription_new.ucOpenPopUpName = "df-Dimension";

                    FileDownload31.ucID = _artIdentity.ID;
                    FileDownload31.ucAgency = _artIdentity.Agency;
                    FileDownload31.ucVersion = _artIdentity.Version;
                    FileDownload31.ucArtefactType = "CodeList";
                    break;
            }

            DuplicateArtefact1.ucStructureType = SdmxStructureEnumType.CodeList;
            DuplicateArtefact1.ucMaintanableArtefact = GetCodeListFromSession();

            lbl_id.DataBind();
            lbl_agency.DataBind();
            lbl_version.DataBind();
            lbl_isFinal.DataBind();
            lbl_uri.DataBind();
            lbl_urn.DataBind();
            lbl_valid_from.DataBind();
            lbl_valid_to.DataBind();
            lbl_name.DataBind();
            lbl_description.DataBind();
            lbl_annotation.DataBind();
            btnChangePaging.DataBind();
            lblImportCsvTitle.DataBind();
            lblCsvLanguage.DataBind();
            lblcsvFile.DataBind();
            lblNoItemsPresent.DataBind();
            lbl_title_popup_code.DataBind();

            lbl_id_update.DataBind();
            lbl_order_update.DataBind();
            lbl_parentid_update.DataBind();
            lbl_description_update.DataBind();
            lbl_name_update.DataBind();
            lbl_title_update.DataBind();
            lbl_id_new.DataBind();
            lbl_order_new.DataBind();
            lbl_parentid_new.DataBind();
            lbl_description_new.DataBind();
            lbl_name_new.DataBind();
            btnClearFields.DataBind();
            btnClearFieldForUpdate.DataBind();
            imgImportCsv.DataBind();
            btnAddNewCode.DataBind();
            btnSaveMemoryCodeList.DataBind();
            btnImportFromCsv.DataBind();
            btnSaveAnnotationCode.DataBind();
            btnUpdateCode.DataBind();
            btnNewCode.DataBind();
            lblNumberOfRows.DataBind();
            lblSeparator.DataBind();
            btnNewCodeOnFinalStructure.DataBind();
            lblYouAreWorkingOnAFinal.DataBind();
        }
Пример #30
0
 public ISdmxObjects GetStructureSet(ArtefactIdentity artIdentity, bool stub, bool withLike)
 {
     return WSExecute(artIdentity, WSConstants.wsOperation.GetStructureSet, stub, withLike);
 }