Files
zszq-trs/YLErpWeb/Views/EtradingRule/Index.cshtml
T
2024-05-09 14:06:26 +08:00

62 lines
2.5 KiB
Plaintext

@{
ViewBag.Title = "TRS用簿记账户设置";
ViewBag.Menu = "互换簿记预设-TRS用簿记账户设置";
Layout = "~/Views/Shared/_MainLayout.cshtml";
var pageObj = new
{
canEdit = CurUser.互换簿记预设_TRS用簿记账户设置编辑,
canDelete = CurUser.互换簿记预设_TRS用簿记账户设置删除,
};
}
@section JS{
<script>
var page = @Json.Serialize(pageObj);
</script>
<script src="~/Scripts/app/trade/tradeUpload.js?v=2"></script>
<script src="~/Statics/libs/bstable/bootstrap-table.min.js"></script>
<script src="~/Statics/libs/bstable/bootstrap-table-zh-CN.js"></script>
<script src="~/Scripts/app/etradingRule/etradingRuleList.js"></script>
}
<div class="searchdiv">
@if (CurUser.互换簿记预设_TRS用簿记账户设置新增)
{
<button class="btn btn-primary" onclick="showImport()">导入</button>
<button class="btn btn-primary" onclick="Add()">新增</button>
}
<button class="btn btn-primary" onclick="Change()">刷新</button>
</div>
<div class="ui-jqgrid">
<table id="table" data-toggle="table">
<thead>
<tr>
<th data-field="EncryptId" data-visible="false"></th>
<th data-field="BoundSide" data-visible="false"></th>
<th data-field="ClientNumber_0_Name">【0对客】客户名称</th>
<th data-field="AssetAccount_0">【0对客】簿记账户</th>
<th data-field="ClearingAgency_0">【0对客】清算机构</th>
<th data-events="operateEvents" data-formatter="addFunctionAlty">操作</th>
</tr>
</thead>
</table>
</div>
<div id="importRule" style="display:none;">
<form id="ruleUploadForm" method="post" class="yc-panel" onsubmit="return false;" style="padding-bottom:30px;">
<h4 class="mb-4">TRS用簿记账户导入</h4>
<div class="mb-4">
<input type="file" id="openFile" name="file" accept=".xlsx" />
<button type="button" class="btn btn-primary" onclick="importRule()">导入</button>
</div>
<div class="mb-4">
<label>说明:只支持导入.xlsx文件</label>
</div>
</form>
<div class="yc-panel">
<h4 class="mb-3">TRS用簿记账户导入模板下载</h4>
<div class="mb-4">
<a class="btn btn-link" href="/App_Docs/导入模板/TRS用簿记账户导入模板.xlsx" target="_blank">
TRS用簿记账户导入模板下载
</a>
</div>
</div>
</div>