|
|
|
@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Mvc.ModelBinding;
|
|
|
|
|
using Microsoft.AspNetCore.Mvc.ViewFeatures; |
|
|
|
|
using Microsoft.Win32; |
|
|
|
|
using Newtonsoft.Json; |
|
|
|
|
using System; |
|
|
|
|
using System.Collections.Specialized; |
|
|
|
|
using System.Data; |
|
|
|
|
using System.Dynamic; |
|
|
|
@ -505,6 +506,67 @@ namespace WebApplication1.Controllers
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 当事人列表 |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="Bmsah"></param> |
|
|
|
|
/// <param name="UnitCode"></param> |
|
|
|
|
/// <param name="PartyIdCard"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
[HttpGet("DsrList")] |
|
|
|
|
public async Task<ResultDataDto<AjgldsrxxDto>> DsrList(string Bmsah, string UnitCode, string PartyIdCard) |
|
|
|
|
{ |
|
|
|
|
ResultDataDto<AjgldsrxxDto> result = new ResultDataDto<AjgldsrxxDto>(); |
|
|
|
|
var findAjgldsrxx = new |
|
|
|
|
{ |
|
|
|
|
bmsah = Bmsah, |
|
|
|
|
dwbm = UnitCode, |
|
|
|
|
gjz = PartyIdCard, |
|
|
|
|
pageNum = 1, |
|
|
|
|
pageSize = 20 |
|
|
|
|
}; |
|
|
|
|
//当事人信息 |
|
|
|
|
var dsrrequest = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlGl/findAjgldsrxx", findAjgldsrxx); |
|
|
|
|
var dsrResult = await dsrrequest.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var dsrModel = JsonConvert.DeserializeObject<ResultDataDto<AjgldsrxxDto>>(dsrResult); |
|
|
|
|
if (dsrModel.success == false && dsrModel.code != "0" && dsrModel.data.list.Count == 0) |
|
|
|
|
{ |
|
|
|
|
result.success = false; |
|
|
|
|
result.message = "当事人数据不存在"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
return dsrModel; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="ProposerZJHM"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
[HttpGet("LsList")] |
|
|
|
|
public async Task<ResultDataDto<FindSqrxxDto>> LsList(string ProposerZJHM) |
|
|
|
|
{ |
|
|
|
|
ResultDataDto<FindSqrxxDto> result = new ResultDataDto<FindSqrxxDto>(); |
|
|
|
|
///申请人信息 |
|
|
|
|
var findSqrxx = new |
|
|
|
|
{ |
|
|
|
|
gjz = ProposerZJHM, |
|
|
|
|
pageNum = 0, |
|
|
|
|
pageSize = 20 |
|
|
|
|
}; |
|
|
|
|
var sqrrequest = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlDj/findSqrxx", findSqrxx); |
|
|
|
|
var sqrRuslt = await sqrrequest.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var SqrDto = JsonConvert.DeserializeObject<ResultDataDto<FindSqrxxDto>>(sqrRuslt); |
|
|
|
|
if (SqrDto.success == false && SqrDto.code != "0" && SqrDto.data.content.Count == 0) |
|
|
|
|
{ |
|
|
|
|
result.success = false; |
|
|
|
|
result.message = "律师数据不存在"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
return SqrDto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// µÇ¼Ç |
|
|
|
@ -512,9 +574,9 @@ namespace WebApplication1.Controllers
|
|
|
|
|
/// <param name="dto"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
[HttpPost("Register")] |
|
|
|
|
public async Task<Result> Register([FromBody] RegisterDto dto) |
|
|
|
|
public async Task<Result<SaveBhdlDjxxDto>> Register([FromBody] RegisterDto dto) |
|
|
|
|
{ |
|
|
|
|
Result result = new Result(); |
|
|
|
|
Result<SaveBhdlDjxxDto> result = new Result<SaveBhdlDjxxDto>(); |
|
|
|
|
#region ÅÐ¶Ï |
|
|
|
|
if (dto == null) |
|
|
|
|
{ |
|
|
|
@ -566,7 +628,6 @@ namespace WebApplication1.Controllers
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
UploadImageDto uploadImageDto = new UploadImageDto() |
|
|
|
|
{ |
|
|
|
|
pageSize = 10, |
|
|
|
@ -718,10 +779,230 @@ namespace WebApplication1.Controllers
|
|
|
|
|
}; |
|
|
|
|
var addrequest = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlDj/saveBhdlDjxx", saveBhdlDjxxDto); |
|
|
|
|
var addRuslt = await addrequest.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var resultStringDto = JsonConvert.DeserializeObject<ResultStringDto>(addRuslt); |
|
|
|
|
if (resultStringDto.success == false || resultStringDto.code != "0") |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = resultStringDto.message; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
result.IsSucceed = true; |
|
|
|
|
result.result = saveBhdlDjxxDto; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
result.IsSucceed = true; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 申请阅卷 |
|
|
|
|
/// </summary> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
[HttpPost("ApplyMarKing")] |
|
|
|
|
public async Task<Result<ApplyMarKingBackDto>> ApplyMarKing([FromBody] ApplyMarKingDto dto) |
|
|
|
|
{ |
|
|
|
|
Result<ApplyMarKingBackDto> result = new Result<ApplyMarKingBackDto>(); |
|
|
|
|
|
|
|
|
|
#region 判断 |
|
|
|
|
|
|
|
|
|
if (dto == null) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "接收数据失败"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(dto.sqrq)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "申请日期不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.bmsah)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "部门受案号不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.czr)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "承办人不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.czrybm)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "承办人编码不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.dwbm)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "单位编号不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.sqrlxdm)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "申请人类型代码不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.sqrmc)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "申请人名称不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.sqrsfdm)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "申请人身份代码不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.sxlxdm)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "事项类型代码不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.sxlxmc)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "事项类型名称不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.zrrmc)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "当事人不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
UploadImageDto uploadImageDto = new UploadImageDto() |
|
|
|
|
{ |
|
|
|
|
pageSize = 10, |
|
|
|
|
pageNum = 1, |
|
|
|
|
blzt = 0, |
|
|
|
|
dwbm = dto.dwbm, |
|
|
|
|
bmsah = dto.bmsah, |
|
|
|
|
ajmc = "", |
|
|
|
|
gjz = "", |
|
|
|
|
jsrq = null, |
|
|
|
|
ksrq = null, |
|
|
|
|
sqrxm = "", |
|
|
|
|
sxlxdm = "", |
|
|
|
|
zrrxm = "", |
|
|
|
|
}; |
|
|
|
|
// 事项跟踪信息 |
|
|
|
|
var request = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlGl/findBhdlGzbl", uploadImageDto); |
|
|
|
|
var findBhdlGzbl = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var resultGzbl = JsonConvert.DeserializeObject<ResultGzbl>(findBhdlGzbl); |
|
|
|
|
if (resultGzbl.success == false && resultGzbl.code != "0") |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "数据不存在"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dto.bhdlbh = resultGzbl.data.coumment.FirstOrDefault()?.bhdlbh; |
|
|
|
|
dto.clqkbm = ""; |
|
|
|
|
dto.clqkmc = ""; |
|
|
|
|
dto.jwgksxid = ""; |
|
|
|
|
var queryrequest = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlDj/addBhdlSqsx", dto); |
|
|
|
|
var query = await queryrequest.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var queryModel = JsonConvert.DeserializeObject<ResultboolDto>(query); |
|
|
|
|
if (queryModel.code != "0" || queryModel.success == false) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = queryModel.message; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var value = new |
|
|
|
|
{ |
|
|
|
|
bhdlbh = dto.bhdlbh, |
|
|
|
|
bmsah = dto.bmsah, |
|
|
|
|
dwbm = dto.dwbm |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
var httpResponseMessage = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlDj/findBhdlSqsxList", dto); |
|
|
|
|
var findBhdlSqsxList = await httpResponseMessage.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var resultDataDto = JsonConvert.DeserializeObject<ResultDataDto<List<SqsDto>>>(findBhdlSqsxList); |
|
|
|
|
|
|
|
|
|
result.IsSucceed = true; |
|
|
|
|
result.result = new ApplyMarKingBackDto() |
|
|
|
|
{ |
|
|
|
|
ApplyMarKingDto = dto, |
|
|
|
|
sxbh = resultDataDto.data.FirstOrDefault()?.sxbh |
|
|
|
|
}; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
///安排阅卷 |
|
|
|
|
/// </summary> |
|
|
|
|
/// <param name="dto"></param> |
|
|
|
|
/// <returns></returns> |
|
|
|
|
[HttpPost("Arrange")] |
|
|
|
|
public async Task<Result> Arrange([FromBody] ArrangeDto dto) |
|
|
|
|
{ |
|
|
|
|
Result result = new Result(); |
|
|
|
|
|
|
|
|
|
#region 判断 |
|
|
|
|
if (dto == null) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "接收数据失败"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.bhdlbh)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "bhdlbh不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.bmsah)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "部门受案号不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.yjjzsj)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "结束事件不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (string.IsNullOrEmpty(dto.yjkssj)) |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "开始时间不能为空"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
dto.fzfsdm = string.IsNullOrEmpty(dto.fzfsdm) ? "1409187800004" : dto.fzfsdm; |
|
|
|
|
dto.fzfsmc = string.IsNullOrEmpty(dto.fzfsmc) ? "刻录" : dto.fzfsmc; |
|
|
|
|
dto.jzztxsdm = string.IsNullOrEmpty(dto.jzztxsdm) ? "1407187600002" : dto.jzztxsdm; |
|
|
|
|
dto.jzztxsmc = string.IsNullOrEmpty(dto.jzztxsmc) ? "电子卷宗" : dto.jzztxsmc; |
|
|
|
|
dto.yjfsdm = string.IsNullOrEmpty(dto.yjfsdm) ? "1408187700001" : dto.yjfsdm; |
|
|
|
|
dto.yjfsmc = string.IsNullOrEmpty(dto.yjfsmc) ? "查阅" : dto.yjfsmc; |
|
|
|
|
|
|
|
|
|
var request = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlDj/saveYjap", dto); |
|
|
|
|
var findBhdlGzbl = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
|
var resultGzbl = JsonConvert.DeserializeObject<ResultStringDto>(findBhdlGzbl); |
|
|
|
|
if (resultGzbl.success == false && resultGzbl.code != "0") |
|
|
|
|
{ |
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
result.Message = "数据不存在"; |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
/// ½« Stream ת³É byte[] |
|
|
|
|
private static byte[] StreamToBytes(Stream stream) |
|
|
|
|
{ |
|
|
|
|