|
@@ -32,11 +32,9 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 来源渠道(电话、网站、APP等)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(DefaultValue = "其他")]
|
|
|
- public string SourceChannel { get; set; }
|
|
|
+ public string? SourceChannel { get; set; }
|
|
|
|
|
|
- [SugarColumn(DefaultValue = "QT")]
|
|
|
- public string SourceChannelCode { get; set; }
|
|
|
+ public string? SourceChannelCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 渠道为电话时,此字段存在(Call.Id)
|
|
@@ -61,7 +59,7 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 来电/信人姓名
|
|
|
/// </summary>
|
|
|
- public string FromName { get; set; }
|
|
|
+ public string? FromName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 来电/信人性别
|
|
@@ -71,7 +69,7 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 来电/信人身份
|
|
|
/// </summary>
|
|
|
- public EIdentityType IdentityType { get; set; }
|
|
|
+ public EIdentityType? IdentityType { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 证件类型
|
|
@@ -129,9 +127,9 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 受理类型
|
|
|
/// </summary>
|
|
|
- public string AcceptType { get; set; }
|
|
|
+ public string? AcceptType { get; set; }
|
|
|
|
|
|
- public string AcceptTypeCode { get; set; }
|
|
|
+ public string? AcceptTypeCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 紧急程度
|
|
@@ -145,11 +143,11 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 热点
|
|
|
/// </summary>
|
|
|
- public string HotspotId { get; set; }
|
|
|
+ public string? HotspotId { get; set; }
|
|
|
|
|
|
- public string HotspotName { get; set; }
|
|
|
+ public string? HotspotName { get; set; }
|
|
|
|
|
|
- public string HotspotSpliceName { get; set; }
|
|
|
+ public string? HotspotSpliceName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 外部数据(为前端提供级联功能)
|
|
@@ -226,13 +224,11 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 是否公开
|
|
|
/// </summary>
|
|
|
- [SugarColumn(DefaultValue = "f")]
|
|
|
public bool IsPublicity { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否为省工单(省派发工单非政民互动直派的为省工单)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(DefaultValue = "f")]
|
|
|
public bool IsProvince { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -243,7 +239,6 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 是否已撤销
|
|
|
/// </summary>
|
|
|
- [SugarColumn(DefaultValue = "f")]
|
|
|
public bool IsCancel { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -320,13 +315,11 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 实际办理节点code(会签状态此字段保存最外层会签发起节点code)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandleStepCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 实际办理节点名称(会签状态此字段保存最外层会签发起节点名称)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandleStepName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -347,37 +340,31 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 实际办理人id
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandlerId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 实际办理人名称
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandlerName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 实际办理部门名称
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandleOrgName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 实际办理部门编码
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandleOrgCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 实际办理部门行政区划编码
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandleOrgAreaCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 实际办理部门行政区划名称
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? ActualHandleOrgAreaName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -389,13 +376,11 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 真实办理人姓名(手动填写)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? RealHandlerName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 真实办理人电话(手动填写)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? RealHandlerPhone { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -411,7 +396,6 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 沟通地点(手动填写)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? RealCommunicationAddress { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -431,13 +415,11 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 当前办理节点code(非会签:当前被指派节点,会签:会签发起节点)
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? CurrentStepCode { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 当前节点名称
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? CurrentStepName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -507,19 +489,16 @@ namespace Hotline.Orders
|
|
|
/// <summary>
|
|
|
/// 受理人id
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? AcceptorId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 受理人名称
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? AcceptorName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 受理人工号
|
|
|
/// </summary>
|
|
|
- [SugarColumn(IsNullable = true)]
|
|
|
public string? AcceptorStaffNo { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
@@ -533,12 +512,26 @@ namespace Hotline.Orders
|
|
|
public string? AcceptorOrgName { get; set; }
|
|
|
|
|
|
#endregion
|
|
|
-
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 会签类型
|
|
|
/// </summary>
|
|
|
public ECounterSignType? CounterSignType { get; set; }
|
|
|
|
|
|
+ #region 签收
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 签收人id
|
|
|
+ /// </summary>
|
|
|
+ public string? SignerId { get; set; }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 签收人名称
|
|
|
+ /// </summary>
|
|
|
+ public string? SignerName { get; set; }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
#endregion
|
|
|
|
|
|
#region 省工单字段
|
|
@@ -585,8 +578,8 @@ namespace Hotline.Orders
|
|
|
/// </summary>
|
|
|
public string? TagNames { get; set; }
|
|
|
|
|
|
- #endregion
|
|
|
- }
|
|
|
+ #endregion
|
|
|
+ }
|
|
|
|
|
|
public partial class Order
|
|
|
{
|
|
@@ -607,7 +600,7 @@ namespace Hotline.Orders
|
|
|
/// </summary>
|
|
|
[Navigate(NavigateType.OneToOne, nameof(WorkflowId))]
|
|
|
public Workflow Workflow { get; set; }
|
|
|
-
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 工单扩展信息
|
|
|
/// </summary>
|
|
@@ -729,6 +722,28 @@ namespace Hotline.Orders
|
|
|
CenterToOrgTime = null;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 是否已签收
|
|
|
+ /// </summary>
|
|
|
+ public bool IsSigned() => !string.IsNullOrEmpty(SignerId);
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 签收
|
|
|
+ /// </summary>
|
|
|
+ public void Sign(string userId, string userName)
|
|
|
+ {
|
|
|
+ SignerId = userId;
|
|
|
+ SignerName = userName;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 返回未签收状态
|
|
|
+ /// </summary>
|
|
|
+ public void BackToUnsign()
|
|
|
+ {
|
|
|
+ SignerId = null;
|
|
|
+ SignerName = null;
|
|
|
+ }
|
|
|
#endregion
|
|
|
}
|
|
|
}
|