103 lines
4.1 KiB
Plaintext
103 lines
4.1 KiB
Plaintext
|
|
@model ObservationDatesModel
|
|
@{
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
|
|
@section CSS{
|
|
<style>
|
|
.div-group {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
#ObservationDates {
|
|
width: 360px;
|
|
min-height: 180px;
|
|
}
|
|
|
|
.editObsBtn {
|
|
float: right;
|
|
margin-right: 36px;
|
|
}
|
|
</style>
|
|
}
|
|
|
|
@section JS
|
|
{
|
|
<script src="~/Statics/libs/input/cleave.min.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
<script src="~/Scripts/app/trade/tradeAveragePriceDates.js?v=@(HtmlUtil.JsVersion)"></script>
|
|
<script>
|
|
var model = @Html.JsonSerialize(Model);
|
|
</script>
|
|
}
|
|
|
|
<html>
|
|
<body>
|
|
<div class="yc-panel">
|
|
<div class="div-group">
|
|
<label style="width:90px;">均价起算日期:</label>
|
|
<input type="date" id="startTime" name="startTime" value="@Model.startTime.ToString("yyyy-MM-dd")" />
|
|
</div>
|
|
<div class="div-group">
|
|
<label style="width:90px;">日期间隔:</label>
|
|
<input type="text" id="ObservationNum" value="@Model.ObservationNum" />
|
|
<select id="ObservationUnit" style="width: 40px;">
|
|
@foreach (var item in GlobalData.AllTimeUnits())
|
|
{
|
|
<option value="@item.Value" @(Model.ObservationUnit == item.Value ? "selected='selected'" : "" )>@item.Text</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
<div class="div-group">
|
|
<button class="btn btn-sm btn-outline-danger mt-2" onclick="GetObservationDates()">生成结算日</button>
|
|
<button class="btn btn-sm btn-outline-danger mt-2 editObsBtn" onclick="SetObservationDates()">编辑结算日</button>
|
|
</div>
|
|
<div class="div-group">
|
|
<div id="divItems" class="searchdiv" style="text-align:center;"></div>
|
|
<span>备注</span>
|
|
<textarea id='Comments' rows='2' name='Comments' class="text-box w-100 h-auto text-left">@Model.Comments</textarea>
|
|
</div>
|
|
<div class="div-group" style="text-align:center;">
|
|
<button class="btn btn-primary" onclick="Confirm()">确定</button>
|
|
<button class="btn btn-primary" onclick="closeParentWindow()">取消</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="div-group" style="margin: 1rem;">
|
|
<span>说明:</span><br />
|
|
<span>1. 未设置均价结算日,表示不使用均价方式进行结算</span><br />
|
|
<span>2. 备注信息用于观察日规律的描述,会在交易报送等其他相关页面需要展示观察日列表时展示.</span><br />
|
|
<span> 展示逻辑为:</span><br />
|
|
<span> 未设置观察日列表->每日观察</span><br />
|
|
<span> 已设置观察日列表;未设置备注->展示观察日列表</span><br />
|
|
<span> 已设置观察日列表;已设置备注->展示备注内容</span>
|
|
</div>
|
|
|
|
<input type="hidden" id="endTime" value="@Model.endTime" />
|
|
<input type="hidden" id="btnId" value="@Model.BtnId" />
|
|
<input type="hidden" id="tradeDate" value="@Model.tradeDate" />
|
|
<input type="hidden" id="AlignEnd" value="true" />
|
|
<input type="hidden" id="ObservationHolidayType" value="@Model.ObservationHolidayType" />
|
|
|
|
<div class="modal fade" id="myModal" data-backdrop="static">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<!-- 模态框头部 -->
|
|
<div class="modal-header">
|
|
<h4 class="modal-title">详情设置</h4>
|
|
<button type="button" class="close" v-on:click="closeModal()">×</button>
|
|
</div>
|
|
<!-- 模态框主体 -->
|
|
<div class="modal-body">
|
|
<textarea v-model="observationDates" style="width: 100%; min-height: 300px;" v-on:paste="pasteMe($event)"></textarea>
|
|
</div>
|
|
<!-- 模态框底部 -->
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn" v-on:click="saveModal()">保存</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|