ContractsApprovalRuleHandlers.cs
1.03 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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Contracts.ContractsApprovalRule;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Contracts
{
partial class ContractsApprovalRuleobsoleteContractCategoriesCategoryPropertyFilteringServerHandler<T>
{
public virtual IQueryable<T> ObsoleteContractCategoriesCategoryFiltering(IQueryable<T> query, Sungero.Domain.PropertyFilteringEventArgs e)
{
return query;
}
}
partial class ContractsApprovalRuleServerHandlers
{
public override void Created(Sungero.Domain.CreatedEventArgs e)
{
base.Created(e);
_obj.DocumentFlow = Docflow.ApprovalRuleBase.DocumentFlow.Contracts;
if (_obj.State.IsCopied)
{
foreach (var conditionsList in _obj.Conditions)
{
var newCondition = ContractConditions.Copy(ContractConditions.As(conditionsList.Condition));
newCondition.Save();
conditionsList.Condition = newCondition;
}
}
}
}
}