113 lines
3.9 KiB
Plaintext
113 lines
3.9 KiB
Plaintext
@model List<ClientDuty>
|
|
@{
|
|
ViewBag.Title = "机构客户职责联系人信息表 编辑";
|
|
Layout = null;
|
|
}
|
|
|
|
<style>
|
|
#tbodyEditInnerclientduty { background: #e0eaf1; }
|
|
#tbodyEditInnerclientduty .innerInputTr td { padding: 8px; }
|
|
#tbodyEditInnerclientduty .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; }
|
|
#tbodyEditInnerclientduty .innerInputTr th input { background: #e0eaf1; border: 1px solid #00b5f8; }
|
|
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 refreshclientduty_back() {
|
|
window.location.href = window.location.href;
|
|
}
|
|
|
|
function reloadclientduty() {
|
|
refreshclientduty();
|
|
$('#modal-clientdutyEditInner').modal('hide');
|
|
}
|
|
|
|
function startShowclientduty(id) {
|
|
var url = "/clientduty/clientdutyEdit/?enid=" + id;
|
|
main.open("编辑信息", url,
|
|
{
|
|
area: ['700px', '80%'],
|
|
end: function () { refreshclientduty(); }
|
|
});
|
|
}
|
|
|
|
function deleteclientduty(intid) {
|
|
main.confirmPost("确定删除吗?", "/clientduty/Deleteclientduty", { intid: intid }).done(function (data) {
|
|
reloadclientduty();
|
|
});
|
|
}
|
|
</script>
|
|
|
|
<div style="margin-top: 10px;"></div>
|
|
<form id="formEditInnerclientduty">
|
|
<table class="table edittablepop">
|
|
<colgroup>
|
|
<col span="9" width="100" />
|
|
</colgroup>
|
|
<tr>
|
|
<th>姓名</th>
|
|
<th>职责类型</th>
|
|
<th>证件类型</th>
|
|
<th>证件号码</th>
|
|
<th>联系电话</th>
|
|
<th>传真</th>
|
|
<th>电子邮箱</th>
|
|
<th>接收邮件</th>
|
|
<th>联系地址</th>
|
|
<th>有效日期</th>
|
|
@if (!ViewBag.IsOnlyView)
|
|
{
|
|
<th style="text-align:center" colspan="2">操作</th>
|
|
}
|
|
</tr>
|
|
|
|
<tbody id="tbodyEditInnerclientduty">
|
|
@foreach (var data in Model)
|
|
{
|
|
<tr class="innerInputTr">
|
|
<td>@data.ContactName</td>
|
|
<td>@data.ContactType</td>
|
|
<td>@YLErp.Web.Controllers.clientdutyController.GetIdCardTypeName(data.IdCardType)</td>
|
|
<td>@data.IdCardNo</td>
|
|
<td>
|
|
@if (!string.IsNullOrWhiteSpace(data.PhoneNumber))
|
|
{
|
|
foreach (var number in data.PhoneNumber.Split(','))
|
|
{
|
|
<span>@number</span><br />
|
|
}
|
|
}
|
|
</td>
|
|
<td>@data.Fax</td>
|
|
<td>@data.Email</td>
|
|
@if (data.IsReceiveEmail == 1)
|
|
{
|
|
<td>是</td>
|
|
}
|
|
else
|
|
{
|
|
<td>否</td>
|
|
}
|
|
<td>@data.Address</td>
|
|
<td>@(data.DeadLine?.ToString("yyyy-MM-dd"))</td>
|
|
@if (!ViewBag.IsOnlyView)
|
|
{
|
|
<th style="text-align:right">@MyControls.Btn("编辑", string.Format("startShowclientduty('{0}')", data.EncryptId))</th>
|
|
<th>@MyControls.Btn("删除", string.Format("deleteclientduty('{0}')", data.id))</th>
|
|
}
|
|
</tr>
|
|
}
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<input type="hidden" />
|
|
<input type="hidden" id="dataCount" name="dataCount" value="@Model.Count" />
|
|
</form> |