本文整理汇总了C#中Callback.GenerateIUSMappingXml方法的典型用法代码示例。如果您正苦于以下问题:C# Callback.GenerateIUSMappingXml方法的具体用法?C# Callback.GenerateIUSMappingXml怎么用?C# Callback.GenerateIUSMappingXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Callback
的用法示例。
在下文中一共展示了Callback.GenerateIUSMappingXml方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleCallBack
//.........这里部分代码省略.........
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();
break;
case CallbackType.GenerateIUSMappingXml:
RetVal = OCallback.GenerateIUSMappingXml(RequestParam);
break;
case CallbackType.BindRegistrations:
RetVal = OCallback.BindRegistrations(RequestParam);
break;
case CallbackType.GetDefaultDb:
RetVal = OCallback.GetDefaultDb();
break;
case CallbackType.SessionReset:
RetVal = OCallback.SessionReset().ToString();
break;
case CallbackType.GetSearchedKeywords:
RetVal = OCallback.GetSearchedKeywords(RequestParam).ToString();
break;
case CallbackType.GetAllAdaptations:
RetVal = OCallback.GetAllAdaptations();
break;
case CallbackType.GetAllUsers:
RetVal = OCallback.GetAllUsers(RequestParam);
break;
case CallbackType.UpdatePassword:
RetVal = OCallback.UpdatePassword(RequestParam);
break;
case CallbackType.GetCodelistsPopupInnerHTML:
RetVal = OCallback.GetCodelistsPopupInnerHTML(RequestParam);
break;
case CallbackType.GenerateCSVFile:
RetVal = OCallback.GenerateCsvFile();
break;
case CallbackType.RegenrateActivationLink:
RetVal = OCallback.RegenerateActivationLink(RequestParam);
break;
示例2: ImportIUSMappingData
/// <summary>
/// Import the IUS mapping data
/// </summary>
/// <param name="excel">Excel Object</param>
/// <param name="paramValue">Parameter value</param>
private string ImportIUSMappingData(DIExcel excel, string paramValue)
{
string RetVal = "false";
//Read the IndicatorSheet
StringBuilder ParamString = new StringBuilder();
string ResultString = string.Empty;
string OutResult = string.Empty;
bool Mapped = false;
bool IsRowMapped = false;
try
{
ParamString.Append(paramValue);
this.objCallBack = new Callback();
int StartRowIndex = 4;
int StartColIndex = 0;
int SheetIndex = 0;
int RowCount = excel.GetUsedRange(0).RowCount;
if (RowCount > StartRowIndex)
{
//Loop through each row and import the records
for (int RowIndex = StartRowIndex; RowIndex <= RowCount; RowIndex++)
{
//Import only those records whose mapping has been done.
if (excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 3, RowIndex, StartColIndex + 3) == "YES")
{
//Make sure that all the values of dropdown are selected
if (!string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 17, RowIndex, StartColIndex + 17)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 18, RowIndex, StartColIndex + 18)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 19, RowIndex, StartColIndex + 19)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 20, RowIndex, StartColIndex + 20)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 21, RowIndex, StartColIndex + 21)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 22, RowIndex, StartColIndex + 22)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 23, RowIndex, StartColIndex + 23)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 24, RowIndex, StartColIndex + 24)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 25, RowIndex, StartColIndex + 25)))
{
//Make the parameter string
ParamString.Append(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 13, RowIndex, StartColIndex + 13) + Constants.Delimiters.IndGUIDSeoarator + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 14, RowIndex, StartColIndex + 14) + Constants.Delimiters.IndGUIDSeoarator + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 15, RowIndex, StartColIndex + 15) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 17, RowIndex, StartColIndex + 17) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 18, RowIndex, StartColIndex + 18) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 19, RowIndex, StartColIndex + 19) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 20, RowIndex, StartColIndex + 20) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 21, RowIndex, StartColIndex + 21) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 22, RowIndex, StartColIndex + 22) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 23, RowIndex, StartColIndex + 23) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 24, RowIndex, StartColIndex + 24) +
Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 25, RowIndex, StartColIndex + 25) +
Constants.Delimiters.RowDelimiter);
Mapped = true;
}
IsRowMapped = true;
}
}
//Make the XML Files
ResultString = ParamString.ToString();
if (ResultString.Contains(Constants.Delimiters.RowDelimiter))
{
ResultString = ResultString.Substring(0, ResultString.Length - 9);
}
OutResult = objCallBack.GenerateIUSMappingXml(ResultString);
Global.GetLanguageKeyValue("");
string[] OutResultArray = OutResult.Split(new string[] { Constants.Delimiters.ParamDelimiter }, StringSplitOptions.None);
if (OutResultArray[0].ToString() == "true")
{
RetVal = "true";
}
else
{
RetVal = "false";
if (IsRowMapped == false)
{
RetVal += "false[**]No row mapped. Please map at least one row.";
}
else if (Mapped == false)
{
RetVal += "false[**]Invalid Mapping";
}
}
}
}
catch (Exception Ex)
{
Global.CreateExceptionString(Ex, null);
RetVal = "false";
}
return RetVal;
}