提交当前本机整理版本
This commit is contained in:
@@ -499,4 +499,41 @@ namespace Lskj.Model
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 页面水印层
|
||||
/// </summary>
|
||||
public Form WatermarkForm;
|
||||
|
||||
/// <summary>
|
||||
/// 单据水印 草稿替换值
|
||||
/// </summary>
|
||||
public string DraftReplacementValue="";
|
||||
|
||||
/// <summary>
|
||||
/// 是否有可翻译的文本
|
||||
/// </summary>
|
||||
public bool Translatable;
|
||||
/// <summary>
|
||||
/// 翻译文本存放字典
|
||||
/// </summary>
|
||||
public Dictionary<string, string> ContrastiveLanguage;
|
||||
|
||||
/// <summary>
|
||||
/// 传入文本,获取对应语言的翻译文本
|
||||
/// </summary>
|
||||
/// <param name="text"></param>
|
||||
/// <returns></returns>
|
||||
public string GetTranslatedText(string text)
|
||||
{
|
||||
string value = text;
|
||||
if (this.ContrastiveLanguage.ContainsKey(text))
|
||||
{
|
||||
value = this.ContrastiveLanguage[text];
|
||||
}
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user