• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

b1f6c1c4 / ProfessionalAccounting / 315

13 Apr 2024 08:29AM UTC coverage: 0.0%. Remained the same
315

push

appveyor

b1f6c1c4
rich style

0 of 23101 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/AccountingServer.Entities/Util/QueryBase.cs
1
/* Copyright (C) 2020-2024 b1f6c1c4
2
 *
3
 * This file is part of ProfessionalAccounting.
4
 *
5
 * ProfessionalAccounting is free software: you can redistribute it and/or
6
 * modify it under the terms of the GNU Affero General Public License as
7
 * published by the Free Software Foundation, version 3.
8
 *
9
 * ProfessionalAccounting is distributed in the hope that it will be useful, but
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License
12
 * for more details.
13
 *
14
 * You should have received a copy of the GNU Affero General Public License
15
 * along with ProfessionalAccounting.  If not, see
16
 * <https://www.gnu.org/licenses/>.
17
 */
18

19
using System;
20
using System.Collections.Generic;
21

22
namespace AccountingServer.Entities.Util;
23

24
public sealed class DetailQueryUnconstrained : IDetailQueryAtom
25
{
26
    private DetailQueryUnconstrained() { }
×
27
    public static IDetailQueryAtom Instance { get; } = new DetailQueryUnconstrained();
×
28

29
    public TitleKind? Kind => null;
×
30

31
    public bool? IsPseudoCurrency => null;
×
32

33
    public VoucherDetail Filter { get; } = new();
×
34

35
    public bool IsFundBidirectional => false;
×
36

37
    public int Dir => 0;
×
38

39
    public string ContentPrefix => null;
×
40

41
    public string RemarkPrefix => null;
×
42

43
    public bool IsDangerous() => true;
×
44

45
    public T Accept<T>(IQueryVisitor<IDetailQueryAtom, T> visitor) => visitor.Visit(this);
×
46
}
47

48
public sealed class VoucherQueryUnconstrained : IVoucherQueryAtom
49
{
50
    private VoucherQueryUnconstrained() { }
×
51
    public static IVoucherQueryAtom Instance { get; } = new VoucherQueryUnconstrained();
×
52

53
    public bool ForAll => true;
×
54

55
    public Voucher VoucherFilter { get; } = new();
×
56

57
    public DateFilter Range => DateFilter.Unconstrained;
×
58

59
    public IQueryCompounded<IDetailQueryAtom> DetailFilter => DetailQueryUnconstrained.Instance;
×
60

61
    public bool IsDangerous() => true;
×
62

63
    public T Accept<T>(IQueryVisitor<IVoucherQueryAtom, T> visitor) => visitor.Visit(this);
×
64
}
65

66
public sealed class DistributedQueryUnconstrained : IDistributedQueryAtom
67
{
68
    private DistributedQueryUnconstrained() { }
×
69
    public static IDistributedQueryAtom Instance { get; } = new DistributedQueryUnconstrained();
×
70

71
    public IDistributed Filter { get; } = new TheFilter();
×
72

73
    public DateFilter Range => DateFilter.Unconstrained;
×
74

75
    public bool IsDangerous() => true;
×
76

77
    public T Accept<T>(IQueryVisitor<IDistributedQueryAtom, T> visitor) => visitor.Visit(this);
×
78

79
    private sealed class TheFilter : IDistributed
80
    {
81
        public Guid? ID => null;
×
82

83
        public string User => null;
×
84

85
        public string Name => null;
×
86

87
        public DateTime? Date => null;
×
88

89
        public double? Value => null;
×
90

91
        public string Remark => null;
×
92

93
        public IEnumerable<IDistributedItem> TheSchedule => null;
×
94
    }
95
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc