23 changed files with 1495 additions and 27 deletions
@ -0,0 +1,357 @@ |
|||||||
|
using AutoMapper; |
||||||
|
using com.sun.xml.@internal.bind.v2.model.core; |
||||||
|
using Elight.Entity; |
||||||
|
using Elight.Entity.APPDto.Lawyer; |
||||||
|
using Elight.Entity.AppMode.Lawyer; |
||||||
|
using Elight.Logic; |
||||||
|
using Elight.Logic.Model.Lawyer; |
||||||
|
using Elight.Utility; |
||||||
|
using Elight.Utility.Code; |
||||||
|
using Elight.Utility.Extensions; |
||||||
|
using Elight.Utility.logs; |
||||||
|
using Microsoft.AspNetCore.Authorization; |
||||||
|
using Microsoft.AspNetCore.Mvc; |
||||||
|
using Newtonsoft.Json; |
||||||
|
using SqlSugar; |
||||||
|
using System.Net.WebSockets; |
||||||
|
using System.Text; |
||||||
|
using static com.sun.tools.@internal.xjc.reader.xmlschema.bindinfo.BIConversion; |
||||||
|
using User = Elight.Utility.User; |
||||||
|
|
||||||
|
namespace _24Hour.Controllers.Common |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 律师服务 |
||||||
|
/// </summary> |
||||||
|
[Authorize] |
||||||
|
[ApiController] |
||||||
|
[Route("api/Lawyer")] |
||||||
|
public class LawyerArchivesController : Controller |
||||||
|
{ |
||||||
|
#region Identity |
||||||
|
private readonly SqlSugarClient _db;//数据库 |
||||||
|
private readonly WriteSysLog _logs;//操作日志 |
||||||
|
App_Sys_UserModel _userdata = new App_Sys_UserModel();//当前用户 |
||||||
|
private readonly ILogger<LoginController> _logger;//日志 |
||||||
|
Result result = new Result(); |
||||||
|
|
||||||
|
private readonly IMapper mapper; |
||||||
|
public LawyerArchivesController(ILogger<LoginController> logger, SqlSugarClient db, WriteSysLog logs, User user, IMapper _mapper) |
||||||
|
{ |
||||||
|
this._logger = logger; |
||||||
|
_db = db; |
||||||
|
_logs = logs; |
||||||
|
_userdata = user.Userdata(); |
||||||
|
this.mapper = _mapper; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region 律师阅卷 |
||||||
|
/// <summary> |
||||||
|
/// 加密二维码信息 |
||||||
|
/// </summary> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("EncodeData")] |
||||||
|
public async Task<Result> EncodeData(string id) |
||||||
|
{ |
||||||
|
var data = await _db.Queryable<App_LawyerServicesModel>().LeftJoin<App_Sys_UserModel>((lawyer, user) => lawyer.createuserId == user.Id) |
||||||
|
.Where(lawyer => lawyer.Id == id) |
||||||
|
.Select((lawyer, user) => new |
||||||
|
{ |
||||||
|
info = lawyer, |
||||||
|
user |
||||||
|
}).FirstAsync(); |
||||||
|
if (data != null) |
||||||
|
{ |
||||||
|
var dto = new |
||||||
|
{ |
||||||
|
info = mapper.Map<QRLawyerServiceDto>(data.info), |
||||||
|
user = mapper.Map<QRUserDto>(data.user) |
||||||
|
}; |
||||||
|
var encodingdata = Convert.ToBase64String(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(dto))); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = encodingdata; |
||||||
|
} |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 解码二维码信息 |
||||||
|
/// </summary> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("DecodeQRData")] |
||||||
|
public Task<Result> DecodeQRData(DecodeData data) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var basestr = Convert.FromBase64String(data.EncodingString); |
||||||
|
var str = Encoding.UTF8.GetString(basestr); |
||||||
|
|
||||||
|
var model = str.ConvertToAnonymousType(new |
||||||
|
{ |
||||||
|
info = default(QRLawyerServiceDto), |
||||||
|
user = default(QRUserDto) |
||||||
|
}); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = model; |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
} |
||||||
|
return Task.FromResult(result); |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 同步外网律师人员信息(未完成) (根据律师身份证号更新或新增用户信息) |
||||||
|
/// </summary> |
||||||
|
/// <param name="user"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddUserInfo")] |
||||||
|
public async Task<Result> AddUserInfo(App_Sys_UserModel user) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var data = await _db.Queryable<App_Sys_UserModel>().FirstAsync(x => x.cardId == user.cardId); |
||||||
|
if (data != null) |
||||||
|
{ |
||||||
|
//update |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(user).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "修改成功"; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
//insert |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Insertable(user).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.Message = "添加成功"; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = "添加失败"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
catch |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
} |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 同步外网预约信息(未完成) |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddLawyerServiceInfo")] |
||||||
|
public async Task<Result> AddLawyerServiceInfo(App_LawyerServicesModel info) |
||||||
|
{ |
||||||
|
var data = await _db.Queryable<App_LawyerServicesModel>().FirstAsync(x => x.Id == info.Id); |
||||||
|
if (data != null) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.Message = "改数据已同步"; |
||||||
|
return result; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Insertable(info).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.Message = "添加成功"; |
||||||
|
result.result = mapper.Map<LawyerArchivesDto>(info); |
||||||
|
return result; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = "添加失败"; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 查询律师阅卷信息 |
||||||
|
/// </summary> |
||||||
|
/// <param name="input"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("QueryLawyerArchives")] |
||||||
|
public async Task<Result> QueryLawyerArchives(LawyerArchivesInput input) |
||||||
|
{ |
||||||
|
RefAsync<int> totalNumber = 0;//总数据 |
||||||
|
//查询律师服务 |
||||||
|
var list = await _db.Queryable<LawyerArchives>().LeftJoin<App_LawyerServicesModel>((archives, services) => archives.lawyerservicesId == services.Id) |
||||||
|
.WhereIF(input.bmsah != null, (archives, services) => archives.bmsah == input.bmsah) |
||||||
|
.WhereIF(input.lawyerId != null, (archives, services) => archives.lawyerId == input.lawyerId) |
||||||
|
.WhereIF(input.lawyerservicesId != null, (archives, services) => archives.lawyerservicesId == input.lawyerservicesId) |
||||||
|
.WhereIF(input.Id != null, (archives, services) => archives.Id == input.Id) |
||||||
|
.WhereIF(input.unitCode != null, (archives, services) => services.unitCode == input.unitCode) |
||||||
|
.WhereIF(input.receptionuserId != null, (archives, services) => services.receptionuser == input.receptionuserId) |
||||||
|
.WhereIF(input.state != null, (archives, services) => services.state == input.state) |
||||||
|
.ToPageListAsync(input.PageIndex, input.PageSize, totalNumber); |
||||||
|
|
||||||
|
input.RowsCount = totalNumber; |
||||||
|
var data = new QueryResult<LawyerArchives>(input, list.OrderByDescending(q => q.createTime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
public class DecodeData |
||||||
|
{ |
||||||
|
public string EncodingString { get; set; } |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 新增阅卷信息 |
||||||
|
/// </summary> |
||||||
|
/// <param name="dto"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddLawyerArchives")] |
||||||
|
public async Task<Result> AddLawyerArchives(LawyerArchivesDto dto) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var data = await _db.Queryable<LawyerArchives>().FirstAsync(x => x.lawyerservicesId == dto.lawyerservicesId); |
||||||
|
if (data != null) |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = "该预约信息已经处理,无法再次新建阅卷预约"; |
||||||
|
return result; |
||||||
|
} |
||||||
|
var entity = mapper.Map<LawyerArchives>(dto); |
||||||
|
|
||||||
|
entity.Id = Guid.NewGuid().ToString(); |
||||||
|
entity.createrId = _userdata.Id; |
||||||
|
entity.createTime = DateTime.Now; |
||||||
|
|
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Insertable(entity).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.Message = "添加成功"; |
||||||
|
result.result = mapper.Map<LawyerArchivesDto>(entity); |
||||||
|
} |
||||||
|
} |
||||||
|
catch |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
} |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 删除律师阅卷信息 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("DeleteLawyerArchives")] |
||||||
|
public async Task<Result> DeleteLawyerArchives(CurrencyDelete Currency) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var Deletelist = await _db.Queryable<LawyerArchives>().In(q => q.Id, Currency.id).ToListAsync(); |
||||||
|
Deletelist.ForEach(q => |
||||||
|
{ |
||||||
|
q.IsDeleted = 1; |
||||||
|
}); |
||||||
|
var num = await _db.Updateable(Deletelist).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "删除成功"; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (System.Exception ex) |
||||||
|
{ |
||||||
|
_db.RollbackTran(); |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = ex.Message; |
||||||
|
LogService.WriteLog(ex, "删除律师阅卷预约"); |
||||||
|
} |
||||||
|
_logs.WriteSysLogadd("律师阅卷服务", "删除律师阅卷预约", result, _db); |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 修改律师阅卷信息 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("UpdateLawyerArchives")] |
||||||
|
public async Task<Result> UpdateLawyerArchives(LawyerArchivesDto Lawyerdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Lawyerdata).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "修改成功"; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (System.Exception ex) |
||||||
|
{ |
||||||
|
_db.RollbackTran(); |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = ex.Message; |
||||||
|
LogService.WriteLog(ex, "删除律师阅卷预约"); |
||||||
|
} |
||||||
|
_logs.WriteSysLogadd("律师阅卷服务", "删除律师阅卷预约", result, _db); |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 从2.0系统查询案件信息(未完成) |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("QueryCaseFromtwenty")] |
||||||
|
public Task<Result> QueryCaseFromtwenty(string bmsah,string idcard,string name,string casename) |
||||||
|
{ |
||||||
|
return Task.FromResult(result); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 添加卷宗信息 |
||||||
|
/// </summary> |
||||||
|
/// <param name="dto"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddArchivesInfo")] |
||||||
|
public Task<Result<JZJBXXDto>> AddArchivesInfo(JZJBXXDto dto) |
||||||
|
{ |
||||||
|
Result<JZJBXXDto> res = new Result<JZJBXXDto>(); |
||||||
|
return Task.FromResult(res); |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
} |
||||||
|
} |
@ -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,67 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <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<JZWJItemDto> jzwj { get; set; } |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
} |
@ -0,0 +1,106 @@ |
|||||||
|
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; } |
||||||
|
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,81 @@ |
|||||||
|
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? lawyerservicesId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 卷宗id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? jzlbxxId { 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 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; } |
||||||
|
} |
||||||
|
} |
@ -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,60 @@ |
|||||||
|
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; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,70 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <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 string mlsxh { get; set; } |
||||||
|
[DataMember] |
||||||
|
/// <summary> |
||||||
|
/// 目录类型 卷,目录看,文件 |
||||||
|
/// </summary> |
||||||
|
public string mllx { get; set; } |
||||||
|
[DataMember] |
||||||
|
/// <summary> |
||||||
|
/// 单位编码 |
||||||
|
/// </summary> |
||||||
|
public string dwbm { get; set; } |
||||||
|
public List<JZWJItem> 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.AppMode.Lawyer |
||||||
|
{ |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 卷宗文件 |
||||||
|
/// </summary> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
[SugarTable("case_jzwjitem")] |
||||||
|
public class JZWJItem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 文件唯一标识 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string Id { 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 int 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,55 @@ |
|||||||
|
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? lawyerservicesId { 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 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> |
||||||
|
/// 是否删除:0:未删除、1:删除 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? IsDeleted { get; set; } = 0; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,55 @@ |
|||||||
|
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> |
||||||
|
/// 预约Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? lawyerservicesId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 部门受案号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? bmsah { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 律师Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? lawyerId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitCode { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 预约类型 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservationId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 接待人Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionuserId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 0:待办理,1:同意 ,2:拒绝 预约申请状态 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? state { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,145 @@ |
|||||||
|
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; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue