61 lines
2.0 KiB
Plaintext
61 lines
2.0 KiB
Plaintext
@{
|
|
ViewBag.Title = "互换交易流水 | 批量修改汇率";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section CSS{
|
|
<style>
|
|
</style>
|
|
}
|
|
@section JS
|
|
{
|
|
<script type="text/javascript">
|
|
function saveTradeFlow() {
|
|
if (!$('#CurrencyRate').val().trim()) {
|
|
main.alert("汇率 必须填写");
|
|
return false;
|
|
}
|
|
|
|
main.confirm("确认为所有勾选的交易批量修改汇率?",
|
|
function () {
|
|
var url = "/swapTrade/QueryFlowMoreModifyRate?ids=" + $("#id").val() + "&CurrencyRate=" + $('#CurrencyRate').val();
|
|
main.post(url).done(function (data) {
|
|
if (!data.success) {
|
|
main.message(data.msg);
|
|
return;
|
|
} else {
|
|
window.parent.showmiddlemessage("成功修改汇率");
|
|
}
|
|
window.parent.reloadData();
|
|
window.parent.layer.closeAll();
|
|
});
|
|
}
|
|
);
|
|
}
|
|
function closeWindow() {
|
|
try {
|
|
window.parent.layer.closeAll();
|
|
} catch (e) {
|
|
}
|
|
}
|
|
</script>
|
|
}
|
|
|
|
<div class="form-layout" style="width: 570px;">
|
|
<input type="hidden" value="@ViewBag.ids" name="id" id="id" />
|
|
<div class="col-md-12">
|
|
<label class="formlabel">汇率</label>
|
|
<input type="text" class="form-input" id="CurrencyRate" />
|
|
</div>
|
|
<div>
|
|
<label style="font-size:12px; color: red ">提示:</label>
|
|
<br />
|
|
<span style="font-size:12px;color:red"> 共勾选 @ViewBag.count 条</span>
|
|
<br />
|
|
<span style="font-size:12px;color:red"> 交易编号: @ViewBag.tradeNumbers</span>
|
|
</div>
|
|
</div>
|
|
<div class="form-buttons">
|
|
@MyControls.Btn("保存", "saveTradeFlow()")
|
|
@MyControls.Btn("关闭", "closeWindow()")
|
|
</div>
|