提交当前本机整理版本
This commit is contained in:
@@ -1035,4 +1035,36 @@ namespace Lskj.Control
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版�
|
||||
/// <para>版本:1.0.0.3</para>
|
||||
/// </summary>
|
||||
/// <param name="control">The control.</param>
|
||||
/// <returns>DataTable.</returns>
|
||||
public string GetValueByImportText(GridColumnModel model, string text, bool isBillImport = false)
|
||||
{
|
||||
string value = text;
|
||||
|
||||
Dictionary<string, string> translationDict = null;
|
||||
if (ValueGridColumnTable.TryGetValue(model, out translationDict))
|
||||
{
|
||||
if (translationDict != null && translationDict.Count > 0)
|
||||
{
|
||||
if (translationDict.TryGetValue(text, out string translatedValue))
|
||||
{
|
||||
value = translatedValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
value = text;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
value = "";
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user