Compare commits
122 Commits
master
...
develop-la
Author | SHA1 | Date |
---|---|---|
|
7a0e0bf823 | 2 years ago |
|
aa0e7ea4de | 2 years ago |
|
679485b7a3 | 2 years ago |
|
f9ba3ee7a6 | 2 years ago |
|
f33d35f4f6 | 2 years ago |
|
abdf52221a | 2 years ago |
|
6858816c51 | 2 years ago |
|
9c4f6bb468 | 2 years ago |
|
8a1158edc3 | 2 years ago |
|
550b68ea6d | 2 years ago |
|
6b1bd6d844 | 2 years ago |
|
c916acc3d8 | 2 years ago |
|
43c2d78050 | 2 years ago |
|
fde797656f | 2 years ago |
|
fd421e94b8 | 2 years ago |
|
6b9f4e40aa | 2 years ago |
|
1507fa2d8f | 2 years ago |
|
03d4a9eaa3 | 2 years ago |
|
582de973fd | 2 years ago |
|
e87513074a | 2 years ago |
|
3a350d9211 | 2 years ago |
|
ad72134195 | 2 years ago |
|
3583107d6a | 2 years ago |
|
9c857660a4 | 2 years ago |
|
bd69bdef83 | 2 years ago |
|
b514ba7065 | 2 years ago |
|
db0c548b4d | 2 years ago |
|
f201dcc395 | 2 years ago |
|
fdd2ea4062 | 2 years ago |
|
a5e7a55383 | 2 years ago |
|
f95e5b17c5 | 2 years ago |
|
7bed988add | 2 years ago |
|
9ae3e80b25 | 2 years ago |
|
9464a252c6 | 2 years ago |
|
b2fabd7f0e | 2 years ago |
|
9cfa38310e | 2 years ago |
|
0972956fd3 | 2 years ago |
|
094900f921 | 2 years ago |
|
b413ab51e6 | 2 years ago |
|
f6715403e6 | 2 years ago |
|
4126109ce9 | 2 years ago |
|
c6cebcc75e | 2 years ago |
|
beb3c7a932 | 2 years ago |
|
77e24daa3a | 2 years ago |
|
f67ec0e6ff | 2 years ago |
|
772d46670d | 2 years ago |
|
72d11306f6 | 2 years ago |
|
c4bbbeb070 | 2 years ago |
|
2950d60d8e | 2 years ago |
|
67b801b5f3 | 2 years ago |
|
fda6f23b41 | 2 years ago |
|
4c3b8a5937 | 2 years ago |
|
fa77f519c6 | 2 years ago |
|
b70494fc6c | 2 years ago |
|
bcefee3e79 | 2 years ago |
|
a541764e69 | 2 years ago |
|
a0e7994cd6 | 2 years ago |
|
9459300bec | 2 years ago |
|
c2ac083042 | 2 years ago |
|
c91e958884 | 2 years ago |
|
a0a0b6704c | 2 years ago |
|
497d366ff6 | 2 years ago |
|
1003c2a105 | 2 years ago |
|
d21a12d5b3 | 2 years ago |
|
defda9af96 | 2 years ago |
|
e9855f7c8e | 2 years ago |
|
fef6d60e8c | 2 years ago |
|
e613eaa5a7 | 2 years ago |
|
73248f6676 | 2 years ago |
|
73ecc7f1ba | 2 years ago |
|
e149148e8e | 2 years ago |
|
06fc77ffae | 2 years ago |
|
006ebf451f | 2 years ago |
|
e49e43e761 | 2 years ago |
|
4c70aef494 | 2 years ago |
|
0244d57ee7 | 2 years ago |
|
5ade80a830 | 2 years ago |
|
2bfad77b64 | 2 years ago |
|
c12301c965 | 2 years ago |
|
7ad0183e05 | 2 years ago |
|
9f0e2fa404 | 2 years ago |
|
ae046a5ec2 | 2 years ago |
|
7b863004db | 2 years ago |
|
ea9269aeb2 | 2 years ago |
|
a3b1164fac | 2 years ago |
|
938bc477a7 | 2 years ago |
|
98d5bd3ff8 | 2 years ago |
|
5110c390d8 | 2 years ago |
|
944197ff7d | 2 years ago |
|
b81c9b1497 | 2 years ago |
|
110a4e9d95 | 2 years ago |
|
0d0513da48 | 2 years ago |
|
ea1d2bfb3b | 2 years ago |
|
6b91056206 | 2 years ago |
|
c22a0f93b5 | 2 years ago |
|
6241047214 | 2 years ago |
|
cabed6fdff | 2 years ago |
|
13f6be3b83 | 2 years ago |
|
fbe4c37afe | 2 years ago |
|
ade3f5a05f | 2 years ago |
|
a02bcc1227 | 2 years ago |
|
7b2eb1232c | 2 years ago |
|
940bb24d74 | 2 years ago |
|
68029bde25 | 2 years ago |
|
d6f5ad07b9 | 2 years ago |
|
29df5f46b8 | 2 years ago |
|
9bdd6539f7 | 2 years ago |
|
342211e058 | 2 years ago |
|
acaf720b6c | 2 years ago |
|
533898e71b | 2 years ago |
|
4d60cd0546 | 2 years ago |
|
64c0b7c183 | 2 years ago |
|
1c2ed90e27 | 2 years ago |
|
ca42870464 | 2 years ago |
|
65be370197 | 2 years ago |
|
8fc18b7fc8 | 2 years ago |
|
6abdb18317 | 2 years ago |
|
e9b6972018 | 2 years ago |
|
8e2c8ccf2d | 2 years ago |
|
f05e714e12 | 2 years ago |
|
afc0f25192 | 2 years ago |
|
bf2d7fa840 | 2 years ago |
139 changed files with 11154 additions and 378 deletions
@ -1,28 +1,48 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web"> |
||||
<Project Sdk="Microsoft.NET.Sdk.Web"> |
||||
|
||||
<PropertyGroup> |
||||
<TargetFramework>net6.0</TargetFramework> |
||||
<Nullable>enable</Nullable> |
||||
<ImplicitUsings>enable</ImplicitUsings> |
||||
<RootNamespace>_24Hour</RootNamespace> |
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile> |
||||
</PropertyGroup> |
||||
<PropertyGroup> |
||||
<TargetFramework>net6.0</TargetFramework> |
||||
<Nullable>enable</Nullable> |
||||
<ImplicitUsings>enable</ImplicitUsings> |
||||
<RootNamespace>_24Hour</RootNamespace> |
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile> |
||||
<UserSecretsId>e485308c-2f05-470b-b0a4-68f1ec2b3412</UserSecretsId> |
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> |
||||
<AssemblyVersion>1.0.1.8</AssemblyVersion> |
||||
<Version>1.0.1.8</Version> |
||||
</PropertyGroup> |
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
||||
<DocumentationFile></DocumentationFile> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
||||
<DocumentationFile></DocumentationFile> |
||||
</PropertyGroup> |
||||
|
||||
<ItemGroup> |
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.16" /> |
||||
<PackageReference Include="Quartz" Version="3.6.3" /> |
||||
<PackageReference Include="SqlSugarCore" Version="5.1.4.83" /> |
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<PackageReference Include="AutoMapper" Version="12.0.1" /> |
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.16" /> |
||||
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="6.1.0" /> |
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" /> |
||||
<PackageReference Include="Quartz" Version="3.6.3" /> |
||||
<PackageReference Include="SqlSugarCore" Version="5.1.4.83" /> |
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" /> |
||||
<PackageReference Include="System.Runtime.Caching" Version="7.0.0" /> |
||||
</ItemGroup> |
||||
|
||||
<ItemGroup> |
||||
<ProjectReference Include="..\Elight.Entity\Elight.Entity.csproj" /> |
||||
<ProjectReference Include="..\Elight.Logic\Elight.Logic.csproj" /> |
||||
<ProjectReference Include="..\Elight.Utility\Elight.Utility.csproj" /> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<ProjectReference Include="..\Elight.Entity\Elight.Entity.csproj" /> |
||||
<ProjectReference Include="..\Elight.Logic\Elight.Logic.csproj" /> |
||||
<ProjectReference Include="..\Elight.Utility\Elight.Utility.csproj" /> |
||||
</ItemGroup> |
||||
|
||||
<ItemGroup> |
||||
<None Update="caselist.txt"> |
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
</None> |
||||
<None Update="Dockerfile"> |
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
</None> |
||||
<None Update="jzlist.txt"> |
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
</None> |
||||
</ItemGroup> |
||||
|
||||
</Project> |
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,158 @@
|
||||
using AutoMapper; |
||||
using Elight.Entity; |
||||
using Elight.Entity.APPDto.Lawyer; |
||||
using Elight.Entity.AppMode.Lawyer; |
||||
using Elight.Logic; |
||||
using Elight.Utility.Code; |
||||
using Elight.Utility.Extensions; |
||||
using Elight.Utility.logs; |
||||
using java.util; |
||||
using Microsoft.AspNetCore.Authorization; |
||||
using Microsoft.AspNetCore.Mvc; |
||||
using SqlSugar; |
||||
using System.Text; |
||||
using static _24Hour.Controllers.Common.LawyerArchivesController; |
||||
|
||||
namespace _24Hour.Controllers.Common |
||||
{ |
||||
/// <summary> |
||||
/// 律师服务 |
||||
/// </summary> |
||||
[ApiController] |
||||
[Route("api/LawyerUnAuthorize")] |
||||
public class LawyerArchivesUnAuthorizeController : Controller |
||||
{ |
||||
#region Identity |
||||
private readonly SqlSugarClient _db;//数据库 |
||||
private readonly ILogger<LawyerArchivesController> logger;//日志 |
||||
|
||||
private readonly IMapper mapper; |
||||
public LawyerArchivesUnAuthorizeController(ILogger<LawyerArchivesController> _logger, SqlSugarClient db, IMapper _mapper) |
||||
{ |
||||
this.logger = _logger; |
||||
_db = db; |
||||
this.mapper = _mapper; |
||||
} |
||||
#endregion |
||||
|
||||
/// <summary> |
||||
/// 一体机查询所有的未完成的预约信息 |
||||
/// </summary> |
||||
/// <returns></returns> |
||||
[HttpGet("GetAllArchivesUncompleted")] |
||||
public async Task<Result<IEnumerable<LawyerArchivesDto>>> GetAllArchivesUncompleted(string unitcode) |
||||
{ |
||||
var res = new Result<IEnumerable<LawyerArchivesDto>>(); |
||||
var list = await _db.Queryable<LawyerArchives>() |
||||
.Where(x => x.IsDeleted == 0) |
||||
.Where(x => x.status != 2 && x.permissibleEndTime > DateTime.Now) |
||||
.Where(x => x.unitcode == unitcode) |
||||
.Where(x => x.IsDeleted == 0) |
||||
.ToListAsync(); |
||||
var data = mapper.Map<IEnumerable<LawyerArchivesDto>>(list); |
||||
res.result = data; |
||||
res.IsSucceed = true; |
||||
return res; |
||||
} |
||||
/// <summary> |
||||
/// 获取卷宗下所有的文件信息 |
||||
/// </summary> |
||||
/// <param name="jzid"></param> |
||||
/// <returns></returns> |
||||
[HttpPost("GetJzFileInfo")] |
||||
public async Task<Result> GetJzFileInfo(IEnumerable<string> jzids) |
||||
{ |
||||
var result = new Result(); |
||||
var list = await _db.Queryable<JZJBXX>() |
||||
.Includes(x => x.jzml, q => q.jzwj) |
||||
.Where(x => jzids.Contains(x.Id)) |
||||
.ToListAsync(); |
||||
var dtos = mapper.Map<List<JZJBXXDto>>(list); |
||||
var listdata = dtos.Select(x => new |
||||
{ |
||||
jzid = x.Id, |
||||
files = x.jzml.OrderBy(x => x.mlsxh) |
||||
.SelectMany(e => e.jzwj.OrderBy(x => x.wjsxh)) |
||||
.Select((q) => new |
||||
{ |
||||
order = q.wjsxh, |
||||
fileid = q.Id, |
||||
filepath = q.jpgwjlj |
||||
}).OrderBy(x => x.order) |
||||
}).ToList(); |
||||
|
||||
result.result = listdata; |
||||
result.IsSucceed = true; |
||||
return result; |
||||
} |
||||
/// <summary> |
||||
/// 上传一体机的文件缓存状态 |
||||
/// </summary> |
||||
/// <param name="dic"></param> |
||||
/// <returns></returns> |
||||
[HttpPost("UploadWJDownloadStatus")] |
||||
public async Task<Result> UploadWJDownloadStatus(IEnumerable<LawyerArchivesDto> dtos) |
||||
{ |
||||
var result = new Result(); |
||||
try |
||||
{ |
||||
_db.BeginTran(); |
||||
var updatelist = await _db.Queryable<LawyerArchives>().In(q => q.jzlbxxId, dtos.Select(x => x.jzlbxxId).ToList()).ToListAsync(); |
||||
updatelist.ForEach(q => |
||||
{ |
||||
var value = dtos.FirstOrDefault(x => x.jzlbxxId == q.jzlbxxId); |
||||
q.downloadedCount = value?.downloadedCount; |
||||
}); |
||||
var num = await _db.Updateable(updatelist).ExecuteCommandAsync(); |
||||
_db.CommitTran(); |
||||
if (num > 0) |
||||
{ |
||||
result.IsSucceed = true; |
||||
result.result = "更新成功"; |
||||
} |
||||
} |
||||
catch (System.Exception ex) |
||||
{ |
||||
_db.RollbackTran(); |
||||
result.IsSucceed = false; |
||||
result.Message = ex.Message; |
||||
} |
||||
return result; |
||||
} |
||||
|
||||
/// <summary> |
||||
/// 解密字符串信息 |
||||
/// </summary> |
||||
/// <param name="basestr"></param> |
||||
/// <returns></returns> |
||||
[HttpPost] |
||||
[Route("DecodeData")] |
||||
public Task<Result<string>> DecodeData(DecodeQRDataModel data) |
||||
{ |
||||
Result<string> result = new(); |
||||
try |
||||
{ |
||||
var qrdata = data.QRData; |
||||
var count = data.QRData.Length; |
||||
var a = count % 4; |
||||
if (a != 0) |
||||
{ |
||||
|
||||
for (int i = 0; i < a; i++) |
||||
{ |
||||
qrdata += "="; |
||||
} |
||||
} |
||||
result.result = Encoding.UTF8.GetString(Convert.FromBase64String(qrdata)); |
||||
result.IsSucceed = true; |
||||
return Task.FromResult(result); |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
logger.LogError(ex, ""); |
||||
result.IsSucceed = false; |
||||
return Task.FromResult(result); |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,26 @@
|
||||
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||
|
||||
LABEL description="" |
||||
|
||||
LABEL version="1.0" |
||||
|
||||
# 指定工作目录 |
||||
WORKDIR /app |
||||
|
||||
# 把当前目录复制到镜像的 app目录 |
||||
COPY . . |
||||
|
||||
#时区设置 |
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||
|
||||
# 暴露的端口 |
||||
#EXPOSE 80 |
||||
EXPOSE 8098 |
||||
|
||||
ENV ASPNETCORE_URLS=http://+:8098 |
||||
ENV ASPNETCORE_ENVIRONMENT Production |
||||
|
||||
# 最后设置启动的dll |
||||
ENTRYPOINT ["dotnet", "24Hour.dll"] |
@ -0,0 +1,41 @@
|
||||
using Elight.Utility.Extensions; |
||||
using Microsoft.AspNetCore.Mvc.Filters; |
||||
using System.Diagnostics; |
||||
|
||||
namespace _24Hour.Filter |
||||
{ |
||||
public class RequestLoggingFilter : IActionFilter |
||||
{ |
||||
private readonly ILogger<RequestLoggingFilter> logger;//注入serilog |
||||
private Stopwatch _stopwatch;//统计程序耗时 |
||||
public RequestLoggingFilter(ILogger<RequestLoggingFilter> logger) |
||||
{ |
||||
|
||||
|
||||
this.logger = logger; |
||||
_stopwatch = Stopwatch.StartNew(); |
||||
} |
||||
public async void OnActionExecuted(ActionExecutedContext context) |
||||
{ |
||||
_stopwatch.Stop(); |
||||
var request = context.HttpContext.Request; |
||||
var response = context.HttpContext.Response; |
||||
var info = $"End Required metod:[{request.Method}],Path:[{request.Path}],StatusCode:[{response.StatusCode}],Times[{_stopwatch.Elapsed.TotalMilliseconds}],QueryString[{request.QueryString}],Result[{context.Result.ConvertToJsonStr()}]"; |
||||
if (info.Length>1024) |
||||
{ |
||||
info = info.Substring(0, 1024); |
||||
} |
||||
logger.LogInformation(info); |
||||
} |
||||
public void OnActionExecuting(ActionExecutingContext context) |
||||
{ |
||||
//var request = context.HttpContext.Request; |
||||
//var info = $"Start request method:[{request?.Method}] path:[{request?.Path}]"; |
||||
//if (info.Length > 1024) |
||||
//{ |
||||
// info = info.Substring(0, 1024); |
||||
//} |
||||
//logger.LogInformation(info); |
||||
} |
||||
} |
||||
} |
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<!-- |
||||
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||
--> |
||||
<Project> |
||||
<PropertyGroup> |
||||
<_PublishTargetUrl>D:\24小时发布</_PublishTargetUrl> |
||||
<History>True|2023-07-01T19:22:32.2918206Z;True|2023-07-02T02:25:58.6238404+08:00;True|2023-07-02T02:21:25.4053957+08:00;True|2023-07-02T02:09:02.6137949+08:00;True|2023-07-02T00:23:44.4442673+08:00;True|2023-07-01T23:42:35.7302162+08:00;True|2023-07-01T23:24:47.4663991+08:00;True|2023-07-01T22:22:56.9799185+08:00;True|2023-07-01T22:04:26.8941882+08:00;True|2023-07-01T21:40:11.5842496+08:00;True|2023-07-01T21:12:07.0048729+08:00;True|2023-07-01T18:55:25.7547257+08:00;True|2023-07-01T15:55:14.1686837+08:00;True|2023-07-01T15:52:20.6931207+08:00;True|2023-07-01T15:16:19.0847303+08:00;True|2023-07-01T14:32:30.7938970+08:00;True|2023-07-01T14:11:46.9198753+08:00;True|2023-07-01T13:52:41.7443973+08:00;True|2023-07-01T12:05:00.1914915+08:00;True|2023-07-01T11:35:15.2688362+08:00;True|2023-07-01T11:15:50.0622714+08:00;True|2023-07-01T10:12:33.0301410+08:00;True|2023-06-30T20:53:10.2775714+08:00;True|2023-06-30T20:47:24.3123829+08:00;True|2023-06-30T18:44:10.1995292+08:00;True|2023-06-30T18:35:05.6876552+08:00;True|2023-06-30T14:33:30.1363930+08:00;True|2023-06-30T14:17:02.8263130+08:00;True|2023-06-30T14:16:41.6529398+08:00;True|2023-06-30T10:20:34.2470363+08:00;True|2023-06-30T09:51:41.3251931+08:00;True|2023-06-29T16:07:09.3334291+08:00;True|2023-06-29T15:56:52.9510718+08:00;True|2023-06-29T15:49:16.8161173+08:00;True|2023-06-27T18:06:12.3724487+08:00;True|2023-06-27T17:22:11.4211972+08:00;True|2023-06-27T15:48:34.1728433+08:00;True|2023-06-13T18:05:11.2568840+08:00;False|2023-06-13T18:04:56.9546003+08:00;</History> |
||||
<LastFailureDetails /> |
||||
</PropertyGroup> |
||||
</Project> |
@ -0,0 +1,204 @@
|
||||
using com.sun.xml.@internal.xsom; |
||||
using Elight.Entity.APPDto.Lawyer; |
||||
using Elight.Utility; |
||||
using Elight.Utility.Code; |
||||
using Elight.Utility.Extensions; |
||||
using Microsoft.AspNetCore.DataProtection; |
||||
|
||||
namespace _24Hour |
||||
{ |
||||
public class TwentySystemProxyClient |
||||
{ |
||||
private readonly HttpClient httpCliet; |
||||
private readonly IConfiguration configuration; |
||||
public TwentySystemProxyClient(HttpClient _httpCliet, IConfiguration _configuration) |
||||
{ |
||||
this.httpCliet = _httpCliet; |
||||
this.configuration = _configuration; |
||||
|
||||
httpCliet.DefaultRequestHeaders.Add("Accept", "application/json"); |
||||
httpCliet.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); |
||||
httpCliet.DefaultRequestHeaders.ConnectionClose = true; |
||||
} |
||||
public async Task<Result<QueryResult<CaseInfo>>> GetCaseList(string? casename, string? bmsah, string? dwbm, DateTime? starttime, DateTime? endtime, int page, int size) |
||||
{ |
||||
Result<QueryResult<CaseInfo>> Result = new(); |
||||
var param = new |
||||
{ |
||||
casename = casename ?? "", |
||||
bmsah = bmsah ?? "", |
||||
dwbm = dwbm ?? "", |
||||
starttime = starttime ?? DateTime.Now.AddDays(-100), |
||||
endtime = endtime ?? DateTime.Now, |
||||
page, |
||||
size |
||||
}.ConvertToGetParam(); |
||||
try |
||||
{ |
||||
var response = await Task.Run(async () => |
||||
{ |
||||
var connectionString = configuration.GetSection("CaseTwenty:UseOfflineData").Value; |
||||
if (connectionString=="false") |
||||
{ |
||||
var request = await httpCliet.GetAsync($"/TwentySystem/GetCaseInfo{param}"); |
||||
var response = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
return response; |
||||
} |
||||
else |
||||
{ |
||||
return await File.ReadAllTextAsync(Path.Combine(Environment.CurrentDirectory,"caselist.txt")); |
||||
} |
||||
}); |
||||
if (string.IsNullOrEmpty(response) == false) |
||||
{ |
||||
var data = response.ConvertToModel<Result<Paging<CaseInfo>>>(); |
||||
if (data.result != null) |
||||
{ |
||||
var a = new QueryResult<CaseInfo>(new Paging() |
||||
{ |
||||
PageCount = data.result.pages ?? 0, |
||||
PageIndex = data.result.pageNum ?? 0, |
||||
PageSize = data.result.pageSize ?? 0, |
||||
RowsCount = data.result.total ?? 0 |
||||
}, data.result.List.ToList()); |
||||
|
||||
Result.IsSucceed = true; |
||||
Result.result = a; |
||||
} |
||||
else |
||||
{ |
||||
Result.IsSucceed = true; |
||||
Result.Message = data.Message ?? "查询成功"; |
||||
Result.result = new QueryResult<CaseInfo>(new Paging() |
||||
{ |
||||
PageCount = 0, |
||||
PageIndex = 0, |
||||
PageSize = 0, |
||||
RowsCount = 0, |
||||
}, new List<CaseInfo>()); |
||||
} |
||||
} |
||||
else |
||||
{ |
||||
Result.IsSucceed = false; |
||||
Result.Message = "查询失败"; |
||||
} |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
Result.IsSucceed = false; |
||||
Result.Message = ex.Message; |
||||
} |
||||
return Result; |
||||
} |
||||
|
||||
public async Task<Result<JZJBXXDto>> GetArchivesInfo(string bmsah, string dwbm) |
||||
{ |
||||
var result = new Result<JZJBXXDto>(); |
||||
|
||||
//var path = Path.Combine(Environment.CurrentDirectory, "datajson.txt"); |
||||
//var json = await System.IO.File.ReadAllTextAsync(path); |
||||
var param = new |
||||
{ |
||||
bmsah = bmsah, |
||||
dwbm = dwbm |
||||
}.ConvertToGetParam(); |
||||
|
||||
|
||||
var json = await Task.Run(async() => |
||||
{ |
||||
var connectionString = configuration.GetSection("CaseTwenty:UseOfflineData").Value; |
||||
if (connectionString == "false") |
||||
{ |
||||
var request = await httpCliet.GetAsync($"/TwentySystem/GetJZXX{param}"); |
||||
var jsonstr = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
return jsonstr; |
||||
} |
||||
else |
||||
{ |
||||
return await File.ReadAllTextAsync(Path.Combine(Environment.CurrentDirectory, "jzlist.txt")); |
||||
} |
||||
}); |
||||
var res = json.ConvertToModel<Result<JZJBXXDto>>(); |
||||
if (res.IsSucceed == true) |
||||
{ |
||||
if (res.result == null) |
||||
{ |
||||
result.IsSucceed = false; |
||||
result.Message = "卷宗目录为空"; |
||||
return result; |
||||
} |
||||
var convert = res.result; |
||||
if (convert == null) |
||||
{ |
||||
result.IsSucceed = false; |
||||
result.Message = "未找到对应卷宗"; |
||||
return result; |
||||
} |
||||
convert.Id = Guid.NewGuid().ToString(); |
||||
if (convert?.jzml?.Any() == true) |
||||
{ |
||||
await Task.Delay(5); |
||||
foreach (var ml in convert.jzml) |
||||
{ |
||||
ml.Id = Guid.NewGuid().ToString(); |
||||
ml.jzId = convert.Id; |
||||
|
||||
await Task.Delay(5); |
||||
foreach (var item in ml.jzwj) |
||||
{ |
||||
item.jzmlId = ml.Id; |
||||
item.Id = Guid.NewGuid().ToString(); |
||||
} |
||||
} |
||||
} |
||||
result.IsSucceed = true; |
||||
result.result = convert; |
||||
} |
||||
else |
||||
{ |
||||
result.IsSucceed = false; |
||||
result.Message = res.Message; |
||||
} |
||||
|
||||
return result; |
||||
} |
||||
public class Paging<T> |
||||
{ |
||||
public int? pageNum { get; set; } |
||||
public int? pageSize { get; set; } |
||||
public int? total { get; set; } |
||||
public int? pages { get; set; } |
||||
public IEnumerable<T>? List { get; set; } |
||||
} |
||||
public class CaseInfo |
||||
{ |
||||
public string? jzbh { get; set; } |
||||
public string? ajmc { get; set; } |
||||
public string? bmsah { get; set; } |
||||
public string? cbdwbm { get; set; } |
||||
public string? rybm { get; set; } |
||||
public string? rymc { get; set; } |
||||
public int? cs { get; set; } |
||||
public int? ys { get; set; } |
||||
public DateTime? cjsj { get; set; } |
||||
public DateTime? cjrq { get; set; } |
||||
public string? zzr { get; set; } |
||||
public string? zzrbm { get; set; } |
||||
public string? zzzt { get; set; } |
||||
public string? jzms { get; set; } |
||||
public string? jzxh { get; set; } |
||||
public string? nfbd { get; set; } |
||||
public string? jzsd { get; set; } |
||||
public string? ajlbbm { get; set; } |
||||
public string? ajlbmc { get; set; } |
||||
public DateTime? slrq { get; set; } |
||||
public string? jzocrzt { get; set; } |
||||
public string? id { get; set; } |
||||
public string? yjzmc { get; set; } |
||||
public string? sfck { get; set; } |
||||
public string? sfkcz { get; set; } |
||||
public string? qlzt { get; set; } |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,215 @@
|
||||
using com.sun.org.apache.bcel.@internal.generic; |
||||
using com.sun.xml.@internal.xsom; |
||||
using Elight.Utility; |
||||
using Elight.Utility.Code; |
||||
using Elight.Utility.Extensions; |
||||
using java.lang.annotation; |
||||
using Microsoft.IdentityModel.Logging; |
||||
using Newtonsoft.Json; |
||||
using Newtonsoft.Json.Linq; |
||||
using System.Runtime.Caching; |
||||
using static java.security.cert.CertPathValidatorException; |
||||
|
||||
namespace _24Hour |
||||
{ |
||||
|
||||
public class WechatMessagerClient |
||||
{ |
||||
private readonly HttpClient httpCliet; |
||||
// 实例化MemoryCache对象 |
||||
MemoryCache cache = MemoryCache.Default; |
||||
private readonly IConfiguration _configuration; |
||||
/// <summary> |
||||
/// 小程序AppID |
||||
/// </summary> |
||||
private string appid = "wx48108a0c98a3dab0"; |
||||
/// <summary> |
||||
/// 小程序AppID |
||||
/// </summary> |
||||
private string secret = "wx48108a0c98a3dab0"; |
||||
/// <summary> |
||||
/// 小程序secretID |
||||
/// </summary> |
||||
private string secid = "e752e4fba67526eca21313a18c96a58f"; |
||||
public WechatMessagerClient(HttpClient _httpCliet, IConfiguration configuration) |
||||
{ |
||||
this.httpCliet = _httpCliet; |
||||
|
||||
httpCliet.DefaultRequestHeaders.Add("Accept", "application/json"); |
||||
httpCliet.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); |
||||
httpCliet.DefaultRequestHeaders.ConnectionClose = true; |
||||
_configuration = configuration; |
||||
|
||||
appid = $"{configuration.GetSection("Wechat:appid").Value}"; |
||||
secret = $"{configuration.GetSection("Wechat:secret").Value}"; |
||||
secid = $"{configuration.GetSection("Wechat:secid").Value}"; |
||||
} |
||||
public async Task<Result> GetOpenId(string code) |
||||
{ |
||||
var ret = new Result(); |
||||
var reponse = await httpCliet.GetAsync($"/sns/jscode2session?appid={appid}&secret={secid}&js_code={code}&grant_type=authorization_code"); |
||||
var opendata = await reponse.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
var data = JsonConvert.DeserializeAnonymousType(opendata, new |
||||
{ |
||||
openid = default(string), |
||||
session_key = default(string), |
||||
unionid = default(string), |
||||
errcode = default(int), |
||||
errmsg = default(string), |
||||
}); |
||||
if (data.errcode == 0) |
||||
{ |
||||
ret.IsSucceed = true; |
||||
ret.result = data.openid; |
||||
} |
||||
else |
||||
{ |
||||
ret.IsSucceed = false; |
||||
ret.Message = data.errmsg; |
||||
} |
||||
return ret; |
||||
} |
||||
|
||||
/// <summary> |
||||
/// 律师预约微信消息提醒,成功 |
||||
/// </summary> |
||||
/// <returns></returns> |
||||
public bool wxts(string? useropenId, string? name, string? unit, DateTime? datetime, string? matter,string? attention) |
||||
{ |
||||
try |
||||
{ |
||||
var token = ""; |
||||
|
||||
// 获取缓存 |
||||
token = cache.Get("token")?.ToString(); |
||||
|
||||
if (string.IsNullOrEmpty(token)) |
||||
{ |
||||
string geturl = $"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={appid}&secret={secret}"; |
||||
var re1 = HttpHelper.Get(geturl); |
||||
if (re1.Jsonstr("errcode") == null) |
||||
{ |
||||
token = re1.Jsonstr("access_token"); |
||||
|
||||
// 移除缓存 |
||||
cache.Remove("token"); |
||||
// 添加缓存 |
||||
cache.Add("token", token, new CacheItemPolicy { AbsoluteExpiration = DateTime.Now.AddMinutes(120) }); |
||||
} |
||||
} |
||||
string url = $"https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=";//发送地址 |
||||
try |
||||
{ |
||||
object msg = null; |
||||
string posturl = $"{url}{token}";//发送地址 |
||||
var thing4 = matter; |
||||
var thing5 = attention; |
||||
if (!string.IsNullOrEmpty(matter) && matter.Length>20) |
||||
thing4 = matter.Substring(0, 17)+"..."; |
||||
if (!string.IsNullOrEmpty(attention) && attention.Length > 20) |
||||
thing5 = attention.Substring(0, 17) + "..."; |
||||
msg = new |
||||
{ |
||||
touser = useropenId, |
||||
template_id = "mRfzPnc_3JuV9cPhjKrRL3jX1C_JJoBGYtqEnbfadRM", |
||||
page= "pages/selfService/reception/reception", |
||||
miniprogram_state= $"{_configuration.GetSection("Wechat:miniprogram_state").Value}", |
||||
lang ="zh_CN", |
||||
data = new |
||||
{ |
||||
//name1 = new { value = $"{name}"},// |
||||
thing2 = new { value = $"{unit}"},// |
||||
date3 = new { value = $"{datetime:yyyy年MM月dd日 HH:mm}"},// |
||||
thing4 = new { value = $"{thing4}"},// |
||||
thing5 = new { value = $"{thing5}", color = "#173177" },// |
||||
}, |
||||
}; |
||||
var re = HttpHelper.Post(posturl, msg); |
||||
if (re.Jsonstr("errcode") == "0") |
||||
return true; |
||||
return false; |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
} |
||||
return true; |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
|
||||
/// <summary> |
||||
/// 律师预约微信消息提醒,失败 |
||||
/// </summary> |
||||
/// <returns></returns> |
||||
public bool sbwxts(string? useropenId,string? name,string? unit,DateTime? datetime,string? matter,string? reason) |
||||
{ |
||||
try |
||||
{ |
||||
var token = ""; |
||||
|
||||
// 获取缓存 |
||||
var tokenss = cache.Get("token"); |
||||
|
||||
if (string.IsNullOrEmpty(token)) |
||||
{ |
||||
string geturl = $"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx48108a0c98a3dab0&secret=e752e4fba67526eca21313a18c96a58f"; |
||||
var re1 = HttpHelper.Get(geturl); |
||||
if (re1.Jsonstr("errcode") == null) |
||||
{ |
||||
token = re1.Jsonstr("access_token"); |
||||
|
||||
// 移除缓存 |
||||
cache.Remove("token"); |
||||
// 添加缓存 |
||||
cache.Add("token", token, new CacheItemPolicy { AbsoluteExpiration = DateTime.Now.AddMinutes(120) }); |
||||
} |
||||
} |
||||
string url = $"https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=";//发送地址 |
||||
try |
||||
{ |
||||
object msg = null; |
||||
string posturl = $"{url}{token}";//发送地址 |
||||
var thing4 = matter; |
||||
if (!string.IsNullOrEmpty(matter)&&matter.Length > 20) |
||||
thing4 = matter.Substring(0, 17) + "..."; |
||||
var thing5 = reason; |
||||
if (!string.IsNullOrEmpty(reason) && reason.Length > 20) |
||||
thing5 = reason.Substring(0, 17) + "..."; |
||||
msg = new |
||||
{ |
||||
touser = useropenId, |
||||
template_id = "sPbZd6ro14L4uCR_TyDlB_nKKBq-iSvVBlOCmtTDDt0", |
||||
page = "pages/selfService/reception/reception", |
||||
miniprogram_state = $"{_configuration.GetSection("Wechat:miniprogram_state").Value}", |
||||
lang = "zh_CN", |
||||
data = new |
||||
{ |
||||
//thing1 = new { value = $"{name}" },//访问人 |
||||
thing2 = new { value = $"{unit}" },//访问单位 |
||||
time3 = new { value = $"{datetime:yyyy年MM月dd日 HH:mm}" },//预约时间 |
||||
thing4 = new { value = $"{thing4}" },//事由 |
||||
thing5 = new { value = $"{thing5}" },//事由 |
||||
}, |
||||
}; |
||||
var re = HttpHelper.Post(posturl, msg); |
||||
if (re.Jsonstr("errcode") == "0") |
||||
return true; |
||||
return false; |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
} |
||||
return true; |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
} |
||||
return false; |
||||
} |
||||
|
||||
} |
||||
} |
@ -0,0 +1,111 @@
|
||||
create images |
||||
docker build -t twentyfoursvc:1.0.1.2 . |
||||
|
||||
docker on windows for fake data |
||||
create container |
||||
docker run --name twentyfoursvc -p 8098:8098 -v D://dockerconfigs/24hourconfig/appsettings.json:/app/appsettings.json -v /etc/localtime:/etc/localtime -d twentyfoursvc:1.0.1.5 |
||||
|
||||
|
||||
docker on linux with network bridge |
||||
|
||||
create birdge: |
||||
docker network create twentytotwneyfour |
||||
|
||||
for 24hourserver |
||||
docker run \ |
||||
--name twentyfoursvc \ |
||||
-p 8098:8098 \ |
||||
-v /home/24hour/logs:/app/logs \ |
||||
-v /home/24hour/wwwroot:/app/wwwroot \ |
||||
-v /home/24hour/config/appsettings.json:/app/appsettings.json \ |
||||
-v /etc/localtime:/etc/localtime \ |
||||
--restart=always \ |
||||
--link mysql \ |
||||
--network twentytotwneyfour \ |
||||
--network-alias twentyfour \ |
||||
-d twentyfoursvc:1.0.1.5 |
||||
|
||||
|
||||
docker run |
||||
--name twentyfoursvc |
||||
-p 8098:8098 |
||||
-v /home/24hour/config/appsettings.json:/app/appsettings.json |
||||
-v /etc/localtime:/etc/localtime |
||||
--restart=always |
||||
-d twentyfoursvc:1.0.1.5 |
||||
|
||||
for 2.0 proxyclient |
||||
docker run --name twentysysproxy -p 5194:5194 -v /home/twentysysproxy/config/appsettings.json:/app/appsettings.json -v /etc/localtime:/etc/localtime --restart=always --link mysql --network twentytotwneyfour --network-alias twentyproxy -d twentysysproxy:1.1 |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
docker run --name twentyfoursvc1018 \ |
||||
-p 8098:8098 \ |
||||
-v /home/24hour/config/appsettings.json:/app/appsettings.json \ |
||||
-v /home/24hour/config/log4net.config:/app/log4net.config \ |
||||
-v /home/24hour/config/caselist.txt:/app/caselist.txt \ |
||||
-v /home/24hour/config/jzlist.txt:/app/jzlist.txt \ |
||||
-v /home/24hour/wwwroot:/app/wwwroot \ |
||||
-v /home/24hour/logs:/app/logs \ |
||||
-v /etc/localtime:/etc/localtime \ |
||||
--restart=always -d twentyfoursvc:1.0.1.8 |
||||
|
||||
|
||||
|
||||
docker run -itd --name mysql80 -p 3306:3306 -v /mydata/mysql/data:/var/lib/mysql -v /mydata/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,152 @@
|
||||
{ |
||||
"result": { |
||||
"pageNum": 10, |
||||
"pageSize": 5, |
||||
"total": 679, |
||||
"pages": 136, |
||||
"list": [ |
||||
{ |
||||
"jzbh": "c17a65444c035e7fcfdcba40cf45030a", |
||||
"ajmc": "(简案)xxx涉嫌危险驾驶案", |
||||
"bmsah": "xxx检刑诉受[2023]xxx01号", |
||||
"cbdwbm": "410503", |
||||
"rybm": "4105030074", |
||||
"rymc": "检察官", |
||||
"cs": 2, |
||||
"ys": 62, |
||||
"cjsj": "2023-10-11T08:22:14.006+08:00", |
||||
"cjrq": "2023-10-11T00:00:00", |
||||
"zzr": "检察官", |
||||
"zzrbm": "4105030074", |
||||
"zzzt": "制作完成", |
||||
"jzms": null, |
||||
"jzxh": null, |
||||
"nfbd": "N", |
||||
"jzsd": "Y", |
||||
"ajlbbm": "2001", |
||||
"ajlbmc": "一审公诉案件", |
||||
"slrq": "2023-10-11T00:00:00+08:00", |
||||
"jzocrzt": "识别完成", |
||||
"id": "1414454461", |
||||
"yjzmc": null, |
||||
"sfck": null, |
||||
"sfkcz": "true", |
||||
"qlzt": "0" |
||||
}, |
||||
{ |
||||
"jzbh": "61d022b24fe0fd9a7725d36a20e9399d", |
||||
"ajmc": "xxx涉嫌寻衅滋事案 ", |
||||
"bmsah": "xxx刑诉受[2023]xxx02号", |
||||
"cbdwbm": "410503", |
||||
"rybm": "4105030074", |
||||
"rymc": "检察官", |
||||
"cs": 8, |
||||
"ys": 873, |
||||
"cjsj": "2023-10-10T08:57:13.411+08:00", |
||||
"cjrq": "2023-10-10T00:00:00", |
||||
"zzr": "检察官", |
||||
"zzrbm": "4105030074", |
||||
"zzzt": "制作完成", |
||||
"jzms": null, |
||||
"jzxh": null, |
||||
"nfbd": "N", |
||||
"jzsd": "Y", |
||||
"ajlbbm": "2001", |
||||
"ajlbmc": "一审公诉案件", |
||||
"slrq": "2023-10-10T00:00:00+08:00", |
||||
"jzocrzt": "正在识别", |
||||
"id": "736168250", |
||||
"yjzmc": "2023.07.21xxx寻衅滋事案", |
||||
"sfck": "N", |
||||
"sfkcz": "true", |
||||
"qlzt": "0" |
||||
}, |
||||
{ |
||||
"jzbh": "e2ace19934f9ee4d7d0e336c616e91a4", |
||||
"ajmc": "李桂波涉嫌介绍卖淫案", |
||||
"bmsah": "xxx检刑诉受[2023]xxx03号", |
||||
"cbdwbm": "410503", |
||||
"rybm": "4105030074", |
||||
"rymc": "检察官", |
||||
"cs": 4, |
||||
"ys": 390, |
||||
"cjsj": "2023-10-10T08:23:21.351+08:00", |
||||
"cjrq": "2023-10-10T00:00:00", |
||||
"zzr": "检察官", |
||||
"zzrbm": "4105030074", |
||||
"zzzt": "制作完成", |
||||
"jzms": null, |
||||
"jzxh": null, |
||||
"nfbd": "N", |
||||
"jzsd": "Y", |
||||
"ajlbbm": "2001", |
||||
"ajlbmc": "一审公诉案件", |
||||
"slrq": "2023-10-10T00:00:00+08:00", |
||||
"jzocrzt": "正在识别", |
||||
"id": "39335843", |
||||
"yjzmc": null, |
||||
"sfck": null, |
||||
"sfkcz": "true", |
||||
"qlzt": "0" |
||||
}, |
||||
{ |
||||
"jzbh": "bce4ae03ae003a91af2af34b716ced5e", |
||||
"ajmc": "xxx涉嫌盗窃案", |
||||
"bmsah": "xxx检刑捕受[2023]xxx04号", |
||||
"cbdwbm": "410503", |
||||
"rybm": "4105030074", |
||||
"rymc": "检察官", |
||||
"cs": 2, |
||||
"ys": 134, |
||||
"cjsj": "2023-10-09T10:41:47.205+08:00", |
||||
"cjrq": "2023-10-09T00:00:00", |
||||
"zzr": "检察官", |
||||
"zzrbm": "4105030074", |
||||
"zzzt": "制作完成", |
||||
"jzms": null, |
||||
"jzxh": null, |
||||
"nfbd": "N", |
||||
"jzsd": "Y", |
||||
"ajlbbm": "2031", |
||||
"ajlbmc": "审查逮捕案件", |
||||
"slrq": "2023-10-09T00:00:00+08:00", |
||||
"jzocrzt": "正在识别", |
||||
"id": "-1133317722", |
||||
"yjzmc": null, |
||||
"sfck": null, |
||||
"sfkcz": "true", |
||||
"qlzt": "0" |
||||
}, |
||||
{ |
||||
"jzbh": "99a46d5b7ae0bcbe14a86c089845c1c1", |
||||
"ajmc": "xxx涉嫌危险驾驶案", |
||||
"bmsah": "xxx检刑诉受[2023]xxx05号", |
||||
"cbdwbm": "410503", |
||||
"rybm": "4105030074", |
||||
"rymc": "检察官", |
||||
"cs": 2, |
||||
"ys": 56, |
||||
"cjsj": "2023-10-09T09:27:42.033+08:00", |
||||
"cjrq": "2023-10-09T00:00:00", |
||||
"zzr": "检察官", |
||||
"zzrbm": "4105030074", |
||||
"zzzt": "制作完成", |
||||
"jzms": null, |
||||
"jzxh": null, |
||||
"nfbd": "N", |
||||
"jzsd": "Y", |
||||
"ajlbbm": "2001", |
||||
"ajlbmc": "一审公诉案件", |
||||
"slrq": "2023-10-09T00:00:00+08:00", |
||||
"jzocrzt": "正在识别", |
||||
"id": "1944744018", |
||||
"yjzmc": null, |
||||
"sfck": null, |
||||
"sfkcz": "true", |
||||
"qlzt": "0" |
||||
} |
||||
] |
||||
}, |
||||
"isSucceed": true, |
||||
"message": "操作成功" |
||||
} |
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?> |
||||
<log4net> |
||||
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" > |
||||
<lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> |
||||
<file value="logs/" /> |
||||
<datePattern value="yyyyMMdd-HH'.txt'"/> |
||||
<appendToFile value="true" /> |
||||
<!--<rollingStyle value="Date" />--> |
||||
<staticLogFileName value="false"/> |
||||
<rollingStyle value="Composite" /> |
||||
<maxSizeRollBackups value="50"/> |
||||
<maximumFileSize value="5MB"/> |
||||
<layout type="log4net.Layout.PatternLayout"> |
||||
<conversionPattern value="%date| %-5level%c %newline%message%newline--------------------------------%newline" /> |
||||
</layout> |
||||
</appender> |
||||
<root> |
||||
<!--输出控制级别,从高到低分别是: OFF > FATAL > ERROR > WARN > INFO > DEBUG > ALL --> |
||||
<appender-ref ref="RollingFileAppender" /> |
||||
<level value="Debug" /> |
||||
</root> |
||||
|
||||
</log4net> |
||||
|
@ -0,0 +1,119 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 云柜管理 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_CloudCabinetDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 编号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? bh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 身份证 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? sfzh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 姓名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? xm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 地址 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zz { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 联系号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? lxhm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? jhlxbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? jhlxmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 材料件数 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? cljs { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? bz { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? cjsj { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 取件时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? qjsj { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? dwbm { get; set; } |
||||
/// <summary> |
||||
/// 取件码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? wbkqmm { get; set; } |
||||
/// <summary> |
||||
/// 干警取件码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? gjkqmm { get; set; } |
||||
/// <summary> |
||||
/// 状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zt { get; set; } |
||||
/// <summary> |
||||
/// 干警手机号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? gjlxhm { get; set; } |
||||
/// <summary> |
||||
/// 菜单类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,115 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 认罪认罚 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_ConfessionDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 操作人id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorId { get; set; } |
||||
/// <summary> |
||||
/// 操作人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorName { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
/// <summary> |
||||
/// 预约手机号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? phone { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约事由 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? matter { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? reason { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? sttime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 同意受理时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? acceptancetime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会见人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? meetwitId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会见人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? meetwitname { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? notes { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 状态 0:待办理,1:同意,2:拒绝,3:结束 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createusername { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createuserId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||
|
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,119 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 文书签收 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_DocumentDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文书编号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? wsslbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文书名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? wsmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 部门手受案号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? bmsah { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 单位编号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? dwbm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 案件名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? ajmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 姓名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zrrxm { get; set; } |
||||
/// <summary> |
||||
/// 联系号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zrrlshm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 身份证 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zjhm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文书名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? fwqwjmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 登记时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? djsj { get; set; } |
||||
/// <summary> |
||||
/// 办案检察官 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? cbjcgbm { get; set; } |
||||
/// <summary> |
||||
/// 办案检察官手机号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? dhhm { get; set; } |
||||
/// <summary> |
||||
/// 存放时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? sdsj { get; set; } |
||||
/// <summary> |
||||
/// 签收时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? qmsj { get; set; } |
||||
/// <summary> |
||||
/// 状态 00:新建:01:待发送;02:已发送;03:待签收;04:已签收 ;99:已入卷 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zt { get; set; } |
||||
/// <summary> |
||||
/// 最新更新时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? zhxgsj { get; set; } |
||||
/// <summary> |
||||
/// 菜单类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,135 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 听证服务 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_HearingDto |
||||
{ |
||||
[DataMember] |
||||
[SugarColumn(IsPrimaryKey = true)] |
||||
public string? Id { get; set; } |
||||
|
||||
///// <summary> |
||||
///// 操作人id |
||||
///// </summary> |
||||
//[DataMember] |
||||
public string? operatorId { get; set; } |
||||
/// <summary> |
||||
/// 操作人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorName { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 律师所名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? lawyerunit { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 律师人名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? lawyeruser { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 联系方式 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? contact { get; set; } |
||||
/// <summary> |
||||
/// 预约时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? reservationtime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 同意受理时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? acceptancetime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 所在地 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? location { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 听证请求原因 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? witnessrequest { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? notes { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
/// <summary> |
||||
/// 接待人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? receptionuser { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 接待人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? receptionusername { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 0:待办理,1:同意 2:拒绝 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? state { get; set; } |
||||
/// <summary> |
||||
/// 拒绝原因 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reason { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createusername { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createuserId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||
|
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,158 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 律师服务 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_LawyerServicesDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
/// <summary> |
||||
/// 预约类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 律师名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? name { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 手机号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? phone { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 访问日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? receptiontime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 同意受理时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? acceptancetime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 访问结束时间 |
||||
/// </summary> |
||||
public DateTime? receptionEndtime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 访问事由 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? matter { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 访问对象 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? objectstr { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 接待人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? receptionuser { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 接待人名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? receptionusername { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? notes { get; set; } |
||||
/// <summary> |
||||
/// 拒绝原因 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reason { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 0:待办理,1:同意 ,2:拒绝 3, 结束 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? createusername { get; set; } |
||||
/// <summary> |
||||
/// 创建人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? createuserId { get; set; } |
||||
|
||||
|
||||
/// <summary> |
||||
/// 操作人id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorId { get; set; } |
||||
/// <summary> |
||||
/// 操作人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorName { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||
|
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
|
||||
/// <summary> |
||||
/// 附件 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string annex { get; set; } |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 当事人姓名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string party { get;set;} |
||||
|
||||
/// <summary> |
||||
/// 当事人身份证 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string partyIDcard { get;set;} |
||||
} |
||||
} |
@ -0,0 +1,121 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 预约接待 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_ReceptionDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 操作人id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorId { get; set; } |
||||
/// <summary> |
||||
/// 操作人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorName { get; set; } |
||||
/// <summary> |
||||
/// 预约手机号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? phone { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约事由 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? matter { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? reason { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 开始时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? sttime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 结束时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? ettime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 同意受理时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? acceptancetime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会见人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? meetwitId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会见人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? meetwitname { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? notes { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 状态 0:待办理,1:同意,2:拒绝,3:结束 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createusername { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createuserId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||
|
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,132 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 远程会见 |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_RemoteDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 操作人id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorId { get; set; } |
||||
/// <summary> |
||||
/// 操作人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? operatorName { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
/// <summary> |
||||
/// 手机推流地址 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? appurl { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会议号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? Code { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会议名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? name { get; set; } |
||||
/// <summary> |
||||
/// 预约人手机号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? phone { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? reason { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 开始时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? sttime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 结束时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? ettime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 同意受理时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? acceptancetime { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会见人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? meetwitId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 会见人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? meetwitname { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 预约类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? reservationId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? notes { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 0:待开始,1已结束,2:会议取消 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createusername { get; set; } |
||||
|
||||
[DataMember] |
||||
public string? createuserId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||
|
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
/// <summary> |
||||
/// 单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,57 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.APPDto.Lawyer |
||||
{ |
||||
/// <summary> |
||||
/// 卷宗基本信息 |
||||
/// </summary> |
||||
public class JZJBXXDto |
||||
{ |
||||
/// <summary> |
||||
/// 部门受案号 v |
||||
/// </summary> |
||||
public string? Id { get; set; } |
||||
|
||||
public string? bmsah { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 卷宗编号v |
||||
/// </summary> |
||||
public string? jzbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
public string? dwbm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// (简案)王奇涉嫌危险驾驶案 v |
||||
/// </summary> |
||||
public string? jzmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 卷宗制作人 |
||||
/// </summary> |
||||
public string? jzzzr { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 案件类别编码 |
||||
/// </summary> |
||||
public string? ajlbbm { get; set; } |
||||
/// <summary> |
||||
/// 案件类别名称 |
||||
/// </summary> |
||||
public string? ajlbmc { get; set; } |
||||
/// <summary> |
||||
/// 卷宗目录 v |
||||
/// </summary> |
||||
|
||||
public List<JZMLDto>? jzml { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,73 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.APPDto.Lawyer |
||||
{ |
||||
|
||||
|
||||
/// <summary> |
||||
/// 卷宗目录 |
||||
/// </summary> |
||||
public class JZMLDto |
||||
{ |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 卷宗Id |
||||
/// </summary> |
||||
public string? jzId { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? taskid { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 卷宗编号 |
||||
/// </summary> |
||||
public string? jzbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 目录编号 |
||||
/// </summary> |
||||
public string? mlbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 父目录编号 |
||||
/// </summary> |
||||
public string? fmlbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 目录显示名称 |
||||
/// </summary> |
||||
public string? mlxsmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 目录信息 |
||||
/// </summary> |
||||
public string? mlxx { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 目录顺序号 |
||||
/// </summary> |
||||
public int? mlsxh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 目录类型 卷,目录看,文件 |
||||
/// </summary> |
||||
public string? mllx { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
public string? dwbm { get; set; } |
||||
|
||||
public List<JZWJItemDto> jzwj { get; set; } |
||||
} |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,112 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.APPDto.Lawyer |
||||
{ |
||||
|
||||
/// <summary> |
||||
/// 卷宗文件 |
||||
/// </summary> |
||||
public class JZWJItemDto |
||||
{ |
||||
/// <summary> |
||||
/// 文件唯一标识 |
||||
/// </summary> |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 卷宗目录Id |
||||
/// </summary> |
||||
|
||||
public string? jzmlId { get; set; } |
||||
|
||||
public string? wjxh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 目录编号 |
||||
/// </summary> |
||||
public string? mlbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 源文件路径 |
||||
/// </summary> |
||||
public string? ywjlj { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 缩略图文件路径 |
||||
/// </summary> |
||||
public string? sltwjlj { get; set; } |
||||
|
||||
/// <summary> |
||||
/// pdf文件路径 |
||||
/// </summary> |
||||
public string? pdfwjlj { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 图片实际显示路径! |
||||
/// </summary> |
||||
public string? jpgwjlj { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文件页码 |
||||
/// </summary> |
||||
public string? wjym { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文件类型 |
||||
/// </summary> |
||||
public string? wjlx { get; set; } |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? wjscbz { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文件顺序号 排序 |
||||
/// </summary> |
||||
public int? wjsxh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文件显示名称 第二页 |
||||
/// </summary> |
||||
public string? wjxsmc { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 卷宗编号 |
||||
/// </summary> |
||||
public string? jzbh { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文件ocr识别状态 |
||||
/// </summary> |
||||
public string? wjocrsbzt { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 创建时间 |
||||
/// </summary> |
||||
public string? cjsj { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 上传时间 |
||||
/// </summary> |
||||
public string? time { get; set; } |
||||
|
||||
|
||||
public string? taskid { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 文件标识 |
||||
/// </summary> |
||||
public string? wjbs { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 标识编号 |
||||
/// </summary> |
||||
public string? bsbh { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,113 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.APPDto.Lawyer |
||||
{ |
||||
public class LawyerArchivesDto |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 卷宗id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? jzlbxxId { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitcode { get; set; } |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? bmsah { get; set; } |
||||
/// <summary> |
||||
/// 律师id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? lawyerId { get; set; } |
||||
/// <summary> |
||||
/// 律师名字 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? lawyerName { get; set; } |
||||
/// <summary> |
||||
/// 当事人姓名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? party { get; set; } |
||||
/// <summary> |
||||
/// 当事人身份证 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? partycardId { get; set; } |
||||
/// <summary> |
||||
/// 案件名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? casename { get; set; } |
||||
/// <summary> |
||||
/// 授权的开始阅卷时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? permissibleStartTime { get; set; } |
||||
/// <summary> |
||||
/// 授权的结束阅卷时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? permissibleEndTime { get; set; } |
||||
/// <summary> |
||||
/// 时间阅卷开始时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? actualStartTime { get; set; } |
||||
/// <summary> |
||||
/// 实际阅卷结束时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? actualEndTime { get; set; } |
||||
/// <summary> |
||||
/// 状态 0 待查阅 1查阅中 2 已查阅 |
||||
/// </summary> |
||||
[DataMember] |
||||
public ushort? status { get; set; } |
||||
/// <summary> |
||||
/// 拷贝限制 0 未复制 1打印 2刻录 3 both |
||||
/// </summary> |
||||
[DataMember] |
||||
public ushort? copyStatus { get; set; } |
||||
/// <summary> |
||||
/// 0 不限制 1限制打印 2 限制刻录 3全部禁止 |
||||
/// </summary> |
||||
[DataMember] |
||||
public ushort? copyLimit { get; set; } |
||||
/// <summary> |
||||
/// 备注 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? remake { get; set; } |
||||
[DataMember] |
||||
public DateTime? createTime { get; set; } |
||||
[DataMember] |
||||
public string? createrId { get; set; } |
||||
/// <summary> |
||||
/// 已缓存的文件计数 |
||||
/// </summary> |
||||
public int? downloadedCount { get; set; } |
||||
/// <summary> |
||||
/// 总的文件数计数 |
||||
/// </summary> |
||||
public int? jwCount { get; set; } |
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
using Newtonsoft.Json; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.APPDto.Lawyer |
||||
{ |
||||
public class QRUserDto |
||||
{ |
||||
public string? Id { get; set; } |
||||
public string? unitCode { get; set; } |
||||
public string? name { get; set; } |
||||
public string? phone { get; set; } |
||||
public string? cardId { get; set; } |
||||
} |
||||
public class QRLawyerServiceDto |
||||
{ |
||||
public string? Id { get; set; } |
||||
public string? unitCode { get; set; } |
||||
public string? phone { get; set; } |
||||
public string? matter { get; set; } |
||||
public string? reason { get; set; } |
||||
public DateTime? acceptancetime { get; set; } |
||||
/// <summary> |
||||
/// 访问对象 |
||||
/// </summary> |
||||
public string? objectstr { get; set; } |
||||
public string? reservationId { get; set; } |
||||
public string? notes { get; set; } |
||||
public int state { get; set; } |
||||
public string? createusername { get; set; } |
||||
public string? createuserId { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,14 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.APPDto |
||||
{ |
||||
public class QRTransfterDto |
||||
{ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,171 @@
|
||||
//using System; |
||||
//using System.Collections.Generic; |
||||
//using System.Linq; |
||||
//using System.Text; |
||||
//using System.Threading.Tasks; |
||||
|
||||
//namespace Elight.Entity.AppMode.Lawyer |
||||
//{ |
||||
// /// <summary> |
||||
// /// 卷宗基本信息 |
||||
// /// </summary> |
||||
// public class JZJBXX |
||||
// { |
||||
// /// <summary> |
||||
// /// 部门受案号 v |
||||
// /// </summary> |
||||
// public string bmsah { get; set; } |
||||
// /// <summary> |
||||
// /// 卷宗编号v |
||||
// /// </summary> |
||||
// public string jzbh { get; set; } |
||||
// /// <summary> |
||||
// /// 单位编码 |
||||
// /// </summary> |
||||
// public string dwbm { get; set; } |
||||
// /// <summary> |
||||
// /// (简案)王奇涉嫌危险驾驶案 v |
||||
// /// </summary> |
||||
// public string jzmc { get; set; } |
||||
// /// <summary> |
||||
// /// 卷宗制作人 |
||||
// /// </summary> |
||||
// public string jzzzr { get; set; } |
||||
// /// <summary> |
||||
// /// 案件类别编码 |
||||
// /// </summary> |
||||
// public string ajlbbm { get; set; } |
||||
// /// <summary> |
||||
// /// 案件类别名称 |
||||
// /// </summary> |
||||
// public string ajlbmc { get; set; } |
||||
// /// <summary> |
||||
// /// 卷宗目录 v |
||||
// /// </summary> |
||||
|
||||
// public List<JZML> jzml { get; set; } |
||||
// } |
||||
|
||||
|
||||
// /// <summary> |
||||
// /// 卷宗目录 |
||||
// /// </summary> |
||||
// public class JZML |
||||
// { |
||||
// /// <summary> |
||||
// /// |
||||
// /// </summary> |
||||
// public string taskid { get; set; } |
||||
// /// <summary> |
||||
// /// 卷宗编号 |
||||
// /// </summary> |
||||
// public string jzbh { get; set; } |
||||
// /// <summary> |
||||
// /// 目录编号 |
||||
// /// </summary> |
||||
// public string mlbh { get; set; } |
||||
// /// <summary> |
||||
// /// 父目录编号 |
||||
// /// </summary> |
||||
// public string fmlbh { get; set; } |
||||
// /// <summary> |
||||
// /// 目录显示名称 |
||||
// /// </summary> |
||||
// public string mlxsmc { get; set; } |
||||
// /// <summary> |
||||
// /// 目录信息 |
||||
// /// </summary> |
||||
// public string mlxx { get; set; } |
||||
// /// <summary> |
||||
// /// 目录顺序号 |
||||
// /// </summary> |
||||
// public string mlsxh { get; set; } |
||||
// /// <summary> |
||||
// /// 目录类型 卷,目录看,文件 |
||||
// /// </summary> |
||||
// public string mllx { get; set; } |
||||
// /// <summary> |
||||
// /// 单位编码 |
||||
// /// </summary> |
||||
// public string dwbm { get; set; } |
||||
// public List<JZWJItem> jzwj { get; set; } |
||||
// } |
||||
|
||||
|
||||
// /// <summary> |
||||
// /// 卷宗文件 |
||||
// /// </summary> |
||||
// public class JZWJItem |
||||
// { |
||||
// /// <summary> |
||||
// /// 文件唯一标识 |
||||
// /// </summary> |
||||
// public string wjxh { get; set; } |
||||
// /// <summary> |
||||
// /// 目录编号 |
||||
// /// </summary> |
||||
// public string mlbh { get; set; } |
||||
// /// <summary> |
||||
// /// 源文件路径 |
||||
// /// </summary> |
||||
// public string ywjlj { get; set; } |
||||
// /// <summary> |
||||
// /// 缩略图文件路径 |
||||
// /// </summary> |
||||
// public string sltwjlj { get; set; } |
||||
// /// <summary> |
||||
// /// pdf文件路径 |
||||
// /// </summary> |
||||
// public string pdfwjlj { get; set; } |
||||
// /// <summary> |
||||
// /// 图片实际显示路径! |
||||
// /// </summary> |
||||
// public string jpgwjlj { get; set; } |
||||
// /// <summary> |
||||
// /// 文件页码 |
||||
// /// </summary> |
||||
// public string wjym { get; set; } |
||||
// /// <summary> |
||||
// /// 文件类型 |
||||
// /// </summary> |
||||
// public string wjlx { get; set; } |
||||
// /// <summary> |
||||
// /// |
||||
// /// </summary> |
||||
// public string wjscbz { get; set; } |
||||
// /// <summary> |
||||
// /// 文件顺序号 排序 |
||||
// /// </summary> |
||||
// public int wjsxh { get; set; } |
||||
// /// <summary> |
||||
// /// 文件显示名称 第二页 |
||||
// /// </summary> |
||||
// public string wjxsmc { get; set; } |
||||
// /// <summary> |
||||
// /// 卷宗编号 |
||||
// /// </summary> |
||||
// public string jzbh { get; set; } |
||||
// /// <summary> |
||||
// /// 文件ocr识别状态 |
||||
// /// </summary> |
||||
// public string wjocrsbzt { get; set; } |
||||
// /// <summary> |
||||
// /// 创建时间 |
||||
// /// </summary> |
||||
// public string cjsj { get; set; } |
||||
// /// <summary> |
||||
// /// 上传时间 |
||||
// /// </summary> |
||||
// public string time { get; set; } |
||||
|
||||
// public string taskid { get; set; } |
||||
// /// <summary> |
||||
// /// 文件标识 |
||||
// /// </summary> |
||||
// public string wjbs { get; set; } |
||||
// /// <summary> |
||||
// /// 标识编号 |
||||
// /// </summary> |
||||
// public string bsbh { get; set; } |
||||
// } |
||||
//} |
@ -0,0 +1,65 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.AppMode.Lawyer |
||||
{ |
||||
/// <summary> |
||||
/// 卷宗基本信息 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
[SugarTable("case_jzlbxx")] |
||||
public class JZJBXX |
||||
{ |
||||
|
||||
[DataMember] |
||||
[SugarColumn(IsPrimaryKey = true)] |
||||
public string Id { get; set; } |
||||
/// <summary> |
||||
/// 部门受案号 v |
||||
/// </summary> |
||||
|
||||
[DataMember] |
||||
public string bmsah { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 卷宗编号v |
||||
/// </summary> |
||||
public string jzbh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
public string dwbm { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// (简案)王奇涉嫌危险驾驶案 v |
||||
/// </summary> |
||||
public string jzmc { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 卷宗制作人 |
||||
/// </summary> |
||||
public string jzzzr { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 案件类别编码 |
||||
/// </summary> |
||||
public string ajlbbm { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 案件类别名称 |
||||
/// </summary> |
||||
public string ajlbmc { get; set; } |
||||
/// <summary> |
||||
/// 导航 |
||||
/// </summary> |
||||
[Navigate(NavigateType.OneToMany, nameof(JZML.jzId))]//BookA表中的studenId |
||||
public List<JZML> jzml { get; set; }//注意禁止给books手动赋值 |
||||
} |
||||
} |
@ -0,0 +1,82 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.AppMode.Lawyer |
||||
{ |
||||
|
||||
|
||||
/// <summary> |
||||
/// 卷宗目录 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
[SugarTable("case_jzml")] |
||||
public class JZML |
||||
{ |
||||
[DataMember] |
||||
[SugarColumn(IsPrimaryKey = true)] |
||||
public string Id { get; set; } |
||||
/// <summary> |
||||
/// 卷宗Id |
||||
/// </summary> |
||||
public string? jzId { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string taskid { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 卷宗编号 |
||||
/// </summary> |
||||
public string jzbh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 目录编号 |
||||
/// </summary> |
||||
public string mlbh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 父目录编号 |
||||
/// </summary> |
||||
public string fmlbh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 目录显示名称 |
||||
/// </summary> |
||||
public string mlxsmc { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 目录信息 |
||||
/// </summary> |
||||
public string mlxx { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 目录顺序号 |
||||
/// </summary> |
||||
public int mlsxh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 目录类型 卷,目录看,文件 |
||||
/// </summary> |
||||
public string mllx { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
public string dwbm { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 导航 |
||||
/// </summary> |
||||
[Navigate(NavigateType.OneToMany, nameof(JZWJItem.jzmlId))]//BookA表中的studenId |
||||
public List<JZWJItem> jzwj { get; set; }//注意禁止给books手动赋值 |
||||
} |
||||
|
||||
|
||||
|
||||
} |
@ -0,0 +1,116 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.AppMode.Lawyer |
||||
{ |
||||
|
||||
/// <summary> |
||||
/// 卷宗文件 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
[SugarTable("case_jzwjitem")] |
||||
public class JZWJItem |
||||
{ |
||||
/// <summary> |
||||
/// 文件唯一标识 |
||||
/// </summary> |
||||
[DataMember] |
||||
[SugarColumn(IsPrimaryKey = true)] |
||||
public string Id { get; set; } |
||||
/// <summary> |
||||
/// 卷宗目录Id |
||||
/// </summary> |
||||
public string? jzmlId { get; set; } |
||||
[DataMember] |
||||
public string wjxh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 目录编号 |
||||
/// </summary> |
||||
public string mlbh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 源文件路径 |
||||
/// </summary> |
||||
public string ywjlj { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 缩略图文件路径 |
||||
/// </summary> |
||||
public string sltwjlj { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// pdf文件路径 |
||||
/// </summary> |
||||
public string pdfwjlj { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 图片实际显示路径! |
||||
/// </summary> |
||||
public string jpgwjlj { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 文件页码 |
||||
/// </summary> |
||||
public string wjym { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 文件类型 |
||||
/// </summary> |
||||
public string wjlx { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjscbz { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 文件顺序号 排序 |
||||
/// </summary> |
||||
public string wjsxh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 文件显示名称 第二页 |
||||
/// </summary> |
||||
public string wjxsmc { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 卷宗编号 |
||||
/// </summary> |
||||
public string jzbh { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 文件ocr识别状态 |
||||
/// </summary> |
||||
public string wjocrsbzt { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 创建时间 |
||||
/// </summary> |
||||
public string cjsj { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 上传时间 |
||||
/// </summary> |
||||
public string time { get; set; } |
||||
[DataMember] |
||||
|
||||
public string taskid { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 文件标识 |
||||
/// </summary> |
||||
public string wjbs { get; set; } |
||||
[DataMember] |
||||
/// <summary> |
||||
/// 标识编号 |
||||
/// </summary> |
||||
public string bsbh { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,69 @@
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity.AppMode.Lawyer |
||||
{ |
||||
[Serializable] |
||||
[DataContract] |
||||
[SugarTable("case_lawyerarchives")] |
||||
public class LawyerArchives |
||||
{ |
||||
[DataMember] |
||||
[SugarColumn(IsPrimaryKey = true)] |
||||
public string? Id { get; set; } |
||||
[DataMember] |
||||
public string? unitcode { get; set; } |
||||
[DataMember] |
||||
public string? jzlbxxId { get; set; } |
||||
[DataMember] |
||||
public string? bmsah { get; set; } |
||||
[DataMember] |
||||
public string? lawyerId { get; set; } |
||||
[DataMember] |
||||
public string? lawyerName { get; set; } |
||||
[DataMember] |
||||
public string? party { get; set; } |
||||
[DataMember] |
||||
public string? partycardId { get; set; } |
||||
[DataMember] |
||||
public string? casename { get; set; } |
||||
[DataMember] |
||||
public DateTime? permissibleStartTime { get; set; } |
||||
[DataMember] |
||||
public DateTime? permissibleEndTime { get; set; } |
||||
[DataMember] |
||||
public DateTime? actualStartTime { get; set; } |
||||
[DataMember] |
||||
public DateTime? actualEndTime { get; set; } |
||||
[DataMember] |
||||
public ushort? status { get; set; } |
||||
[DataMember] |
||||
public ushort? copyStatus { get; set; } |
||||
[DataMember] |
||||
public ushort? copyLimit { get; set; } |
||||
[DataMember] |
||||
public string? remake { get; set; } |
||||
[DataMember] |
||||
public DateTime? createTime { get; set; } |
||||
[DataMember] |
||||
public string? createrId { get; set; } |
||||
/// <summary> |
||||
/// 已缓存的文件计数 |
||||
/// </summary> |
||||
public int? downloadedCount { get; set; } |
||||
/// <summary> |
||||
/// 总的文件数计数 |
||||
/// </summary> |
||||
public int? jwCount { get; set; } |
||||
/// <summary> |
||||
/// 是否删除:0:未删除、1:删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
} |
||||
} |
@ -0,0 +1,64 @@
|
||||
using AutoMapper; |
||||
using Elight.Entity.APPDto.Lawyer; |
||||
using Elight.Entity.AppMode.Lawyer; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
public class AuthManageProfile : Profile |
||||
{ |
||||
public AuthManageProfile() |
||||
{ |
||||
this.CreateCusMap<App_Sys_AddLawyerInput, App_Sys_UserModel>(); |
||||
|
||||
CreateMap<JZJBXX, JZJBXXDto>().ReverseMap(); |
||||
CreateMap<JZML, JZMLDto>().ReverseMap(); |
||||
CreateMap<JZWJItem, JZWJItemDto>().ReverseMap(); |
||||
|
||||
CreateMap<LawyerArchives, LawyerArchivesDto>().ReverseMap(); |
||||
CreateMap<App_LawyerServicesModel, QRLawyerServiceDto>().ReverseMap(); |
||||
CreateMap<App_Sys_UserModel, QRUserDto>().ReverseMap(); |
||||
|
||||
//CreateMap<App_Sys_AddLawyerInput, App_Sys_UserModel>(); |
||||
|
||||
|
||||
CreateMap<App_CloudCabinetModel, App_CloudCabinetDto>(); |
||||
|
||||
CreateMap<App_ConfessionModel, App_ConfessionDto>(); |
||||
|
||||
CreateMap<App_DocumentModel, App_DocumentDto>(); |
||||
|
||||
CreateMap<App_HearingModel, App_HearingDto>(); |
||||
|
||||
CreateMap<App_LawyerServicesModel, App_LawyerServicesDto>(); |
||||
|
||||
CreateMap<App_ReceptionModel, App_ReceptionDto>(); |
||||
|
||||
CreateMap<App_RemoteModel, App_RemoteDto>(); |
||||
//用户管理 |
||||
CreateMap<App_Sys_UserDto, App_Sys_UserModel>(); |
||||
} |
||||
} |
||||
public static class AutoMapperProFileExtension |
||||
{ |
||||
public static void CreateCusMap<Source, Destination>(this Profile profile) |
||||
{ |
||||
profile.CreateMap<Source, Destination>().ForAllMembers(opt => |
||||
{ |
||||
opt.UseDestinationValue(); |
||||
opt.Condition((s, e, r, t) => |
||||
{ |
||||
if (r == null) |
||||
{ |
||||
return false; |
||||
} |
||||
else { return true; } |
||||
}); |
||||
}); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
public class App_Sys_AddLawyerInput |
||||
{ |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 身份证号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? cardId { get; set; } |
||||
/// <summary> |
||||
/// 电话号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? phone { get; set; } |
||||
/// <summary> |
||||
/// 名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? name { get; set; } |
||||
[DataMember] |
||||
public string? identitycardId { get; set; } |
||||
/// <summary> |
||||
/// 部门 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? departmentName { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,33 @@
|
||||
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Runtime.Serialization; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 角色表(扩展) |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_Sys_RoleDto |
||||
{ |
||||
/// <summary> |
||||
/// 角色Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 角色名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? name { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 角色用户 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? userId { get; set; } |
||||
} |
||||
} |
||||
|
@ -0,0 +1,147 @@
|
||||
|
||||
using SqlSugar; |
||||
using System; |
||||
using System.Runtime.Serialization; |
||||
|
||||
namespace Elight.Entity |
||||
{ |
||||
/// <summary> |
||||
/// 用户信息表(app_sys_user) |
||||
/// </summary> |
||||
[DataContract] |
||||
public class App_Sys_UserDto |
||||
{ |
||||
/// <summary> |
||||
/// 表里用户唯一标识符,自增长Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
/// <summary> |
||||
/// 部门id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? department { get; set; } |
||||
/// <summary> |
||||
/// 部门 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? departmentName { get; set; } |
||||
/// <summary> |
||||
/// 单位证明 律师事务所证明 |
||||
/// </summary> |
||||
public string? departmentPhoto { get; set; } |
||||
/// <summary> |
||||
/// 密码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? Password { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? name { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 职务 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? duties { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 电话号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? phone { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 身份证号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? cardId { get; set; } |
||||
/// <summary> |
||||
/// 身份(检察官,律师,当事人) |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? identity { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 微信Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? wechatId { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 账号类型0:系统,1:APP |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? usertype { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 是否停用 0:启用,1禁用 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? isdeactivate { get; set; } = 0; |
||||
|
||||
/// <summary> |
||||
/// 是否App通用:0:通用,1:不通用 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? becurrent { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 头像地址 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? photo { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 性别 0:女 1:男 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? sex { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 是否删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? IsDeleted { get; set; } = 0; |
||||
/// <summary> |
||||
/// 审核状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? audit { get; set; } |
||||
/// <summary> |
||||
/// 审核描述 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? describe { get; set; } |
||||
/// <summary> |
||||
/// 创建人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? createuserId { get; set; } |
||||
/// <summary> |
||||
/// 创建人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? createusername { get; set; } |
||||
/// <summary> |
||||
/// 角色ID |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? roleId { get; set; } |
||||
/// <summary> |
||||
/// 创建时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? createtime { get; set; } = DateTime.Now; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,20 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Logic.Model.Lawyer |
||||
{ |
||||
public class AddArchivesInfoInput |
||||
{ |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
public string Bmsah { get; set; } |
||||
/// <summary> |
||||
/// 被选中的三级id |
||||
/// </summary> |
||||
public List<string> Ids { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,64 @@
|
||||
using Elight.Utility.Code; |
||||
using SqlSugar; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace Elight.Logic.Model.Lawyer |
||||
{ |
||||
public class LawyerArchivesInput:Paging |
||||
{ |
||||
/// <summary> |
||||
/// 阅卷Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? Id { get; set; } |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? bmsah { get; set; } |
||||
/// <summary> |
||||
/// 律师姓名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? lawyerName { get; set; } |
||||
/// <summary> |
||||
/// 案件名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? caseName { get; set; } |
||||
/// <summary> |
||||
/// <summary> |
||||
/// 当事人姓名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? party { get; set; } |
||||
/// <summary> |
||||
/// 当事人身份证 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? partyCardId { get; set; } |
||||
/// <summary> |
||||
/// 单位Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? unitCode { get; set; } |
||||
/// <summary> |
||||
/// 接待人Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? receptionuserId { get; set; } |
||||
/// <summary> |
||||
/// 0:待办理,1:同意 ,2:拒绝 预约申请状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int? state { get; set; } |
||||
|
||||
public int? Isdelete { get; set; } |
||||
} |
||||
|
||||
} |
@ -0,0 +1,200 @@
|
||||
using Newtonsoft.Json; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.CompilerServices; |
||||
using System.Text; |
||||
using System; |
||||
using System.Text.RegularExpressions; |
||||
|
||||
namespace Elight.Utility.Extensions |
||||
{ |
||||
public static class ConvertorHelper |
||||
{ |
||||
/// <summary> |
||||
/// model=>json string |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="t"></param> |
||||
/// <returns></returns> |
||||
|
||||
private readonly static JsonSerializerSettings settings = new JsonSerializerSettings() |
||||
{ |
||||
NullValueHandling = NullValueHandling.Ignore, |
||||
ReferenceLoopHandling = ReferenceLoopHandling.Ignore |
||||
}; |
||||
public static string ConvertToJsonStr<T>(this T t) |
||||
{ |
||||
try |
||||
{ |
||||
return JsonConvert.SerializeObject(t, Formatting.None, settings); |
||||
|
||||
} |
||||
catch |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
public static T DeepCopy<T>(this T t) |
||||
{ |
||||
return t.ConvertToJsonStr().ConvertToModel<T>(); |
||||
} |
||||
/// <summary> |
||||
/// json转为匿名对象 |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="json"></param> |
||||
/// <param name="anonymousTypeObject"></param> |
||||
/// <returns></returns> |
||||
public static T ConvertToAnonymousType<T>(this object json, T anonymousTypeObject) |
||||
{ |
||||
try |
||||
{ |
||||
return JsonConvert.DeserializeAnonymousType(json.ToString(), anonymousTypeObject); |
||||
} |
||||
catch |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
/// <summary> |
||||
/// object 转匿名类 |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="anonymous"></param> |
||||
/// <param name="anonymousType"></param> |
||||
/// <returns></returns> |
||||
public static T ConvertToAnonymous<T>(this object anonymous, T anonymousType) |
||||
{ |
||||
try |
||||
{ |
||||
if (anonymous != null) |
||||
{ |
||||
return (T)anonymous; |
||||
} |
||||
else |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
catch |
||||
{ |
||||
return default; |
||||
|
||||
} |
||||
} |
||||
/// <summary> |
||||
/// json string=>mdoel |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="str"></param> |
||||
/// <returns></returns> |
||||
public static T ConvertToModel<T>(this string str, [CallerMemberName] string methodname = "") |
||||
{ |
||||
try |
||||
{ |
||||
return JsonConvert.DeserializeObject<T>(str); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
public static string ConvertToBase64(this string str) |
||||
{ |
||||
return Convert.ToBase64String(Encoding.Default.GetBytes(str)); |
||||
} |
||||
public static string ConvertToGetParam(this object obj) |
||||
{ |
||||
StringBuilder strBui = new StringBuilder(); |
||||
|
||||
System.Reflection.PropertyInfo[] proArray = obj.GetType().GetProperties(); |
||||
foreach (System.Reflection.PropertyInfo pro in proArray) |
||||
{ |
||||
if (strBui.Length < 1) |
||||
{ |
||||
strBui.Append("?"); |
||||
} |
||||
else |
||||
{ |
||||
strBui.Append("&"); |
||||
} |
||||
strBui.Append(string.Format("{0}={1}", pro.Name, pro.GetValue(obj, null))); |
||||
} |
||||
return strBui.ToString(); |
||||
} |
||||
// DateTime --> long |
||||
public static long ConvertDateTimeToLong(DateTime dt) |
||||
{ |
||||
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); |
||||
TimeSpan toNow = dt.Subtract(dtStart); |
||||
long timeStamp = toNow.Ticks; |
||||
timeStamp = long.Parse(timeStamp.ToString().Substring(0, timeStamp.ToString().Length - 4)); |
||||
return timeStamp; |
||||
} |
||||
// long --> DateTime |
||||
public static DateTime ConvertLongToDateTime(long d) |
||||
{ |
||||
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); |
||||
long lTime = long.Parse(d + "0000"); |
||||
TimeSpan toNow = new TimeSpan(lTime); |
||||
DateTime dtResult = dtStart.Add(toNow); |
||||
return dtResult; |
||||
} |
||||
|
||||
} |
||||
|
||||
public static class DateHelper |
||||
{ |
||||
public static DateTime GetStartDateOfDay(DateTime date) |
||||
{ |
||||
return date.Date; |
||||
} |
||||
public static DateTime GetEndDateOfDay(DateTime date) |
||||
{ |
||||
return date.Date.AddDays(1).AddSeconds(-1); |
||||
} |
||||
public static DateTime GetStartDateOfMonth(DateTime date) |
||||
{ |
||||
return date.AddDays(1 - date.Day).Date; |
||||
} |
||||
public static DateTime GetEndDateOfMonth(DateTime date) |
||||
{ |
||||
return GetStartDateOfMonth(date).AddMonths(1).AddSeconds(-1); |
||||
} |
||||
public static DateTime GetStartDateOfYear(DateTime date) |
||||
{ |
||||
return date.AddDays(1 - date.Day).AddMonths(1 - date.Month).Date; |
||||
} |
||||
public static DateTime GetEndDateOfYear(DateTime date) |
||||
{ |
||||
return GetStartDateOfYear(date).AddYears(1).AddSeconds(-1); |
||||
} |
||||
public static List<DateTime> GetArrayByDay(DateTime starttime, DateTime endtime) |
||||
{ |
||||
var list = new List<DateTime>(); |
||||
for (DateTime dt = starttime; dt.Date <= endtime.Date; dt = dt.AddDays(1)) |
||||
{ |
||||
list.Add(dt.Date); |
||||
} |
||||
return list; |
||||
} |
||||
public static List<DateTime> GetArrayByMonth(DateTime starttime, DateTime endtime) |
||||
{ |
||||
var list = new List<DateTime>(); |
||||
for (DateTime dt = starttime; dt.Date <= endtime.Date; dt = dt.AddMonths(1)) |
||||
{ |
||||
list.Add(GetStartDateOfMonth(dt.Date)); |
||||
} |
||||
return list; |
||||
} |
||||
public static List<DateTime> GetArrayByYear(DateTime starttime, DateTime endtime) |
||||
{ |
||||
var list = new List<DateTime>(); |
||||
for (DateTime dt = starttime; dt.Date <= endtime.Date; dt = dt.AddYears(1)) |
||||
{ |
||||
list.Add(GetStartDateOfYear(dt.Date)); |
||||
} |
||||
return list; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,5 @@
|
||||
{ |
||||
"version": 1, |
||||
"isRoot": true, |
||||
"tools": {} |
||||
} |
@ -0,0 +1,371 @@
|
||||
using Microsoft.AspNetCore.Mvc; |
||||
using Microsoft.AspNetCore.Mvc.ViewFeatures; |
||||
using Newtonsoft.Json; |
||||
using System.Net.Http; |
||||
using System.Runtime; |
||||
using System.Runtime.Serialization; |
||||
using test; |
||||
using WebApplication1.Models; |
||||
|
||||
namespace WebApplication1.Controllers |
||||
{ |
||||
[ApiController] |
||||
[Route("[controller]/[action]")]
|
||||
public class TwentySystemController : ControllerBase |
||||
{ |
||||
private readonly HttpClient httpClient; |
||||
private string ip, port; |
||||
|
||||
public TwentySystemController(IHttpClientFactory httpClientFactory, IConfiguration configuration) |
||||
{ |
||||
ip = configuration.GetSection("Configs:SystemIp").Value; |
||||
port = configuration.GetSection("Configs:Port").Value; |
||||
httpClient = httpClientFactory.CreateClient(); |
||||
httpClient.BaseAddress = new Uri($"http://{ip}:{port}"); |
||||
httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); |
||||
httpClient.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); |
||||
httpClient.DefaultRequestHeaders.ConnectionClose = true; |
||||
} |
||||
[HttpGet] |
||||
public async Task<Result<JZJBXX>> GetJZXX(string dwbm, string bmsah) |
||||
{ |
||||
try |
||||
{ |
||||
MDossier dossier = new MDossier(dwbm, $"{ip}:{port}"); |
||||
var data = await dossier.GetJZXX(dwbm, bmsah); |
||||
return new Result<JZJBXX>() |
||||
{ |
||||
IsSucceed = true, |
||||
Message = "操作成功", |
||||
result = data |
||||
}; |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
return new Result<JZJBXX>() |
||||
{ |
||||
IsSucceed = false, |
||||
Message = "操作失败" + ex.Message |
||||
}; |
||||
} |
||||
} |
||||
[HttpGet] |
||||
public async Task<Result<Paging<JZInfo>>> GetCaseInfo(string? casename, string? bmsah, string? dwbm, DateTime? starttime, DateTime? endtime, int page, int size) |
||||
{ |
||||
await Task.Delay(10); |
||||
var param = new |
||||
{ |
||||
ksslrq = starttime?.ToString("yyyy-MM-dd") ?? DateTime.Now.AddDays(-100).ToString("yyyy-MM-dd"), |
||||
jsslrq = endtime?.ToString("yyyy-MM-dd") ?? DateTime.Now.ToString("yyyy-MM-dd"), |
||||
bmsah = bmsah, |
||||
zzzt = "", |
||||
ajlbbms = new string[] { "2801", "2802", "2803", "1602", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2009", "2010", "2011", "2012", "2013", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024", "2025", "2026", "2027", "2029", "2031", "2032", "2033", "2034", "2035", "2036", "2037", "2039", "2040", "2041", "2042", "2043", "2044", "2048", "2049", "2050", "2051", "2052", "2053", "2054", "2055", "2056", "2058", "2059", "2062", "2077", "2078", "1603", "1604", "1608", "1611", "1614", "1619", "1621", "1622", "1625", "1626", "1630", "1631", "1632", "1633", "1634", "1635", "1636", "1637", "1638", "1650", "1801", "1802", "1803", "1805", "1806", "1807", "1808", "1809", "1810", "1812", "1813", "1901", "1902", "1903", "1904", "1905", "1906", "1907", "1908", "1909", "1910", "1911", "1912", "1913", "1914", "1915", "1916", "1917", "1918", "1919", "0701", "0702", "0703", "0704", "0705", "0706", "0707", "0708", "0709", "0710", "0711", "0712", "0713", "0714", "0715", "0716", "0717", "0718", "0719", "0720", "0721", "0722", "0723", "0724", "0725", "0726", "0727", "1701", "1702", "1703", "1704", "1705", "1706", "1708", "1709", "1710", "1711", "1712", "1713", " 1714", "1715", "1716", "1718", "1719", "1720", "1722", "1723", "1724", "1725", "1726", "1727", "1728", "1729", "1730", "1731", "1732", "1733", "1734", "1736", "1737", "1738", "1740", "1741", "1742", "1743", "1744", "1745", "1747", "1748", "1749", "1750", "1752", "1753", "1754", "1756", "1757", "1758", "1759", "1760", "1761", "1762", "1768", "1769", "1770", "1771", "1772", "1773", "1774", "1775", "1778", "1779", "1780", "1781", "1782", "1784", "1785", "1786", "1787", "1788", "1789", "1790", "1791", "1792", "2701", "2702", "2703", "2704", "2705", "2706", "2707", "2708", "2710", "2711", "2712", "2713", "2714", "2715", "2716", "2717", "2718", "2719", "2721", "2722", "2723", "2724", "2726", "2727", "2728", "2729", "2730", "2731", "2732", "2733", "2734", "2735", "2736", "2737", "0801", "0802", "0803", "0804", "0805", "0806", "0808", "0809", "0810", "0811", "0812", "0813", "0814", "0815", "0816", "0817", "0818", "0819", "0820", "0821", "0822", "0823", "0824", "0825", "0826", "0827", "0828", "1401", "1402", "1403", "1404", "1405", "1406", "1408", "1409", "1410", "1411", "1412", "1413", "1414", "1415", "1101", "1102", "1103", "1104", "1105", "1107", "1108", "1109", "1111", "1112", "1302", "1303", "1304", "1305", "2202", "2203", "2204", "2205", "2207", "2209", "2301", "2302", "2303", "2401", "2402", "2101", "2102", "2103", "2104", "2105", "2106", "2107", "2108", "2109", "2110", "2111", "2112", "2113", "2114", "2115", "2116", "2117", "2118", "2119", "2120", "2122", "2123", "2124", "2130", "2501", "2502", "2509", "2601", "2602", "2603", "2604", "0301", "3001", "3002" }, |
||||
ajmc = casename, |
||||
sfsy = "", |
||||
sfbd = "", |
||||
dwbms = new string[] |
||||
{ |
||||
dwbm |
||||
}, |
||||
page = page.ToString(), |
||||
size = size.ToString() |
||||
}; |
||||
httpClient.DefaultRequestHeaders.Add("X-IDENTITY", "eyJkbGJtIjoi5rGk6Lev5bmzIiwicnlibSI6IjQxMDUwMzAwNzQiLCJkd2JtIjoiNDEwNTAzIiwiZHdtYyI6IuWMl+WFs+WMuumZoiIsInJ5bWMiOiLmsaTot6/lubMifQ=="); |
||||
var request = await httpClient.PostAsJsonAsync("/dzjzzz-service/api/dzjzzz/dzjzzzYxJzjbxx/getDzzjzList", param); |
||||
var data = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
var result = data.ConvertToAnonymousType(new |
||||
{ |
||||
code = default(string), |
||||
success = default(bool), |
||||
message = default(string), |
||||
data = new |
||||
{ |
||||
pageNum = default(int), |
||||
pageSize = default(int), |
||||
total = default(int), |
||||
pages = default(int), |
||||
list = new[] |
||||
{ |
||||
default(JZInfo) |
||||
} |
||||
} |
||||
}); |
||||
if (result.success == true) |
||||
{ |
||||
if (result.data == null) |
||||
{ |
||||
return new Result<Paging<JZInfo>>() |
||||
{ |
||||
IsSucceed = true, |
||||
Message = result.message ?? "查询成功" |
||||
}; |
||||
} |
||||
else |
||||
{ |
||||
var res = new Result<Paging<JZInfo>>() |
||||
{ |
||||
IsSucceed = true, |
||||
Message = "操作成功", |
||||
result = new Paging<JZInfo>() |
||||
{ |
||||
pageNum = result?.data?.pageNum, |
||||
pageSize = result?.data?.pageSize, |
||||
total = result?.data?.total, |
||||
pages = result?.data?.pages, |
||||
List = result?.data?.list?.ToList() |
||||
} |
||||
}; |
||||
return res; |
||||
} |
||||
|
||||
} |
||||
else |
||||
{ |
||||
return new Result<Paging<JZInfo>>() |
||||
{ |
||||
IsSucceed = false, |
||||
Message = result.message ?? "查询失败" |
||||
}; |
||||
} |
||||
|
||||
} |
||||
public static string? dttjMapdata; |
||||
/// <summary> |
||||
/// 案件协同添加 |
||||
/// </summary> |
||||
/// <param name="bmsah">部门受案号</param> |
||||
/// <param name="dwbm">单位编码</param> |
||||
/// <returns></returns> |
||||
[HttpGet] |
||||
public async Task<List<dynamic>> CaseAdd(string bmsah, string dwbm) |
||||
{ |
||||
// 测试参数 |
||||
// string bmsah = "安北检未捕受[2023]410503000012号"; |
||||
// string dwbm = "410503"; |
||||
List<dynamic> list = new List<dynamic>(); |
||||
try |
||||
{ |
||||
List<string> untis = new List<string>(); |
||||
// 接口地址 127.0.0.1:8080 |
||||
var list_da = new List<Case_Info>(); //案件信息 |
||||
var list_dad = new List<Case_Card_Copy>(); //案件信息案卡 |
||||
var list_xxk = new List<Data_Table>(); //案件信息案卡选项卡信息 |
||||
var list_akdad = new List<Case_Card>(); //添加数据到案件信息案卡 |
||||
var infolist = new List<Case_Info>(); |
||||
var detail = new List<Case_Info_Detail>(); |
||||
string dqjdbh = string.Empty; |
||||
string dqjdmc = string.Empty; |
||||
// 案件信息参数 |
||||
var lcJson = new |
||||
{ |
||||
bmsah = bmsah // 部门受案号 |
||||
}; |
||||
|
||||
// 案件信息接口 |
||||
//var lcUrl = HttpHelper.Post("http://ajmx-service/api/caseCommon/getCaseBaseInfoAndSendLog", lcJson); |
||||
var request = await httpClient.PostAsJsonAsync("/ajmx-service/api/caseCommon/getCaseBaseInfoAndSendLog", lcJson); |
||||
var lcUrl = await request.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
|
||||
var lcModel = JsonConvert.DeserializeObject<ResultDto<LCDto>>(lcUrl); |
||||
if (lcModel.code == "0" && lcModel.success == true) |
||||
{ |
||||
dqjdmc = lcModel.Data.dqjdmc; |
||||
dqjdbh = lcModel.Data.dqjdbh; |
||||
} |
||||
|
||||
var uniquedata = infolist.Where(q => q.case_bmsah == bmsah).ToList(); |
||||
if (uniquedata.Count == 0) |
||||
{ |
||||
|
||||
// 获取模型编码接口参数 |
||||
var mxbmparm = new |
||||
{ |
||||
dwbm = dwbm, // 单位编码 |
||||
mxbm = lcModel.Data.ajmxbm // 案件模型编码 |
||||
}; |
||||
// 案件模型接口 |
||||
//var mxbmstr = HttpHelper.Post("http://" + ajUrl + "/ajmx-service/api/model/getModelBaseInfo", mxbmparm); |
||||
|
||||
var requestmxbmstr = await httpClient.PostAsJsonAsync("/ajmx-service/api/model/getModelBaseInfo", mxbmparm); |
||||
var mxbmstr = await requestmxbmstr.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
|
||||
var mxbm = JsonConvert.DeserializeObject<ResultDto<List<MxbmDto>>>(mxbmstr); |
||||
if (mxbm.code == "0" && mxbm.success == true) |
||||
{ |
||||
foreach (var mxbmDto in mxbm.Data) |
||||
{ |
||||
|
||||
var mxbmsjmxbm = mxbmDto.sjmxbm; |
||||
|
||||
// 案卡树信息参数 |
||||
var akparm = new |
||||
{ |
||||
mxbm = mxbm.Data[0].mxbm, // 模型编码 |
||||
rootData = bmsah // 部门受案号 |
||||
}; |
||||
|
||||
// 案卡树信息接口 |
||||
var requestmxbmstra = await httpClient.PostAsJsonAsync("/ajmx-service/api/caseForm/getRunningTreetData", akparm); |
||||
var akstr = await requestmxbmstra.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
|
||||
var akdata = JsonConvert.DeserializeObject<ResultDto<List<AKDto>>>(akstr); |
||||
if (akdata.code == "0" && akdata.success == true) |
||||
{ |
||||
foreach (var ak in akdata.Data) |
||||
{ |
||||
if (ak.stbmList == null || ak.stbmList.Count == 0) |
||||
{ |
||||
if (ak.children != null && ak.children.Count > 0) |
||||
{ |
||||
foreach (var children in ak.children) |
||||
{ |
||||
|
||||
// 案件案卡信息参数 |
||||
var xxk = new |
||||
{ |
||||
zbZjMap = new { bmsah = bmsah }, |
||||
dwbm = dwbm, |
||||
sjmxbm = mxbmsjmxbm, |
||||
stbmjh = children.stbmList, |
||||
xtbs = children.bdbs, |
||||
dttjMap = dttjMapdata, |
||||
zjMap = children.zjjh |
||||
}; |
||||
|
||||
#region 获取嫌疑人编号 |
||||
// 获取嫌疑人编号 |
||||
var xyrbm = ""; |
||||
try |
||||
{ |
||||
xyrbm = children.zjjh.ZRRBM; |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
xyrbm = ""; |
||||
} |
||||
#endregion |
||||
|
||||
// 案件案卡信息接口 |
||||
//var xxkstr = HttpHelper.Post("http://" + ajUrl + "/ajmx-service/api/caseForm/getAkFormData", xxk); |
||||
|
||||
var requestmxbmstrb = await httpClient.PostAsJsonAsync("/ajmx-service/api/caseForm/getAkFormData", xxk); |
||||
var xxkstr = await requestmxbmstrb.EnsureSuccessStatusCode().Content.ReadAsStringAsync(); |
||||
|
||||
var my_obj = JsonConvert.DeserializeObject<ResultDto<List<XxkDto>>>(xxkstr); |
||||
if (my_obj.code == "0" && my_obj.success == true) |
||||
{ |
||||
|
||||
string case_yszm = string.Empty; |
||||
string case_yszm_code = string.Empty; |
||||
|
||||
for (var i = 0; i < my_obj.Data[0].zdsj.Count; i++) |
||||
{ |
||||
|
||||
if (my_obj.Data[0].zdsj[i].zdmc == "YSAY") // 移送案由代码 |
||||
{ |
||||
case_yszm = my_obj.Data[0].zdsj[i].bgqzdwbz; // 移诉罪名名称 |
||||
case_yszm_code = my_obj.Data[0].zdsj[i].bgqzdbmz; // 移诉罪名编码 |
||||
|
||||
list.Add(new |
||||
{ |
||||
yszmmc = case_yszm, |
||||
yszmbm = case_yszm_code // 在线标识 |
||||
}); |
||||
|
||||
break; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
} |
||||
} |
||||
//ret.IsSucceed = true; |
||||
//return Json(ret); |
||||
|
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
//ret.IsSucceed = false; |
||||
//ret.Message = "添加失败请联系技术人员!"; |
||||
//return Json(ret); |
||||
} |
||||
return list; |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
||||
public class Paging<T> |
||||
{ |
||||
public int? pageNum { get; set; } |
||||
public int? pageSize { get; set; } |
||||
public int? total { get; set; } |
||||
public int? pages { get; set; } |
||||
public IEnumerable<T>? List { get; set; } |
||||
} |
||||
public class Result |
||||
{ |
||||
/// <summary> |
||||
/// 成功/失败 |
||||
/// </summary> |
||||
[DataMember] |
||||
public bool IsSucceed { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 消息 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string Message { get; set; } |
||||
/// <summary> |
||||
/// 消息 |
||||
/// </summary> |
||||
[DataMember] |
||||
public dynamic result { get; set; } |
||||
} |
||||
public class Result<T> : Result |
||||
{ |
||||
/// <summary> |
||||
/// 扩展数据 |
||||
/// </summary> |
||||
[DataMember] |
||||
public new T result { get; set; } |
||||
} |
||||
|
||||
public class JZInfo |
||||
{ |
||||
public string? jzbh { get; set; } |
||||
public string? ajmc { get; set; } |
||||
public string? bmsah { get; set; } |
||||
public string? cbdwbm { get; set; } |
||||
public string? rybm { get; set; } |
||||
public string? rymc { get; set; } |
||||
public int? cs { get; set; } |
||||
public int? ys { get; set; } |
||||
public DateTime? cjsj { get; set; } |
||||
public DateTime? cjrq { get; set; } |
||||
public string? zzr { get; set; } |
||||
public string? zzrbm { get; set; } |
||||
public string? zzzt { get; set; } |
||||
public string? jzms { get; set; } |
||||
public string? jzxh { get; set; } |
||||
public string? nfbd { get; set; } |
||||
public string? jzsd { get; set; } |
||||
public string? ajlbbm { get; set; } |
||||
public string? ajlbmc { get; set; } |
||||
public DateTime? slrq { get; set; } |
||||
public string? jzocrzt { get; set; } |
||||
public string? id { get; set; } |
||||
public string? yjzmc { get; set; } |
||||
public string? sfck { get; set; } |
||||
public string? sfkcz { get; set; } |
||||
public string? qlzt { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,142 @@
|
||||
using Newtonsoft.Json; |
||||
using System.Runtime.CompilerServices; |
||||
using System.Text; |
||||
|
||||
namespace WebApplication1 |
||||
{ |
||||
|
||||
public static class ConvertorExtension |
||||
{ |
||||
/// <summary> |
||||
/// model=>json string |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="t"></param> |
||||
/// <returns></returns> |
||||
|
||||
private readonly static JsonSerializerSettings settings = new JsonSerializerSettings() |
||||
{ |
||||
NullValueHandling = NullValueHandling.Ignore, |
||||
ReferenceLoopHandling = ReferenceLoopHandling.Ignore |
||||
}; |
||||
public static string ConvertToJsonStr<T>(this T t) |
||||
{ |
||||
try |
||||
{ |
||||
return JsonConvert.SerializeObject(t, Formatting.None, settings); |
||||
|
||||
} |
||||
catch |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
public static T DeepCopy<T>(this T t) |
||||
{ |
||||
return t.ConvertToJsonStr().ConvertToModel<T>(); |
||||
} |
||||
/// <summary> |
||||
/// json转为匿名对象 |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="json"></param> |
||||
/// <param name="anonymousTypeObject"></param> |
||||
/// <returns></returns> |
||||
public static T ConvertToAnonymousType<T>(this object json, T anonymousTypeObject) |
||||
{ |
||||
try |
||||
{ |
||||
return JsonConvert.DeserializeAnonymousType(json.ToString(), anonymousTypeObject); |
||||
} |
||||
catch |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
/// <summary> |
||||
/// object 转匿名类 |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="anonymous"></param> |
||||
/// <param name="anonymousType"></param> |
||||
/// <returns></returns> |
||||
public static T ConvertToAnonymous<T>(this object anonymous, T anonymousType) |
||||
{ |
||||
try |
||||
{ |
||||
if (anonymous != null) |
||||
{ |
||||
return (T)anonymous; |
||||
} |
||||
else |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
catch |
||||
{ |
||||
return default; |
||||
|
||||
} |
||||
} |
||||
/// <summary> |
||||
/// json string=>mdoel |
||||
/// </summary> |
||||
/// <typeparam name="T"></typeparam> |
||||
/// <param name="str"></param> |
||||
/// <returns></returns> |
||||
public static T ConvertToModel<T>(this string str, [CallerMemberName] string methodname = "") |
||||
{ |
||||
try |
||||
{ |
||||
return JsonConvert.DeserializeObject<T>(str); |
||||
} |
||||
catch (Exception) |
||||
{ |
||||
return default; |
||||
} |
||||
} |
||||
public static string ConvertToBase64(this string str) |
||||
{ |
||||
return Convert.ToBase64String(Encoding.Default.GetBytes(str)); |
||||
} |
||||
public static string ConvertToGetParam(this object obj) |
||||
{ |
||||
StringBuilder strBui = new StringBuilder(); |
||||
|
||||
System.Reflection.PropertyInfo[] proArray = obj.GetType().GetProperties(); |
||||
foreach (System.Reflection.PropertyInfo pro in proArray) |
||||
{ |
||||
if (strBui.Length < 1) |
||||
{ |
||||
strBui.Append("?"); |
||||
} |
||||
else |
||||
{ |
||||
strBui.Append("&"); |
||||
} |
||||
strBui.Append(string.Format("{0}={1}", pro.Name, pro.GetValue(obj, null))); |
||||
} |
||||
return strBui.ToString(); |
||||
} |
||||
// DateTime --> long |
||||
public static long ConvertDateTimeToLong(DateTime dt) |
||||
{ |
||||
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); |
||||
TimeSpan toNow = dt.Subtract(dtStart); |
||||
long timeStamp = toNow.Ticks; |
||||
timeStamp = long.Parse(timeStamp.ToString().Substring(0, timeStamp.ToString().Length - 4)); |
||||
return timeStamp; |
||||
} |
||||
// long --> DateTime |
||||
public static DateTime ConvertLongToDateTime(long d) |
||||
{ |
||||
DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); |
||||
long lTime = long.Parse(d + "0000"); |
||||
TimeSpan toNow = new TimeSpan(lTime); |
||||
DateTime dtResult = dtStart.Add(toNow); |
||||
return dtResult; |
||||
} |
||||
|
||||
} |
||||
} |
@ -0,0 +1,26 @@
|
||||
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||
|
||||
LABEL description="" |
||||
|
||||
LABEL version="1.0" |
||||
|
||||
# 指定工作目录 |
||||
WORKDIR /app |
||||
|
||||
# 把当前目录复制到镜像的 app目录 |
||||
COPY . . |
||||
|
||||
#时区设置 |
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||
|
||||
# 暴露的端口 |
||||
#EXPOSE 80 |
||||
EXPOSE 5194 |
||||
|
||||
ENV ASPNETCORE_URLS=http://+:5194 |
||||
ENV ASPNETCORE_ENVIRONMENT Production |
||||
|
||||
# 最后设置启动的dll |
||||
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,380 @@
|
||||
using Newtonsoft.Json; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Diagnostics; |
||||
using System.IO; |
||||
using System.Linq; |
||||
using System.Net; |
||||
using System.Net.Http.Headers; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace test |
||||
{ |
||||
internal class MDossier |
||||
{ |
||||
private string TyywAddr |
||||
{ |
||||
get; |
||||
set; |
||||
} |
||||
private string DWBM |
||||
{ |
||||
get; |
||||
set; |
||||
} |
||||
|
||||
public MDossier(string _dwbm, string _TyywAddr) |
||||
{ |
||||
DWBM = _dwbm; |
||||
TyywAddr = _TyywAddr; |
||||
} |
||||
|
||||
#region 获取卷宗信息操作 |
||||
public async Task<JZJBXX> GetJZXX(string dwbm, string bmsah) |
||||
{ |
||||
JZJBXX jbxx = new JZJBXX(); |
||||
#region POST |
||||
string apiUrl = "http://" + TyywAddr + "/dzjz-service/api/dzjz/getDzjzInfo"; // 接口 |
||||
//创建一个HTTP请求 |
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl); |
||||
//Post请求方式 |
||||
request.Method = "POST"; |
||||
//内容类型 |
||||
request.ContentType = "application/json"; |
||||
//设置参数,并进行URL编码 |
||||
string paraUrlCoded = "{\"bmsah\":\"" + bmsah + "\",\"dwbm\":\"" + dwbm + "\"}"; |
||||
byte[] payload; |
||||
//将Json字符串转化为字节 |
||||
payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded); |
||||
//设置请求的ContentLength |
||||
request.ContentLength = payload.Length; |
||||
//发送请求,获得请求流 |
||||
Stream writer; |
||||
try |
||||
{ |
||||
//获取用于写入请求数据的Stream对象 |
||||
writer = request.GetRequestStream(); |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteInfoLog("接口 1 参数序列化失败:" + ex.Message); |
||||
return jbxx; |
||||
} |
||||
//将请求参数写入流 |
||||
writer.Write(payload, 0, payload.Length); |
||||
writer.Close();//关闭请求流 |
||||
|
||||
HttpWebResponse response; |
||||
try |
||||
{ |
||||
//获得响应流 |
||||
response = (HttpWebResponse)request.GetResponse(); |
||||
} |
||||
catch (WebException ex) |
||||
{ |
||||
LogHelpe.WriteInfoLog("接口 1 请求异常:" + ex.Message); |
||||
return jbxx; |
||||
} |
||||
|
||||
if (response != null) |
||||
{ |
||||
Stream s = response.GetResponseStream(); |
||||
StreamReader sRead = new StreamReader(s); |
||||
string postContent = sRead.ReadToEnd(); |
||||
sRead.Close(); |
||||
s.Close(); |
||||
try |
||||
{ |
||||
var jsonObj = JsonConvert.DeserializeObject<JBXXStruct>(postContent); |
||||
if (jsonObj != null) |
||||
{ |
||||
if (jsonObj.jzjbxx != null) |
||||
{ |
||||
if (jsonObj.jzjbxx.Count > 0) |
||||
{ |
||||
jbxx = jsonObj.jzjbxx[0]; |
||||
List<JZML> jzml = await GetJZML(bmsah); |
||||
jbxx.jzml = jzml; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteErrorLog($"接口 1 失败原因:{ex.Message}"); |
||||
} |
||||
} |
||||
return jbxx; |
||||
#endregion |
||||
} |
||||
private async Task<List<JZML>> GetJZML(string bmsah) |
||||
{ |
||||
List<JZML> jzml = new List<JZML>(); |
||||
#region POST |
||||
string apiUrl = "http://" + TyywAddr + "/dzjzzz-service/api/dzjz/getDzjzMlWjInfo"; // 集中部署 |
||||
//创建一个HTTP请求 |
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl); |
||||
//Post请求方式 |
||||
request.Method = "POST"; |
||||
//内容类型 |
||||
request.ContentType = "application/json"; |
||||
//设置参数,并进行URL编码 |
||||
string paraUrlCoded = "{\"bmsah\":\"" + bmsah + "\"}"; |
||||
byte[] payload; |
||||
//将Json字符串转化为字节 |
||||
payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded); |
||||
//设置请求的ContentLength |
||||
request.ContentLength = payload.Length; |
||||
//发送请求,获得请求流 |
||||
Stream writer; |
||||
try |
||||
{ |
||||
//获取用于写入请求数据的Stream对象 |
||||
writer = request.GetRequestStream(); |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteInfoLog("接口 2 参数序列化失败:" + ex.Message); |
||||
return jzml; |
||||
} |
||||
//将请求参数写入流 |
||||
writer.Write(payload, 0, payload.Length); |
||||
writer.Close();//关闭请求流 |
||||
|
||||
HttpWebResponse response; |
||||
try |
||||
{ |
||||
//获得响应流 |
||||
response = (HttpWebResponse)request.GetResponse(); |
||||
} |
||||
catch (WebException ex) |
||||
{ |
||||
LogHelpe.WriteInfoLog("接口 2 请求异常:" + ex.Message); |
||||
return jzml; |
||||
} |
||||
|
||||
if (response != null) |
||||
{ |
||||
Stream s = response.GetResponseStream(); |
||||
StreamReader sRead = new StreamReader(s); |
||||
string postContent = sRead.ReadToEnd(); |
||||
sRead.Close(); |
||||
s.Close(); |
||||
try |
||||
{ |
||||
|
||||
var jsonObj = JsonConvert.DeserializeObject<JZMLStruct>(postContent); |
||||
if (jsonObj != null) |
||||
{ |
||||
jzml = jsonObj.data.jzml; |
||||
if (jsonObj.data != null) |
||||
{ |
||||
LogHelpe.WriteInfoLog("目录数据:" + jsonObj.data.jzml.Count); |
||||
foreach (var item in jzml) |
||||
{ |
||||
// 文件接口的参数 |
||||
var mlbh = item.mlbh; |
||||
var jzbh = item.jzbh; |
||||
//获取卷或目录下的所有文件列表 |
||||
List<JZWJItem> wjlist = await GetJZMLWJ(mlbh, jzbh); |
||||
if (jsonObj.data.jzmlwj != null) |
||||
{ |
||||
for (int i = 0; i < wjlist.Count; i++) |
||||
{ |
||||
var wj = jsonObj.data.jzmlwj.Where(w => w.wjxh.Equals(wjlist[i].wjxh)).FirstOrDefault(); |
||||
if (wj != null) |
||||
{ |
||||
wjlist[i].bsbh = jsonObj.data.jzmlwj[i].bsbh; |
||||
} |
||||
} |
||||
} |
||||
item.jzwj = wjlist; |
||||
} |
||||
return jzml; |
||||
} |
||||
} |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteErrorLog($"接口 2 失败原因:{ex.Message}"); |
||||
return jzml; |
||||
} |
||||
|
||||
} |
||||
return jzml; |
||||
#endregion |
||||
} |
||||
/// <summary> |
||||
/// 获取卷或目录下的所有文件列表 |
||||
/// </summary> |
||||
private async Task<List<JZWJItem>> GetJZMLWJ(string mlbh, string jzbh) |
||||
{ |
||||
string apiUrl = "http://" + TyywAddr + "/dzjzzz-service/api/dzjzzz/dzjzzzYxJzmlwj/getJzmlwjInfo"; // 集中部署 |
||||
LogHelpe.WriteInfoLog($"请求地址:{apiUrl}"); //创建一个HTTP请求 |
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(apiUrl); |
||||
//Post请求方式 |
||||
request.Method = "POST"; |
||||
//内容类型 |
||||
request.ContentType = "application/json"; |
||||
//设置参数,并进行URL编码 |
||||
string paraUrlCoded = "{\"mlbh\":\"" + mlbh + "\",\"jzbh\": \"" + jzbh + "\"}"; |
||||
byte[] payload; |
||||
//将Json字符串转化为字节 |
||||
payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded); |
||||
//设置请求的ContentLength |
||||
request.ContentLength = payload.Length; |
||||
//发送请求,获得请求流 |
||||
Stream writer; |
||||
try |
||||
{ |
||||
//获取用于写入请求数据的Stream对象 |
||||
writer = request.GetRequestStream(); |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteInfoLog("接口 3 参数序列化失败:" + ex.Message); |
||||
return new List<JZWJItem>(); |
||||
} |
||||
//将请求参数写入流 |
||||
writer.Write(payload, 0, payload.Length); |
||||
writer.Close();//关闭请求流 |
||||
HttpWebResponse response; |
||||
try |
||||
{ |
||||
//获得响应流 |
||||
response = (HttpWebResponse)request.GetResponse(); |
||||
} |
||||
catch (WebException ex) |
||||
{ |
||||
LogHelpe.WriteInfoLog("接口 3 请求异常:" + ex.Message); |
||||
return new List<JZWJItem>(); |
||||
} |
||||
|
||||
if (response != null) |
||||
{ |
||||
Stream s = response.GetResponseStream(); |
||||
StreamReader sRead = new StreamReader(s); |
||||
string postContent = sRead.ReadToEnd(); |
||||
s.Close(); |
||||
sRead.Close(); |
||||
|
||||
try |
||||
{ |
||||
var jsonObj = JsonConvert.DeserializeObject<JZWJStruct>(postContent); |
||||
if (jsonObj != null) |
||||
{ |
||||
if (jsonObj.code == "0" && jsonObj.success == "true") |
||||
{ |
||||
if (jsonObj.data != null && jsonObj.data.Count > 0) |
||||
{ |
||||
List<JZWJItem> mLWJItems = jsonObj.data; |
||||
return mLWJItems; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteErrorLog($"接口 3 失败原因:{ex.Message}"); |
||||
} |
||||
} |
||||
|
||||
return new List<JZWJItem>(); |
||||
} |
||||
#endregion |
||||
|
||||
#region 下载文件 |
||||
//任务数据队列 |
||||
private List<string> lst_bmsah = new List<string>(); |
||||
private bool taskStatus = true; |
||||
private int taskCount = 0; |
||||
public async void DownJZFiles(JZJBXX jbxx, string dirPath, bool cacheFile = true) |
||||
{ |
||||
if (jbxx != null) |
||||
{ |
||||
if (jbxx.jzml != null && jbxx.jzml.Count > 0) |
||||
{ |
||||
for (int m = 0; m < jbxx.jzml.Count; m++) |
||||
{ |
||||
if (jbxx.jzml[m].jzwj != null && jbxx.jzml[m].jzwj.Count > 0) |
||||
{ |
||||
for (int j = 0; j < jbxx.jzml[m].jzwj.Count; j++) |
||||
{ |
||||
if (!Directory.Exists(dirPath)) |
||||
{ |
||||
Directory.CreateDirectory(dirPath); |
||||
} |
||||
if (Directory.Exists(dirPath)) |
||||
{ |
||||
string filePath = Path.Combine(dirPath, Path.GetFileName(jbxx.jzml[m].jzwj[j].wjxh + ".jpg")); |
||||
byte[] jpgBytes = DownJZWJFile(jbxx.jzml[m].jzwj[j].jpgwjlj, jbxx.jzml[m].jzwj[j].wjxsmc, jbxx.jzml[m].mlxsmc, filePath, cacheFile); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
} |
||||
|
||||
|
||||
//下载图片 |
||||
private byte[] DownJZWJFile(string url, string wjxsmc, string mlxsmc, string filePath, bool cacheFile = true) |
||||
{ |
||||
byte[] jpgByte = new byte[] { }; |
||||
|
||||
try |
||||
{ |
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); |
||||
//发送请求并获取相应回应数据 |
||||
HttpWebResponse response = request.GetResponse() as HttpWebResponse; |
||||
|
||||
Stream responseStream = response.GetResponseStream(); |
||||
try |
||||
{ |
||||
#region 正式 |
||||
MemoryStream memory = new MemoryStream(); |
||||
byte[] bArr = new byte[1024]; |
||||
int size = responseStream.Read(bArr, 0, (int)bArr.Length); |
||||
while (size > 0) |
||||
{ |
||||
memory.Write(bArr, 0, size); |
||||
size = responseStream.Read(bArr, 0, (int)bArr.Length); |
||||
} |
||||
|
||||
if (cacheFile) |
||||
{ |
||||
//文件落地(本地存放) |
||||
using (var fileStream = File.Create(filePath)) |
||||
{ |
||||
memory.Seek(0, SeekOrigin.Begin); |
||||
memory.CopyTo(fileStream); |
||||
} |
||||
} |
||||
jpgByte = memory.ToArray(); |
||||
// 关闭请求流 |
||||
memory.Close(); |
||||
|
||||
responseStream.Close(); |
||||
|
||||
#endregion |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteErrorLog(string.Format("文件下载失败,文件名:{0}/{1},{2}", wjxsmc, mlxsmc, ex.Message)); |
||||
} |
||||
} |
||||
catch (Exception ex) |
||||
{ |
||||
LogHelpe.WriteErrorLog($"GetBytesFromUrl失败原因:{ex.Message}"); |
||||
} |
||||
return jpgByte; |
||||
} |
||||
|
||||
|
||||
#endregion |
||||
|
||||
|
||||
} |
||||
} |
@ -0,0 +1,261 @@
|
||||
using Newtonsoft.Json; |
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
/// <summary> |
||||
/// 目录结构 |
||||
/// </summary> |
||||
public class JZML |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string taskid { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string jzbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mlbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string fmlbh { get; set; } |
||||
/// <summary> |
||||
/// 新增卷 |
||||
/// </summary> |
||||
public string mlxsmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mlxx { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mlsxh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mllx { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dwbm { get; set; } |
||||
public List<JZWJItem> jzwj { get; set; } |
||||
} |
||||
|
||||
public class JZMLData |
||||
{ |
||||
public List<JZML> jzml { get; set; } |
||||
|
||||
//public List<JzmlwjItem> jzwj { get; set; } |
||||
public List<JzmlwjItem> jzmlwj { get; set; } |
||||
} |
||||
|
||||
|
||||
public class JZMLStruct |
||||
{ |
||||
public string code { get; set; } |
||||
public string success { get; set; } |
||||
// 获取电子卷件信息成功 |
||||
public string message { get; set; } |
||||
public JZMLData data { get; set; } |
||||
} |
||||
|
||||
|
||||
public class JzmlwjItem |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjxh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mlbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjym { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjlx { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjscbz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int wjsxh { get; set; } |
||||
/// <summary> |
||||
/// 目录 |
||||
/// </summary> |
||||
public string wjxsmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string jzbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjlj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjhz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bsbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjksy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wjjsy { get; set; } |
||||
} |
||||
|
||||
|
||||
public class JZWJItem |
||||
{ |
||||
public string wjxh { get; set; } |
||||
public string mlbh { get; set; } |
||||
public string ywjlj { get; set; } |
||||
public string sltwjlj { get; set; } |
||||
public string pdfwjlj { get; set; } |
||||
public string jpgwjlj { get; set; } |
||||
public string wjym { get; set; } |
||||
public string wjlx { get; set; } |
||||
public string wjscbz { get; set; } |
||||
public int wjsxh { get; set; } |
||||
public string wjxsmc { get; set; } |
||||
public string jzbh { get; set; } |
||||
public string wjocrsbzt { get; set; } |
||||
public string cjsj { get; set; } |
||||
public string time { get; set; } |
||||
public string taskid { get; set; } |
||||
public string wjbs { get; set; } |
||||
public string bsbh { get; set; } |
||||
} |
||||
|
||||
public class JZWJStruct |
||||
{ |
||||
public string code { get; set; } |
||||
public string success { get; set; } |
||||
public string message { get; set; } |
||||
public List<JZWJItem> data { get; set; } |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class JZJBXX |
||||
{ |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
public string bmsah { get; set; } |
||||
/// <summary> |
||||
/// 卷宗编号 |
||||
/// </summary> |
||||
public string jzbh { get; set; } |
||||
/// <summary> |
||||
/// 单位编码 |
||||
/// </summary> |
||||
public string dwbm { get; set; } |
||||
/// <summary> |
||||
/// (简案)王奇涉嫌危险驾驶案 |
||||
/// </summary> |
||||
public string jzmc { get; set; } |
||||
/// <summary> |
||||
/// 汤路平 |
||||
/// </summary> |
||||
public string jzzzr { get; set; } |
||||
/// <summary> |
||||
/// 案件类别编码 |
||||
/// </summary> |
||||
public string ajlbbm { get; set; } |
||||
/// <summary> |
||||
/// 案件类别名称 |
||||
/// </summary> |
||||
public string ajlbmc { get; set; } |
||||
|
||||
public List<JZML> jzml { get; set; } |
||||
} |
||||
|
||||
|
||||
public class JBXXStruct |
||||
{ |
||||
public List<JZJBXX> jzjbxx { get; set; } |
||||
|
||||
} |
||||
|
||||
public class ApiResponse |
||||
{ |
||||
/// <summary> |
||||
/// 返回代码 200:成功 300:系统错误 400:自定义错误 500:ORC识别错误 |
||||
/// </summary> |
||||
[JsonProperty(PropertyName = "code")] |
||||
public int Code { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 错误信息 |
||||
/// </summary> |
||||
[JsonProperty(PropertyName = "Message")] |
||||
public string Message { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 结果 |
||||
/// </summary> |
||||
[JsonProperty(PropertyName = "data")] |
||||
public object Data { get; set; } |
||||
} |
||||
|
||||
public class ImagesRoot |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public ImagesData Data { get; set; } |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int Code { get; set; } |
||||
/// <summary> |
||||
/// PDF转图片成功 |
||||
/// </summary> |
||||
public string Message { get; set; } |
||||
} |
||||
|
||||
public class ImagesData |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int code { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<List<string>> data { get; set; } |
||||
public List<string> file_base64 { get; set; } |
||||
|
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string errMsg { get; set; } |
||||
} |
@ -0,0 +1,76 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Configuration; |
||||
using System.IO; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace test |
||||
{ |
||||
/// <summary> |
||||
/// 自定义日志 |
||||
/// </summary> |
||||
public class LogHelpe |
||||
{ |
||||
/// <summary> |
||||
/// 信息日志 |
||||
/// </summary> |
||||
/// <param name="str"></param> |
||||
public static void WriteInfoLog(string str, string dirName = @"logs") |
||||
{ |
||||
//return; |
||||
try |
||||
{ |
||||
var status = 1;//int.Parse(ConfigurationManager.AppSettings["LogStatus"]); |
||||
if (status == 0) // 0不输出日志,1输出日志 |
||||
{ |
||||
return; |
||||
} |
||||
else |
||||
{ |
||||
if (string.IsNullOrEmpty(str)) return; |
||||
|
||||
var baseDir = AppDomain.CurrentDomain.BaseDirectory + dirName; |
||||
if (!Directory.Exists(baseDir)) |
||||
{ |
||||
Directory.CreateDirectory(baseDir); |
||||
} |
||||
string filePath = Path.Combine(baseDir, DateTime.Now.ToString("yyyy-MM-dd") + "_infolog.txt"); |
||||
using (StreamWriter sw = File.AppendText(filePath)) |
||||
{ |
||||
sw.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff ") + "[" + str + "]" + "\r\n"); |
||||
sw.Flush(); |
||||
} |
||||
} |
||||
} |
||||
catch { } |
||||
} |
||||
|
||||
/// <summary> |
||||
/// 错误日志 |
||||
/// </summary> |
||||
/// <param name="str"></param> |
||||
public static void WriteErrorLog(string str, string dirName = @"logs") |
||||
{ |
||||
//return; |
||||
try |
||||
{ |
||||
if (string.IsNullOrEmpty(str)) return; |
||||
|
||||
var baseDir = AppDomain.CurrentDomain.BaseDirectory + dirName; |
||||
if (!Directory.Exists(baseDir)) |
||||
{ |
||||
Directory.CreateDirectory(baseDir); |
||||
} |
||||
string filePath = Path.Combine(baseDir, DateTime.Now.ToString("yyyy-MM-dd") + "_errorlog.txt"); |
||||
using (StreamWriter sw = File.AppendText(filePath)) |
||||
{ |
||||
sw.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff ") + "[" + str + "]" + "\r\n"); |
||||
sw.Flush(); |
||||
} |
||||
} |
||||
catch { } |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,181 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class AJDto |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<AJDetailDto> records { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int total { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int size { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int current { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string searchCount { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int pages { get; set; } |
||||
} |
||||
|
||||
public class AJDetailDto |
||||
{ |
||||
/// <summary> |
||||
/// 鄂孝检必审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string bmsah { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string aqzy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string tysah { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ajmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbdwbm { get; set; } |
||||
/// <summary> |
||||
/// 孝感市院 |
||||
/// </summary> |
||||
public string cbdwmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ywbm { get; set; } |
||||
/// <summary> |
||||
/// 刑事检察 |
||||
/// </summary> |
||||
public string ywmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ajlbbm { get; set; } |
||||
/// <summary> |
||||
/// 侦查/审判阶段羁押必要性审查案件 |
||||
/// </summary> |
||||
public string ajlbmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ajzt { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string yjzt { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbjcgbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbjcg { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbjcgsfzhm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string slrq { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string slrqStr { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string blts { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dqrq { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bjrq { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wcrq { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string wcrqStr { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string gdrq { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mxbm { get; set; } |
||||
/// <summary> |
||||
/// 普通类模型(羁押必要性审查案件(执检)) |
||||
/// </summary> |
||||
public string mxmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbjcgsfdm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbjcgsf { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string batdbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string batdmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string batdlx { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cbbmbm { get; set; } |
||||
/// <summary> |
||||
/// 第一检察部 |
||||
/// </summary> |
||||
public string cbbmmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dqjdbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dqjdmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfkcz { get; set; } |
||||
|
||||
} |
||||
} |
@ -0,0 +1,282 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class AKDto |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? mxbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<string>? stbmList { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? mxbdbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? mxbdpzbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? fmxbdpzbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? bdbs { get; set; } |
||||
/// <summary> |
||||
/// 案件信息 |
||||
/// </summary> |
||||
public string? bdmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int? px { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? dwbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? sfzf { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? sfjzzjcd { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int? zjsl { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? sfsxnzj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? zjglbdbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? zjcdxgb { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? bjxgb { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? gldsjzj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool? sfxnml { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? xsmcl { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? zjcdgltj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? zjsfyxtj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? zjsfyxsc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool? sfksc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? pxzd { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public ZRRLX? zjcdgltjMap { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public Zjjh? zjjh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? dgsd { get; set; } |
||||
/// <summary> |
||||
/// _鄂孝检刑(不)捕审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string? zjString { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool? sfsrk { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string? zrrlxtj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<ChildrenItem>? children { get; set; } |
||||
} |
||||
|
||||
|
||||
public class ZRRLX |
||||
{ |
||||
public string ZRRLX_DM { get; set; } |
||||
|
||||
|
||||
} |
||||
public class Zjjh |
||||
{ |
||||
/// <summary> |
||||
/// 鄂孝检必审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string BMSAH { get; set; } |
||||
|
||||
|
||||
public string ZRRBM { get; set; } |
||||
} |
||||
|
||||
public class ChildrenItem |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mxbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<string> stbmList { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mxbdbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mxbdpzbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string fmxbdpzbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bdbs { get; set; } |
||||
/// <summary> |
||||
/// 申诉审查案件信息 |
||||
/// </summary> |
||||
public string bdmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public int? px { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dwbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfzf { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfjzzjcd { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjsl { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfsxnzj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjglbdbh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjcdxgb { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bjxgb { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string gldsjzj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool sfxnml { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string xsmcl { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjcdgltj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjsfyxtj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjsfyxsc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool sfksc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string pxzd { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public ZRRLX zjcdgltjMap { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public Zjjh zjjh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dgsd { get; set; } |
||||
/// <summary> |
||||
/// 4028821f6c14c33c016c240b3bf3001a_鄂孝检刑(不)捕审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string zjString { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool sfsrk { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zrrlxtj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<string> children { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,56 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
/// <summary> |
||||
/// 选项卡 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
|
||||
public class Case_Card |
||||
{ |
||||
[DataMember] |
||||
public string Id { get; set; } |
||||
/// <summary> |
||||
/// 父级 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string pid { get; set; } |
||||
/// <summary> |
||||
/// 名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string name { get; set; } |
||||
/// <summary> |
||||
/// 编号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string card_no { get; set; } |
||||
/// <summary> |
||||
/// 状态是否是选项卡 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
/// <summary> |
||||
/// 排序 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string sort { get; set; } |
||||
/// <summary> |
||||
/// 排序 |
||||
/// </summary> |
||||
//[DataMember] |
||||
//public string aj_type { get; set; } |
||||
/// <summary> |
||||
/// 是否删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int Isdelete { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,46 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
/// <summary> |
||||
/// 案卡信息 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
|
||||
public class Case_Card_Copy |
||||
{ |
||||
[DataMember] |
||||
public string Id { get; set; } |
||||
/// <summary> |
||||
/// 案件信息id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string caseID { get; set; } |
||||
/// <summary> |
||||
/// 案卡树形json |
||||
/// </summary> |
||||
[DataMember] |
||||
public string akjson { get; set; } |
||||
/// <summary> |
||||
/// 状态是否是选项卡 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
/// <summary> |
||||
/// 排序 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string sort { get; set; } |
||||
/// <summary> |
||||
/// 是否删除 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int Isdelete { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,233 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.ComponentModel; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
/// <summary> |
||||
/// 案件表 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
/// <summary> |
||||
/// 数据表 |
||||
/// </summary> |
||||
public class Case_Info |
||||
{ |
||||
[DataMember] |
||||
public string case_id { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 案件名称 |
||||
/// </summary> |
||||
[DisplayName("案件名称")] |
||||
[DataMember] |
||||
public string case_ajmc { get; set; } |
||||
/// <summary> |
||||
/// 案件类型 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string case_ajlx { get; set; } |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
[DisplayName("部门受案号")] |
||||
[DataMember] |
||||
/// |
||||
public string case_bmsah { get; set; } |
||||
/// <summary> |
||||
/// 统一受案号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string case_tysah { get; set; } |
||||
/// <summary> |
||||
/// 承办人 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbr { get; set; } |
||||
/// <summary> |
||||
/// 公开情况 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_gkqk { get; set; } |
||||
/// <summary> |
||||
/// 流程阶段 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_lcjd { get; set; } |
||||
/// <summary> |
||||
/// 受理时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_slrq { get; set; } |
||||
/// <summary> |
||||
/// 到期时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_dqrq { get; set; } |
||||
/// <summary> |
||||
/// 审查时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_scrq { get; set; } |
||||
/// <summary> |
||||
/// 删除状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int isdelete { get; set; } |
||||
/// <summary> |
||||
/// 创建时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime? case_cjsj { get; set; } |
||||
/// <summary> |
||||
/// 自检状态 0:待检验 1:待校正 2:已校正 |
||||
/// </summary> |
||||
[DataMember] |
||||
[DisplayName("自检状态")] |
||||
public int case_state { get; set; } |
||||
/// <summary> |
||||
/// 承办单位编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbdwBm { get; set; } |
||||
/// <summary> |
||||
/// 承办单位名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbdwMc { get; set; } |
||||
/// <summary> |
||||
/// 承办部门编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbbmBm { get; set; } |
||||
/// <summary> |
||||
/// 承办部门名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbbmMc { get; set; } |
||||
/// <summary> |
||||
/// 业务编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_ywbm { get; set; } |
||||
/// <summary> |
||||
/// 业务名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_ywmc { get; set; } |
||||
/// <summary> |
||||
/// 案件类别bianma |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_ajlbBm { get; set; } |
||||
/// <summary> |
||||
/// 案件类别名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_ajlbMc { get; set; } |
||||
/// <summary> |
||||
/// 案件状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_ajzt { get; set; } |
||||
/// <summary> |
||||
/// 预警状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_yjzt { get; set; } |
||||
/// <summary> |
||||
/// 承办检察官编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbjcgbm { get; set; } |
||||
/// <summary> |
||||
/// 承办检察官身份号码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbjcgsfzhm { get; set; } |
||||
/// <summary> |
||||
/// 办结天数 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_blts { get; set; } |
||||
/// <summary> |
||||
/// 办结日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_bjrq { get; set; } |
||||
/// <summary> |
||||
/// 完成日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_wcrq { get; set; } |
||||
/// <summary> |
||||
/// 归档日期 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_gdrq { get; set; } |
||||
/// <summary> |
||||
/// 模型编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_mxbm { get; set; } |
||||
/// <summary> |
||||
/// 模型名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_mxmc { get; set; } |
||||
/// <summary> |
||||
/// 检察官身份编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbjcgsfDm { get; set; } |
||||
/// <summary> |
||||
/// 检察官身份 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_cbjcgsf { get; set; } |
||||
/// <summary> |
||||
/// 办案团队编码 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_batdbm { get; set; } |
||||
/// <summary> |
||||
/// 办案团队名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_batdmc { get; set; } |
||||
/// <summary> |
||||
/// 办案团队类别 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_batdlx { get; set; } |
||||
/// <summary> |
||||
/// 当前节点编号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_dqjdbh { get; set; } |
||||
/// <summary> |
||||
/// 当前节点名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string? case_dqjdmc { get; set; } |
||||
|
||||
|
||||
/// <summary> |
||||
/// 回传状态 0未开始 ,1 成功 ,2 失败 |
||||
/// </summary> |
||||
|
||||
[DataMember] |
||||
public int? comes_back { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 错误信息 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string message { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,46 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
[Serializable] |
||||
[DataContract] |
||||
public class Case_Info_Detail |
||||
{ |
||||
[DataMember] |
||||
public string id { get; set; } |
||||
[DataMember] |
||||
public string case_id { get; set; } |
||||
[DataMember] |
||||
|
||||
public string zdsj_data { get; set; } |
||||
|
||||
|
||||
[DataMember] |
||||
|
||||
public string cbsj_data { get; set; } |
||||
|
||||
[DataMember] |
||||
public string name { get; set; } |
||||
|
||||
|
||||
[DataMember] |
||||
public string sjmxbm { get; set; } |
||||
|
||||
|
||||
[DataMember] |
||||
public string bmsah { get; set; } |
||||
|
||||
[DataMember] |
||||
public string bdbm { get; set; } |
||||
|
||||
|
||||
[DataMember] |
||||
public string pid { get; set; } |
||||
|
||||
} |
||||
} |
@ -0,0 +1,6 @@
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class Class |
||||
{ |
||||
} |
||||
} |
@ -0,0 +1,122 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Runtime.Serialization; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
/// <summary> |
||||
/// 数据表 |
||||
/// </summary> |
||||
[Serializable] |
||||
[DataContract] |
||||
public class Data_Table |
||||
{ |
||||
#region Model |
||||
[DataMember] |
||||
public string Id { get; set; } |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string case_bmsah { get; set; } |
||||
/// <summary> |
||||
/// 统一受案号 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string case_tysah { get; set; } |
||||
/// <summary> |
||||
/// 名称 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string data_name { get; set; } |
||||
/// <summary> |
||||
/// 字段 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string field { get; set; } |
||||
/// <summary> |
||||
/// 字段_id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string field_id { get; set; } |
||||
/// <summary> |
||||
/// 分组 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string groupings { get; set; } |
||||
/// <summary> |
||||
/// 数据值 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string data_value { get; set; } |
||||
/// <summary> |
||||
/// 数据值1 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string data_value1 { get; set; } |
||||
/// <summary> |
||||
/// 创建时间 |
||||
/// </summary> |
||||
[DataMember] |
||||
public DateTime Creationtime { get; set; } |
||||
/// <summary> |
||||
/// 状态 |
||||
/// </summary> |
||||
[DataMember] |
||||
public int state { get; set; } |
||||
/// <summary> |
||||
/// 排序 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string sort { get; set; } |
||||
/// <summary> |
||||
/// 值Id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string valueid { get; set; } |
||||
/// <summary> |
||||
/// 数据id |
||||
/// </summary> |
||||
[DataMember] |
||||
public string case_id { get; set; } |
||||
/// <summary> |
||||
/// 表名 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string table_name { get; set; } |
||||
/// <summary> |
||||
/// 表名+字段 |
||||
/// </summary> |
||||
[DataMember] |
||||
public string table_namefield { get; set; } |
||||
|
||||
/// <summary> |
||||
/// 选项卡名称 |
||||
/// /// </summary> |
||||
[DataMember] |
||||
public string LxName { get; set; } |
||||
|
||||
[DataMember] |
||||
public string zdlx { get; set; } |
||||
[DataMember] |
||||
public string sfzj { get; set; } |
||||
[DataMember] |
||||
public string zjsccl { get; set; } |
||||
[DataMember] |
||||
public string bgsj { get; set; } |
||||
[DataMember] |
||||
public string znht { get; set; } |
||||
|
||||
|
||||
[DataMember] |
||||
public string detailId { get; set; } |
||||
|
||||
|
||||
[DataMember] |
||||
public int level { get; set; } |
||||
#endregion Model |
||||
} |
||||
} |
@ -0,0 +1,45 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class LCDto |
||||
{ |
||||
public object bmsah { get; set; } |
||||
public object tysah { get; set; } |
||||
public object ajmc { get; set; } |
||||
public object cbdwbm { get; set; } |
||||
public object cbdwmc { get; set; } |
||||
public object cbbmbm { get; set; } |
||||
public object cbbmmc { get; set; } |
||||
public object batdbm { get; set; } |
||||
public object batdmc { get; set; } |
||||
public object batdlx { get; set; } |
||||
public object cbjcgsfdm { get; set; } |
||||
public object cbjcgsf { get; set; } |
||||
public object cbjcgbm { get; set; } |
||||
public object cbjcg { get; set; } |
||||
public object ywbm { get; set; } |
||||
public object ywmc { get; set; } |
||||
public object ajlbbm { get; set; } |
||||
public object ajlbmc { get; set; } |
||||
public object ajzt { get; set; } |
||||
public object slrq { get; set; } |
||||
public object cjsj { get; set; } |
||||
public object blts { get; set; } |
||||
public object ajmxbm { get; set; } |
||||
public object ajmxmc { get; set; } |
||||
public string dqjdbh { get; set; } |
||||
public string dqjdmc { get; set; } |
||||
public object bjrq { get; set; } |
||||
public object dqrq { get; set; } |
||||
public object gdrq { get; set; } |
||||
public object wcrq { get; set; } |
||||
public object sfkcz { get; set; } |
||||
public object sjly { get; set; } |
||||
|
||||
} |
||||
} |
@ -0,0 +1,104 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class MxbmDto |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mxbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sjmxbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfsc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string cjsj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zhxgsj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sjbsbh { get; set; } |
||||
/// <summary> |
||||
/// 普通类模型(羁押必要性审查案件(执检)) |
||||
/// </summary> |
||||
public string mxmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ajlbbm { get; set; } |
||||
/// <summary> |
||||
/// 侦查/审判阶段羁押必要性审查案件 |
||||
/// </summary> |
||||
public string ajlbmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string mxbz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfqy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dwbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ywlbbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ywlbmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfgjysy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfsjysy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfszysy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfjcysy { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string jmbj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zybl { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zxh { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public object xyhjInputDtos { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string ajzybd { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,32 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class ResultDto |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string code { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public bool success { get; set; } |
||||
/// <summary> |
||||
/// 获取成功 |
||||
/// </summary> |
||||
public string message { get; set; } |
||||
} |
||||
|
||||
public class ResultDto<T> : ResultDto |
||||
{ |
||||
/// <summary> |
||||
/// 扩展数据 |
||||
/// </summary> |
||||
|
||||
public T Data { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,128 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace WebApplication1.Models |
||||
{ |
||||
public class XxkDto |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string stbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string lbbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dttj { get; set; } |
||||
/// <summary> |
||||
/// stbm=T_TYYW_ZJ_BS_AJ&BMSAH=鄂孝检必审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string id { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string fid { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sjbs { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<ZdsjItem> zdsj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<CbsjItem> cbsj { get; set; } |
||||
} |
||||
|
||||
public class ZdsjItem |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zdmc { get; set; } |
||||
/// <summary> |
||||
/// 部门受案号 |
||||
/// </summary> |
||||
public string zdzwmc { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sfzj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zjsccl { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string zdlx { get; set; } |
||||
/// <summary> |
||||
/// 鄂孝检必审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string bgqzdbmz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bgqzdwbz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bghzdbmz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bghzdwbz { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string bgsj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string znht { get; set; } |
||||
} |
||||
|
||||
public class CbsjItem |
||||
{ |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string stbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string lbbm { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string dttj { get; set; } |
||||
/// <summary> |
||||
/// stbm=T_TYYW_GG_AQZY&BMSAH=鄂孝检必审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string id { get; set; } |
||||
/// <summary> |
||||
/// stbm=T_TYYW_ZJ_BS_AJ&BMSAH=鄂孝检必审受[2022]420900000001号 |
||||
/// </summary> |
||||
public string fid { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public string sjbs { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<ZdsjItem> zdsj { get; set; } |
||||
/// <summary> |
||||
/// |
||||
/// </summary> |
||||
public List<CbsjItem> cbsj { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,30 @@
|
||||
Console.Title = "2.0 System Proxy Client"; |
||||
var builder = WebApplication.CreateBuilder(args); |
||||
|
||||
// Add services to the container. |
||||
|
||||
builder.Services.AddControllers(); |
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle |
||||
builder.Services.AddEndpointsApiExplorer(); |
||||
builder.Services.AddSwaggerGen(); |
||||
builder.Services.AddHttpClient(); |
||||
|
||||
#if DEBUG |
||||
//builder.WebHost.UseUrls("http://143.122.26.141:5194", "http://127.0.0.1:5194"); |
||||
#endif |
||||
|
||||
var app = builder.Build(); |
||||
// Configure the HTTP request pipeline. |
||||
if (app.Environment.IsDevelopment()) |
||||
{ |
||||
app.UseSwagger(); |
||||
app.UseSwaggerUI(); |
||||
} |
||||
|
||||
|
||||
|
||||
app.UseAuthorization(); |
||||
|
||||
app.MapControllers(); |
||||
|
||||
app.Run(); |
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<!-- |
||||
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||
--> |
||||
<Project> |
||||
<PropertyGroup> |
||||
<DeleteExistingFiles>true</DeleteExistingFiles> |
||||
<ExcludeApp_Data>false</ExcludeApp_Data> |
||||
<LaunchSiteAfterPublish>true</LaunchSiteAfterPublish> |
||||
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
||||
<LastUsedPlatform>Any CPU</LastUsedPlatform> |
||||
<PublishProvider>FileSystem</PublishProvider> |
||||
<PublishUrl>bin\Release\net6.0\publish\</PublishUrl> |
||||
<WebPublishMethod>FileSystem</WebPublishMethod> |
||||
<_TargetId>Folder</_TargetId> |
||||
<SiteUrlToLaunchAfterPublish /> |
||||
<TargetFramework>net6.0</TargetFramework> |
||||
<ProjectGuid>bb831806-197b-4508-9ad5-5d3edb7fca27</ProjectGuid> |
||||
<SelfContained>false</SelfContained> |
||||
</PropertyGroup> |
||||
</Project> |
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<!-- |
||||
https://go.microsoft.com/fwlink/?LinkID=208121. |
||||
--> |
||||
<Project> |
||||
<PropertyGroup> |
||||
<_PublishTargetUrl>C:\Users\callm\source\repos\24Hour.Service\WebApplication1\bin\Release\net6.0\publish\</_PublishTargetUrl> |
||||
<History>True|2023-11-01T10:41:19.1109757Z;True|2023-11-01T18:39:07.4539146+08:00;True|2023-11-01T18:16:01.9167676+08:00;True|2023-11-01T18:15:52.7184209+08:00;</History> |
||||
<LastFailureDetails /> |
||||
</PropertyGroup> |
||||
</Project> |
@ -0,0 +1,38 @@
|
||||
{ |
||||
"profiles": { |
||||
"WebApplication1": { |
||||
"commandName": "Project", |
||||
"launchBrowser": true, |
||||
"launchUrl": "swagger", |
||||
"environmentVariables": { |
||||
"ASPNETCORE_ENVIRONMENT": "Development" |
||||
}, |
||||
"dotnetRunMessages": true, |
||||
"applicationUrl": "https://localhost:7156;http://localhost:5194" |
||||
}, |
||||
"IIS Express": { |
||||
"commandName": "IISExpress", |
||||
"launchBrowser": true, |
||||
"launchUrl": "swagger", |
||||
"environmentVariables": { |
||||
"ASPNETCORE_ENVIRONMENT": "Development" |
||||
} |
||||
}, |
||||
"Docker": { |
||||
"commandName": "Docker", |
||||
"launchBrowser": true, |
||||
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", |
||||
"publishAllPorts": true, |
||||
"useSSL": true |
||||
} |
||||
}, |
||||
"$schema": "https://json.schemastore.org/launchsettings.json", |
||||
"iisSettings": { |
||||
"windowsAuthentication": false, |
||||
"anonymousAuthentication": true, |
||||
"iisExpress": { |
||||
"applicationUrl": "http://localhost:34369", |
||||
"sslPort": 44333 |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,13 @@
|
||||
namespace WebApplication1 |
||||
{ |
||||
public class WeatherForecast |
||||
{ |
||||
public DateTime Date { get; set; } |
||||
|
||||
public int TemperatureC { get; set; } |
||||
|
||||
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); |
||||
|
||||
public string? Summary { get; set; } |
||||
} |
||||
} |
@ -0,0 +1,24 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web"> |
||||
|
||||
<PropertyGroup> |
||||
<TargetFramework>net6.0</TargetFramework> |
||||
<Nullable>enable</Nullable> |
||||
<ImplicitUsings>enable</ImplicitUsings> |
||||
<UserSecretsId>ae1f7aa6-e320-4393-ac3f-984b92923499</UserSecretsId> |
||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> |
||||
<AssemblyVersion>1.0.1.0</AssemblyVersion> |
||||
<Version>1.0.1.0</Version> |
||||
</PropertyGroup> |
||||
|
||||
<ItemGroup> |
||||
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" /> |
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> |
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.0.0" /> |
||||
</ItemGroup> |
||||
|
||||
<ItemGroup> |
||||
<None Update="Dockerfile"> |
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
||||
</None> |
||||
</ItemGroup> |
||||
</Project> |
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
||||
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor> |
||||
</PropertyGroup> |
||||
<PropertyGroup> |
||||
<ActiveDebugProfile>WebApplication1</ActiveDebugProfile> |
||||
<NameOfLastUsedPublishProfile>C:\Users\callm\source\repos\24Hour.Service\WebApplication1\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
||||
</PropertyGroup> |
||||
</Project> |
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||
# Visual Studio Version 17 |
||||
VisualStudioVersion = 17.6.33829.357 |
||||
MinimumVisualStudioVersion = 10.0.40219.1 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication1", "WebApplication1.csproj", "{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|Any CPU = Debug|Any CPU |
||||
Release|Any CPU = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{1CFB55C9-4B8D-4D99-B444-5EB6EBF6B3E7}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
GlobalSection(ExtensibilityGlobals) = postSolution |
||||
SolutionGuid = {0B59E350-8D7E-441E-8F31-D555F1C290E1} |
||||
EndGlobalSection |
||||
EndGlobal |
@ -0,0 +1,8 @@
|
||||
{ |
||||
"Logging": { |
||||
"LogLevel": { |
||||
"Default": "Information", |
||||
"Microsoft.AspNetCore": "Warning" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,14 @@
|
||||
{ |
||||
"Logging": { |
||||
"LogLevel": { |
||||
"Default": "Information", |
||||
"Microsoft.AspNetCore": "Warning" |
||||
} |
||||
}, |
||||
|
||||
"AllowedHosts": "*", |
||||
"Configs": { |
||||
"SystemIp": "143.120.5.25", |
||||
"Port": "8080" |
||||
} |
||||
} |
@ -0,0 +1,26 @@
|
||||
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||
|
||||
LABEL description="" |
||||
|
||||
LABEL version="1.0" |
||||
|
||||
# 指定工作目录 |
||||
WORKDIR /app |
||||
|
||||
# 把当前目录复制到镜像的 app目录 |
||||
COPY . . |
||||
|
||||
#时区设置 |
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||
|
||||
# 暴露的端口 |
||||
#EXPOSE 80 |
||||
EXPOSE 5194 |
||||
|
||||
ENV ASPNETCORE_URLS=http://+:5194 |
||||
ENV ASPNETCORE_ENVIRONMENT Production |
||||
|
||||
# 最后设置启动的dll |
||||
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,140 @@
|
||||
{ |
||||
"runtimeTarget": { |
||||
"name": ".NETCoreApp,Version=v6.0", |
||||
"signature": "" |
||||
}, |
||||
"compilationOptions": {}, |
||||
"targets": { |
||||
".NETCoreApp,Version=v6.0": { |
||||
"WebApplication1/1.0.1.0": { |
||||
"dependencies": { |
||||
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.18.1", |
||||
"Newtonsoft.Json": "13.0.3", |
||||
"Swashbuckle.AspNetCore": "6.0.0" |
||||
}, |
||||
"runtime": { |
||||
"WebApplication1.dll": {} |
||||
} |
||||
}, |
||||
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, |
||||
"Microsoft.OpenApi/1.2.3": { |
||||
"runtime": { |
||||
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||
"assemblyVersion": "1.2.3.0", |
||||
"fileVersion": "1.2.3.0" |
||||
} |
||||
} |
||||
}, |
||||
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": {}, |
||||
"Newtonsoft.Json/13.0.3": { |
||||
"runtime": { |
||||
"lib/net6.0/Newtonsoft.Json.dll": { |
||||
"assemblyVersion": "13.0.0.0", |
||||
"fileVersion": "13.0.3.27908" |
||||
} |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore/6.0.0": { |
||||
"dependencies": { |
||||
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||
"dependencies": { |
||||
"Microsoft.OpenApi": "1.2.3" |
||||
}, |
||||
"runtime": { |
||||
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||
"assemblyVersion": "6.0.0.0", |
||||
"fileVersion": "6.0.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||
"dependencies": { |
||||
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||
}, |
||||
"runtime": { |
||||
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||
"assemblyVersion": "6.0.0.0", |
||||
"fileVersion": "6.0.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||
"runtime": { |
||||
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||
"assemblyVersion": "6.0.0.0", |
||||
"fileVersion": "6.0.0.0" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"libraries": { |
||||
"WebApplication1/1.0.1.0": { |
||||
"type": "project", |
||||
"serviceable": false, |
||||
"sha512": "" |
||||
}, |
||||
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" |
||||
}, |
||||
"Microsoft.OpenApi/1.2.3": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||
"path": "microsoft.openapi/1.2.3", |
||||
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" |
||||
}, |
||||
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-RtNQEQQ/bgaxzrsZEkPB+/DFaUgNiq8GtZz/R4lt+mKXPcEvEuawlbl0PB1s7ND9kvkUVZtMphPxE9Ma1VGiFg==", |
||||
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.18.1", |
||||
"hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.18.1.nupkg.sha512" |
||||
}, |
||||
"Newtonsoft.Json/13.0.3": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||
"path": "newtonsoft.json/13.0.3", |
||||
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||
"path": "swashbuckle.aspnetcore/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.6.0.0.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,19 @@
|
||||
{ |
||||
"runtimeOptions": { |
||||
"tfm": "net6.0", |
||||
"frameworks": [ |
||||
{ |
||||
"name": "Microsoft.NETCore.App", |
||||
"version": "6.0.0" |
||||
}, |
||||
{ |
||||
"name": "Microsoft.AspNetCore.App", |
||||
"version": "6.0.0" |
||||
} |
||||
], |
||||
"configProperties": { |
||||
"System.GC.Server": true, |
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,8 @@
|
||||
{ |
||||
"Logging": { |
||||
"LogLevel": { |
||||
"Default": "Information", |
||||
"Microsoft.AspNetCore": "Warning" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,14 @@
|
||||
{ |
||||
"Logging": { |
||||
"LogLevel": { |
||||
"Default": "Information", |
||||
"Microsoft.AspNetCore": "Warning" |
||||
} |
||||
}, |
||||
|
||||
"AllowedHosts": "*", |
||||
"Configs": { |
||||
"SystemIp": "143.120.5.25", |
||||
"Port": "8080" |
||||
} |
||||
} |
@ -0,0 +1,26 @@
|
||||
# 选择从什么镜像基础上创建我们的镜像,相当于选择我们依赖的环境 |
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base |
||||
|
||||
LABEL description="" |
||||
|
||||
LABEL version="1.0" |
||||
|
||||
# 指定工作目录 |
||||
WORKDIR /app |
||||
|
||||
# 把当前目录复制到镜像的 app目录 |
||||
COPY . . |
||||
|
||||
#时区设置 |
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
||||
RUN echo 'Asia/Shanghai' >/etc/timezone |
||||
|
||||
# 暴露的端口 |
||||
#EXPOSE 80 |
||||
EXPOSE 5194 |
||||
|
||||
ENV ASPNETCORE_URLS=http://+:5194 |
||||
ENV ASPNETCORE_ENVIRONMENT Production |
||||
|
||||
# 最后设置启动的dll |
||||
ENTRYPOINT ["dotnet", "WebApplication1.dll"] |
@ -0,0 +1,140 @@
|
||||
{ |
||||
"runtimeTarget": { |
||||
"name": ".NETCoreApp,Version=v6.0", |
||||
"signature": "" |
||||
}, |
||||
"compilationOptions": {}, |
||||
"targets": { |
||||
".NETCoreApp,Version=v6.0": { |
||||
"WebApplication1/1.0.1.0": { |
||||
"dependencies": { |
||||
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets": "1.18.1", |
||||
"Newtonsoft.Json": "13.0.3", |
||||
"Swashbuckle.AspNetCore": "6.0.0" |
||||
}, |
||||
"runtime": { |
||||
"WebApplication1.dll": {} |
||||
} |
||||
}, |
||||
"Microsoft.Extensions.ApiDescription.Server/3.0.0": {}, |
||||
"Microsoft.OpenApi/1.2.3": { |
||||
"runtime": { |
||||
"lib/netstandard2.0/Microsoft.OpenApi.dll": { |
||||
"assemblyVersion": "1.2.3.0", |
||||
"fileVersion": "1.2.3.0" |
||||
} |
||||
} |
||||
}, |
||||
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": {}, |
||||
"Newtonsoft.Json/13.0.3": { |
||||
"runtime": { |
||||
"lib/net6.0/Newtonsoft.Json.dll": { |
||||
"assemblyVersion": "13.0.0.0", |
||||
"fileVersion": "13.0.3.27908" |
||||
} |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore/6.0.0": { |
||||
"dependencies": { |
||||
"Microsoft.Extensions.ApiDescription.Server": "3.0.0", |
||||
"Swashbuckle.AspNetCore.Swagger": "6.0.0", |
||||
"Swashbuckle.AspNetCore.SwaggerGen": "6.0.0", |
||||
"Swashbuckle.AspNetCore.SwaggerUI": "6.0.0" |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||
"dependencies": { |
||||
"Microsoft.OpenApi": "1.2.3" |
||||
}, |
||||
"runtime": { |
||||
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": { |
||||
"assemblyVersion": "6.0.0.0", |
||||
"fileVersion": "6.0.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||
"dependencies": { |
||||
"Swashbuckle.AspNetCore.Swagger": "6.0.0" |
||||
}, |
||||
"runtime": { |
||||
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": { |
||||
"assemblyVersion": "6.0.0.0", |
||||
"fileVersion": "6.0.0.0" |
||||
} |
||||
} |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||
"runtime": { |
||||
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerUI.dll": { |
||||
"assemblyVersion": "6.0.0.0", |
||||
"fileVersion": "6.0.0.0" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"libraries": { |
||||
"WebApplication1/1.0.1.0": { |
||||
"type": "project", |
||||
"serviceable": false, |
||||
"sha512": "" |
||||
}, |
||||
"Microsoft.Extensions.ApiDescription.Server/3.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-LH4OE/76F6sOCslif7+Xh3fS/wUUrE5ryeXAMcoCnuwOQGT5Smw0p57IgDh/pHgHaGz/e+AmEQb7pRgb++wt0w==", |
||||
"path": "microsoft.extensions.apidescription.server/3.0.0", |
||||
"hashPath": "microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512" |
||||
}, |
||||
"Microsoft.OpenApi/1.2.3": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==", |
||||
"path": "microsoft.openapi/1.2.3", |
||||
"hashPath": "microsoft.openapi.1.2.3.nupkg.sha512" |
||||
}, |
||||
"Microsoft.VisualStudio.Azure.Containers.Tools.Targets/1.18.1": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-RtNQEQQ/bgaxzrsZEkPB+/DFaUgNiq8GtZz/R4lt+mKXPcEvEuawlbl0PB1s7ND9kvkUVZtMphPxE9Ma1VGiFg==", |
||||
"path": "microsoft.visualstudio.azure.containers.tools.targets/1.18.1", |
||||
"hashPath": "microsoft.visualstudio.azure.containers.tools.targets.1.18.1.nupkg.sha512" |
||||
}, |
||||
"Newtonsoft.Json/13.0.3": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", |
||||
"path": "newtonsoft.json/13.0.3", |
||||
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-VxukQYrUrxNUWQocOxmxua/4fZOPBdGCLSaoZYRNthZae0UXB+fzjTBTlj24fZEQrP+QTnsRwSygN9jNBqm/hg==", |
||||
"path": "swashbuckle.aspnetcore/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.6.0.0.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore.Swagger/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-onkGK5eDFmyNy605E5ZaT5oXEGsQJz2UEKsUOqYCZRBC2Fi6MbByUl+qznyl3pZ9/4nTvukUjt9+v28qvJPk/Q==", |
||||
"path": "swashbuckle.aspnetcore.swagger/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.swagger.6.0.0.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerGen/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-RXY21STD/yo4Uzy1L5GoRrEQQWoOosw0QBYo572VwcjePmpV1yFFHsTeThlMNBWKoTt6xadIdSjZj0FmDFYL2A==", |
||||
"path": "swashbuckle.aspnetcore.swaggergen/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.swaggergen.6.0.0.nupkg.sha512" |
||||
}, |
||||
"Swashbuckle.AspNetCore.SwaggerUI/6.0.0": { |
||||
"type": "package", |
||||
"serviceable": true, |
||||
"sha512": "sha512-VusRaCFt2As3SXBJmUOGA40IGr6ao+vsvDi7jbCS4AFx69kUUm8zxIHeJVqGov3w4lQowVxv8gmonRXDRh1FvQ==", |
||||
"path": "swashbuckle.aspnetcore.swaggerui/6.0.0", |
||||
"hashPath": "swashbuckle.aspnetcore.swaggerui.6.0.0.nupkg.sha512" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,20 @@
|
||||
{ |
||||
"runtimeOptions": { |
||||
"tfm": "net6.0", |
||||
"frameworks": [ |
||||
{ |
||||
"name": "Microsoft.NETCore.App", |
||||
"version": "6.0.0" |
||||
}, |
||||
{ |
||||
"name": "Microsoft.AspNetCore.App", |
||||
"version": "6.0.0" |
||||
} |
||||
], |
||||
"configProperties": { |
||||
"System.GC.Server": true, |
||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false, |
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,8 @@
|
||||
{ |
||||
"Logging": { |
||||
"LogLevel": { |
||||
"Default": "Information", |
||||
"Microsoft.AspNetCore": "Warning" |
||||
} |
||||
} |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue