MVC 5表单转换率

时间:2017-05-18 08:57:47

标签: asp.net-mvc

我正在开发一个带有一些数据输入表单的应用程序。

有4个字段,用户必须以美元引入值,并且我希望显示(在其他空字段中)自动转换为本地货币。

例如,用户以美元引入一个值,并自动显示在其旁边的字段中显示的元数值。

出于这个目的,我在管理区域创建了一个特定的菜单,用户可以通过这种特权来定义按年份和国家/地区的转化率(例如:年份:2017年 - 国家/地区:中国 - 转换率:6.84)。

在简历中,我想要的是将转换率与表单中的字段相关联,以便在填写表单时自动显示。

我该怎么做?

提前致谢。

image

image

@Html.LabelFor(model => model.NP_REVENUE, "CONTRACT REVENUE (USD)", htmlAttributes: new { @class = "control-label col-md-4", style = "display:inline;" })
@Html.EditorFor(model => model.NP_REVENUE, new { htmlAttributes = new { @class = "form-control" } })

@Html.LabelFor(model => model.NP_REVENUE, "CONTRACT REVENUE (LOCAL)", htmlAttributes: new { @class = "control-label col-md-4", style = "display:inline;" })
@Html.EditorFor(model => model.NP_REVENUE, new { htmlAttributes = new { @class = "form-control" } })

0 个答案:

没有答案