|
@@ -258,26 +258,26 @@ public partial class Workflow : CreationEntity
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
- /// <summary>
|
|
|
|
- /// 处理方式(直办、交办)
|
|
|
|
- /// </summary>
|
|
|
|
- public EProcessType ProcessType { get; set; } = EProcessType.Zhiban;
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 交办时间(中心交部门办理时间)
|
|
|
|
- /// </summary>
|
|
|
|
- public DateTime? CenterToOrgTime { get; set; }
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 办结时长(分钟)
|
|
|
|
- /// 办结时间-交办时间
|
|
|
|
- /// </summary>
|
|
|
|
- public double HandleDuration { get; set; }
|
|
|
|
-
|
|
|
|
- /// <summary>
|
|
|
|
- /// 办结工作日时长
|
|
|
|
- /// </summary>
|
|
|
|
- public double HandleDurationWorkday { get; set; }//todo
|
|
|
|
|
|
+ // /// <summary>
|
|
|
|
+ // /// 处理方式(直办、交办)
|
|
|
|
+ // /// </summary>
|
|
|
|
+ // public EProcessType ProcessType { get; set; } = EProcessType.Zhiban;
|
|
|
|
+ //
|
|
|
|
+ // /// <summary>
|
|
|
|
+ // /// 交办时间(中心交部门办理时间)
|
|
|
|
+ // /// </summary>
|
|
|
|
+ // public DateTime? CenterToOrgTime { get; set; }
|
|
|
|
+
|
|
|
|
+ // /// <summary>
|
|
|
|
+ // /// 办结时长(分钟)
|
|
|
|
+ // /// 办结时间-交办时间
|
|
|
|
+ // /// </summary>
|
|
|
|
+ // public double HandleDuration { get; set; }
|
|
|
|
+ //
|
|
|
|
+ // /// <summary>
|
|
|
|
+ // /// 办结工作日时长
|
|
|
|
+ // /// </summary>
|
|
|
|
+ // public double HandleDurationWorkday { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 全流程时长(分钟)
|
|
/// 全流程时长(分钟)
|
|
@@ -498,7 +498,7 @@ public partial class Workflow
|
|
actualHandleOrgCode, actualHandleOrgName,
|
|
actualHandleOrgCode, actualHandleOrgName,
|
|
actualHandleOrgAreaCode, actualHandleOrgAreaName);
|
|
actualHandleOrgAreaCode, actualHandleOrgAreaName);
|
|
|
|
|
|
- SetHandleDuration();
|
|
|
|
|
|
+ //SetHandleDuration();
|
|
|
|
|
|
//实际办理部门为一级部门时记录
|
|
//实际办理部门为一级部门时记录
|
|
if (currentHandlerOrgLevel == 1)
|
|
if (currentHandlerOrgLevel == 1)
|
|
@@ -761,19 +761,19 @@ public partial class Workflow
|
|
OrgLevelOneName = orgName;
|
|
OrgLevelOneName = orgName;
|
|
}
|
|
}
|
|
|
|
|
|
- public void CenterToOrg(DateTime expiredTime)
|
|
|
|
- {
|
|
|
|
- ProcessType = EProcessType.Jiaoban;
|
|
|
|
- ExpiredTime = expiredTime;
|
|
|
|
- CenterToOrgTime = DateTime.Now;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void OrgToCenter(DateTime expiredTime)
|
|
|
|
- {
|
|
|
|
- ProcessType = EProcessType.Zhiban;
|
|
|
|
- ExpiredTime = expiredTime;
|
|
|
|
- CenterToOrgTime = null;
|
|
|
|
- }
|
|
|
|
|
|
+ // public void CenterToOrg(DateTime expiredTime)
|
|
|
|
+ // {
|
|
|
|
+ // ProcessType = EProcessType.Jiaoban;
|
|
|
|
+ // ExpiredTime = expiredTime;
|
|
|
|
+ // CenterToOrgTime = DateTime.Now;
|
|
|
|
+ // }
|
|
|
|
+ //
|
|
|
|
+ // public void OrgToCenter(DateTime expiredTime)
|
|
|
|
+ // {
|
|
|
|
+ // ProcessType = EProcessType.Zhiban;
|
|
|
|
+ // ExpiredTime = expiredTime;
|
|
|
|
+ // CenterToOrgTime = null;
|
|
|
|
+ // }
|
|
|
|
|
|
public void Redo()
|
|
public void Redo()
|
|
{
|
|
{
|
|
@@ -781,14 +781,14 @@ public partial class Workflow
|
|
Status = EWorkflowStatus.Runnable;
|
|
Status = EWorkflowStatus.Runnable;
|
|
}
|
|
}
|
|
|
|
|
|
- public void SetHandleDuration()
|
|
|
|
- {
|
|
|
|
- if (!ActualHandleTime.HasValue)
|
|
|
|
- throw new ArgumentNullException($"{ActualHandleTime} is null");
|
|
|
|
- if (!CenterToOrgTime.HasValue)
|
|
|
|
- throw new ArgumentNullException($"{CenterToOrgTime} is null");
|
|
|
|
- HandleDuration = Math.Round((ActualHandleTime - CenterToOrgTime).Value.TotalMinutes);
|
|
|
|
- }
|
|
|
|
|
|
+ // public void SetHandleDuration()
|
|
|
|
+ // {
|
|
|
|
+ // if (!ActualHandleTime.HasValue)
|
|
|
|
+ // throw new ArgumentNullException($"{ActualHandleTime} is null");
|
|
|
|
+ // if (!CenterToOrgTime.HasValue)
|
|
|
|
+ // throw new ArgumentNullException($"{CenterToOrgTime} is null");
|
|
|
|
+ // HandleDuration = Math.Round((ActualHandleTime - CenterToOrgTime).Value.TotalMinutes);
|
|
|
|
+ // }
|
|
|
|
|
|
public void SetAllDuration()
|
|
public void SetAllDuration()
|
|
{
|
|
{
|