feat(i18n): 支持系统中英文切换

为页面、菜单及提示接入中英文资源,保留业务值和导出中文标题,以支持用户切换界面语言。
This commit is contained in:
2026-11-02 11:16:43 +08:00
parent 4bc1da6491
commit e30bb4b1b7
859 changed files with 91079 additions and 11959 deletions
@@ -153,7 +153,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
TreeNode treeNode = new TreeNode();
treeNode.NodeID = unitWork.UnitWorkId;
treeNode.Text = unitWork.UnitWorkName + "【" + pipelineCount.ToString() + "】管线";
treeNode.ToolTip = "施工单位:" + unitName;
treeNode.ToolTip = BLL.UiText.Message("施工单位:" + unitName);
treeNode.CommandName = 1 + "|" + Funs.GetEndPageNumber(pipelineCount, pageSize);
treeNode.EnableClickEvent = true;
treeNode.EnableExpandEvent = true;
@@ -708,7 +708,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|| (this.tvControlItem.SelectedNode.CommandName.Split('|').Count() != 2
&& this.tvControlItem.SelectedNode.CommandName != "管线"))
{
Alert.ShowInTop("请选择单位工程或管线!", MessageBoxIcon.Warning);
Alert.ShowInTop(BLL.UiText.Message("请选择单位工程或管线!"), MessageBoxIcon.Warning);
return;
}
@@ -732,14 +732,14 @@ namespace FineUIPro.Web.HJGL.InfoQuery
var list = BLL.WeldJointService.GetViewWeldJointsBymodel(model);
if (list.Count == 0)
{
Alert.ShowInTop("无数据,无法导出!", MessageBoxIcon.Warning);
Alert.ShowInTop(BLL.UiText.Message("无数据,无法导出!"), MessageBoxIcon.Warning);
return;
}
string templatePath = Funs.RootPath + @"File\Excel\DataOut\焊口信息总览(俄)导出模板.xlsx";
if (!File.Exists(templatePath))
{
Alert.ShowInTop("焊口信息总览导出模板不存在!", MessageBoxIcon.Warning);
Alert.ShowInTop(BLL.UiText.Message("焊口信息总览导出模板不存在!"), MessageBoxIcon.Warning);
return;
}
@@ -903,7 +903,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
}
else
{
Alert.Show("请选择主项");
Alert.Show(BLL.UiText.Message("请选择主项"));
}
}
@@ -915,21 +915,21 @@ namespace FineUIPro.Web.HJGL.InfoQuery
{
if (this.Grid1.SelectedRowIDArray == null || this.Grid1.SelectedRowIDArray.Length == 0)
{
Alert.Show("请选择要打印的焊口");
Alert.Show(BLL.UiText.Message("请选择要打印的焊口"));
return;
}
var weldJointList = GetSelectedWeldJointList();
if (weldJointList == null || weldJointList.Count == 0)
{
Alert.Show("当前条件下没有可打印的焊口");
Alert.Show(BLL.UiText.Message("当前条件下没有可打印的焊口"));
return;
}
var tb = BuildWeldJointNameplateTable(weldJointList);
if (tb == null || tb.Rows.Count == 0)
{
Alert.Show("当前条件下没有可打印的焊口");
Alert.Show(BLL.UiText.Message("当前条件下没有可打印的焊口"));
return;
}
@@ -1126,7 +1126,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
sb.Append("<tr>");
foreach (GridColumn column in grid.Columns)
{
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
sb.AppendFormat("<td>{0}</td>", GetExportHeader(grid, column));
}
sb.Append("</tr>");
foreach (GridRow row in grid.Rows)