Files
zszq-trs/YLErpWeb/Views/supervise_report/risk_check_report.cshtml
T
2024-05-09 14:06:26 +08:00

71 lines
2.0 KiB
Plaintext

@using YLErp.Web.Controllers
@{
ViewBag.Title = "风险自查报表";
Layout = "~/Views/Shared/_MainLayout.cshtml";
var valueDate = ViewBag.valueDate;
}
@section CSS{
<style>
#DateValueDate {
width: 152px !important;
font-size: 1rem !important;
}
</style>
}
@section JS{
<script type="text/javascript">
var g_grid={};
var sysdate = '@valueDate';
$(function () {
$("#DateValueDate").datepicker({
changeMonth: true, changeYear: true, showButtonPanel: true, showOtherMonths: true, selectOtherMonths: true,
});
$("#DateValueDate").val(sysdate);
try {
SetAceDropDown();
} catch (e) {
//
}
});
function sendRiskCheckReport() {
if ($("#DateValueDate").val() == null || $("#DateValueDate").val() == "" || $("#DateValueDate").val() == undefined) {
alert("请选择查看日期!");
return;
}
var option = {
url: "/supervise_report/SendRiskCheckReport",
type: "POST",
data: { ValueDate: $("#DateValueDate").val(), AssetIds: $("#AssetId").val() },
dataType: "json", //格式是html
success: function (res) {
window.open(res.obj);
},
error: function (msg) {
main.alert("后台运行错误:" + msg.msg);
}
};
main.ajax(option);
}
</script>
}
<style>
.no-skin {
position: static !important;
}
</style>
<div class="searchdiv">
@Html.SearchDate("ValueDate", "查看日期")
@if (YLErp.PS.Config.Is渤海)
{
@Html.MyAceDropdownInput("AssetId", "簿记账户", AssetunitController.GetClientassetunit())
}
@MyControls.Btn("生成风险自查报告", "sendRiskCheckReport()")
</div>
@Html.Raw(JqGridSimple.OutTable())