| | |
| | | private readonly ILiaotianService _liaotianService; |
| | | private readonly IIntentionCustomerService _intentionCustomerService; |
| | | private readonly IUserService _userService; |
| | | private readonly ICooperatecustomCustomerService _cooperatecustomCustomerService; |
| | | |
| | | |
| | | public ProjectController(ILogger<ProjectController> logger, IProjectService projectService, ILiaotianService liaotianService,IIntentionCustomerService intentionCustomerService, IUserService userService) |
| | | public ProjectController(ILogger<ProjectController> logger, IProjectService projectService, ILiaotianService liaotianService,IIntentionCustomerService intentionCustomerService, IUserService userService |
| | | , ICooperatecustomCustomerService cooperatecustomCustomerService) |
| | | { |
| | | _logger = logger; |
| | | _projectService = projectService; |
| | | _liaotianService = liaotianService; |
| | | _intentionCustomerService = intentionCustomerService; |
| | | _userService = userService; |
| | | _cooperatecustomCustomerService = cooperatecustomCustomerService; |
| | | } |
| | | [CheckLogin] |
| | | public IActionResult Index() |
| | |
| | | { |
| | | projectDTO = _projectService.GetLiaotianEntity(id); |
| | | var intentionCustomerDTOs = _intentionCustomerService.GetList(); |
| | | var cooperatecustomCustomerDTOs = _cooperatecustomCustomerService.GetList(); |
| | | |
| | | if (projectDTO.Projectzhongbiaos!=null && projectDTO.Projectzhongbiaos.Count > 0) |
| | | { |
| | |
| | | { |
| | | var intt = intentionCustomerDTOs.Count(x=>x.Name == projectDTO.Projectzhongbiaos[i].Names); |
| | | |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Projectzhongbiaos[i].ProjectId = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.Projectzhongbiaos[i].Names); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Projectzhongbiaos[i].ProjectId = "yes"; |
| | |
| | | { |
| | | projectDTO.Drcunzai = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.Drhx); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Drcunzai = "yes"; |
| | | } |
| | | } |
| | | |
| | | if (!string.IsNullOrWhiteSpace(projectDTO.Dshx)) |
| | | { |
| | | var intt = intentionCustomerDTOs.Count(x => x.Name == projectDTO.Dshx); |
| | | |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Dscunzai = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.Dshx); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Dscunzai = "yes"; |
| | |
| | | { |
| | | var intt = intentionCustomerDTOs.Count(x => x.Name == projectDTO.projectreasons[i].Reasonname); |
| | | |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.projectreasons[i].ProjectId = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.projectreasons[i].Reasonname); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.projectreasons[i].ProjectId = "yes"; |
| | |
| | | { |
| | | projectDTO.Projectyouxiaos[i].ProjectId = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.Projectyouxiaos[i].Namesyouxiao); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Projectyouxiaos[i].ProjectId = "yes"; |
| | | } |
| | | } |
| | | } |
| | | |
| | | if (!string.IsNullOrWhiteSpace(projectDTO.Caigourenname)) |
| | | { |
| | | var intt = intentionCustomerDTOs.Count(x => x.Name == projectDTO.Caigourenname); |
| | | |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Caigourennamecunzai = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.Caigourenname); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Caigourennamecunzai = "yes"; |
| | | } |
| | | } |
| | | |
| | | if (!string.IsNullOrWhiteSpace(projectDTO.Dailiname)) |
| | | { |
| | | var intt = intentionCustomerDTOs.Count(x => x.Name == projectDTO.Dailiname); |
| | | |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Dailinamecunzai = "yes"; |
| | | } |
| | | intt = cooperatecustomCustomerDTOs.Count(x => x.Name == projectDTO.Dailiname); |
| | | if (intt > 0) |
| | | { |
| | | projectDTO.Dailinamecunzai = "yes"; |
| | | } |
| | | } |
| | | |