@model CreditTable
@{
ViewBag.Title = "授信 | 编辑";
Layout = "~/Views/Shared/_InfoLayout.cshtml";
var pageObj = new
{
UseClientStockEqvNotional = PS.Config.ErpElement.UseClientStockEqvNotional
};
}
@section CSS{
}
@section JS
{
}
@using (Html.BeginForm("creditEdit", "credit", FormMethod.Post, new { id = "creditEditForm" }))
{
@Html.HiddenFor(model => model.EncryptId)
@if (Model.id == 0)
{
@Html.MyDropdownFor(model => model.ClientId, ClientDataModel.GetAllOpenClient(true), "", false)
}
else
{
@Html.HiddenFor(model => model.ClientId)
}
@Html.MyDecimalFor(model => model.Credit, new { onfocus = "moneyOnFocus()", onblur = "this.value=cc(this.value);" }, !pageObj.UseClientStockEqvNotional)
@if (PS.Config.Company == CompanyEnum.中金)
{
@Html.MyDecimalFor(model => model.PFECredit, new { onkeyup = "changePFECredit()", onfocus = "pfeCreditOnFocus()", onblur = "this.value=cc(this.value);" }, true)
@Html.MyDecimalFor(model => model.IMCredit, new { onkeyup = "changeIMCredit()", onfocus = "imCreditOnFocus()", onblur = "this.value=cc(this.value);" }, true)
@Html.MyDecimalFor(model => model.DeductStockEqvNotional, new { onfocus = "moneyOnFocusDeductStockEqvNotional()", onblur = "this.value=cc(this.value);" }, true)
@Html.MyDecimalFor(model => model.MarginLimit, new { onfocus = "moneyOnFocusMarginLimit()", onblur = "this.value=cc(this.value);" }, true)
}
@Html.MyDecimalFor(model => model.StockEqvNotional, new { onfocus = "moneyOnFocusStockEqvNotional()", onblur = "this.value=cc(this.value);" })
@Html.MyDecimalFor(model => model.AuditCredit, new { onkeyup = "changeAuditCredit()", onfocus = "moneyOnFocus2()", onblur = "this.value=cc(this.value);" }, required: false)
@Html.MyDecimalFor(model => model.AuditStockEqvNotional, new { onkeyup = "changeAuditStockEqvNotional()", onfocus = "moneyOnFocusStockEqvNotional2()", onblur = "this.value=cc(this.value);" }, required: false)
@Html.MyDateFor(model => model.CreditStartDate, true)
@Html.MyDateFor(model => model.CreditDeadLine, true)
@if (PS.Config.ClientElement.CanSelectCreditVariety)
{
@Html.MyDropdownFor(model => model.IsWhitelist, System.Web.Mvc.Html.EnumHelper.GetSelectList(typeof(YLErp.Web.Models.Enum.WhitelistEnum)), new { @id = "" }, "", false)
@Html.MyAceDropdownFor(model => model.VarietyId, varietyController.GetAllvariety(), "", false)
}
else
{
@Html.Hidden("IsWhitelist", 0)
}
@Html.MyTextAreaFor(model => model.Comments, 3, new { maxlength = 50 })
@if(pageObj.UseClientStockEqvNotional){
注:保存时授信额度和名义本金规模应至少填写一项,空白代表不设置.
}
@MyControls.Btn("保存", "savecredit()")
@MyControls.Btn("关闭", "closecreditWindow()")
}