69 lines
2.8 KiB
Plaintext
69 lines
2.8 KiB
Plaintext
@model YLErp.Modules.BasicDataModule.ExchangeAccountResult
|
|
|
|
@{
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section JS{
|
|
<script type="text/javascript">
|
|
function deleteexchange_account(id) {
|
|
if (confirm("确定删除吗?")) {
|
|
$.ajax({
|
|
type: "Post",
|
|
url: "/exchange_account/Deleteexchange_account",
|
|
data: { id: id, d: new Date() },
|
|
success: function (data) {
|
|
alert(data.msg);
|
|
if (data.success == true) {
|
|
window.parent.location = window.parent.location;
|
|
window.close();
|
|
}
|
|
},
|
|
error: function (msg) {
|
|
alert("error:" + msg);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function closeexchange_accountWindow() {
|
|
try { window.parent.layer.closeAll(); } catch (e) { }
|
|
try { if (window.parent) window.parent.reloadexchange_account(); } catch (e) { }
|
|
try { window.parent.$('#modal-editexchange_account .close').click(); } catch (e) { }
|
|
try { if (window.parent.location.href.indexOf("exchange_accountEdit") >= 0) { window.close(); } } catch (e) { }
|
|
}
|
|
|
|
</script>
|
|
}
|
|
|
|
<div class="toolbarDiv">
|
|
@if (CurUser.系统管理.对冲账户)
|
|
{
|
|
@MyControls.Btn("修改", "window.location.href=('/exchange_account/exchange_accountEdit/?enid=" + Model.ExchangeAccount.EncryptId + "');")
|
|
@MyControls.Btn("删除", "deleteexchange_account('" + Model.ExchangeAccount.EncryptId + "');")
|
|
}
|
|
|
|
@MyControls.Btn("关闭", "closeexchange_accountWindow();")
|
|
</div> @Html.HiddenFor(model => model.ExchangeAccount.id)
|
|
|
|
<div class="yc-panel">
|
|
<table class="table table-bordered">
|
|
<colgroup>
|
|
<col span="1" width="120" />
|
|
</colgroup>
|
|
<tbody>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.AccountName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.AccountCode)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.AccountTypeName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.TraderNames)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.StatusCN)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.InitialCost)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.Total)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.Available)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.Description)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.TradingBook.Name)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ExchangeAccount.VarietyNames)</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|