|
|
|
@ -327,17 +327,11 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (item == null) continue; |
|
|
|
if (item == null) continue; |
|
|
|
var caseType= await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
var caseType= await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
NotClockListDto notClockListDto = new NotClockListDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
|
|
|
|
var unitList = await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
var unitList = await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
//根据案件找到被监管 |
|
|
|
//根据案件找到被监管 |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
.AsQueryable(false, true) |
|
|
|
.AsQueryable(false, true) |
|
|
|
@ -345,8 +339,16 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
.ToListAsync(); |
|
|
|
.ToListAsync(); |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
NotClockListDto notClockListDto = new NotClockListDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
|
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
|
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
.AsQueryable(false, true) |
|
|
|
.AsQueryable(false, true) |
|
|
|
.Where(w => w.EarlyWarningTypeId == applicationType.Id && w.SupervisedPersonId == person.SupervisedPersonId |
|
|
|
.Where(w => w.EarlyWarningTypeId == applicationType.Id && w.SupervisedPersonId == person.SupervisedPersonId |
|
|
|
@ -398,18 +400,12 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (item == null) continue; |
|
|
|
if (item == null) continue; |
|
|
|
var caseType = await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
var caseType = await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
ViolationListDto notClockListDto = new ViolationListDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var unitList =await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
var unitList =await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
//根据案件找到被监管 |
|
|
|
//根据案件找到被监管 |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
.AsQueryable(false, true) |
|
|
|
.AsQueryable(false, true) |
|
|
|
@ -417,6 +413,14 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
.ToListAsync(); |
|
|
|
.ToListAsync(); |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
ViolationListDto notClockListDto = new ViolationListDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
|
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
|
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
@ -471,18 +475,11 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (item == null) continue; |
|
|
|
if (item == null) continue; |
|
|
|
var caseType = await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
var caseType = await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
ViolationExportDto notClockListDto = new ViolationExportDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var unitList = await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
var unitList = await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
//根据案件找到被监管 |
|
|
|
//根据案件找到被监管 |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
.AsQueryable(false, true) |
|
|
|
.AsQueryable(false, true) |
|
|
|
@ -490,6 +487,14 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
.ToListAsync(); |
|
|
|
.ToListAsync(); |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
ViolationExportDto notClockListDto = new ViolationExportDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
|
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
|
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
@ -538,17 +543,11 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (item == null) continue; |
|
|
|
if (item == null) continue; |
|
|
|
var caseType = await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
var caseType = await _appDictionaryService.GetDicByDicId(item.CaseTypeId); |
|
|
|
NotClockExportDto notClockListDto = new NotClockExportDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
|
|
|
|
var unitList = await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
var unitList = await (from c in _appSupervisorRepository.AsQueryable(false, true) |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
join u in _userRepository.AsQueryable(false, true) on c.SupervisorId equals u.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
where c.CaseId == item.Id |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
select u.Unitname).FirstOrDefaultAsync(); |
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
//根据案件找到被监管 |
|
|
|
//根据案件找到被监管 |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
var supervisedPerson = await _appSupervisedPersonRepository |
|
|
|
.AsQueryable(false, true) |
|
|
|
.AsQueryable(false, true) |
|
|
|
@ -556,8 +555,16 @@ namespace ATS.NonCustodial.Application.Impl.Business |
|
|
|
.ToListAsync(); |
|
|
|
.ToListAsync(); |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
foreach (var person in supervisedPerson) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
NotClockExportDto notClockListDto = new NotClockExportDto(); |
|
|
|
|
|
|
|
notClockListDto.Bmsah = item.Bmsah; |
|
|
|
|
|
|
|
notClockListDto.CaseId = item.Id; |
|
|
|
|
|
|
|
notClockListDto.CaseName = item.Name; |
|
|
|
|
|
|
|
notClockListDto.CreatedTime = item.CreatedTime; |
|
|
|
|
|
|
|
notClockListDto.CaseTypeName = caseType.Name; |
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonId = person.SupervisedPersonId; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
notClockListDto.SupervisedPersonName = person.SupervisedPersonName; |
|
|
|
|
|
|
|
notClockListDto.SupervisionUnit = unitList; |
|
|
|
|
|
|
|
|
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
var earlyList = await _appEarlyWarningRepository |
|
|
|
.AsQueryable(false, true) |
|
|
|
.AsQueryable(false, true) |
|
|
|
.Where(w => w.EarlyWarningTypeId== applicationType.Id && w.SupervisedPersonId == person.SupervisedPersonId |
|
|
|
.Where(w => w.EarlyWarningTypeId== applicationType.Id && w.SupervisedPersonId == person.SupervisedPersonId |
|
|
|
|