WaybillHandlers.cs
1.39 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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
using Sungero.FinancialArchive.Waybill;
namespace Sungero.FinancialArchive
{
partial class WaybillClientHandlers
{
public override void LeadingDocumentValueInput(Sungero.Docflow.Client.OfficialDocumentLeadingDocumentValueInputEventArgs e)
{
base.LeadingDocumentValueInput(e);
this._obj.State.Properties.BusinessUnit.HighlightColor = Sungero.Core.Colors.Empty;
}
public override void RegistrationNumberValueInput(Sungero.Presentation.StringValueInputEventArgs e)
{
base.RegistrationNumberValueInput(e);
this._obj.State.Properties.RegistrationNumber.HighlightColor = Sungero.Core.Colors.Empty;
}
public override void RegistrationDateValueInput(Sungero.Presentation.DateTimeValueInputEventArgs e)
{
base.RegistrationDateValueInput(e);
// Для DateTime событие изменения отрабатывает, даже если даты одинаковые.
// Поэтому еще раз сравниваем только даты без учёта времени.
if (e.OldValue.HasValue && e.NewValue.HasValue && Equals(e.OldValue.Value.Date, e.NewValue.Value.Date))
return;
this._obj.State.Properties.RegistrationDate.HighlightColor = Sungero.Core.Colors.Empty;
}
}
}