18 changed files with 2166 additions and 59 deletions
@ -0,0 +1,434 @@ |
|||||||
|
using Elight.Entity; |
||||||
|
using Elight.Logic; |
||||||
|
using Elight.Utility; |
||||||
|
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; |
||||||
|
|
||||||
|
namespace _24Hour.Controllers.Common |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 云柜详情服务 |
||||||
|
/// </summary> |
||||||
|
[HiddenApi] |
||||||
|
[Authorize] |
||||||
|
[ApiController] |
||||||
|
[Route("api/Hearing")] |
||||||
|
public class CloudCabinetController : 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(); |
||||||
|
public CloudCabinetController(ILogger<LoginController> logger, SqlSugarClient db, WriteSysLog logs, User user) |
||||||
|
{ |
||||||
|
_logger = logger; |
||||||
|
_db = db; |
||||||
|
_logs = logs; |
||||||
|
_userdata = user.Userdata(); |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 云柜增删改查 |
||||||
|
/// <summary> |
||||||
|
/// 云柜分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Querycabinet")] |
||||||
|
public async Task<Result> Querycabinet(App_CloudCabinetInput cabinetdata) |
||||||
|
{ |
||||||
|
//查询云柜详情 |
||||||
|
var list = await _db.Queryable<App_CloudCabinetModel>() |
||||||
|
.WhereIF(cabinetdata.cabinetnumber != null, q => q.cabinetnumber.Contains(cabinetdata.cabinetnumber)) |
||||||
|
.WhereIF(cabinetdata.cabinetposition != null, q => q.cabinetposition.Contains(cabinetdata.cabinetposition)) |
||||||
|
.WhereIF(cabinetdata.unitId != null, q => q.unitId.Contains(cabinetdata.unitId)) |
||||||
|
.WhereIF(cabinetdata.state != null, q => q.state == cabinetdata.state) |
||||||
|
.WhereIF(cabinetdata.StartTime != null && cabinetdata.EndTime != null, q => q.creationtime >= cabinetdata.StartTime && q.creationtime < cabinetdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0).ToPageListAsync(cabinetdata.PageIndex, cabinetdata.PageSize); |
||||||
|
var data = new QueryResult<App_CloudCabinetModel>(cabinetdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 添加云柜 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Addcabinet")] |
||||||
|
public async Task<Result> Addcabinet(App_CloudCabinetModel cabinetdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
cabinetdata.Id = Guid.NewGuid().ToString(); |
||||||
|
cabinetdata.createuserId = _userdata.Id.ToString(); |
||||||
|
cabinetdata.createusername = _userdata.name; |
||||||
|
var num = await _db.Insertable(cabinetdata).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("Updatecabinet")] |
||||||
|
public async Task<Result> Updatecabinet(App_CloudCabinetModel cabinetdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(cabinetdata).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> |
||||||
|
/// 删除云柜 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Deletecabinet")] |
||||||
|
public async Task<Result> Deletecabinet(CurrencyDelete Currency) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var CloudCabinetlist = await _db.Queryable<App_cabinetDetailsModel>().Where(q => Currency.id.Contains(q.cabinetId)).ToListAsync(); |
||||||
|
if (CloudCabinetlist.Any()) |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.result = "已有存取信息,无法删除!"; |
||||||
|
return result; |
||||||
|
} |
||||||
|
var Deletelist = await _db.Queryable<App_CloudCabinetModel>().In(q => q.Id, Currency.id).ToListAsync(); |
||||||
|
_db.BeginTran(); |
||||||
|
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; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 云柜状态修改 |
||||||
|
/// <summary> |
||||||
|
/// 修改云柜维护中状态为空闲 |
||||||
|
/// </summary> |
||||||
|
/// <param name="Id">云柜Id</param> |
||||||
|
/// <param name="state">状态</param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("UpdateCabinestate")] |
||||||
|
public async Task<Result> UpdateCabinestate(string? Id, int state) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Cabinetbol = await _db.Queryable<App_CloudCabinetModel>().Where(q => q.Id == Id).ToListAsync(); |
||||||
|
if (Cabinetbol.Count() > 0) |
||||||
|
{ |
||||||
|
Cabinetbol.FirstOrDefault().state = state; |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Cabinetbol.FirstOrDefault()).UpdateColumns(it => new { it.state}).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "同意"; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.result = "未找到云柜信息"; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (System.Exception ex) |
||||||
|
{ |
||||||
|
_db.RollbackTran(); |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = ex.Message; |
||||||
|
LogService.WriteLog(ex, "修改云柜状态"); |
||||||
|
} |
||||||
|
_logs.WriteSysLogadd("云柜管理", "修改云柜状态", result, _db); |
||||||
|
return result; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 云柜详情增删改查 |
||||||
|
/// <summary> |
||||||
|
/// 云柜详情分页查询--存放时间 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Querycabinetdetails")] |
||||||
|
public async Task<Result> Querycabinetdetails(App_cabinetDetailsInput cabinetdata) |
||||||
|
{ |
||||||
|
//查询云柜详情 |
||||||
|
var list = await _db.Queryable<App_cabinetDetailsModel>() |
||||||
|
.WhereIF(cabinetdata.name != null, q => q.name.Contains(cabinetdata.name)) |
||||||
|
.WhereIF(cabinetdata.deposituser != null, q => q.deposituser.Contains(cabinetdata.deposituser)) |
||||||
|
.WhereIF(cabinetdata.takeoutuser != null, q => q.takeoutuser.Contains(cabinetdata.takeoutuser)) |
||||||
|
.WhereIF(cabinetdata.takeoutcardId != null, q => q.takeoutuser.Contains(cabinetdata.takeoutcardId)) |
||||||
|
.WhereIF(cabinetdata.unitId != null, q => q.unitId.Contains(cabinetdata.unitId)) |
||||||
|
.WhereIF(cabinetdata.state != null, q => q.state == cabinetdata.state) |
||||||
|
.WhereIF(cabinetdata.StartTime != null && cabinetdata.EndTime != null, q => q.deposittime >= cabinetdata.StartTime && q.deposittime < cabinetdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0).ToPageListAsync(cabinetdata.PageIndex, cabinetdata.PageSize); |
||||||
|
var data = new QueryResult<App_cabinetDetailsModel>(cabinetdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜详情分页查询--取出时间 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Querycabinetdetailsout")] |
||||||
|
public async Task<Result> Querycabinetdetailsout(App_cabinetDetailsInput cabinetdata) |
||||||
|
{ |
||||||
|
//查询云柜详情 |
||||||
|
var list = await _db.Queryable<App_cabinetDetailsModel>() |
||||||
|
.WhereIF(cabinetdata.name != null, q => q.name.Contains(cabinetdata.name)) |
||||||
|
.WhereIF(cabinetdata.deposituser != null, q => q.deposituser.Contains(cabinetdata.deposituser)) |
||||||
|
.WhereIF(cabinetdata.takeoutuser != null, q => q.takeoutuser.Contains(cabinetdata.takeoutuser)) |
||||||
|
.WhereIF(cabinetdata.takeoutcardId != null, q => q.takeoutuser.Contains(cabinetdata.takeoutcardId)) |
||||||
|
.WhereIF(cabinetdata.unitId != null, q => q.unitId.Contains(cabinetdata.unitId)) |
||||||
|
.WhereIF(cabinetdata.state != null, q => q.state == cabinetdata.state) |
||||||
|
.WhereIF(cabinetdata.takeouttime != null && cabinetdata.EndTime != null, q => q.takeouttime >= cabinetdata.StartTime && q.deposittime < cabinetdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0).ToPageListAsync(cabinetdata.PageIndex, cabinetdata.PageSize); |
||||||
|
var data = new QueryResult<App_cabinetDetailsModel>(cabinetdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 添加云柜详情 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Addcabinetdetails")] |
||||||
|
public async Task<Result> Addcabinetdetails(App_cabinetDetailsModel cabinetdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
cabinetdata.Id = Guid.NewGuid().ToString(); |
||||||
|
cabinetdata.createuserId = _userdata.Id.ToString(); |
||||||
|
cabinetdata.createusername = _userdata.name; |
||||||
|
#region 添加云柜存放修改云柜状态 |
||||||
|
var CloudCabinetlist = await _db.Queryable<App_CloudCabinetModel>().Where(q => q.Id == cabinetdata.cabinetId).ToListAsync(); |
||||||
|
CloudCabinetlist.ForEach(q => |
||||||
|
{ |
||||||
|
q.state = 1; |
||||||
|
}); |
||||||
|
#endregion |
||||||
|
_db.BeginTran(); |
||||||
|
//修改云柜状态 |
||||||
|
if(CloudCabinetlist.Any()) |
||||||
|
await _db.Updateable(CloudCabinetlist.FirstOrDefault()).UpdateColumns(it => new { it.state }).ExecuteCommandAsync(); |
||||||
|
//添加云柜存放 |
||||||
|
var num = await _db.Insertable(cabinetdata).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("Updatecabinetdetails")] |
||||||
|
public async Task<Result> Updatecabinetdetails(App_cabinetDetailsModel cabinetdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(cabinetdata).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> |
||||||
|
/// 删除云柜详情 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("Deletecabinetdetails")] |
||||||
|
public async Task<Result> Deletecabinetdetails(CurrencyDelete Currency) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Deletelist = await _db.Queryable<App_cabinetDetailsModel>().In(q => q.Id, Currency.id).ToListAsync(); |
||||||
|
Deletelist.ForEach(q => |
||||||
|
{ |
||||||
|
q.IsDeleted = 1; |
||||||
|
}); |
||||||
|
_db.BeginTran(); |
||||||
|
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; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 云柜详情状态修改 |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 修改云柜详情取出状态为已取出,并云柜为空闲 |
||||||
|
/// </summary> |
||||||
|
/// <param name="Id">云柜Id</param> |
||||||
|
/// <param name="state">状态</param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("Updatedetailstate")] |
||||||
|
public async Task<Result> Updatedetailstate(string? Id) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Cabinetbol = await _db.Queryable<App_cabinetDetailsModel>().Where(q => q.Id == Id).ToListAsync(); |
||||||
|
if (Cabinetbol.Count() > 0) |
||||||
|
{ |
||||||
|
Cabinetbol.FirstOrDefault().state = 1; |
||||||
|
|
||||||
|
var CloudCabinetlist = await _db.Queryable<App_CloudCabinetModel>().Where(q => q.Id == Cabinetbol.FirstOrDefault().cabinetId).ToListAsync(); |
||||||
|
CloudCabinetlist.ForEach(q => |
||||||
|
{ |
||||||
|
q.state = 1; |
||||||
|
}); |
||||||
|
_db.BeginTran(); |
||||||
|
//修改云柜状态 |
||||||
|
if (CloudCabinetlist.Any()) |
||||||
|
await _db.Updateable(CloudCabinetlist.FirstOrDefault()).UpdateColumns(it => new { it.state }).ExecuteCommandAsync(); |
||||||
|
//修改云柜详情状态 |
||||||
|
var num = await _db.Updateable(Cabinetbol.FirstOrDefault()).UpdateColumns(it => new { it.state }).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "同意"; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.result = "未找到云柜存放信息"; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (System.Exception ex) |
||||||
|
{ |
||||||
|
_db.RollbackTran(); |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = ex.Message; |
||||||
|
LogService.WriteLog(ex, "修改云柜存放状态"); |
||||||
|
} |
||||||
|
_logs.WriteSysLogadd("云柜详情管理", "修改云柜存放状态", result, _db); |
||||||
|
return result; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,230 @@ |
|||||||
|
using Elight.Entity; |
||||||
|
using Elight.Logic; |
||||||
|
using Elight.Utility; |
||||||
|
using Elight.Utility.Code; |
||||||
|
using Elight.Utility.logs; |
||||||
|
using Microsoft.AspNetCore.Authorization; |
||||||
|
using Microsoft.AspNetCore.Mvc; |
||||||
|
using SqlSugar; |
||||||
|
|
||||||
|
namespace _24Hour.Controllers.Common |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 文书签收 |
||||||
|
/// </summary> |
||||||
|
[HiddenApi] |
||||||
|
[Authorize] |
||||||
|
[ApiController] |
||||||
|
[Route("api/Document")] |
||||||
|
public class DocumentController : 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(); |
||||||
|
public DocumentController(ILogger<LoginController> logger, SqlSugarClient db, WriteSysLog logs, User user) |
||||||
|
{ |
||||||
|
_logger = logger; |
||||||
|
_db = db; |
||||||
|
_logs = logs; |
||||||
|
_userdata = user.Userdata(); |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 文书签收增删改查 |
||||||
|
/// <summary> |
||||||
|
/// APP--根据当前登录人文书签收分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("QueryDocumentuser")] |
||||||
|
public async Task<Result> QueryDocumentuser(App_DocumentInput Documentdata) |
||||||
|
{ |
||||||
|
//查询文书签收预约记录 |
||||||
|
var list = await _db.Queryable<App_DocumentModel>() |
||||||
|
.WhereIF(Documentdata.signforuser != null, q => q.signforuser.Contains(Documentdata.signforuser)) |
||||||
|
.WhereIF(Documentdata.signforphone != null, q => q.signforphone.Contains(Documentdata.signforphone)) |
||||||
|
.WhereIF(Documentdata.signforcardId != null, q => q.signforcardId.Contains(Documentdata.signforcardId)) |
||||||
|
.WhereIF(Documentdata.state != null, q => q.state == Documentdata.state) |
||||||
|
.WhereIF(Documentdata.StartTime != null && Documentdata.EndTime != null, q => q.signfortime >= Documentdata.StartTime && q.signfortime < Documentdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0 && q.signforcardId == _userdata.cardId).ToPageListAsync(Documentdata.PageIndex, Documentdata.PageSize); |
||||||
|
var data = new QueryResult<App_DocumentModel>(Documentdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 文书签收分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("QueryDocument")] |
||||||
|
public async Task<Result> QueryDocument(App_DocumentInput Documentdata) |
||||||
|
{ |
||||||
|
//查询文书签收 |
||||||
|
var list = await _db.Queryable<App_DocumentModel>() |
||||||
|
.WhereIF(Documentdata.signforuser != null, q => q.signforuser.Contains(Documentdata.signforuser)) |
||||||
|
.WhereIF(Documentdata.signforphone != null, q => q.signforphone.Contains(Documentdata.signforphone)) |
||||||
|
.WhereIF(Documentdata.signforcardId != null, q => q.signforcardId.Contains(Documentdata.signforcardId)) |
||||||
|
.WhereIF(Documentdata.unitId != null, q => q.unitId.Contains(Documentdata.unitId)) |
||||||
|
.WhereIF(Documentdata.state != null, q => q.state == Documentdata.state) |
||||||
|
.WhereIF(Documentdata.StartTime != null && Documentdata.EndTime != null, q => q.signfortime >= Documentdata.StartTime && q.signfortime < Documentdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0).ToPageListAsync(Documentdata.PageIndex, Documentdata.PageSize); |
||||||
|
var data = new QueryResult<App_DocumentModel>(Documentdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 添加文书签收 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddDocument")] |
||||||
|
public async Task<Result> AddDocument(App_DocumentModel Documentdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
Documentdata.Id = Guid.NewGuid().ToString(); |
||||||
|
Documentdata.createuserId = _userdata.Id.ToString(); |
||||||
|
Documentdata.createusername = _userdata.name; |
||||||
|
var num = await _db.Insertable(Documentdata).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("UpdateDocument")] |
||||||
|
public async Task<Result> UpdateDocument(App_DocumentModel Documentdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Documentdata).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> |
||||||
|
/// 删除文书签收预约 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("DeleteDocument")] |
||||||
|
public async Task<Result> DeleteDocument(CurrencyDelete Currency) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Deletelist = await _db.Queryable<App_DocumentModel>().In(q => q.Id, Currency.id).ToListAsync(); |
||||||
|
Deletelist.ForEach(q => |
||||||
|
{ |
||||||
|
q.IsDeleted = 1; |
||||||
|
}); |
||||||
|
_db.BeginTran(); |
||||||
|
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; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 文件签收更改状态 |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 修改文件签收状态为已签收 |
||||||
|
/// </summary> |
||||||
|
/// <param name="Id">文件Id</param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("Updatedocumentstate")] |
||||||
|
public async Task<Result> Updatedocumentstate(string? Id) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Documentbol = await _db.Queryable<App_DocumentModel>().Where(q => q.Id == Id).ToListAsync(); |
||||||
|
if (Documentbol.Count() > 0) |
||||||
|
{ |
||||||
|
Documentbol.FirstOrDefault().state = 1; |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Documentbol.FirstOrDefault()).UpdateColumns(it => new { it.state }).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "修改成功"; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.result = "未找到文件信息"; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (System.Exception ex) |
||||||
|
{ |
||||||
|
_db.RollbackTran(); |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = ex.Message; |
||||||
|
LogService.WriteLog(ex, "修改文件签收状态"); |
||||||
|
} |
||||||
|
_logs.WriteSysLogadd("文件签收", "修改文件签收状态", result, _db); |
||||||
|
return result; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,183 @@ |
|||||||
|
using Elight.Entity; |
||||||
|
using Elight.Logic; |
||||||
|
using Elight.Utility; |
||||||
|
using Elight.Utility.Code; |
||||||
|
using Elight.Utility.logs; |
||||||
|
using Microsoft.AspNetCore.Authorization; |
||||||
|
using Microsoft.AspNetCore.Mvc; |
||||||
|
using SqlSugar; |
||||||
|
|
||||||
|
namespace _24Hour.Controllers.Common |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 听证服务 |
||||||
|
/// </summary> |
||||||
|
[Authorize] |
||||||
|
[ApiController] |
||||||
|
[Route("api/Hearing")] |
||||||
|
public class HearingController : 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(); |
||||||
|
public HearingController(ILogger<LoginController> logger, SqlSugarClient db, WriteSysLog logs, User user) |
||||||
|
{ |
||||||
|
_logger = logger; |
||||||
|
_db = db; |
||||||
|
_logs = logs; |
||||||
|
_userdata = user.Userdata(); |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 听证服务增删改查 |
||||||
|
/// <summary> |
||||||
|
/// APP--根据当前登录人听证预约分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("QueryHearinguser")] |
||||||
|
public async Task<Result> QueryHearinguser(App_HearingInput Hearingdata) |
||||||
|
{ |
||||||
|
//查询听证服务预约记录 |
||||||
|
var list = await _db.Queryable<App_HearingModel>() |
||||||
|
.WhereIF(Hearingdata.partyuser != null, q => q.partyuser.Contains(Hearingdata.partyuser)) |
||||||
|
.WhereIF(Hearingdata.casename != null, q => q.casename.Contains(Hearingdata.casename)) |
||||||
|
.WhereIF(Hearingdata.state != null, q => q.state == Hearingdata.state) |
||||||
|
.WhereIF(Hearingdata.StartTime != null && Hearingdata.EndTime != null, q => q.reservationtime >= Hearingdata.StartTime && q.reservationtime < Hearingdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0 && q.createuserId == _userdata.Id).ToPageListAsync(Hearingdata.PageIndex, Hearingdata.PageSize); |
||||||
|
var data = new QueryResult<App_HearingModel>(Hearingdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 听证服务分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("QueryHearing")] |
||||||
|
public async Task<Result> QueryHearing(App_HearingInput Hearingdata) |
||||||
|
{ |
||||||
|
//查询听证服务 |
||||||
|
var list = await _db.Queryable<App_HearingModel>() |
||||||
|
.WhereIF(Hearingdata.partyuser != null, q => q.partyuser.Contains(Hearingdata.partyuser)) |
||||||
|
.WhereIF(Hearingdata.casename != null, q => q.casename.Contains(Hearingdata.casename)) |
||||||
|
.WhereIF(Hearingdata.unitId != null, q => q.unitId.Contains(Hearingdata.unitId)) |
||||||
|
.WhereIF(Hearingdata.state != null, q => q.state == Hearingdata.state) |
||||||
|
.WhereIF(Hearingdata.StartTime != null&& Hearingdata.EndTime!=null, q => q.reservationtime >= Hearingdata.StartTime&& q.reservationtime < Hearingdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0).ToPageListAsync(Hearingdata.PageIndex, Hearingdata.PageSize); |
||||||
|
var data = new QueryResult<App_HearingModel>(Hearingdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 添加听证服务 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddHearing")] |
||||||
|
public async Task<Result> AddHearing(App_HearingModel Hearingdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
Hearingdata.Id = Guid.NewGuid().ToString(); |
||||||
|
Hearingdata.createuserId = _userdata.Id.ToString(); |
||||||
|
Hearingdata.createusername = _userdata.name; |
||||||
|
var num = await _db.Insertable(Hearingdata).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("UpdateHearing")] |
||||||
|
public async Task<Result> UpdateHearing(App_HearingModel Hearingdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Hearingdata).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> |
||||||
|
/// 删除听证服务预约 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("DeleteHearing")] |
||||||
|
public async Task<Result> DeleteHearing(CurrencyDelete Currency) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Deletelist = await _db.Queryable<App_HearingModel>().In(q => q.Id, Currency.id).ToListAsync(); |
||||||
|
Deletelist.ForEach(q => |
||||||
|
{ |
||||||
|
q.IsDeleted = 1; |
||||||
|
}); |
||||||
|
_db.BeginTran(); |
||||||
|
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; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,274 @@ |
|||||||
|
using Elight.Entity; |
||||||
|
using Elight.Logic; |
||||||
|
using Elight.Utility; |
||||||
|
using Elight.Utility.Code; |
||||||
|
using Elight.Utility.logs; |
||||||
|
using Microsoft.AspNetCore.Authorization; |
||||||
|
using Microsoft.AspNetCore.Mvc; |
||||||
|
using SqlSugar; |
||||||
|
using static java.security.cert.CertPathValidatorException; |
||||||
|
|
||||||
|
namespace _24Hour.Controllers.Common |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 律师服务 |
||||||
|
/// </summary> |
||||||
|
[Authorize] |
||||||
|
[ApiController] |
||||||
|
[Route("api/Lawyer")] |
||||||
|
public class LawyerservicesController : 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(); |
||||||
|
public LawyerservicesController(ILogger<LoginController> logger, SqlSugarClient db, WriteSysLog logs, User user) |
||||||
|
{ |
||||||
|
_logger = logger; |
||||||
|
_db = db; |
||||||
|
_logs = logs; |
||||||
|
_userdata = user.Userdata(); |
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 律师服务增删改查 |
||||||
|
/// <summary> |
||||||
|
/// app--根据当前登录人查询律师预约分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("QueryLawyereuser")] |
||||||
|
public async Task<Result> QueryLawyereuser(App_LawyerServicesInput Lawyeredata) |
||||||
|
{ |
||||||
|
//查询律师服务预约记录 |
||||||
|
var list = await _db.Queryable<App_LawyerServicesModel>() |
||||||
|
.WhereIF(Lawyeredata.name != null, q => q.name.Contains(Lawyeredata.name)) |
||||||
|
.WhereIF(Lawyeredata.objectstr != null, q => q.objectstr.Contains(Lawyeredata.objectstr)) |
||||||
|
.WhereIF(Lawyeredata.state != null, q => q.state == Lawyeredata.state) |
||||||
|
.WhereIF(Lawyeredata.StartTime != null && Lawyeredata.EndTime != null, q => q.receptiontime >= Lawyeredata.StartTime && q.receptiontime < Lawyeredata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0 && q.createuserId == _userdata.Id).ToPageListAsync(Lawyeredata.PageIndex, Lawyeredata.PageSize); |
||||||
|
var data = new QueryResult<App_LawyerServicesModel>(Lawyeredata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 律师服务分页查询 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("QueryLawyer")] |
||||||
|
public async Task<Result> QueryLawyer(App_LawyerServicesInput Lawyerdata) |
||||||
|
{ |
||||||
|
//查询律师服务 |
||||||
|
var list = await _db.Queryable<App_LawyerServicesModel>() |
||||||
|
.WhereIF(Lawyerdata.name != null, q => q.name.Contains(Lawyerdata.name)) |
||||||
|
.WhereIF(Lawyerdata.objectstr != null, q => q.objectstr.Contains(Lawyerdata.objectstr)) |
||||||
|
.WhereIF(Lawyerdata.unitId != null, q => q.unitId.Contains(Lawyerdata.unitId)) |
||||||
|
.WhereIF(Lawyerdata.state != null, q => q.state == Lawyerdata.state) |
||||||
|
.WhereIF(Lawyerdata.StartTime != null && Lawyerdata.EndTime != null, q => q.receptiontime >= Lawyerdata.StartTime && q.receptiontime < Lawyerdata.EndTime.Value.AddDays(1)) |
||||||
|
.Where(q => q.IsDeleted == 0).ToPageListAsync(Lawyerdata.PageIndex, Lawyerdata.PageSize); |
||||||
|
var data = new QueryResult<App_LawyerServicesModel>(Lawyerdata, list.OrderByDescending(q => q.creationtime).ToList()); |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = data; |
||||||
|
return result; |
||||||
|
} |
||||||
|
/// <summary> |
||||||
|
/// 添加律师服务 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("AddLawyer")] |
||||||
|
public async Task<Result> AddDevice(App_LawyerServicesModel Lawyerdata) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
Lawyerdata.Id = Guid.NewGuid().ToString(); |
||||||
|
Lawyerdata.createuserId = _userdata.Id.ToString(); |
||||||
|
Lawyerdata.createusername = _userdata.name; |
||||||
|
var num = await _db.Insertable(Lawyerdata).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("UpdateLawyer")] |
||||||
|
public async Task<Result> UpdateLawyer(App_LawyerServicesModel 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> |
||||||
|
/// 删除律师服务预约 |
||||||
|
/// </summary> |
||||||
|
/// <param name="info"></param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpPost] |
||||||
|
[Route("DeleteLawyer")] |
||||||
|
public async Task<Result> DeleteLawyer(CurrencyDelete Currency) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
_db.BeginTran(); |
||||||
|
var Deletelist = await _db.Queryable<App_LawyerServicesModel>().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; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
#region 律师预约修改办理人及状态修改 |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 修改律师服务预约办理人 |
||||||
|
/// </summary> |
||||||
|
/// <param name="Id">律师服务预约Id</param> |
||||||
|
/// <param name="transactors">推送办理人Id</param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("UpdateLawyeruser")] |
||||||
|
public async Task<Result> UpdateLawyeruser(string? Id, string? transactors) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Lawyerbol = await _db.Queryable<App_LawyerServicesModel>().Where(q=>q.Id==Id).ToListAsync(); |
||||||
|
if (Lawyerbol.Count()>0) |
||||||
|
{ |
||||||
|
Lawyerbol.FirstOrDefault().objectstr = transactors; |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Lawyerbol.FirstOrDefault()).UpdateColumns(it => new { it.objectstr}).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "修改成功"; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
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="Id">律师服务预约Id</param> |
||||||
|
/// <param name="state">状态</param> |
||||||
|
/// <param name="reason">拒绝原因</param> |
||||||
|
/// <returns></returns> |
||||||
|
[HttpGet] |
||||||
|
[Route("UpdateLawyerstate")] |
||||||
|
public async Task<Result> UpdateLawyerstate(string? Id, int state,string? reason) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
var Lawyerbol = await _db.Queryable<App_LawyerServicesModel>().Where(q => q.Id == Id).ToListAsync(); |
||||||
|
if (Lawyerbol.Count() > 0) |
||||||
|
{ |
||||||
|
Lawyerbol.FirstOrDefault().state = state; |
||||||
|
Lawyerbol.FirstOrDefault().reason = reason; |
||||||
|
_db.BeginTran(); |
||||||
|
var num = await _db.Updateable(Lawyerbol.FirstOrDefault()).UpdateColumns(it => new { it.state, it.reason }).ExecuteCommandAsync(); |
||||||
|
_db.CommitTran(); |
||||||
|
if (num > 0) |
||||||
|
{ |
||||||
|
result.IsSucceed = true; |
||||||
|
result.result = "同意"; |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
result.IsSucceed = false; |
||||||
|
result.result = "未找到预约信息"; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (System.Exception ex) |
||||||
|
{ |
||||||
|
_db.RollbackTran(); |
||||||
|
result.IsSucceed = false; |
||||||
|
result.Message = ex.Message; |
||||||
|
LogService.WriteLog(ex, "修改律师服务预约状态"); |
||||||
|
} |
||||||
|
_logs.WriteSysLogadd("律师服务", "修改律师服务预约状态", result, _db); |
||||||
|
return result; |
||||||
|
} |
||||||
|
#endregion |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,75 @@ |
|||||||
|
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> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
[SugarTable("app_cloudcabinet")] |
||||||
|
public class App_CloudCabinetModel |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜编号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetnumber { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜位置 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetposition { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜容量 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetcapacity { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜状态:0空闲、:1使用中、2维护中 |
||||||
|
/// </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> |
||||||
|
/// 创建日期 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 是否删除:0:未删除、1:删除 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? IsDeleted { get; set; } = 0; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,104 @@ |
|||||||
|
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> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
[SugarTable("app_document")] |
||||||
|
public class App_DocumentModel |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 文书编号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? documentnumber { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 文书名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? name { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收人手机号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforphone { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收人身份证 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforcardId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收意见 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforopinion { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 备注 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? notes { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? signfortime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 0:待签收,1已签收 |
||||||
|
/// </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> |
||||||
|
/// 创建日期 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 是否删除:0:未删除、1:删除 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? IsDeleted { get; set; } = 0; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,128 @@ |
|||||||
|
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> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
[SugarTable("app_hearing")] |
||||||
|
public class App_HearingModel |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservation { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约人手机号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservationphone { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? reservationtime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约地点 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservationlocation { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 案件名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? casename { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 当事人名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? partyuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 律师名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? lawyeruser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 证人名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? witnessuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 法官名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? judgeuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 备注 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? notes { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约类型 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 接待人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionuser { 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; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,109 @@ |
|||||||
|
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> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
[SugarTable("app_lawyerservices")] |
||||||
|
public class App_LawyerServicesModel |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 预约类型 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionId { 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 string? matter { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 访问对象 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? objectstr { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 接待人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 备注 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? notes { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 拒绝原因 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reason { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 0:待办理,1:同意 ,2:拒绝 |
||||||
|
/// </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> |
||||||
|
/// 创建日期 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 是否删除:0:未删除、1:删除 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? IsDeleted { get; set; } = 0; |
||||||
|
} |
||||||
|
} |
@ -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> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
[SugarTable("app_cabinetdetails")] |
||||||
|
public class App_cabinetDetailsModel |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 物品名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? name { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 物品数量 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? depositnumber { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 存放人Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? depositId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 存放人名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? deposituser { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 存放时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? deposittime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 取出人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? takeoutuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 取出人电话 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? takeoutphone { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 取出人身份证 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? takeoutcardId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 取出时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? takeouttime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜状态:0待取出、:1已取出 |
||||||
|
/// </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> |
||||||
|
/// 创建日期 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 是否删除:0:未删除、1:删除 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? IsDeleted { get; set; } = 0; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,51 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 云柜管理 |
||||||
|
/// </summary> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
public class App_CloudCabinetInput : Paging |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜编号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetnumber { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜位置 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetposition { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜容量 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetcapacity { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜状态:0空闲、:1使用中、2维护中 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int state { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,79 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 文书签收 |
||||||
|
/// </summary> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
public class App_DocumentInput : Paging |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 文书编号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? documentnumber { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 文书名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? name { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收人电话 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforphone { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 签收人身份证 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforcardId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收意见 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? signforopinion { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 备注 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? notes { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 签收时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? signfortime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 0:待签收,1已签收 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int state { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,109 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 听证服务 |
||||||
|
/// </summary> |
||||||
|
[DataContract] |
||||||
|
public class App_HearingInput : Paging |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
[SugarColumn(IsPrimaryKey = true)] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservation { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约人手机号 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservationphone { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? reservationtime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约地点 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reservationlocation { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 案件名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? casename { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 当事人名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? partyuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 律师名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? lawyeruser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 证人名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? witnessuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 法官名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? judgeuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 备注 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? notes { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 预约类型 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 接待人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 0:待办理,1:同意 2:拒绝 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? state { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 拒绝原因 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? reason { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,80 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 律师服务input |
||||||
|
/// </summary> |
||||||
|
[Serializable] |
||||||
|
[DataContract] |
||||||
|
public class App_LawyerServicesInput : Paging |
||||||
|
{ |
||||||
|
[DataMember] |
||||||
|
public string? Id { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 预约类型 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionId { 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 string? matter { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 访问对象 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? objectstr { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 接待人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? receptionuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 备注 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? notes { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 0:待办理,1:同意 ,2:拒绝 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int state { get; set; } |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,116 @@ |
|||||||
|
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 |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 云柜详情 |
||||||
|
/// </summary> |
||||||
|
[DataContract] |
||||||
|
public class App_cabinetDetailsInput : Paging |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 存取类型 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? access { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 单位Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? unitId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? cabinetId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 物品名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? name { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 物品数量 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? depositnumber { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 存放人Id |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? depositId { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 存放人名称 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? deposituser { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 存放时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? deposittime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 取出人 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? takeoutuser { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 取出人电话 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? takeoutphone { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 取出人身份证 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public string? takeoutcardId { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 取出时间 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? takeouttime { get; set; } |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 云柜状态:0待取出、:1已取出 |
||||||
|
/// </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> |
||||||
|
/// 创建日期 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public DateTime? creationtime { get; set; } = DateTime.Now; |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 是否删除:0:未删除、1:删除 |
||||||
|
/// </summary> |
||||||
|
[DataMember] |
||||||
|
public int? IsDeleted { get; set; } = 0; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue