| | |
| | | { |
| | | dto = _intentionVisitService.Get(id); |
| | | |
| | | //dto.Viscustomer = Viscustomer; |
| | | IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch(); |
| | | searchEntity.page = 1; |
| | | searchEntity.rows = 1000; |
| | | searchEntity.Viscustomer = dto.Viscustomer; |
| | | var resultDataEntity = _intentionVisitService.SearchByPaging(searchEntity); |
| | | ViewData["visitlishi"] = resultDataEntity.DataList; |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | if (!string.IsNullOrWhiteSpace(Viscustomer)) |
| | | { |
| | | dto.Viscustomer = Viscustomer; |
| | | IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch(); |
| | | searchEntity.page = 1; |
| | | searchEntity.rows = 1000; |
| | | searchEntity.Viscustomer = Viscustomer; |
| | | var resultDataEntity = _intentionVisitService.SearchByPaging(searchEntity); |
| | | ViewData["visitlishi"] = resultDataEntity.DataList; |
| | | |
| | | } |
| | | else |
| | | { |
| | | ViewData["visitlishi"] = new List<IntentionVisitDTO>(); |
| | | } |
| | | |
| | | dto.VisType = "01"; |
| | |
| | | IntentionCustomerDTO intentionCustomerDTO = _intentionCustomerService.Get(data.Viscustomer); |
| | | if(intentionCustomerDTO!=null && ( !string.IsNullOrEmpty(intentionCustomerDTO.Phone) || !string.IsNullOrEmpty(intentionCustomerDTO.Tel))) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(string.IsNullOrEmpty(intentionCustomerDTO.Phone)? intentionCustomerDTO.Tel: intentionCustomerDTO.Phone, data.DuanxinNeirong); |
| | | string sss = SMSHelper.PushWToUserMES(string.IsNullOrEmpty(intentionCustomerDTO.Phone)? intentionCustomerDTO.Tel: intentionCustomerDTO.Phone, "您好,客户. 详情见:"+data.DuanxinNeirong); |
| | | if (int.Parse(sss) <= 0) |
| | | { |
| | | resultEntity.Result = false; |
| | |
| | | resultEntity.Message = "无联系人"; |
| | | } |
| | | |
| | | string sss = SMSHelper.PushWToUserMES(number.ToString(), neirong); |
| | | string sss = SMSHelper.PushWToUserMES(number.ToString(), "您好,客户. 详情见:" + neirong ); |
| | | if (int.Parse(sss) <= 0) |
| | | { |
| | | resultEntity.Result = false; |