| | |
| | | var shengDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ShengDropDown))'; |
| | | 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: '联系电话', name: 'Tel', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '所属区域', name: 'ShengName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '客户来源', name: 'KhlyName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '行业分类', name: 'HyflName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '客户类型', name: 'KhlxName', labtype: 'txt', hidden: false, width: 100}, |
| | | //{ label: '客户来源', name: 'KhlyName', labtype: 'txt', hidden: false, width: 100 }, |
| | | //{ label: '行业分类', name: 'HyflName', labtype: 'txt', hidden: false, width: 100 }, |
| | | //{ label: '客户类型', name: 'KhlxName', labtype: 'txt', hidden: false, width: 100}, |
| | | { label: '业务经理', name: 'YwjlName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '订单数量', name: 'Ordercount', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '合作业务', name: 'Hezuoyewu', labtype: 'txt', hidden: false, width: 300 }, |
| | | /* { label: '订单数量', name: 'Ordercount', labtype: 'txt', hidden: false, width: 100 },*/ |
| | | { label: '订单产值', name: 'Moneycount', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '剩余套餐件数', name: 'Taocanjianshu', labtype: 'txt', hidden: false, width: 100 }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | ]; |
| | | dataUrl = "/CooperatecustomCustomer/GetList"+"@(string.IsNullOrEmpty(Creater)?"": "?Ywjl=" + Creater)"; |
| | | dataUrl = "/CooperatecustomCustomer/GetList?Createtime=" + Baomingtimebegin + "|" + Baomingtimeend +"@(string.IsNullOrEmpty(Creater)?"": "&Ywjl=" + Creater)"; |
| | | searchCol = [ |
| | | |
| | | { label: '客户来源', name: 'Khly', labtype: 'combox', hidden: false, data: JSON.parse(khlys), cwidth: '5%', cccwidth: '8%' }, |
| | |
| | | var _pageAdd = function () { |
| | | OpenWindow("新增合作客户", "98%", "100%", "/CooperatecustomCustomer/Edit/"); |
| | | } |
| | | |
| | | var _pageSearch = function () { |
| | | $("#jqGrid").jqGrid('setGridParam', { |
| | | url: dataUrl = "/CooperatecustomCustomer/GetList"+"@(string.IsNullOrEmpty(Creater) ?"": "?Ywjl=" + Creater)", postData: jsons, page: 1 |
| | | }); //重新载入 |
| | | var jsons = GetSearchEnd(); |
| | | if (jsons == false) { |
| | | msg.info("请录入查询条件"); |
| | | return false; |
| | | } |
| | | LoadGrid(jsons); |
| | | } |
| | | |
| | | |
| | | var _pagePrint = function () { |
| | | |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | }; |
| | | |
| | | $(function () { |
| | | |
| | | |
| | | |
| | | $("#PBSCreatetimeend").val(Baomingtimeend); |
| | | |
| | | $("#PBSCreatetimestart").val(Baomingtimebegin); |
| | | |
| | | }); |
| | | </script> |
| | | } |