当前位置: 首页>>代码示例>>C#>>正文


C# Callback.GenerateMetadataMappingXml方法代码示例

本文整理汇总了C#中Callback.GenerateMetadataMappingXml方法的典型用法代码示例。如果您正苦于以下问题:C# Callback.GenerateMetadataMappingXml方法的具体用法?C# Callback.GenerateMetadataMappingXml怎么用?C# Callback.GenerateMetadataMappingXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Callback的用法示例。


在下文中一共展示了Callback.GenerateMetadataMappingXml方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HandleCallBack


//.........这里部分代码省略.........
                    case CallbackType.AdminDeleteCatalog:
                        RetVal = OCallback.AdminDeleteCatalog(RequestParam);
                        break;
                    case CallbackType.AdminUpdateAdaptation:
                        RetVal = OCallback.AdminUpdateAdaptation(RequestParam);
                        break;
                    case CallbackType.GetDisclaimerText:
                        RetVal = OCallback.GetDisclaimerText();
                        break;
                    case CallbackType.SetChartTimePeriodsVisiblity:
                        RetVal = OCallback.SetChartTimePeriodsVisiblity(RequestParam, RequestParam2);
                        break;
                    case CallbackType.GetChartTimePeriods:
                        RetVal = OCallback.GetChartTimePeriods(RequestParam);
                        break;
                    case CallbackType.GetSeriesThemeName:
                        RetVal = OCallback.GetSeriesThemeName(RequestParam);
                        break;
                    case CallbackType.RequestAdminForDataProviderRights:
                        RetVal = OCallback.RequestAdminForDataProviderRights(RequestParam);
                        break;
                    case CallbackType.AdminGetAdaptationVersions:
                        RetVal = OCallback.AdminGetAdaptationVersions();
                        break;
                    //case CallbackType.ViewContent:
                    //    RetVal = OCallback.ViewContent(RequestParam);
                    //    break;
                    case CallbackType.AccountActivation:
                        RetVal = OCallback.ActiveAccount(RequestParam);
                        break;
                    case CallbackType.ChangePassword:
                        RetVal = OCallback.ChangePassword(RequestParam);
                        break;
                    case CallbackType.GenerateMetadataMappingXml:
                        RetVal = OCallback.GenerateMetadataMappingXml(RequestParam);
                        break;
                    case CallbackType.BindMetadataMappingLists:
                        RetVal = OCallback.BindMetadataMappingLists(RequestParam);
                        break;
                    case CallbackType.BindIUSMappingList:
                        RetVal = OCallback.BindIUSMappingList(RequestParam);
                        break;
                    case CallbackType.BindIndicatorCodelist:
                        RetVal = OCallback.BindIndicatorCodelist(RequestParam);
                        break;
                    case CallbackType.BindUnitCodelist:
                        RetVal = OCallback.BindUnitCodelist(RequestParam);
                        break;
                    case CallbackType.BindAreaCodelist:
                        RetVal = OCallback.BindAreaCodelist(RequestParam);
                        break;
                    //case CallbackType.BindAgeCodelist:
                    //    RetVal = OCallback.BindAgeCodelist(RequestParam);
                    //    break;
                    //case CallbackType.BindSexCodelist:
                    //    RetVal = OCallback.BindSexCodelist(RequestParam);
                    //    break;
                    //case CallbackType.BindLocationCodelist:
                    //    RetVal = OCallback.BindLocationCodelist(RequestParam);
                    //    break;
                    case CallbackType.GetLangFromDB:
                        RetVal = Global.GetLangFromDB();
                        break;
                    //Added to check gallery existence
                    case CallbackType.GalleryExistence:
                        RetVal = OCallback.GalleryExistence(RequestParam).ToString();
开发者ID:SDRC-India,项目名称:sdrcdevinfo,代码行数:67,代码来源:Callback.aspx.cs

示例2: ImportMetadataMappingData

    private bool ImportMetadataMappingData(DIExcel excel, string paramValue)
    {
        bool RetVal = false;
        StringBuilder ParamString = new StringBuilder();
        string ResultString = string.Empty;

        try
        {
            ParamString.Append(paramValue);
            this.objCallBack = new Callback();
            int StartRowIndex = 4;
            int RowCount = excel.GetUsedRange(0).RowCount;
            string SourceGID = string.Empty;
            string TargetGId = string.Empty;
            Dictionary<string, string> DictSource = null;
            Dictionary<string, string> DictTarget = null;
            if (RowCount > StartRowIndex)
            {
                DictSource = GenerateDict_Source_Target("Metadata", true);
                DictTarget = GenerateDict_Source_Target("Metadata", false);
                for (int RowIndex = StartRowIndex; RowIndex <= RowCount; RowIndex++)
                {
                    //Get the Source and Target GIDs
                    SourceGID = excel.GetCellValue(0, RowIndex, 1, RowIndex, 1);
                    TargetGId = excel.GetCellValue(0, RowIndex, 3, RowIndex, 3);
                    if (!(string.IsNullOrEmpty(SourceGID) || string.IsNullOrEmpty(TargetGId)))
                    {
                        //Check if the mapped GID of Excelsheet lies in the Source Files
                        if (this.IsValidGID(DictSource, DictTarget, SourceGID, TargetGId))
                        {
                            //Make the parameter string
                            ParamString.Append(SourceGID + Constants.Delimiters.ColumnDelimiter + TargetGId + Constants.Delimiters.RowDelimiter);
                        }
                    }
                }
            }

            //Make the XML Files
            ResultString = ParamString.ToString();
            if (ResultString.Contains(Constants.Delimiters.RowDelimiter))
            {
                ResultString = ResultString.Substring(0, ResultString.Length - 9);
                RetVal = true;
            }
            objCallBack.GenerateMetadataMappingXml(ResultString);
        }
        catch (Exception Ex)
        {
            Global.CreateExceptionString(Ex, null);
            RetVal = false;
        }
        return RetVal;
    }
开发者ID:SDRC-India,项目名称:sdrcdevinfo,代码行数:53,代码来源:ImportMapping.cs


注:本文中的Callback.GenerateMetadataMappingXml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。