@using DTO;
|
@{
|
ViewBag.Title = "IntentionCustomer";
|
Layout = "~/Views/Shared/_Layout_Search.cshtml";
|
|
List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
|
|
string Creater11 = ViewData["Creater11"] as string;
|
}
|
@section headerStyle{
|
<script type="text/javascript">
|
|
var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))';
|
|
var Baomingtimebegin = '@Html.Raw(ViewBag.Baomingtimebegin)';
|
var Baomingtimeend = '@Html.Raw(ViewBag.Baomingtimeend)';
|
|
|
loseherght = 60;
|
/*gridConfig = { multiselect: true, selectcol: "Id" };*/
|
dataCol = [
|
{ label: 'id', name: 'Id', labtype: 'txt', hidden: true },
|
{ label: '注册时间', name: 'CreateTimeName', labtype: 'txt', hidden: false, width: 200 },
|
{ label: '用户账号', name: 'Itcode', labtype: 'txt', hidden: false, width: 200 },
|
{
|
label: '名称', name: 'Name', labtype: 'txt', hidden: false, width: 200
|
},
|
|
{ label: '在职企业', name: 'CustomerName', labtype: 'txt', hidden: false, width: 200 },
|
|
{
|
label: '操作', name: 'Guanliankehushu', labtype: 'txt', hidden: false, width: 200,
|
formatter: function (cellvalue, options, rowObject) {
|
if (rowObject.CustomerName == null || rowObject.CustomerName == '') {
|
return "<a onclick=\"OpenWindow('" + rowObject.Name.replace(/'/g, '') + "','100%','100%', '/IntentionCustomer/IndexSelectHuiyuan?Huiyuanid=" + rowObject.Id + "&CustomerId=" + rowObject.CustomerId + "')\" >添加在职企业</a> ";
|
} else {
|
return "<a onclick=\"OpenWindow('" + rowObject.Name.replace(/'/g, '') + "','100%','100%', '/IntentionCustomer/IndexSelectHuiyuan?Huiyuanid=" + rowObject.Id + "&CustomerId=" + rowObject.CustomerId + "')\" >修改在职企业</a> " + " <a onclick=\"OpenWindow('" + rowObject.Name.replace(/'/g, '') + "','100%','100%', '/IntentionCustomer/Indexhuiyuanchakantongshi?CustomerId=" + rowObject.CustomerId + "')\" >查看同事</a>";
|
}
|
|
}
|
},
|
|
|
|
|
|
|
];
|
dataUrl = "/IntentionCustomer/GetListhuiyuan?Createtime="/* + Baomingtimebegin + "|" + Baomingtimeend*/ ;
|
searchCol = [
|
{ label: '账号:', name: 'Itcode', labtype: 'txt', hidden: false },
|
{ label: '名称:', name: 'Name', labtype: 'txt', hidden: false },
|
{ label: '注册时间:', name: 'Createtime', labtype: 'datearea', hidden: false },
|
|
{ label: '有在职企业', name: 'ShifouGuanluan', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%' }
|
|
|
];
|
|
|
var _pageSearch = function () {
|
$("#jqGrid").jqGrid('setGridParam', {
|
url: dataUrl = "/IntentionCustomer/GetListhuiyuan", postData: jsons, page: 1
|
}); //重新载入
|
var jsons = GetSearchEnd();
|
if (jsons == false) {
|
msg.info("请录入查询条件");
|
return false;
|
}
|
LoadGrid(jsons);
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _afterSave = function (result) {
|
if (result) {
|
toastr.success("保存成功");
|
} else {
|
toastr.error("保存失败");
|
}
|
}
|
|
var _afterDel = function (result) {
|
if (result) {
|
toastr.success("删除成功");
|
} else {
|
/**/
|
toastr.error("删除失败");
|
/**/
|
}
|
}
|
|
</script>
|
}
|
|
@section footerScripts{
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
$("#PBSCreatetimeend").val(Baomingtimeend);
|
|
$("#PBSCreatetimestart").val(Baomingtimebegin);
|
|
});
|
|
</script>
|
}
|