104 lines
3.7 KiB
Plaintext
104 lines
3.7 KiB
Plaintext
@model CreditTable
|
|
@{
|
|
ViewBag.Title = "授信|查看";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section CSS{
|
|
<style>
|
|
.tdRight {
|
|
width: 150px
|
|
}
|
|
</style>
|
|
}
|
|
@section JS{
|
|
<script type="text/javascript">
|
|
function deletecredit(id) {
|
|
main.confirmPost("确定删除吗?", "/credit/Deletecredit", { id: id, d: new Date() }).done(function (data) {
|
|
window.parent.location.reload();
|
|
});
|
|
}
|
|
function submitProcess() {
|
|
var opt = {
|
|
url: "/credit/SubmitProcess",
|
|
async: false,
|
|
data: { creditId: @Model.id },
|
|
success: function (res) {
|
|
if (res.success === true) {
|
|
try {
|
|
main.message(res.msg);
|
|
window.parent.reloadcredit2();
|
|
} catch (e) {
|
|
}
|
|
} else {
|
|
main.message(res.msg);
|
|
}
|
|
},
|
|
error: function (res) {
|
|
main.message('提交失败');
|
|
}
|
|
};
|
|
main.ajax(opt);
|
|
}
|
|
</script>
|
|
}
|
|
|
|
<div class="toolbarDiv">
|
|
|
|
@if (Model.Type == CreditTable.ClientType)
|
|
{
|
|
if (CurUser.客户管理.授信修改)
|
|
{
|
|
@MyControls.Btn("提交授信审批", "submitProcess();", "", "submitProcessBtn")
|
|
}
|
|
@MyControls.Btn("查看客户层次", "window.location.href=('/Client/Clientlevel/?clientid=" + Model.ClientId + "');")
|
|
//客户交易权限
|
|
// @MyControls.Btn("修改", "window.location.href=('/credit/creditEdit/?enid=" + Model.EncryptId + "');")
|
|
}
|
|
else
|
|
{
|
|
if (CurUser.系统管理.交易权限修改)
|
|
{
|
|
@MyControls.Btn("修改", "window.location.href=('/credit/rolecreditEdit/?enid=" + Model.EncryptId + "');")
|
|
@MyControls.Btn("删除", "deletecredit('" + Model.EncryptId + "');")
|
|
}
|
|
}
|
|
|
|
@MyControls.Btn("关闭", "layer.closeMe();")
|
|
</div> @Html.HiddenFor(model => model.id)
|
|
|
|
<div class="yc-panel">
|
|
<table class="table table-bordered">
|
|
@if (Model.Type == CreditTable.ClientType)
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.ClientName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ClientNumber)</tr>
|
|
if (PS.Config.ErpElement.UseClientStockEqvNotional)
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.StockEqvNotional)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.AuditStockEqvNotional)</tr>
|
|
}
|
|
<tr>@Html.MyDisplayFor(m => m.Credit)</tr>
|
|
if (PS.Config.Company == CompanyEnum.中金)
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.PFECredit)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.IMCredit)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.DeductStockEqvNotional)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.MarginLimit)</tr>
|
|
}
|
|
<tr>@Html.MyDisplayFor(m => m.AuditCredit)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.CreditStartDate, Utilities.ShowValidDatetime(Model.CreditStartDate))</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.CreditDeadLine, Utilities.ShowValidDatetime(Model.CreditDeadLine))</tr>
|
|
}
|
|
else
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.RoleName)</tr>
|
|
}
|
|
<tr>@Html.MyDisplayFor(m => m.OptDate, Utilities.ShowValidDatetime(Model.OptDate))</tr>
|
|
@if (!YLErp.PS.Config.Is国泰君安)
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.VarietyName, CreditController.GetWhiteListVarietyNames(Model))</tr>
|
|
}
|
|
<tr>@Html.MyDisplayFor(m => m.Comments)</tr>
|
|
</table>
|
|
</div>
|