83 lines
2.6 KiB
Plaintext
83 lines
2.6 KiB
Plaintext
@model List<Currency>
|
|
@{
|
|
ViewBag.Title = "设置货币";
|
|
Layout = "~/Views/Shared/_MainLayout.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
function currencyAdd() {
|
|
var url = "/Currency/currencyEdit";
|
|
main.infopage("新增货币", url, { area: ['550px', '450px'] });
|
|
}
|
|
|
|
function currencyEdit(code) {
|
|
{ }
|
|
var url = "/Currency/currencyEdit?currencyCode=" + code;
|
|
main.infopage("修改货币", url, { area: ['550px', '450px'] });
|
|
}
|
|
|
|
function currencyDelete(code) {
|
|
var url = "/Currency/currencyDelete?currencyCode=" + code;
|
|
main.post(url).done(function (res) {
|
|
reload();
|
|
});
|
|
}
|
|
|
|
function reload() {
|
|
window.location.replace("/Currency/setCurrency");
|
|
}
|
|
</script>
|
|
<div class="searchdiv">
|
|
@if (CurUser.基础参数管理.设置货币修改)
|
|
{
|
|
@MyControls.Btn("新增", "currencyAdd()")
|
|
}
|
|
</div>
|
|
<div>
|
|
<table class="table">
|
|
<colgroup>
|
|
<col span="1" width="100" />
|
|
<col span="1" width="150" />
|
|
<col span="1" width="100" />
|
|
<col span="1" width="100" />
|
|
<col span="1" width="100" />
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th>货币代码</th>
|
|
<th>货币名称</th>
|
|
<th>货币单位</th>
|
|
<th>货币符号</th>
|
|
<th>生效日期</th>
|
|
<th class="text-left">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>@item.CurrencyCode</td>
|
|
<td>@item.CurrencyName</td>
|
|
<td>@item.CurrencyUnit</td>
|
|
<td>@item.CurrencySymbol</td>
|
|
<td>@(item.StartDate.OtcFormatDate())</td>
|
|
<td class="text-left">
|
|
@if (CurUser.基础参数管理.设置货币修改)
|
|
{
|
|
@MyControls.Btn("修改", $"currencyEdit('{item.CurrencyCode}')")
|
|
if (PS.Config.Company == CompanyEnum.中金)
|
|
{
|
|
@MyControls.Btn("删除", $"currencyDelete('{item.CurrencyCode}')")
|
|
}
|
|
@*@MyControls.Btn("删除", $"currencyDelete('{item.CurrencyCode}')")*@
|
|
}
|
|
</td>
|
|
</tr>
|
|
}
|
|
<tr>
|
|
<td colspan="6"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|