74 lines
2.3 KiB
Plaintext
74 lines
2.3 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
<script type="text/javascript">
|
|
var tradeIds = "@ViewBag.TradeIds";
|
|
var tradeIdArr = tradeIds.split(',');
|
|
|
|
$(function () {
|
|
$("#labCount").text(tradeIdArr.length);
|
|
});
|
|
|
|
function UpdateAssetunit() {
|
|
|
|
var data = {
|
|
tradeIds: tradeIdArr,
|
|
AssetBookId: $("#AssetunitSelect").val(),
|
|
IsValid: $("#IsValid").val()
|
|
};
|
|
var meg = "";
|
|
if ($("#IsValid").val() && $("#AssetunitSelect").val() == "0") {
|
|
meg = `<div>当前调整项:<label style="color:red">是否生效</label></div>`;
|
|
}
|
|
else {
|
|
meg = `<div>当前调整项:<label style="color:red">簿记账户,是否生效</label></div>`;
|
|
}
|
|
|
|
main.confirm("是否对当前勾选的记录进行批量调整?" + meg,
|
|
function () {
|
|
main.post("/ExchangeTrade/BatchTradeAdjust", data).done(
|
|
function (res) {
|
|
window.parent.reloadtrade();
|
|
layer.closeMe();
|
|
});
|
|
}, null, "提示");
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="yc-panel">
|
|
<div class="form-group col-md-6">
|
|
<label style="float:left">已勾选<label id="labCount" style="color:red"></label>条</label>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label class="formlabel" for="AssetunitSelect">簿记账户</label>
|
|
<select id="AssetunitSelect" class="chosen-select">
|
|
<option value="0" checked> --- </option>
|
|
@foreach (var item in AssetunitController.GetClientassetunit())
|
|
{
|
|
<option value="@(item.Value)">@(item.Text)</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
<div class="form-group col-md-6">
|
|
<label class="formlabel" for="IsValid">是否有效</label>
|
|
<select id="IsValid" class="chosen-select">
|
|
<option value="true" checked>有效</option>
|
|
<option value="false" >无效</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<b id="pid" style="margin-left: 15px; color: red;">注意:历史调仓需要收盘</b>
|
|
<div class="form-buttons" style="text-align: right;margin-right:5px;">
|
|
@MyControls.Btn("保存", "UpdateAssetunit()")
|
|
@MyControls.Btn("关闭", "layer.closeMe()")
|
|
</div>
|
|
|
|
|