本文整理汇总了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();
示例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;
}