73 lines
2.8 KiB
Plaintext
73 lines
2.8 KiB
Plaintext
@model CreditFromClient
|
|
@{
|
|
ViewBag.Title = "授信 | 编辑";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
var pageObj = new
|
|
{
|
|
model = Model,
|
|
clients = JsDataModel.GetClients()
|
|
};
|
|
}
|
|
|
|
@section CSS{
|
|
<style>
|
|
.text-box { width: 350px !important; }
|
|
span.chinese {display:block;padding-left:120px; }
|
|
</style>
|
|
}
|
|
@section JS
|
|
{
|
|
<script type="text/javascript">
|
|
const pageObj = @Json.Serialize(pageObj);
|
|
</script>
|
|
<script src="~/Scripts/app/credit/creditFromClientEdit.js"></script>
|
|
}
|
|
|
|
<form action="/credit/creditfromclientEdit" id="creditEditForm" method="post" onsubmit="return false;">
|
|
<div class="form-layout">
|
|
<input type="hidden" value="@Model.id" name="id" id="id" />
|
|
<input type="hidden" value="@Model.EncryptId" name="EncryptId" id="EncryptId" />
|
|
<input type="hidden" value="@CreditTable.ClientType" name="Type" />
|
|
|
|
<div class="form-group">
|
|
<label class='formlabel'>客户名称</label>
|
|
@if (Model.id == 0)
|
|
{
|
|
<input type="text" value="@Model.ClientId" name="ClientId" id="ClientId" class="text-box" />
|
|
<span style='color:red'>*</span>
|
|
}
|
|
else
|
|
{
|
|
<label class="d-inline-block text-box">@(Model.ClientName)</label>
|
|
<input type="hidden" value="@Model.ClientId" name="ClientId" />
|
|
}
|
|
</div>
|
|
|
|
<div class='form-group'>
|
|
<label class='formlabel'>授信额度</label>
|
|
<input type="text" name="Credit" id="Credit" value="@(Model.Credit.ToString("F2"))" class="text-box" />
|
|
<span style='color:red'>*</span>
|
|
</div>
|
|
|
|
<div class='form-group'>
|
|
<label class='formlabel'>授信起始日</label>
|
|
<input id='CreditStartDate' class='text-box datepicker' type='text' value='@HtmlUtil.DateStr(Model.CreditStartDate)' name='CreditStartDate' />
|
|
<span style='color:red'>*</span>
|
|
</div>
|
|
|
|
<div class='form-group'>
|
|
<label class='formlabel'>授信到期日</label>
|
|
<input id='CreditDeadLine' class='text-box datepicker' type='text' value='@HtmlUtil.DateStr(Model.CreditDeadLine)' name='CreditDeadLine' />
|
|
<span style='color:red'>*</span>
|
|
</div>
|
|
|
|
<div class='form-group'>
|
|
<label class='formlabel'>说明</label>
|
|
<textarea id='Comments' class='text-box' maxlength="50" rows='3' name='Comments'>@(Model.Comments)</textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-buttons">
|
|
<button class="btn btn-primary" type="button" onclick="saveCredit()">保存</button>
|
|
<button class="btn btn-primary" type="button" onclick="layer.closeMe()">关闭</button>
|
|
</div>
|
|
</form> |