@model DTO.AdmHoldPhoneDTO;
|
@using DTO;
|
@using zhengcaioa.Models;
|
@{
|
//.Select(x => new { code = x.CodeSn, label = x.Comments })
|
|
List<PltUserDTO> users = ViewData["users"] as List<PltUserDTO>;
|
List<SysCodeDtl> LineType = ViewData["LineType"] as List<SysCodeDtl>;
|
List<SysCodeDtl> Intention = ViewData["Intention"] as List<SysCodeDtl>;
|
}
|
@{
|
Layout = null;
|
}
|
<!DOCTYPE html>
|
<html>
|
<head>
|
<meta charset="utf-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
<meta name="description" content="">
|
<meta name="author" content="ThemeBucket">
|
<title>@(SiteConfig.SiteName)</title>
|
<link href="~/css/bootstrap.min.css" rel="stylesheet">
|
<link href="~/css/font-awesome.min.css" rel="stylesheet">
|
<link href="~/css/animate.min.css" rel="stylesheet">
|
|
@*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/chosen/chosen.css" rel="stylesheet">
|
<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">
|
@*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@
|
<link href="~/css/style.min.css" rel="stylesheet">
|
<link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" />
|
<link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" />
|
|
<!-- jqgrid-->
|
<script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script>
|
<script src="~/js/bootstrap.min.js"></script>
|
|
<!--容器-->
|
@*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@
|
@*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script>
|
@*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@
|
<script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script>
|
@*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@
|
<script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script>
|
<script src="~/js/plugins/webuploader/webuploader.min.js"></script>
|
|
<script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script>
|
<script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script>
|
|
@*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@
|
@*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@
|
<script src="~/js/TUJS.js"></script>
|
</head>
|
<body class="gray-bg" style="overflow:auto">
|
<style>
|
.title {
|
width: 80px !important;
|
text-align: right !important;
|
vertical-align: middle;
|
padding-right: 10px;
|
}
|
|
.table td {
|
display: table-cell;
|
vertical-align: middle !important;
|
border: none !important;
|
padding-top: 8px !important;
|
}
|
.table tr {
|
padding-left: 10px !important;
|
border: none !important;
|
}
|
.data {
|
width: 400px !important;
|
}
|
</style>
|
<form method="post" style="background-color:white;">
|
<input type="text" value="" id="Id" name="Id" hidden="hidden">
|
<table class="table">
|
<tr>
|
<td class="title">来电时间</td>
|
<td>
|
<input type="text" class="layui-input layer-date ldate data" label="来电时间" value="@Model.InTime.ToString("yyyy-MM-dd HH:mm:ss")" name="InTime" id="InTime" style="width:150px;margin-right: 4px;" validate="RequiredField" autocomplete="off">
|
</td>
|
</tr>
|
<tr>
|
<td class="title">
|
<i class="red">*</i>电话类型
|
</td>
|
<td>
|
<select id="LineType" class="data form-control" name="LineType" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in LineType)
|
{
|
@if (!item.CodeSn.Equals(Model.LineType))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
</td>
|
</tr>
|
|
<tr>
|
<td class="title"> 来电单位 </td>
|
<td>
|
<input label="来电单位" class="data form-control" name="OrderId" id="OrderId" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.OrderId">
|
|
</td>
|
</tr>
|
|
<tr>
|
<td class="title">来电号码</td>
|
<td>
|
<input label="来电号码" class="data form-control" name="Phone" id="Phone" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone">
|
</td>
|
</tr>
|
|
<tr>
|
<td class="title">通话内容</td>
|
<td>
|
<textarea class="data" id="Context" name="Context" style="overflow-y:hidden" cols="60" rows="10">@Model.Context </textarea>
|
</td>
|
</tr>
|
|
<tr>
|
<td class="title">
|
<label><i class="red">*</i>受理人</label>
|
</td>
|
<td>
|
<div style="width:400px;">
|
<select id="UserId" class="data form-control" name="UserId" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in users)
|
{
|
@if (!item.Id.Equals(Model.UserId))
|
{
|
<option value="@item.Id" hassubinfo="true">
|
@item.UserName
|
</option>
|
}
|
else
|
{
|
<option value="@item.Id" hassubinfo="true" selected="selected">
|
@item.UserName
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
</div>
|
</td>
|
</tr>
|
|
<tr>
|
<td>
|
<label class="title"><i class="red">*</i>合作意向</label>
|
</td>
|
<td>
|
|
<select id="Intention" name="Intention" class="data form-control" data-placeholder="选择 序列 ...">
|
<option value="" hassubinfo="true">请选择</option>
|
@foreach (var item in Intention)
|
{
|
@if (!item.CodeSn.Equals(Model.Intention))
|
{
|
<option value="@item.CodeSn" hassubinfo="true">
|
@item.Comments
|
</option>
|
}
|
else
|
{
|
<option value="@item.CodeSn" hassubinfo="true" selected="selected">
|
@item.Comments
|
</option>
|
}
|
|
}
|
}
|
|
</select>
|
</td>
|
</tr>
|
<tr>
|
<td class="title">处理情况 </td>
|
<td>
|
<textarea class="data" id="Handling" name="Handling" style="overflow-y:hidden" cols="60" rows="6">@Model.Handling </textarea>
|
</td>
|
</tr>
|
</table>
|
|
|
<div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px ">
|
<div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="功能按钮:“保存”,“删除”">
|
<a class="btn btn-success" href="javascript:void(0)" onclick="delExpert();" style="margin-left:4px; border-radius:4px;">
|
<i class="glyphicon glyphicon-remove"></i> <span class="bold">删除</span>
|
</a>
|
|
<a class="btn btn-success" href="javascript:void(0)" onclick="Save();" style="margin-left:4px; border-radius:4px;">
|
<i class="glyphicon glyphicon-ok"></i> <span class="bold">提交</span>
|
</a>
|
</div>
|
</div>
|
</form>
|
|
<script type="text/javascript">
|
var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95;
|
$("#div_content").height(hh);
|
|
toastr.options = {
|
"closeButton": true,
|
"debug": false,
|
"progressBar": true,
|
"positionClass": "toast-bottom-right",
|
"onclick": null,
|
"showDuration": "300",
|
"hideDuration": "600",
|
"timeOut": "4500",
|
"extendedTimeOut": "600",
|
"showEasing": "swing",
|
"hideEasing": "linear",
|
"showMethod": "fadeIn",
|
"hideMethod": "fadeOut"
|
};
|
|
|
|
|
$(function () {
|
$(".ldate").each(function (el) {
|
laydate({
|
elem: "#" + $(this).attr('id'), //对应id
|
format: 'YYYY-MM-DD hh:mm:ss', //日期格式 // 分隔符可以任意定义,该例子表示只显示年月
|
min: '2021-01-01', //设定最小日期为当前日期
|
max: '2099-06-16', //最大日期
|
type: 'datetime',
|
festival: false, //显示节日
|
istime: true, //是否显示时分秒
|
istoday: true, //是否是今天
|
choose: function (datas) { //选择日期完毕的回调
|
// console.log(this);
|
// end.min = datas; //开始日选好后,重置结束日的最小日期
|
// end.start = datas //将结束日的初始值设定为开始日
|
}
|
});
|
|
});
|
|
$("#UserId").chosen();
|
|
})
|
|
|
function Save() {
|
if ($("#InTime").val() == '') {
|
toastr.warning("接电话时间不能为空");
|
return;
|
}
|
|
if ($("#Phone").val() == '') {
|
toastr.warning("电话号码不能为空");
|
return;
|
}
|
|
if ($("#Context").val() == '') {
|
toastr.warning("电话内容不能为空");
|
return;
|
}
|
|
if ($("#LineType").val() == '') {
|
toastr.warning("来电类型不能为空");
|
return;
|
}
|
|
//var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" }
|
$.ajax({
|
type: "POST",
|
url: "/DailyManagement/SaveAskLeave",
|
dataType: "json",
|
global: false,
|
async: false,
|
data: $('form').serializeArray(),
|
success: function (data) {
|
|
|
if (data.Result) {
|
// parent._afterSave(true);
|
parent.layer.msg('成功保存', { icon: 6 });
|
//window.location = "/Project/add?id=" + data.ReturnID;
|
try {
|
|
_pageAutoClose();//自动关闭页面方法
|
}
|
catch (err) {
|
parent._CloseTab1("/Signin/AskLeave/");
|
}
|
|
}
|
else {
|
// toastr.error("失败");
|
parent.layer.msg(data.Message, { icon: 5 });
|
}
|
|
},
|
error: function () {
|
|
parent.layer.msg('失败', { icon: 5 });
|
}
|
});
|
}
|
|
function _pageAutoClose() {
|
|
parent.window._reloadPageData();
|
var index = parent.layer.getFrameIndex(window.name);
|
parent.layer.isRefresh = true;
|
parent.layer.closeAll('loading');
|
//layer.closeAll();
|
parent.layer.close(index);
|
$(".layui-layer-close").click();
|
return false;
|
}
|
</script>
|
</body>
|
</html>
|