FreeApprovalTaskActions.cs
1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
using Sungero.Docflow.FreeApprovalTask;
namespace Sungero.Docflow.Client
{
partial class FreeApprovalTaskActions
{
public override void Restart(Sungero.Domain.Client.ExecuteActionArgs e)
{
base.Restart(e);
}
public override bool CanRestart(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return base.CanRestart(e);
}
public override void SaveAndClose(Sungero.Domain.Client.ExecuteActionArgs e)
{
base.SaveAndClose(e);
}
public override bool CanSaveAndClose(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return base.CanSaveAndClose(e);
}
public override void Save(Sungero.Domain.Client.ExecuteActionArgs e)
{
base.Save(e);
}
public override bool CanSave(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return base.CanSave(e);
}
public override void Start(Sungero.Domain.Client.ExecuteActionArgs e)
{
if (!e.Validate())
return;
if (!Sungero.Docflow.Functions.FreeApprovalTask.ValidateFreeApprovalTaskStart(_obj, e))
return;
if (!Functions.Module.ShowDialogGrantAccessRightsWithConfirmationDialog(_obj,
_obj.OtherGroup.All.ToList(),
e.Action,
Constants.FreeApprovalTask.StartConfirmDialogID))
return;
base.Start(e);
}
public override bool CanStart(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return base.CanStart(e);
}
}
}