using Hotline.Settings;
using Hotline.Share.Enums.Order;
using Hotline.Share.Requests;
using Microsoft.VisualBasic;
using System.Data;
using XF.Utility.EnumExtensions;
namespace Hotline.Share.Dtos.Order
{
public class OrderBiOrgDataListVo
{
public string OrgName { get; set; }
public string OrgId { get; set; }
///
/// 业务已办超期
///
public int HandlerExtendedNum { get; set; }
///
/// 会签已办超期
///
public int CounterHandlerExtendedNum { get; set; }
///
/// 业务待办超期
///
public int NoHandlerExtendedNum { get; set; }
///
/// 会签待办超期
///
public int CounterNoHandlerExtendedNum { get; set; }
public int Subtotal => HandlerExtendedNum + CounterHandlerExtendedNum + NoHandlerExtendedNum + CounterNoHandlerExtendedNum;
//public int Subtotal { get; set; }
}
public class OrderBiCentreDataListVo
{
///
/// 用户名
///
public string UserName { get; set; }
///
/// 用户ID
///
public string UserId { get; set; }
///
/// 中心归档件
///
public int CentreArchive { get; set; }
///
/// 转办信件
///
public int CentreCareOf { get; set; }
///
/// 待转办
///
public int NoCentreCareOf { get; set; }
///
/// 无效件
///
public int Invalid { get; set; }
///
/// 重复件
///
public int Repeat { get; set; }
//public int Subtotal => CentreArchive + CentreCareOf + NoCentreCareOf + Invalid + Repeat;
public int Subtotal { get; set; }
}
public class OrderBiSpecialListVo
{
public string Cause { get; set; }
public int OrderNum { get; set; }
public DateTime MaxSpecialTime { get; set; }
}
public class HotspotDataLsitVo {
public string Name { get; set;}
public string Id { get; set; }
public int Num { get; set; }
public bool Sublevel { get; set; }
public List Children { get; set; }
public int ChainNum { get; set; }
public string ChainRate { get; set; }
}
public class AcceptTypeTop10Volod {
///
/// 热点名称
///
public string Name { get; set; }
///
/// 受理类型ID
///
public string Id { get; set; }
///
/// 受理类型名称
///
public string AcceptName { get; set; }
///
/// 数量
///
public int Num { get; set; }
}
public class AcceptTypeTop10Vo
{
///
/// 热点名称
///
public string Name { get; set; }
///
/// 有效受理
///
public int ValidAccept { get; set; }
///
/// 咨询
///
public int Consult { get; set; }
///
/// 举报
///
public int Report { get; set; }
///
/// 投诉
///
public int Complaint { get; set; }
///
/// 求助
///
public int SeekHelp { get; set; }
///
/// 建议
///
public int Suggest { get; set; }
///
/// 意见
///
public int Opinion { get; set; }
///
/// 其他
///
public int Rests { get; set; }
///
/// 惠民帮助
///
public int BenefitThePeople { get; set; }
///
/// 表扬
///
public int Praise { get; set; }
}
public class BiOrderDelayDataDto
{
///
/// 部门名称
///
public string OrgName { get; set; }
///
/// 部门code
///
public string OrgCode { get; set; }
///
/// 小计
///
public int AllTotal { get; set; }
///
/// 已同意次数
///
public int PassTotal { get; set; }
///
/// 未同意次数
///
public int NoPassTotal { get; set; }
///
/// 审批中次数
///
public int ExaminingTotal { get; set; }
}
public class VisitMeasureStatisticsDto
{
///
/// 智能回访量
///
public int AiVisitCount { get; set; }
///
/// 智能回访满意量
///
public int AiVisitSatisfiedCount { get; set; }
///
/// 智能回访不满意量
///
public int AiVisitNoSatisfiedCount { get; set; }
///
/// 智能回访失败量
///
public int AIVisitFailCount { get; set; }
public List VisitMeasureStatisticsModelList { get; set; }
}
public class VisitMeasureStatisticsModelDto
{
///
/// 回访员
///
public string VisitName { get; set; }
///
/// 电话回访
///
public int CallVisitCount { get; set; }
///
/// 人工回访
///
public int ArtificialVisitCount { get; set; }
///
/// 总回访量
///
public int SumCount { get; set; }
}
public class VisitAndOrgSatisfactionStatisticsResultDto
{
public List DataList { get; set; }
public VisitAndOrgSatisfactionStatisticsDto CountySumModel { get; set; }
public VisitAndOrgSatisfactionStatisticsDto CitySumModel { get; set; }
public VisitAndOrgSatisfactionStatisticsDto SumModel { get; set; }
}
public class OrgVisitDetailListResp
{
///
/// 工单ID
///
public string Id { get; set; }
///
/// 回访ID
///
public string VisitId { get; set; }
///
/// 工单编号
///
public string No { get; set; }
///
/// 重办次数
///
public int? ReTransactNum { get; set; }
///
/// 甄别状态
///
public EScreenStatus? OrderScreenStatus { get; set; }
public string? OrderScreenStatusText => OrderScreenStatus?.GetDescription();
///
/// 回访内容
///
public string VisitContent { get; set; }
///
/// 热点全称
///
public string HotspotSpliceName { get; set; }
///
/// 一级部门
///
public string OrgLevelOneName { get; set; }
///
/// 办结部门
///
public string CurrentHandleOrgName { get; set; }
///
/// 受理时间
///
public DateTime CreationTime { get; set; }
///
/// 工单标题
///
public string Title { get; set; }
///
/// 回访人
///
public string VisitUser { get; set; }
///
/// 回访部门
///
public string VisitOrgName { get; set; }
///
/// 回访方式
///
public EVisitType? VisitType { get; set; }
public string? VisitTypeText => VisitType?.GetDescription();
///
/// 回访时间
///
public DateTime? VisitTime { get; set; }
///
/// 满意度
/// 如果入参 EAttitudeType = 1 是 办件结果
/// 如果入参 EAttitudeType = 2 是 办事态度
///
public string OrgProcessingResults { get; set; }
///
/// 受理内容
///
public string Content { get; set; }
///
/// 承办意见
///
public string FileOpinion { get; set;}
///
/// 办结时间
///
public DateTime? FiledTime { get; set; }
///
/// 接办部门
///
public string ActualHandleOrgName { get; set; }
}
public class VisitAndOrgSatisfactionStatisticsDto
{
public string OrgName { get; set; }
public string OrgCode { get; set; }
public EOrgType? OrgType { get; set; }
public string OrgTypeText => OrgType?.GetDescription();
///
/// 总数
///
public int TotalSumCount { get; set; }
///
/// 总满意度
///
//public double TotalSumRate => Math.Round(VerySatisfiedRate + SatisfiedRate + RegardedAsSatisfiedRate+ DefaultSatisfiedRate, 2) ;
public double TotalSumRate => CalcTotalSumRate();
public double CalcTotalSumRate()
{
if ((VerySatisfiedCount + SatisfiedCount + RegardedAsSatisfiedCount + DefaultSatisfiedCount + NoSatisfiedCount) == 0)
return 0;
return Math.Round(((double)VerySatisfiedCount + SatisfiedCount + RegardedAsSatisfiedCount + DefaultSatisfiedCount) / (VerySatisfiedCount + SatisfiedCount + RegardedAsSatisfiedCount + DefaultSatisfiedCount + NoSatisfiedCount) * 100, 2);
}
public string TotalSumRateText => TotalSumRate + "%";
///
/// 非常满意数
///
public int VerySatisfiedCount { get; set; }
///
/// 非常满意Key
///
public string VerySatisfiedKey => "5";
///
/// 非常满意率
///
public double VerySatisfiedRate => CalcVerySatisfiedRate();
public double CalcVerySatisfiedRate()
{
if (VerySatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((VerySatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string VerySatisfiedRateText => VerySatisfiedRate + "%";
///
/// 满意数
///
public int SatisfiedCount { get; set; }
///
/// 满意Key
///
public string SatisfiedKey => "4";
///
/// 满意率
///
public double SatisfiedRate => CalcSatisfiedRate();
public double CalcSatisfiedRate()
{
if (SatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((SatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string SatisfiedRateText => SatisfiedRate + "%";
///
/// 视为满意数
///
public int RegardedAsSatisfiedCount { get; set; }
///
/// 视为满意Key
///
public string RegardedAsSatisfiedKey => "-1";
///
/// 视为满意率
///
public double RegardedAsSatisfiedRate => CalcRegardedAsSatisfiedRate();
public double CalcRegardedAsSatisfiedRate()
{
if (RegardedAsSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((RegardedAsSatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string RegardedAsSatisfiedRateText => RegardedAsSatisfiedRate + "%";
///
/// 默认满意数
///
public int DefaultSatisfiedCount { get; set; }
///
/// 默认满意Key
///
public string DefaultSatisfiedKey => "0";
///
/// 默认满意率
///
public double DefaultSatisfiedRate => CalcDefaultSatisfiedRate();
public double CalcDefaultSatisfiedRate()
{
if (DefaultSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((DefaultSatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string DefaultSatisfiedRateText => DefaultSatisfiedRate + "%";
///
/// 不满意数
///
public int NoSatisfiedCount { get; set; }
///
/// 不满意Key
///
public string NoSatisfiedKey => "2";
///
/// 不满意率
///
public double NoSatisfiedRate => CalcNoSatisfiedRate();
public double CalcNoSatisfiedRate()
{
if (NoSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((NoSatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string NoSatisfiedRateText => NoSatisfiedRate + "%";
///
/// 未做评价数
///
public int NoEvaluateCount { get; set; }
///
/// 未做评价Key
///
public string NoEvaluateKey => "7";
///
/// 未做评价率
///
public double NoEvaluateRate => CalcNoEvaluateRate();
public double CalcNoEvaluateRate()
{
if (NoEvaluateCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((NoEvaluateCount / (double)TotalSumCount) * 100, 2);
}
public string NoEvaluateRateText => NoEvaluateRate + "%";
///
/// 未接通数
///
public int NoPutThroughCount { get; set; }
///
/// 未接通Key
///
public string NoPutThroughKey => "6";
///
/// 未接通率
///
public double NoPutThroughRate => CalcNoPutThroughRate();
public double CalcNoPutThroughRate()
{
if (NoPutThroughCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((NoPutThroughCount / (double)TotalSumCount) * 100, 2);
}
public string NoPutThroughRateText => NoPutThroughRate + "%";
}
public class BiOrderSendVo
{
public string UserId { get; set; }
public string UserName { get; set; }
///
/// 派单量
///
public int SendOrderNum { get; set; }
///
/// 待派单量
///
public int NoSendOrderNum { get; set; }
///
/// 重办量
///
public int ReSendOrderNum { get; set; }
public string AccuracyRate { get; set; }
}
public class OrderReTransactVo
{
///
/// 时间
///
public string Time { get; set; }
///
/// 部门名称
///
public string OrgName { get; set; }
///
/// 部门id
///
public string OrgId { get; set; }
///
/// 次数
///
public int Num { get; set; }
}
public class SecondaryHandlingVo
{
///
/// 部门名称
///
public string OrgName { get; set; }
///
/// 部门id
///
public string OrgId { get; set; }
///
/// 次数
///
public int Num { get; set; }
}
public class SecondaryHandlingSatisfactionVo
{
///
/// 部门名称
///
public string OrgName { get; set; }
///
/// 部门id
///
public string OrgId { get; set; }
///
/// 部门类型
///
public EOrgType OrgType { get; set; }
public string OrgTypeText => OrgType.GetDescription();
///
/// 总数
///
public int TotalSumCount { get; set; }
///
/// 总满意度
///
public double TotalSumRate => Math.Round(VerySatisfiedRate + SatisfiedRate + RegardedAsSatisfiedRate + DefaultSatisfiedRate, 2);
public string TotalSumRateText => TotalSumRate + "%";
///
/// 非常满意数
///
public int VerySatisfiedCount { get; set; }
///
/// 非常满意率
///
public double VerySatisfiedRate => CalcVerySatisfiedRate();
public double CalcVerySatisfiedRate()
{
if (VerySatisfiedCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((VerySatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string VerySatisfiedRateText => VerySatisfiedRate + "%";
///
/// 满意数
///
public int SatisfiedCount { get; set; }
///
/// 满意率
///
public double SatisfiedRate => CalcSatisfiedRate();
public double CalcSatisfiedRate()
{
if (SatisfiedCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((SatisfiedCount / (double)TotalSumCount) * 100, 3);
}
public string SatisfiedRateText => SatisfiedRate + "%";
///
/// 视为满意数
///
public int RegardedAsSatisfiedCount { get; set; }
///
/// 视为满意率
///
public double RegardedAsSatisfiedRate => CalcRegardedAsSatisfiedRate();
public double CalcRegardedAsSatisfiedRate()
{
if (RegardedAsSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((RegardedAsSatisfiedCount / (double)TotalSumCount) * 100, 3);
}
public string RegardedAsSatisfiedRateText => RegardedAsSatisfiedRate + "%";
///
/// 默认满意数
///
public int DefaultSatisfiedCount { get; set; }
///
/// 默认满意率
///
public double DefaultSatisfiedRate => CalcDefaultSatisfiedRate();
public double CalcDefaultSatisfiedRate()
{
if (DefaultSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((DefaultSatisfiedCount / (double)TotalSumCount) * 100, 3);
}
public string DefaultSatisfiedRateText => DefaultSatisfiedRate + "%";
///
/// 不满意数
///
public int NoSatisfiedCount { get; set; }
///
/// 不满意率
///
public double NoSatisfiedRate => CalcNoSatisfiedRate();
public double CalcNoSatisfiedRate()
{
if (NoSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((NoSatisfiedCount / (double)TotalSumCount) * 100, 3);
}
public string NoSatisfiedRateText => NoSatisfiedRate + "%";
///
/// 未做评价数
///
public int NoEvaluateCount { get; set; }
///
/// 未做评价率
///
public double NoEvaluateRate => CalcNoEvaluateRate();
public double CalcNoEvaluateRate()
{
if (NoEvaluateCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((NoEvaluateCount / (double)TotalSumCount) * 100, 3);
}
public string NoEvaluateRateText => NoEvaluateRate + "%";
///
/// 未接通数
///
public int NoPutThroughCount { get; set; }
///
/// 未接通率
///
public double NoPutThroughRate => CalcNoPutThroughRate();
public double CalcNoPutThroughRate()
{
if (NoPutThroughCount == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((NoPutThroughCount / (double)TotalSumCount) * 100, 3);
}
public string NoPutThroughRateText => NoPutThroughRate + "%";
}
public class OrderSourceVo
{
///
/// 信件来源
///
public string Source { get; set; }
///
/// 数量
///
public int Num { get; set; }
///
/// 总数
///
public int TotalSumCount { get; set; }
///
/// 占比
///
public double Rate => GetRate();
public double GetRate()
{
if (Num == 0 || TotalSumCount == 0)
{
return 0.000;
}
return Math.Round((Num / (double)TotalSumCount) * 100, 2) ;
}
public string RateText => GetRate() + "%";
}
public class VisitAndHotspotSatisfactionStatisticsDto
{
public string HotspotId { get; set; }
public string HotspotName { get; set; }
///
/// 总数
///
public int TotalSumCount { get; set; }
///
/// 总满意度
///
public double TotalSumRate => Math.Round(VerySatisfiedRate + SatisfiedRate + RegardedAsSatisfiedRate + DefaultSatisfiedRate, 2);
public string TotalSumRateText => TotalSumRate + "%";
///
/// 非常满意数
///
public int VerySatisfiedCount { get; set; }
///
/// 非常满意Key
///
public string VerySatisfiedKey => "5";
///
/// 非常满意率
///
public double VerySatisfiedRate => CalcVerySatisfiedRate();
public double CalcVerySatisfiedRate()
{
if (VerySatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((VerySatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string VerySatisfiedRateText => VerySatisfiedRate + "%";
///
/// 满意数
///
public int SatisfiedCount { get; set; }
///
/// 满意Key
///
public string SatisfiedKey => "4";
///
/// 满意率
///
public double SatisfiedRate => CalcSatisfiedRate();
public double CalcSatisfiedRate()
{
if (SatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((SatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string SatisfiedRateText => SatisfiedRate + "%";
///
/// 视为满意数
///
public int RegardedAsSatisfiedCount { get; set; }
///
/// 视为满意Key
///
public string RegardedAsSatisfiedKey => "-1";
///
/// 视为满意率
///
public double RegardedAsSatisfiedRate => CalcRegardedAsSatisfiedRate();
public double CalcRegardedAsSatisfiedRate()
{
if (RegardedAsSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((RegardedAsSatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string RegardedAsSatisfiedRateText => RegardedAsSatisfiedRate + "%";
///
/// 默认满意数
///
public int DefaultSatisfiedCount { get; set; }
///
/// 默认满意Key
///
public string DefaultSatisfiedKey => "0";
///
/// 默认满意率
///
public double DefaultSatisfiedRate => CalcDefaultSatisfiedRate();
public double CalcDefaultSatisfiedRate()
{
if (DefaultSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((DefaultSatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string DefaultSatisfiedRateText => DefaultSatisfiedRate + "%";
///
/// 不满意数
///
public int NoSatisfiedCount { get; set; }
///
/// 不满意Key
///
public string NoSatisfiedKey => "2";
///
/// 不满意率
///
public double NoSatisfiedRate => CalcNoSatisfiedRate();
public double CalcNoSatisfiedRate()
{
if (NoSatisfiedCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((NoSatisfiedCount / (double)TotalSumCount) * 100, 2);
}
public string NoSatisfiedRateText => NoSatisfiedRate + "%";
///
/// 未做评价数
///
public int NoEvaluateCount { get; set; }
///
/// 未做评价Key
///
public string NoEvaluateKey => "7";
///
/// 未做评价率
///
public double NoEvaluateRate => CalcNoEvaluateRate();
public double CalcNoEvaluateRate()
{
if (NoEvaluateCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((NoEvaluateCount / (double)TotalSumCount) * 100, 2);
}
public string NoEvaluateRateText => NoEvaluateRate + "%";
///
/// 未接通数
///
public int NoPutThroughCount { get; set; }
///
/// 未接通Key
///
public string NoPutThroughKey => "6";
///
/// 未接通率
///
public double NoPutThroughRate => CalcNoPutThroughRate();
public double CalcNoPutThroughRate()
{
if (NoPutThroughCount == 0 || TotalSumCount == 0)
{
return 0;
}
return Math.Round((NoPutThroughCount / (double)TotalSumCount) * 100, 2);
}
public string NoPutThroughRateText => NoPutThroughRate + "%";
}
public class OrderSourceHeaderVo {
///
/// 日期
///
public string? Time { get; set; }
///
/// 日期(不显示)
///
public string? TimeSort { get; set; }
///
/// 小计
///
public int? Subtotal => Phone + Web + Rests + Created + WeChat + App + WisdomYB + Platform + Platform12328 + MayorAndNetizens + MediaYB + Platform12345 + Interaction + ServiceYB + CityTransfer + Platform110 + NoService + Iyb;
///
/// 电话
///
public int? Phone { get; set; }
///
/// 因特网
///
public int? Web { get; set; }
///
/// 其他
///
public int? Rests { get; set; }
///
/// 自建
///
public int? Created { get; set; }
///
/// 微信
///
public int? WeChat { get; set; }
///
/// APP
///
public int? App { get; set; }
///
/// 智慧宜宾
///
public int? WisdomYB { get; set; }
///
/// 综治平台
///
public int? Platform { get; set; }
///
/// 省12328平台
///
public int? Platform12328 { get; set; }
///
/// 市长和网民
///
public int? MayorAndNetizens { get; set; }
///
/// 宜宾融媒体
///
public int? MediaYB { get; set; }
///
/// 省12345平台
///
public int? Platform12345 { get; set; }
///
/// 省政民互动
///
public int? Interaction { get; set; }
///
/// 宜办事
///
public int? ServiceYB { get; set; }
///
/// 市州互转
///
public int? CityTransfer { get; set; }
///
/// 宜宾110平台
///
public int? Platform110 { get; set; }
///
/// 办不成事反映窗口
///
public int? NoService { get; set; }
//
/// i宜宾
///
public int? Iyb { get; set; }
}
public class OrderScreenApplyVo
{
///
/// 提起时间
///
public string ApplyTime { get; set; }
///
/// 提起人
///
public string ApplyUserName { get; set; }
///
/// 部门名称
///
public string ApplyOrgName { get; set; }
///
/// 数量
///
public int ApplyNum { get; set; }
}
public class OrderScreenAuditVo {
///
/// 审批人
///
public string AuditName { get; set; }
///
/// 审批数量
///
public int AuditNum { get; set; }
///
/// 退回数量
///
public int AuditBackNum { get; set; }
///
/// 小计
///
public int Total => AuditNum + AuditBackNum;
}
public class OrderCenterAcceptVo: OrderCenterBaseVo
{
///
/// 日期
///
public string Time { get; set; }
}
public class OrderCenterAcceptUserVo : OrderCenterBaseVo
{
///
/// 值班坐席
///
public string AcceptUserName { get; set; }
}
public class OrderCenterAcceptHourVo : OrderCenterBaseVo
{
///
/// 时间段
///
public string Hour { get; set; }
}
public class OrderCenterBaseVo
{
///
/// 受理总件
///
public int AcceptNum { get; set; }
///
/// 有效件
///
public int ValidNum { get; set; }
///
/// 重复件
///
public int RepetitionNum { get; set; }
///
/// 无效件
///
public int InvalidNum { get; set; }
///
/// 已办件
///
public int HandleNum { get; set; }
///
/// 待办件
///
public int NoHandleNum { get; set; }
///
/// 退回件
///
public int BackNum { get; set; }
///
/// 值班坐席
///
public int DutyDeskNum { get; set; }
}
}