|
@@ -353,6 +353,23 @@ namespace GxPress.Service.Implement.Notice
|
|
|
if (item.TypeValue == AllTypeConst.MyChecked.GetHashCode())
|
|
|
item.IsRead = item.IsFlowChecked;
|
|
|
}
|
|
|
+ if (item.IsDone && item.IsChecked)
|
|
|
+ item.FlowState = FlowState.Checked;
|
|
|
+ else if (item.IsDone && !item.IsChecked)
|
|
|
+ {
|
|
|
+ if (item.DoneType == 1)
|
|
|
+ item.FlowState = FlowState.Meeting;
|
|
|
+ else if (item.DoneType == 2)
|
|
|
+ item.FlowState = FlowState.Wait;
|
|
|
+ else
|
|
|
+ item.FlowState = FlowState.Denied;
|
|
|
+ }
|
|
|
+ else if (item.IsDone && !item.IsChecked)
|
|
|
+ item.FlowState = FlowState.Denied;
|
|
|
+ else
|
|
|
+ {
|
|
|
+ item.FlowState = FlowState.Checking;
|
|
|
+ }
|
|
|
item.Title = _contentJsonService.GetTitile(item.Title, item.Content);
|
|
|
if (item.IsDelete == true)
|
|
|
item.NoticeStatus = 0;
|
|
@@ -375,10 +392,10 @@ namespace GxPress.Service.Implement.Notice
|
|
|
{
|
|
|
using (TransactionScope transactionScope = new TransactionScope())
|
|
|
{
|
|
|
+ //获取通知
|
|
|
+ await _noticeRepository.UpdateAsync(Q.Where(nameof(Entity.Notice.Id), id).Set(nameof(Entity.Notice.IsRecall), true));
|
|
|
//删除middle
|
|
|
await _middleRepository.DeleteAsync(Q.Where(nameof(Entity.Middle.Middle.MiddleId), id).Where(nameof(Entity.Middle.Middle.FolderType), GxPress.EnumConst.AllTypeConst.Inbox.GetHashCode()).Where(nameof(Entity.Middle.Middle.IsAdmin), false));
|
|
|
- //修改为撤销
|
|
|
- await _middleRepository.UpdateAsync(Q.Where(nameof(Entity.Middle.Middle.MiddleId), id).Where(nameof(Entity.Middle.Middle.FolderType), GxPress.EnumConst.AllTypeConst.Inbox.GetHashCode()).Where(nameof(Entity.Middle.Middle.IsAdmin), true).Set(nameof(Entity.Middle.Middle.IsRecall), true));
|
|
|
//修改为草稿箱
|
|
|
await _middleRepository.UpdateAsync(Q.Where(nameof(Entity.Middle.Middle.MiddleId), id).Where(nameof(Entity.Middle.Middle.FolderType), GxPress.EnumConst.FolderTypeConst.Notice.GetHashCode()).Where(nameof(Entity.Middle.Middle.IsAdmin), true).Set(nameof(Entity.Middle.Middle.NoticeAddresseeType), 2));
|
|
|
//修改
|