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 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()); 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; }
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 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; }