|
|
@ -387,9 +387,7 @@ namespace WebApplication1.Controllers |
|
|
|
result.Message = "数据不存在"; |
|
|
|
result.Message = "数据不存在"; |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
if (resultGzbl.data != null && resultGzbl.data.coumment != null && resultGzbl.data.coumment.Count > 0) |
|
|
|
if (resultGzbl.data != null && resultGzbl.data.coumment != null) |
|
|
|
{ |
|
|
|
|
|
|
|
foreach (var item in resultGzbl.data.coumment) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
//文件名称 |
|
|
|
//文件名称 |
|
|
|
string fileName = dto.FileName.Split('.')[0]; |
|
|
|
string fileName = dto.FileName.Split('.')[0]; |
|
|
@ -398,7 +396,7 @@ namespace WebApplication1.Controllers |
|
|
|
string id = Guid.NewGuid().ToString().Replace("-", null); |
|
|
|
string id = Guid.NewGuid().ToString().Replace("-", null); |
|
|
|
//重要参数 |
|
|
|
//重要参数 |
|
|
|
//item.bhdlbh |
|
|
|
//item.bhdlbh |
|
|
|
string dir = "yxsj/" + dto.UnitCode + "/bhdl-service/cl/" + dto.Bmsah + "/" + item.bhdlbh; |
|
|
|
string dir = "yxsj/" + dto.UnitCode + "/bhdl-service/cl/" + dto.Bmsah + "/" + dto.Bhdlbm; |
|
|
|
///解码 |
|
|
|
///解码 |
|
|
|
// var base64Iamge = HttpUtility.UrlDecode(dto.ImageStr); |
|
|
|
// var base64Iamge = HttpUtility.UrlDecode(dto.ImageStr); |
|
|
|
byte[] DocBytes = Convert.FromBase64String(dto.ImageStr); |
|
|
|
byte[] DocBytes = Convert.FromBase64String(dto.ImageStr); |
|
|
@ -425,7 +423,7 @@ namespace WebApplication1.Controllers |
|
|
|
SaveBhdlclxxDto saveBhdlclxxDto = new SaveBhdlclxxDto() |
|
|
|
SaveBhdlclxxDto saveBhdlclxxDto = new SaveBhdlclxxDto() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
bhdlbh = item.bhdlbh, |
|
|
|
bhdlbh = dto.Bhdlbm, |
|
|
|
bmsah = dto.Bmsah, |
|
|
|
bmsah = dto.Bmsah, |
|
|
|
dwbm = dto.UnitCode, |
|
|
|
dwbm = dto.UnitCode, |
|
|
|
dwmc = dto.UnitName, |
|
|
|
dwmc = dto.UnitName, |
|
|
@ -480,8 +478,11 @@ namespace WebApplication1.Controllers |
|
|
|
saveBhdlclxxDto.bhdlClxxInputDTOList = bhdlClxxInputDTOLists; |
|
|
|
saveBhdlclxxDto.bhdlClxxInputDTOList = bhdlClxxInputDTOLists; |
|
|
|
|
|
|
|
|
|
|
|
var httpResponse = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlCl/saveBhdlclxx", saveBhdlclxxDto); |
|
|
|
var httpResponse = await httpClient.PostAsJsonAsync("/bhdl-service/api/bhdlCl/saveBhdlclxx", saveBhdlclxxDto); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try |
|
|
|
|
|
|
|
{ |
|
|
|
var resultDataDto = await httpResponse.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
var resultDataDto = await httpResponse.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
|
|
|
var dataDto = JsonConvert.DeserializeObject<ResultDataDto<AjgldsrxxDto>>(resultDataDto); |
|
|
|
var dataDto = JsonConvert.DeserializeObject<ResultDataDto<List<string>>>(resultDataDto); |
|
|
|
if (dataDto.success == true && dataDto.code == "0") |
|
|
|
if (dataDto.success == true && dataDto.code == "0") |
|
|
|
{ |
|
|
|
{ |
|
|
|
result.IsSucceed = true; |
|
|
|
result.IsSucceed = true; |
|
|
@ -493,8 +494,18 @@ namespace WebApplication1.Controllers |
|
|
|
result.Message = dataDto.message; |
|
|
|
result.Message = dataDto.message; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch (Exception ex) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
result.IsSucceed = false; |
|
|
|
|
|
|
|
result.Message = ex.Message; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var filenam = id + "." + suffix; |
|
|
|
|
|
|
|
if (System.IO.File.Exists(filenam)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
System.IO.File.Delete(filenam); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -503,6 +514,7 @@ namespace WebApplication1.Controllers |
|
|
|
result.IsSucceed = false; |
|
|
|
result.IsSucceed = false; |
|
|
|
result.Message = resultGzbl.message; |
|
|
|
result.Message = resultGzbl.message; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -819,10 +831,15 @@ namespace WebApplication1.Controllers |
|
|
|
var resultStringDto = JsonConvert.DeserializeObject<ResultStringDto>(addRuslt); |
|
|
|
var resultStringDto = JsonConvert.DeserializeObject<ResultStringDto>(addRuslt); |
|
|
|
if (resultStringDto.success == false || resultStringDto.code != "0") |
|
|
|
if (resultStringDto.success == false || resultStringDto.code != "0") |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
result.IsSucceed = false; |
|
|
|
result.IsSucceed = false; |
|
|
|
result.Message = resultStringDto.message; |
|
|
|
result.Message = resultStringDto.message; |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(saveBhdlDjxxDto.bhdlbh)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
saveBhdlDjxxDto.bhdlbh = resultStringDto.data; |
|
|
|
|
|
|
|
} |
|
|
|
result.IsSucceed = true; |
|
|
|
result.IsSucceed = true; |
|
|
|
result.result = saveBhdlDjxxDto; |
|
|
|
result.result = saveBhdlDjxxDto; |
|
|
|
return result; |
|
|
|
return result; |
|
|
@ -942,8 +959,11 @@ namespace WebApplication1.Controllers |
|
|
|
result.Message = "数据不存在"; |
|
|
|
result.Message = "数据不存在"; |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (resultGzbl.data.coumment.Count>0) |
|
|
|
|
|
|
|
{ |
|
|
|
dto.bhdlbh = resultGzbl.data.coumment.FirstOrDefault()?.bhdlbh; |
|
|
|
dto.bhdlbh = resultGzbl.data.coumment.FirstOrDefault()?.bhdlbh; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
dto.clqkbm = ""; |
|
|
|
dto.clqkbm = ""; |
|
|
|
dto.clqkmc = ""; |
|
|
|
dto.clqkmc = ""; |
|
|
|
dto.jwgksxid = ""; |
|
|
|
dto.jwgksxid = ""; |
|
|
|