Skip to content

Commit 68fabb8

Browse files
committed
First commit of NHapiTools V1.3
Added source to Github
1 parent a909010 commit 68fabb8

File tree

91 files changed

+430471
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+430471
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,16 @@ UpgradeLog*.htm
181181

182182
# Microsoft Fakes
183183
FakesAssemblies/
184+
Output/V23/Group/GroupExtensions.cs
185+
Output/V23/Message/MessageExtensions.cs
186+
Output/V23/Segment/SegmentExtensions.cs
187+
Output/V231/Group/GroupExtensions.cs
188+
Output/V231/Message/MessageExtensions.cs
189+
Output/V231/Message/MessageExtensions.cs
190+
Output/V231/Segment/SegmentExtensions.cs
191+
Output/V24/Group/GroupExtensions.cs
192+
Output/V24/Message/MessageExtensions.cs
193+
Output/V24/Segment/SegmentExtensions.cs
194+
Output/V25/Group/GroupExtensions.cs
195+
Output/V25/Message/MessageExtensions.cs
196+
Output/V25/Segment/SegmentExtensions.cs
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// configuration elements
12+
/// </summary>
13+
public class BaseMessageRuleElement : ConfigurationElement
14+
{
15+
/// <summary>
16+
/// Name
17+
/// </summary>
18+
[ConfigurationProperty("Name", IsRequired = true, IsKey = true)]
19+
public string Name
20+
{
21+
get
22+
{
23+
return (string)this["Name"];
24+
}
25+
set
26+
{
27+
this["Name"] = value;
28+
}
29+
}
30+
31+
/// <summary>
32+
/// Version
33+
/// </summary>
34+
[ConfigurationProperty("Version", IsRequired = true)]
35+
public string Version
36+
{
37+
get
38+
{
39+
return (string)this["Version"];
40+
}
41+
set
42+
{
43+
this["Version"] = value;
44+
}
45+
}
46+
47+
/// <summary>
48+
/// Message type
49+
/// </summary>
50+
[ConfigurationProperty("MessageType", IsRequired = true)]
51+
public string MessageType
52+
{
53+
get
54+
{
55+
return (string)this["MessageType"];
56+
}
57+
set
58+
{
59+
this["MessageType"] = value;
60+
}
61+
}
62+
63+
/// <summary>
64+
/// Trigger event
65+
/// </summary>
66+
[ConfigurationProperty("TriggerEvent", IsRequired = true)]
67+
public string TriggerEvent
68+
{
69+
get
70+
{
71+
return (string)this["TriggerEvent"];
72+
}
73+
set
74+
{
75+
this["TriggerEvent"] = value;
76+
}
77+
}
78+
}
79+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// Configuration element
12+
/// </summary>
13+
public class BaseRuleElement : ConfigurationElement
14+
{
15+
/// <summary>
16+
/// Name
17+
/// </summary>
18+
[ConfigurationProperty("Name", IsRequired = true, IsKey = true)]
19+
public string Name
20+
{
21+
get
22+
{
23+
return (string)this["Name"];
24+
}
25+
set
26+
{
27+
this["Name"] = value;
28+
}
29+
}
30+
31+
/// <summary>
32+
/// Assembly
33+
/// </summary>
34+
[ConfigurationProperty("Assembly", IsRequired = true)]
35+
public string Assembly
36+
{
37+
get
38+
{
39+
return (string)this["Assembly"];
40+
}
41+
set
42+
{
43+
this["Assembly"] = value;
44+
}
45+
}
46+
47+
/// <summary>
48+
/// Type
49+
/// </summary>
50+
[ConfigurationProperty("Type", IsRequired = true)]
51+
public string Type
52+
{
53+
get
54+
{
55+
return (string)this["Type"];
56+
}
57+
set
58+
{
59+
this["Type"] = value;
60+
}
61+
}
62+
}
63+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// Rule element
12+
/// </summary>
13+
public class EncodingRuleElement : BaseRuleElement
14+
{
15+
}
16+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// Rule element
12+
/// </summary>
13+
public class MessageFieldIntOnlyRuleElement : BaseMessageRuleElement
14+
{
15+
/// <summary>
16+
/// Field indicator
17+
/// </summary>
18+
[ConfigurationProperty("FieldIndicator", IsRequired = true)]
19+
public string FieldIndicator
20+
{
21+
get
22+
{
23+
return (string)this["FieldIndicator"];
24+
}
25+
set
26+
{
27+
this["FieldIndicator"] = value;
28+
}
29+
}
30+
31+
/// <summary>
32+
/// Allow null
33+
/// </summary>
34+
[ConfigurationProperty("AllowNull", DefaultValue=true, IsRequired = false)]
35+
public bool AllowNull
36+
{
37+
get
38+
{
39+
return (bool)this["AllowNull"];
40+
}
41+
set
42+
{
43+
this["AllowNull"] = value;
44+
}
45+
}
46+
}
47+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// Configuration element
12+
/// </summary>
13+
public class MessageFieldMandatoryRuleElement : BaseMessageRuleElement
14+
{
15+
/// <summary>
16+
/// Field Indicator
17+
/// </summary>
18+
[ConfigurationProperty("FieldIndicator", IsRequired = true)]
19+
public string FieldIndicator
20+
{
21+
get
22+
{
23+
return (string)this["FieldIndicator"];
24+
}
25+
set
26+
{
27+
this["FieldIndicator"] = value;
28+
}
29+
}
30+
}
31+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// Configuration element
12+
/// </summary>
13+
public class MessageRegExRuleElement : BaseMessageRuleElement
14+
{
15+
/// <summary>
16+
/// Field indicator
17+
/// </summary>
18+
[ConfigurationProperty("FieldIndicator", IsRequired = true)]
19+
public string FieldIndicator
20+
{
21+
get
22+
{
23+
return (string)this["FieldIndicator"];
24+
}
25+
set
26+
{
27+
this["FieldIndicator"] = value;
28+
}
29+
}
30+
31+
/// <summary>
32+
/// RegEx
33+
/// </summary>
34+
[ConfigurationProperty("RegEx", IsRequired = true)]
35+
public string RegEx
36+
{
37+
get
38+
{
39+
return (string)this["RegEx"];
40+
}
41+
set
42+
{
43+
this["RegEx"] = value;
44+
}
45+
}
46+
47+
/// <summary>
48+
/// Allow null
49+
/// </summary>
50+
[ConfigurationProperty("AllowNull", DefaultValue=true, IsRequired = false)]
51+
public bool AllowNull
52+
{
53+
get
54+
{
55+
return (bool)this["AllowNull"];
56+
}
57+
set
58+
{
59+
this["AllowNull"] = value;
60+
}
61+
}
62+
}
63+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Configuration;
7+
8+
namespace NHapiTools.Base.Configuration
9+
{
10+
/// <summary>
11+
/// Rule element
12+
/// </summary>
13+
public class MessageRuleElement : BaseRuleElement
14+
{
15+
}
16+
}

0 commit comments

Comments
 (0)