| | |
| | | @{ |
| | | ViewBag.Title = "IntentionVisit"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | string Viscustomer = ViewBag.Viscustomer as string; |
| | | string IsYwjl = ViewBag.IsYwjl as string; |
| | | |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | |
| | | var khlys = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.khly))'; |
| | | var hyfls = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.hyfl))'; |
| | | var users = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.users))'; |
| | | var creater = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.creater))'; |
| | | |
| | | var shengDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShengDropDown))'; |
| | | loseherght = 60; |
| | | gridConfig = { multiselect: true, selectcol: "Id" }; |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | |
| | | |
| | | { |
| | | label: '拜访时间', name: 'VistimeName', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/IntentionVisit/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/IntentionVisit/Edit?id=" + rowObject.Id + "&Viscustomer=@Viscustomer&IsYwjl=@IsYwjl')\" >" + cellvalue + "</a>"; |
| | | } |
| | | }, |
| | | |
| | | { label: '所属区域', name: 'ShengName', labtype: 'txt', hidden: false, width: 100 }, |
| | | //{ label: '所属区域', name: 'ShengName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '客户单位', name: 'Name', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '拜访方式', name: 'VisTypeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '接待人', name: 'Jdr', labtype: 'txt', hidden: false, width: 100}, |
| | |
| | | { label: '客户反馈', name: 'Khfk', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '成交意向', name: 'YxName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '跟踪建议', name: 'JyName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '访问人', name: 'CreaterName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | ]; |
| | | dataUrl = "/IntentionVisit/GetList"; |
| | | dataUrl = "/IntentionVisit/GetList?Viscustomer=@Viscustomer"; |
| | | searchCol = [ |
| | | { label: '客户来源', name: 'Khly', labtype: 'combox', hidden: false, data: JSON.parse(khlys), cwidth: '5%', cccwidth: '8%' }, |
| | | { label: '行业分类', name: 'Hyfl', labtype: 'combox', hidden: false, data: JSON.parse(hyfls), cwidth: '5%', cccwidth: '15%' }, |
| | |
| | | { label: '区县', name: 'AreaId', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '2%', cccwidth: '8%' }, |
| | | { label: '客户单位', name: 'Name', labtype: 'txt', hidden: false }, |
| | | { label: '拜访时间', name: 'Vistime', labtype: 'datearea', hidden: false }, |
| | | { label: '访问人', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(creater), cwidth: '5%', cccwidth: '8%'}, |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | var _pageAdd = function () { |
| | | OpenWindow("新增意向客户拜访", "98%", "90%", "/IntentionVisit/Edit/"); |
| | | OpenWindow("新增意向客户拜访", "98%", "90%", "/IntentionVisit/Edit?Viscustomer=@Viscustomer&IsYwjl=@IsYwjl"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |