feat(i18n): 支持系统中英文切换
为页面、菜单及提示接入中英文资源,保留业务值和导出中文标题,以支持用户切换界面语言。
This commit is contained in:
@@ -14,115 +14,115 @@
|
||||
<rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtProjectName" runat="server" Label="项目名称" Required="true" MaxLength="200"
|
||||
<f:TextBox ID="txtProjectName" runat="server" Label="<%$ Resources:UiText, T_项目名称 %>" Required="true" MaxLength="200"
|
||||
ShowRedStar="true" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" FocusOnPageLoad="true" ></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtProjectCode" runat="server" Label="项目号" Required="true" MaxLength="50"
|
||||
<f:TextBox ID="txtProjectCode" runat="server" Label="<%$ Resources:UiText, T_项目号 %>" Required="true" MaxLength="50"
|
||||
ShowRedStar="true" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"></f:TextBox>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtShortName" runat="server" Label="简称"
|
||||
<f:TextBox ID="txtShortName" runat="server" Label="<%$ Resources:UiText, T_简称 %>"
|
||||
MaxLength="6" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectType" Label="项目类型" runat="server">
|
||||
<f:DropDownList ID="drpProjectType" Label="<%$ Resources:UiText, T_项目类型 %>" runat="server">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpProjectState" runat="server" Label="项目状态" LabelAlign="Right" LabelWidth="150px">
|
||||
<f:ListItem Text="在建" Value="1" Selected="true"/>
|
||||
<f:ListItem Text="停工" Value="2" />
|
||||
<f:ListItem Text="竣工" Value="3" />
|
||||
<f:DropDownList ID="drpProjectState" runat="server" Label="<%$ Resources:UiText, T_项目状态 %>" LabelAlign="Right" LabelWidth="150px">
|
||||
<f:ListItem Text="<%$ Resources:UiText, T_在建 %>" Value="1" Selected="true"/>
|
||||
<f:ListItem Text="<%$ Resources:UiText, T_停工 %>" Value="2" />
|
||||
<f:ListItem Text="<%$ Resources:UiText, T_竣工 %>" Value="3" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker runat="server" Label="开工日期" ID="txtStartDate"
|
||||
<f:DatePicker runat="server" Label="<%$ Resources:UiText, T_开工日期 %>" ID="txtStartDate"
|
||||
Required="true" ShowRedStar="true" AutoPostBack="true" OnTextChanged="txtStartDate_Blur"></f:DatePicker>
|
||||
<f:DatePicker runat="server" Label="竣工日期" ID="txtEndDate" LabelWidth="150px"
|
||||
<f:DatePicker runat="server" Label="<%$ Resources:UiText, T_竣工日期 %>" ID="txtEndDate" LabelWidth="150px"
|
||||
AutoPostBack="true" OnTextChanged="txtStartDate_Blur"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContractNo" runat="server" Label="合同号"></f:TextBox>
|
||||
<f:NumberBox runat="server" ID="txtDuration" Label="项目建设工期(月)" DecimalPrecision="1"
|
||||
<f:TextBox ID="txtContractNo" runat="server" Label="<%$ Resources:UiText, T_合同号 %>"></f:TextBox>
|
||||
<f:NumberBox runat="server" ID="txtDuration" Label="<%$ Resources:UiText, T_项目建设工期_月 %>" DecimalPrecision="1"
|
||||
NoNegative="true" LabelWidth="150px">
|
||||
</f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" Label="所属单位" runat="server" EnableEdit="true" AutoPostBack="true"
|
||||
<f:DropDownList ID="drpUnit" Label="<%$ Resources:UiText, T_所属单位 %>" runat="server" EnableEdit="true" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="drpUnit_SelectedIndexChanged">
|
||||
</f:DropDownList>
|
||||
<f:CheckBox runat="server" ID="ckbIsForeign" Label="海外项目" AutoPostBack="true" OnCheckedChanged="ckbIsForeign_CheckedChanged"></f:CheckBox>
|
||||
<f:CheckBox runat="server" ID="ckbIsForeign" Label="<%$ Resources:UiText, T_海外项目 %>" AutoPostBack="true" OnCheckedChanged="ckbIsForeign_CheckedChanged"></f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProjectManager" runat="server" Label="项目经理"
|
||||
<f:DropDownList ID="drpProjectManager" runat="server" Label="<%$ Resources:UiText, T_项目经理 %>"
|
||||
EnableEdit="true" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="drpConstructionManager" runat="server" Label="施工经理" EnableEdit="true">
|
||||
<f:DropDownList ID="drpConstructionManager" runat="server" Label="<%$ Resources:UiText, T_施工经理 %>" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpHSSEManager" runat="server" Label="安全经理" EnableEdit="true">
|
||||
<f:DropDownList ID="drpHSSEManager" runat="server" Label="<%$ Resources:UiText, T_安全经理 %>" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" MaxLength="500" ></f:TextBox>
|
||||
<f:TextBox ID="txtProjectAddress" runat="server" Label="<%$ Resources:UiText, T_项目地址 %>" MaxLength="500" ></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtWorkRange" runat="server" Label="工作范围" MaxLength="500" Height="50px"></f:TextArea>
|
||||
<f:TextArea ID="txtWorkRange" runat="server" Label="<%$ Resources:UiText, T_工作范围 %>" MaxLength="500" Height="50px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="项目概况" MaxLength="500" Height="50px"></f:TextArea>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="<%$ Resources:UiText, T_项目概况 %>" MaxLength="500" Height="50px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox runat="server" ID="txtProjectMoney" Label="合同额(万元)" NoNegative="true" ></f:NumberBox>
|
||||
<f:NumberBox runat="server" ID="txtConstructionMoney" Label="施工合同额(万元)" LabelWidth="150px"
|
||||
<f:NumberBox runat="server" ID="txtProjectMoney" Label="<%$ Resources:UiText, T_合同额_万元 %>" NoNegative="true" ></f:NumberBox>
|
||||
<f:NumberBox runat="server" ID="txtConstructionMoney" Label="<%$ Resources:UiText, T_施工合同额_万元 %>" LabelWidth="150px"
|
||||
NoNegative="true" ></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtTelephone" runat="server" Label="项目部电话" MaxLength="50"
|
||||
<f:TextBox ID="txtTelephone" runat="server" Label="<%$ Resources:UiText, T_项目部电话 %>" MaxLength="50"
|
||||
></f:TextBox>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCountry" runat="server" Label="国家" MaxLength="50" ></f:TextBox>
|
||||
<f:TextBox ID="txtCountry" runat="server" Label="<%$ Resources:UiText, T_国家 %>" MaxLength="50" ></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpProvince" runat="server" Label="省份" EnableEdit="true" ShowRedStar="true" Required="true">
|
||||
<f:DropDownList ID="drpProvince" runat="server" Label="<%$ Resources:UiText, T_省份 %>" EnableEdit="true" ShowRedStar="true" Required="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtCity" runat="server" Label="城市" MaxLength="50" LabelWidth="150px"></f:TextBox>
|
||||
<f:TextBox ID="txtCity" runat="server" Label="<%$ Resources:UiText, T_城市 %>" MaxLength="50" LabelWidth="150px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="40% 10% 50%">
|
||||
<Items>
|
||||
<f:TextBox ID="txtMapCoordinates" runat="server" Label="坐标" MaxLength="50"></f:TextBox>
|
||||
<f:TextBox ID="txtMapCoordinates" runat="server" Label="<%$ Resources:UiText, T_坐标 %>" MaxLength="50"></f:TextBox>
|
||||
<f:ContentPanel ID="bottomPanel" RegionPosition="Bottom" ShowBorder="false" ShowHeader="false" EnableCollapse="false" runat="server">
|
||||
<a href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank" >拾取坐标</a>
|
||||
<a href="http://api.map.baidu.com/lbsapi/getpoint/index.html" target="_blank" ><asp:Literal runat="server" Mode="Encode" Text="<%$ Resources:UiText, T_拾取坐标 %>" /></a>
|
||||
</f:ContentPanel>
|
||||
<f:TextBox ID="txtEnglishRemark" runat="server" Label="英文简称" MaxLength="3" Width="300px"></f:TextBox>
|
||||
<f:TextBox ID="txtEnglishRemark" runat="server" Label="<%$ Resources:UiText, T_英文简称 %>" MaxLength="3" Width="300px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
@@ -130,12 +130,12 @@
|
||||
<toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:CheckBox ID="ckIsUpTotalMonth" runat="server" Label="上报月总结" Checked="true" Hidden="true">
|
||||
<f:CheckBox ID="ckIsUpTotalMonth" runat="server" Label="<%$ Resources:UiText, T_上报月总结 %>" Checked="true" Hidden="true">
|
||||
</f:CheckBox>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click" Text="保存">
|
||||
OnClick="btnSave_Click" Text="<%$ Resources:UiText, T_保存 %>">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="<%$ Resources:UiText, T_关闭 %>" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hdCompileMan" runat="server"></f:HiddenField>
|
||||
</Items>
|
||||
|
||||
Reference in New Issue
Block a user