73 lines
2.7 KiB
Plaintext
73 lines
2.7 KiB
Plaintext
@model ClientRating
|
|
@{
|
|
ViewBag.Title = "客户评级|查看";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section CSS{
|
|
<link href="~/Style/Css/creditView.css" rel="stylesheet" />
|
|
}
|
|
@section JS{
|
|
<script type="text/javascript">
|
|
function deletecredit(id) {
|
|
main.confirmPost("确定删除吗?", "/client_rating/delete", { id: id, d: new Date() }).done(function (data) {
|
|
alert(data.msg);
|
|
window.parent.location.reload();
|
|
});
|
|
}
|
|
function submitProcess() {
|
|
var opt = {
|
|
url: "/client_rating/SubmitProcess",
|
|
async: false,
|
|
data: { Client_RatingId: @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 (CurUser.客户管理.资信评级修改)
|
|
{
|
|
@MyControls.Btn("提交评级审批", "submitProcess();", "", "submitProcessBtn")
|
|
}
|
|
@MyControls.Btn("查看客户层次", "window.location.href=('/Client/Clientlevel/?clientid=" + Model.ClientId + "');")
|
|
|
|
@if (CurUser.客户管理.资信评级修改)
|
|
{
|
|
@MyControls.Btn("修改", "window.location.href=('/client_rating/Edit/?enid=" + Model.EncryptId + "');")
|
|
}
|
|
@MyControls.Btn("关闭", "layer.closeMe();")
|
|
</div> @Html.HiddenFor(model => model.id)
|
|
|
|
<div class="ui-corner-all">
|
|
<table class="table table-bordered">
|
|
<tr>@Html.MyDisplayFor(m => m.ClientName)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.ClientNumber)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.CreditRatingStr)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.RatingStartDate, Utilities.ShowValidDatetime(Model.RatingStartDate))</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.RatingDeadLine, Utilities.ShowValidDatetime(Model.RatingDeadLine))</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.OptDate, Model.OptDate?.ToString("yyyy-MM-dd HH:mm:ss"))</tr>
|
|
@if (PS.Config.Is浙期)
|
|
{
|
|
<tr>@Html.MyDisplayFor(m => m.RatingAccording)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.RatingPersonnel)</tr>
|
|
<tr>@Html.MyDisplayFor(m => m.CheckPersonnel)</tr>
|
|
}
|
|
<tr>@Html.MyDisplayFor(m => m.Comments)</tr>
|
|
</table>
|
|
</div>
|