81 lines
3.9 KiB
Plaintext
81 lines
3.9 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "提前终止报告";
|
|
Layout = "~/Views/Shared/_MainLayout.cshtml";
|
|
|
|
var generateAmendDoc = PS.Config.TradeElement.IsGenerateAmendDoc;
|
|
var needSendChangeEmail = PS.Config.TradeElement.IsAmendableAfterConfirm && PS.Config.TradeElement.IsGenerateAmendDoc;
|
|
var pageObj = new
|
|
{
|
|
IsHongYuan = PS.Config.Is宏源,
|
|
curDate = valuedateBLL.ValueDate.ToString("yyyy-MM-dd"),
|
|
ConfirmBookStampStatus = PS.Config.ErpElement.ConfirmBookStampStatus,
|
|
templateNames = ViewBag.TemplateNames ?? new object[0],
|
|
selectConfirmationBookTemplate = GlobalConfig.SelectConfirmationBookTemplate,
|
|
//初始化时使用空页面(清楚预置查询条件及初始不加载数据)
|
|
initEmptyView = YLErp.PS.Config.Company == YLErp.Configuration.CompanyEnum.弘业,
|
|
IsAutoSealAndUploadFiles = YLErp.PS.GetErpConfig().IsAutoSealAndUploadFiles,
|
|
IsZheQi = PS.Config.Is浙期,
|
|
IsAutoSealAfterGeneratedBook = YLErp.PS.GetErpConfig().IsAutoSealAfterGeneratedBook
|
|
};
|
|
}
|
|
@section CSS{
|
|
<style>
|
|
table input[type=text][disabled] {border: none;background-color: transparent !important;text-align: left;}
|
|
.ui-pg-button:hover { border: none !important; background: none !important; }
|
|
</style>
|
|
}
|
|
@section JS{
|
|
<script>
|
|
const pageData = @Json.Serialize(pageObj);
|
|
</script>
|
|
<script src="~/Scripts/app/tradeHelper.js?v=@HtmlUtil.JsVersion"></script>
|
|
<script src="~/Scripts/app/trade/tradeDayConfirmList.js?v=@HtmlUtil.JsVersion"></script>
|
|
}
|
|
|
|
<div class="searchdiv">
|
|
@Html.ShortInput("TradeNumber", "交易编号")
|
|
@Html.MyAceDropdownInput("AssetId", "簿记账户", AssetunitController.GetClientassetunit())
|
|
@Html.MyAceDropdownInput("GroupId", "簿记账户组", AssetUnitModel.GetAllAssetUnitGroupItem())
|
|
@Html.MyAceDropdownInput("ClientId", "客户名称", ClientDataModel.GetAllClient())
|
|
|
|
@Html.MyAceDropdownInput("TraderName", "交易员", GlobalData.GetAllTrader())
|
|
@Html.MyAceDropdownInput("TradeTypes", "结构类型", GlobalData.GetTradeTypes(ConsTrade.AllTradeTypes, true))
|
|
@if (!PS.Config.TradeElement.IsSingleExecutionTemplate)
|
|
{
|
|
@Html.MyAceDropdownInput("TradeStatus", "交易状态", GlobalData.GetSelectItems(new List<string> { ConsTrade.已平仓, ConsTrade.已执行 }), true)
|
|
}
|
|
<div class="search-group">
|
|
<span class="search-label">标的代码</span>
|
|
<select class="" data-placeholder="请选择 标的代码" id="UnderlyingId" name="UnderlyingId" multiple></select>
|
|
</div>
|
|
@Html.MyAceDropdownInput2("BuySell", "交易方向", ConsTrade.BuySellType.GetSelectItems())
|
|
@Html.SearchDateRange("StartDate", "开始日期")
|
|
@Html.MyAceDropdownInput2("ExerciseMode", "行权方式", ConsTrade.ExerciseType.GetSelectItems())
|
|
@Html.SearchDateRange("ExerciseDate", "期权到期日")
|
|
@Html.SearchDateRange("UnWindDate", "实际终止日")
|
|
@if (pageObj.IsAutoSealAndUploadFiles){
|
|
@Html.MyAceDropdownInput("SealResults", "用印结果", GlobalData.GetSealResultItems())
|
|
@Html.SearchDateRange("SealDate", "用印日期")
|
|
}
|
|
@Html.ShortInput("Comments", "备注")
|
|
@MyControls.SearchBtn()
|
|
@MyControls.Btn(pageObj.IsAutoSealAndUploadFiles && pageObj.IsAutoSealAfterGeneratedBook ? "生成提前终止确认书并用印" : "生成提前终止确认书", "generateUnwindReport()")
|
|
@MyControls.Btn("发送提前终止确认书", "SendEmailUnwindReport()")
|
|
@MyControls.Btn("批量下载提前终止确认书", "downloadUnwindReports()")
|
|
@if (pageObj.IsAutoSealAndUploadFiles && !pageObj.IsAutoSealAfterGeneratedBook)
|
|
{
|
|
@MyControls.Btn("批量确认书用印", "BatchSealContracts()")
|
|
}
|
|
</div>
|
|
@Html.Raw(JqGridSimple.OutTable())
|
|
|
|
|
|
@if (PS.Config.IsGuoJun)
|
|
{
|
|
@await Html.PartialAsync("/Views/Common/_chooseContractType.cshtml", "sendReportGuojun()")
|
|
}
|
|
else
|
|
{
|
|
@await Html.PartialAsync("/Views/Common/_chooseContractType.cshtml", "sendReport()")
|
|
} |