106 lines
4.1 KiB
Plaintext
106 lines
4.1 KiB
Plaintext
@model List<ClientBankCard>
|
|
@{
|
|
ViewBag.Title = "银行帐号 编辑";
|
|
Layout = null;
|
|
}
|
|
|
|
@section CSS{
|
|
<style>
|
|
#tbodyEditInnerbankcard .innerInputTr td:nth-child(2) { color: #ff6462; }
|
|
#tbodyEditInnerbankcard .innerInputTr th input { min-width: 62px !important; min-height: 28px !important; background: #e0eaf1 !important; border: 1px solid #00b5f8 !important; border-radius: 5px !important; text-shadow: none !important; }
|
|
#info, #formEditInnerbankcard .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th { padding: 8px 0px 8px 0px; border-top: none; }
|
|
#formEditInnerbankcard { width: 1231px; min-height: 100px !important; }
|
|
#tbodyEditInnerbankcard { background: #e0eaf1; min-height: 100px; }
|
|
.edittablepop th, .edittablepop td { text-align: center; }
|
|
table th { color: #17A2B8; }
|
|
.edittablepop { background: #e0eaf1; }
|
|
</style>
|
|
}
|
|
<script type="text/javascript">
|
|
var g_grid = {};
|
|
$(function () {
|
|
$(".datepicker").datepicker();
|
|
$(".innerInputTr").find("input:text").prop("readonly", true);
|
|
});
|
|
|
|
function refreshbankcard_back() {
|
|
window.location.href = window.location.href;
|
|
}
|
|
|
|
function reloadbankcard() {
|
|
refreshbankcard();
|
|
$('#modal-bankcardEditInner').modal('hide');
|
|
}
|
|
function startShowbankcard(id) {
|
|
var srcUrl = "/bankcard/bankcardEdit/?enid=" + id;
|
|
main.open("编辑银行卡", srcUrl,
|
|
{
|
|
area: ['700px', '80%'],
|
|
end: function () { refreshbankcard(); }
|
|
});
|
|
}
|
|
|
|
function deletebankcard(id) {
|
|
//申万所有信息修改均需要重新审批,故而不需要提示
|
|
if (("@ViewBag.ProcessStatus" == "已开户" || "@ViewBag.ProcessStatus" == "审批中") && @ViewBag.ClientApprovalProcessCount > 0 && "@YLErp.PS.Config.Is申万" != "True") {
|
|
main.confirmPost("删除客户银行卡,客户需要重新审批,确定作废吗?", "/bankcard/bankcardEditJson", { id: id, ValidState: "InValid" }).done(function (res) {
|
|
reloadbankcard();
|
|
});
|
|
}
|
|
else {
|
|
main.confirmPost("确定作废吗?", "/bankcard/bankcardEditJson", { id: id, ValidState: "InValid" }).done(function (res) {
|
|
reloadbankcard();
|
|
});
|
|
}
|
|
}
|
|
function closebankcardWindow() {
|
|
try { window.parent.$('#modal-editbankcard .close').click(); } catch (e) { }
|
|
try { if (window.parent.location.href.indexOf("bankcardEdit") >= 0) { window.close(); } } catch (e) { }
|
|
}
|
|
|
|
</script>
|
|
|
|
<div style="margin-top: 10px;"></div>
|
|
<form id="formEditInnerbankcard">
|
|
<table class="table edittablepop">
|
|
<tr>
|
|
<th>开户行</th>
|
|
<th>账号</th>
|
|
<th>大额行号</th>
|
|
<th>户名</th>
|
|
<th>是否有效</th>
|
|
<th>操作者</th>
|
|
<th>备注</th>
|
|
@if (!ViewBag.IsOnlyView)
|
|
{
|
|
<th>编辑</th>
|
|
<th>删除</th>
|
|
}
|
|
</tr>
|
|
|
|
<tbody id="tbodyEditInnerbankcard">
|
|
@foreach (var data in Model)
|
|
{
|
|
<tr class="innerInputTr">
|
|
<td>@data.Bank</td>
|
|
<td class="text-red">@data.Card</td>
|
|
<td>@data.Payment</td>
|
|
<td>@data.ClientName</td>
|
|
<td>@(data.ValidState == "InValid" ? "无效" : "有效")</td>
|
|
<td>@data.OptName</td>
|
|
<td>@data.Comments</td>
|
|
@if (!ViewBag.IsOnlyView)
|
|
{
|
|
<th>@MyControls.Btn("编辑", string.Format("startShowbankcard('{0}')", data.EncryptId))</th>
|
|
<th>
|
|
@MyControls.Btn("删除", string.Format("deletebankcard('{0}')", data.id))
|
|
</th>
|
|
}
|
|
</tr>
|
|
}
|
|
|
|
</tbody>
|
|
</table>
|
|
<input type="hidden" />
|
|
<input type="hidden" id="dataCount" name="dataCount" value="@Model.Count" />
|
|
</form> |