feat(i18n): 支持系统中英文切换
为页面、菜单及提示接入中英文资源,保留业务值和导出中文标题,以支持用户切换界面语言。
This commit is contained in:
@@ -96,13 +96,13 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (this.fuAttachUrl.HasFile == false)
|
||||
{
|
||||
Alert.ShowInTop("请您选择Excel文件!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("请您选择Excel文件!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".xls")
|
||||
{
|
||||
Alert.ShowInTop("只可以选择Excel文件!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("只可以选择Excel文件!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (ViewWorkPackages != null)
|
||||
@@ -247,7 +247,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
results = "数据导入失败,未成功数据:" + results.Substring(0, results.LastIndexOf("|"));
|
||||
errorInfos = results;
|
||||
Alert.ShowInParent(results, MessageBoxIcon.Warning);
|
||||
Alert.ShowInParent(BLL.UiText.Message(results), MessageBoxIcon.Warning);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -262,7 +262,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("导入数据为空!"), MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
BLL.UploadFileService.DeleteFile(Funs.RootPath, initPath + this.hdFileName.Text);
|
||||
@@ -318,13 +318,13 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
if (this.fuAttachUrl.HasFile == false)
|
||||
{
|
||||
Alert.ShowInTop("请您选择Excel文件!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("请您选择Excel文件!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".xls")
|
||||
{
|
||||
Alert.ShowInTop("只可以选择Excel文件!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("只可以选择Excel文件!"), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (ViewWorkPackages != null)
|
||||
@@ -435,7 +435,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
{
|
||||
results = "数据导入失败,未成功数据:" + results.Substring(0, results.LastIndexOf("|"));
|
||||
errorInfos = results;
|
||||
Alert.ShowInParent(results, MessageBoxIcon.Warning);
|
||||
Alert.ShowInParent(BLL.UiText.Message(results), MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
@@ -450,7 +450,7 @@ namespace FineUIPro.Web.CQMS.WBS
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("导入数据为空!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop(BLL.UiText.Message("导入数据为空!"), MessageBoxIcon.Warning);
|
||||
}
|
||||
BLL.UploadFileService.DeleteFile(Funs.RootPath, initPath + this.hdFileName.Text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user