78 lines
4.0 KiB
Plaintext
78 lines
4.0 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
|
|
{
|
|
curDate = valuedateBLL.ValueDate.ToString("yyyy-MM-dd"),
|
|
selectConfirmationBookTemplate = GlobalConfig.SelectConfirmationBookTemplate,
|
|
templateNames = ViewBag.TemplateNames,
|
|
ConfirmBookStampStatus = PS.Config.ErpElement.ConfirmBookStampStatus,
|
|
//初始化时使用空页面(清楚预置查询条件及初始不加载数据)
|
|
initEmptyView = YLErp.PS.Config.Company == YLErp.Configuration.CompanyEnum.弘业,
|
|
isZhongjin = YLErp.PS.Config.Company == CompanyEnum.中金,
|
|
IsAutoSealAndUploadFiles = YLErp.PS.GetErpConfig().IsAutoSealAndUploadFiles,
|
|
isWuChan = YLErp.PS.Config.Company == YLErp.Configuration.CompanyEnum.物产中大,
|
|
IsZheQi = PS.Config.Is浙期,
|
|
IsAutoSealGeneratedBook = YLErp.PS.GetErpConfig().IsAutoSealAfterGeneratedBook
|
|
};
|
|
var tradeTypes = ConsTrade.AllTradeTypes.Except(new List<string> { "场内期权", "商品期货", "股票","信用债" }).Concat(new List<string> { "黑箱结构" });
|
|
}
|
|
@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/tradeEndConfirmList.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(tradeTypes, 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.IsAutoSealGeneratedBook ? "批量生成确认书并用印": "批量生成确认书", "GenetateEndBillByReqDate()")
|
|
@MyControls.Btn("批量发送确认书", "SendEmailEitherReport()")
|
|
@MyControls.Btn("批量下载确认书", "BatchDownLoadDoc()")
|
|
@if(YLErp.PS.Config.Company == CompanyEnum.中金 && CurUser.结算管理_客户确认书模板设置) {
|
|
@MyControls.Btn("设置客户确认书模板", "ConfirmTemplateChoose()")
|
|
}
|
|
@if (pageObj.IsAutoSealAndUploadFiles && !pageObj.IsAutoSealGeneratedBook)
|
|
{
|
|
@MyControls.Btn("批量确认书用印", "BatchSealContracts()")
|
|
}
|
|
</div>
|
|
@Html.Raw(JqGridSimple.OutTable())
|
|
|
|
@await Html.PartialAsync("/Views/Common/_chooseContractType.cshtml", "sendReport()") |