Commit 5258bad0 5258bad00f3974060055a14521c4258da71201c8 by rx5

Импорт пакета разработки [Rx]

1 parent 7499691c
Showing 1000 changed files with 1843 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.City;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10
11 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.City;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class CityFunctions
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.City;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class CityClientHandlers
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="View" isnull="true" iskey="true">
9 <property name="AutoWidth">true</property>
10 <property name="ShowGroupPanel">true</property>
11 <property name="ColumnChooserState" isnull="true" iskey="true">
12 <property name="Location">604,-21</property>
13 <property name="Size">220,250</property>
14 </property>
15 <property name="AllowGrouping">true</property>
16 <property name="AllowSorting">true</property>
17 <property name="LinesPerRowMode">OneLineMode</property>
18 <property name="IsRowCellMenuEnabled">false</property>
19 </property>
20 <property name="TotalSummary" iskey="true" value="0" />
21 <property name="GroupSummary" iskey="true" value="0" />
22 <property name="GroupCount">2</property>
23 <property name="SortInfo" iskey="true" value="4">
24 <property name="Item1" isnull="true" iskey="true">
25 <property name="FieldName">Country.DisplayValue</property>
26 <property name="SortOrder">Ascending</property>
27 </property>
28 <property name="Item2" isnull="true" iskey="true">
29 <property name="FieldName">Region.DisplayValue</property>
30 <property name="SortOrder">Ascending</property>
31 </property>
32 <property name="Item3" isnull="true" iskey="true">
33 <property name="FieldName">Status</property>
34 <property name="SortOrder">Ascending</property>
35 </property>
36 <property name="Item4" isnull="true" iskey="true">
37 <property name="FieldName">Name</property>
38 <property name="SortOrder">Ascending</property>
39 </property>
40 </property>
41 <property name="Columns" iskey="true" value="6">
42 <property name="Item1" isnull="true" iskey="true">
43 <property name="Visible">true</property>
44 <property name="VisibleIndex">0</property>
45 <property name="FieldName">T</property>
46 </property>
47 <property name="Item2" isnull="true" iskey="true">
48 <property name="ColumnFilterMode">Value</property>
49 <property name="AutoFilterCondition">Equals</property>
50 <property name="FieldName">Id</property>
51 <property name="VisibleIndex">1</property>
52 <property name="Name">City_Id</property>
53 <property name="Visible">false</property>
54 <property name="ActualWidth">5*</property>
55 </property>
56 <property name="Item3" isnull="true" iskey="true">
57 <property name="ColumnFilterMode">DisplayText</property>
58 <property name="AutoFilterCondition">Contains</property>
59 <property name="FieldName">Name</property>
60 <property name="VisibleIndex">1</property>
61 <property name="Name">City_Name</property>
62 <property name="Visible">true</property>
63 <property name="ActualWidth">52*</property>
64 </property>
65 <property name="Item4" isnull="true" iskey="true">
66 <property name="ColumnFilterMode">DisplayText</property>
67 <property name="AutoFilterCondition">Contains</property>
68 <property name="FieldName">Region.DisplayValue</property>
69 <property name="Name">City_Region</property>
70 <property name="Visible">true</property>
71 <property name="ActualWidth">NaN</property>
72 </property>
73 <property name="Item5" isnull="true" iskey="true">
74 <property name="ColumnFilterMode">DisplayText</property>
75 <property name="AutoFilterCondition">Contains</property>
76 <property name="FieldName">Country.DisplayValue</property>
77 <property name="Name">City_Country</property>
78 <property name="Visible">true</property>
79 <property name="ActualWidth">NaN</property>
80 </property>
81 <property name="Item6" isnull="true" iskey="true">
82 <property name="ColumnFilterMode">DisplayText</property>
83 <property name="AutoFilterCondition">Contains</property>
84 <property name="FieldName">Status</property>
85 <property name="VisibleIndex">2</property>
86 <property name="Name">City_Status</property>
87 <property name="Visible">true</property>
88 <property name="ActualWidth">44*</property>
89 </property>
90 </property>
91 <property name="GroupSummarySortInfo" iskey="true" value="0" />
92 </property>
93 </XtraSerializer>
94 </Collection>
95 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="Columns" iskey="true" value="3">
9 <property name="Item1" isnull="true" iskey="true">
10 <property name="FieldName">T</property>
11 <property name="Visible">true</property>
12 <property name="VisibleIndex">0</property>
13 </property>
14 <property name="Item2" isnull="true" iskey="true">
15 <property name="FieldName">Id</property>
16 <property name="Visible">true</property>
17 <property name="Name">City_Id</property>
18 <property name="VisibleIndex">1</property>
19 </property>
20 <property name="Item3" isnull="true" iskey="true">
21 <property name="FieldName">Name</property>
22 <property name="Visible">true</property>
23 <property name="Name">City_Name</property>
24 <property name="VisibleIndex">2</property>
25 </property>
26 </property>
27 </property>
28 </XtraSerializer>
29 </Folder>
30 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>City_small</title><path d="M8,0A5.6,5.6,0,0,0,2.4,5.6C2.4,8.69,8,16,8,16s5.6-7.31,5.6-10.4A5.6,5.6,0,0,0,8,0ZM8,8a2.4,2.4,0,1,1,2.4-2.4A2.4,2.4,0,0,1,8,8Z" fill="#d7853c"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>City_large</title><path d="M16,0A11.2,11.2,0,0,0,4.8,11.2C4.8,17.39,16,32,16,32S27.2,17.39,27.2,11.2A11.2,11.2,0,0,0,16,0Zm0,16a4.8,4.8,0,1,1,4.8-4.8A4.8,4.8,0,0,1,16,16Z" fill="#d7853c"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Country;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class CountryActions
11 {
12
13 public virtual void ShowDuplicates(Sungero.Domain.Client.ExecuteActionArgs e)
14 {
15 var duplicates = Functions.Country.Remote.GetDuplicates(_obj);
16 if (duplicates.Any())
17 duplicates.Show();
18 else
19 Dialogs.NotifyMessage(Sungero.Commons.Resources.DuplicateNotFound);
20 }
21
22 public virtual bool CanShowDuplicates(Sungero.Domain.Client.CanExecuteActionArgs e)
23 {
24 return true;
25 }
26
27 }
28
29 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Country;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class CountryFunctions
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Country;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class CountryClientHandlers
11 {
12
13 public virtual void CodeValueInput(Sungero.Presentation.StringValueInputEventArgs e)
14 {
15 var result = Functions.Country.ValidateCountryCode(e.NewValue);
16 if (!string.IsNullOrEmpty(result))
17 e.AddError(_obj.Info.Properties.Code, result);
18 }
19
20 }
21 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="View" isnull="true" iskey="true">
9 <property name="AutoWidth">true</property>
10 <property name="ColumnChooserState" isnull="true" iskey="true">
11 <property name="Location">604,-21</property>
12 <property name="Size">220,250</property>
13 </property>
14 <property name="AllowGrouping">true</property>
15 <property name="AllowSorting">true</property>
16 <property name="LinesPerRowMode">OneLineMode</property>
17 <property name="IsRowCellMenuEnabled">true</property>
18 </property>
19 <property name="TotalSummary" iskey="true" value="0" />
20 <property name="GroupSummary" iskey="true" value="0" />
21 <property name="GroupCount">0</property>
22 <property name="SortInfo" iskey="true" value="2">
23 <property name="Item1" isnull="true" iskey="true">
24 <property name="FieldName">Status</property>
25 <property name="SortOrder">Ascending</property>
26 </property>
27 <property name="Item2" isnull="true" iskey="true">
28 <property name="FieldName">Name</property>
29 <property name="SortOrder">Ascending</property>
30 </property>
31 </property>
32 <property name="Columns" iskey="true" value="4">
33 <property name="Item1" isnull="true" iskey="true">
34 <property name="Visible">true</property>
35 <property name="VisibleIndex">0</property>
36 <property name="FieldName">T</property>
37 </property>
38 <property name="Item2" isnull="true" iskey="true">
39 <property name="ColumnFilterMode">Value</property>
40 <property name="AutoFilterCondition">Equals</property>
41 <property name="FieldName">Id</property>
42 <property name="VisibleIndex">1</property>
43 <property name="Name">Country_Id</property>
44 <property name="Visible">false</property>
45 <property name="Width">40</property>
46 <property name="ActualWidth">5*</property>
47 </property>
48 <property name="Item3" isnull="true" iskey="true">
49 <property name="ColumnFilterMode">DisplayText</property>
50 <property name="AutoFilterCondition">Contains</property>
51 <property name="FieldName">Name</property>
52 <property name="VisibleIndex">1</property>
53 <property name="Name">Country_Name</property>
54 <property name="Visible">true</property>
55 <property name="ActualWidth">60*</property>
56 </property>
57 <property name="Item4" isnull="true" iskey="true">
58 <property name="ColumnFilterMode">DisplayText</property>
59 <property name="AutoFilterCondition">Contains</property>
60 <property name="FieldName">Status</property>
61 <property name="VisibleIndex">2</property>
62 <property name="Name">Country_Status</property>
63 <property name="Visible">true</property>
64 <property name="ActualWidth">37*</property>
65 </property>
66 </property>
67 <property name="GroupSummarySortInfo" iskey="true" value="0" />
68 </property>
69 </XtraSerializer>
70 </Collection>
71 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="Columns" iskey="true" value="3">
9 <property name="Item1" isnull="true" iskey="true">
10 <property name="FieldName">T</property>
11 <property name="Visible">true</property>
12 <property name="VisibleIndex">0</property>
13 </property>
14 <property name="Item2" isnull="true" iskey="true">
15 <property name="FieldName">Id</property>
16 <property name="Visible">true</property>
17 <property name="Name">Country_Id</property>
18 <property name="VisibleIndex">1</property>
19 </property>
20 <property name="Item3" isnull="true" iskey="true">
21 <property name="FieldName">Name</property>
22 <property name="Visible">true</property>
23 <property name="Name">Country_Name</property>
24 <property name="VisibleIndex">2</property>
25 </property>
26 </property>
27 </property>
28 </XtraSerializer>
29 </Folder>
30 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>Action_ShowDuplicates_large_f8f2e6a489cf4d74ad1b01b1cf712e47</title><polygon points="26 26 8 26 8 2 22 2 26 6 26 26" fill="#fff"/><polygon points="20 30 2 30 2 6 16 6 20 10 20 30" fill="#fff"/><path d="M26,6H22V2M20,0V7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><path d="M20,10H16V6M14,4v7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><rect x="4" y="19" width="12" height="2" fill="#adb1b2"/><rect x="4" y="15" width="14" height="2" fill="#adb1b2"/><rect x="4" y="23" width="12" height="2" fill="#adb1b2"/><path d="M31.15,32a0.85,0.85,0,0,1-.6-0.25l-8.12-8.12a0.85,0.85,0,0,1,1.2-1.2l8.12,8.12A0.85,0.85,0,0,1,31.15,32Z" fill="#407fb9"/><circle cx="23" cy="23" r="5.5" fill="#fff"/><path d="M2,30V6H15l5,5v4.58a7.94,7.94,0,0,1,2-.52V10.5L15.5,4H1A1,1,0,0,0,0,5V31a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V30H2Z" fill="#9da2a5"/><path d="M21.5,0H7A1,1,0,0,0,6,1V3H8V2H21l1,1h0.19V3.19L26,7v8.8a8,8,0,0,1,2,1.33V6.5Z" fill="#9da2a5"/><path d="M23,18.5A4.5,4.5,0,1,1,18.5,23,4.51,4.51,0,0,1,23,18.5M23,17a6,6,0,1,0,6,6,6,6,0,0,0-6-6h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>Action_ShowDuplicates_small_4a3b1c9775044552800493c3ffe5b6eb</title><path d="M13,8.85V3L11,1H4V3H2V15h8V14l0.31-.52,0.19,0A3,3,0,0,0,13,8.85Z" fill="#fff"/><path d="M8,6h3V5L8.5,2.5,8,2H2A0.93,0.93,0,0,0,1,3V15a0.93,0.93,0,0,0,1,1h8a1,1,0,0,0,1-1H2S2,3,2,3H7V5A1,1,0,0,0,8,6ZM9.7,5H8V3.3Z" fill="#798288"/><path d="M13.5,2.5l-2-2L11,0H4A1,1,0,0,0,3,1h7V3a1,1,0,0,0,1,1h2V6a5,5,0,0,1,1,1V3ZM11,3V1.3L12.7,3H11Z" fill="#798288"/><path d="M15.5,16a0.5,0.5,0,0,1-.35-0.15l-2.5-2.5a0.5,0.5,0,0,1,.71-0.71l2.5,2.5A0.5,0.5,0,0,1,15.5,16Z" fill="#407fb9"/><path d="M10.5,8A2.5,2.5,0,1,1,8,10.5,2.5,2.5,0,0,1,10.5,8m0-1a3.5,3.5,0,0,0,0,7A3.54,3.54,0,0,0,14,10.5,3.5,3.5,0,0,0,10.5,7h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>Action_ShowDuplicates_large_4a3b1c9775044552800493c3ffe5b6eb</title><polygon points="26 26 8 26 8 2 22 2 26 6 26 26" fill="#fff"/><polygon points="20 30 2 30 2 6 16 6 20 10 20 30" fill="#fff"/><path d="M26,6H22V2M20,0V7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><path d="M20,10H16V6M14,4v7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><rect x="4" y="19" width="12" height="2" fill="#adb1b2"/><rect x="4" y="15" width="14" height="2" fill="#adb1b2"/><rect x="4" y="23" width="12" height="2" fill="#adb1b2"/><path d="M31.15,32a0.85,0.85,0,0,1-.6-0.25l-8.12-8.12a0.85,0.85,0,0,1,1.2-1.2l8.12,8.12A0.85,0.85,0,0,1,31.15,32Z" fill="#407fb9"/><circle cx="23" cy="23" r="5.5" fill="#fff"/><path d="M2,30V6H15l5,5v4.58a7.94,7.94,0,0,1,2-.52V10.5L15.5,4H1A1,1,0,0,0,0,5V31a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V30H2Z" fill="#9da2a5"/><path d="M21.5,0H7A1,1,0,0,0,6,1V3H8V2H21l1,1h0.19V3.19L26,7v8.8a8,8,0,0,1,2,1.33V6.5Z" fill="#9da2a5"/><path d="M23,18.5A4.5,4.5,0,1,1,18.5,23,4.51,4.51,0,0,1,23,18.5M23,17a6,6,0,1,0,6,6,6,6,0,0,0-6-6h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>Action_ShowDuplicates_small_4a3b1c9775044552800493c3ffe5b6eb</title><path d="M13,8.85V3L11,1H4V3H2V15h8V14l0.31-.52,0.19,0A3,3,0,0,0,13,8.85Z" fill="#fff"/><path d="M8,6h3V5L8.5,2.5,8,2H2A0.93,0.93,0,0,0,1,3V15a0.93,0.93,0,0,0,1,1h8a1,1,0,0,0,1-1H2S2,3,2,3H7V5A1,1,0,0,0,8,6ZM9.7,5H8V3.3Z" fill="#798288"/><path d="M13.5,2.5l-2-2L11,0H4A1,1,0,0,0,3,1h7V3a1,1,0,0,0,1,1h2V6a5,5,0,0,1,1,1V3ZM11,3V1.3L12.7,3H11Z" fill="#798288"/><path d="M15.5,16a0.5,0.5,0,0,1-.35-0.15l-2.5-2.5a0.5,0.5,0,0,1,.71-0.71l2.5,2.5A0.5,0.5,0,0,1,15.5,16Z" fill="#407fb9"/><path d="M10.5,8A2.5,2.5,0,1,1,8,10.5,2.5,2.5,0,0,1,10.5,8m0-1a3.5,3.5,0,0,0,0,7A3.54,3.54,0,0,0,14,10.5,3.5,3.5,0,0,0,10.5,7h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Currency;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class CurrencyActions
11 {
12 public virtual void ShowDuplicates(Sungero.Domain.Client.ExecuteActionArgs e)
13 {
14 var duplicates = Functions.Currency.Remote.GetDuplicates(_obj);
15 if (duplicates.Any())
16 duplicates.Show();
17 else
18 Dialogs.NotifyMessage(Sungero.Commons.Resources.DuplicateNotFound);
19 }
20
21 public virtual bool CanShowDuplicates(Sungero.Domain.Client.CanExecuteActionArgs e)
22 {
23 return true;
24 }
25
26 }
27
28 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Currency;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class CurrencyFunctions
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Currency;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class CurrencyClientHandlers
11 {
12
13 public override void StatusValueInput(Sungero.Presentation.EnumerationValueInputEventArgs e)
14 {
15 _obj.State.Properties.IsDefault.IsEnabled = e.NewValue != Status.Closed;
16 }
17
18 public virtual void NumericCodeValueInput(Sungero.Presentation.StringValueInputEventArgs e)
19 {
20 var result = Functions.Currency.ValidateNumericCode(e.NewValue);
21 if (!string.IsNullOrEmpty(result))
22 e.AddError(_obj.Info.Properties.NumericCode, result);
23 }
24
25 }
26 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="View" isnull="true" iskey="true">
9 <property name="ShowTotalSummary">false</property>
10 <property name="AutoWidth">false</property>
11 <property name="ShowGroupPanel">false</property>
12 <property name="ColumnChooserState" isnull="true" iskey="true">
13 <property name="Location">588,49.2</property>
14 <property name="Size">220,250</property>
15 </property>
16 <property name="AllowGrouping">true</property>
17 <property name="AllowSorting">true</property>
18 <property name="LinesPerRowMode">OneLineMode</property>
19 <property name="IsRowCellMenuEnabled">false</property>
20 </property>
21 <property name="TotalSummary" iskey="true" value="0" />
22 <property name="GroupSummary" iskey="true" value="0" />
23 <property name="GroupCount">0</property>
24 <property name="SortInfo" iskey="true" value="1">
25 <property name="Item1" isnull="true" iskey="true">
26 <property name="FieldName">Name</property>
27 <property name="SortOrder">Ascending</property>
28 </property>
29 </property>
30 <property name="Columns" iskey="true" value="5">
31 <property name="Item1" isnull="true" iskey="true">
32 <property name="Visible">true</property>
33 <property name="VisibleIndex">0</property>
34 <property name="FieldName">T</property>
35 </property>
36 <property name="Item2" isnull="true" iskey="true">
37 <property name="ColumnFilterMode">Value</property>
38 <property name="AutoFilterCondition">Equals</property>
39 <property name="FieldName">Id</property>
40 <property name="VisibleIndex">1</property>
41 <property name="Name">Currency_Id</property>
42 <property name="Visible">false</property>
43 <property name="ActualWidth">NaN</property>
44 </property>
45 <property name="Item3" isnull="true" iskey="true">
46 <property name="ColumnFilterMode">DisplayText</property>
47 <property name="AutoFilterCondition">Contains</property>
48 <property name="FieldName">Status</property>
49 <property name="VisibleIndex">3</property>
50 <property name="Name">Currency_Status</property>
51 <property name="Visible">false</property>
52 <property name="ActualWidth">NaN</property>
53 </property>
54 <property name="Item4" isnull="true" iskey="true">
55 <property name="ColumnFilterMode">DisplayText</property>
56 <property name="AutoFilterCondition">Contains</property>
57 <property name="FieldName">Name</property>
58 <property name="VisibleIndex">1</property>
59 <property name="Name">Currency_Name</property>
60 <property name="Visible">true</property>
61 <property name="ActualWidth">18*</property>
62 </property>
63 <property name="Item5" isnull="true" iskey="true">
64 <property name="ColumnFilterMode">DisplayText</property>
65 <property name="AutoFilterCondition">Contains</property>
66 <property name="FieldName">Code</property>
67 <property name="VisibleIndex">2</property>
68 <property name="Name">Currency_Code</property>
69 <property name="Visible">true</property>
70 <property name="ActualWidth">8*</property>
71 </property>
72 </property>
73 <property name="GroupSummarySortInfo" iskey="true" value="0" />
74 </property>
75 </XtraSerializer>
76 </Collection>
77 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="SortInfo" iskey="true" value="0" />
9 <property name="View" isnull="true" iskey="true">
10 <property name="ColumnChooserState" isnull="true" iskey="true">
11 <property name="Location">588,49.2</property>
12 <property name="Size">220,250</property>
13 </property>
14 <property name="ShowTotalSummary">false</property>
15 <property name="AutoWidth">false</property>
16 <property name="IsRowCellMenuEnabled">false</property>
17 <property name="AllowSorting">true</property>
18 <property name="ShowGroupPanel">false</property>
19 <property name="AllowGrouping">true</property>
20 <property name="LinesPerRowMode">OneLineMode</property>
21 </property>
22 <property name="Columns" iskey="true" value="4">
23 <property name="Item1" isnull="true" iskey="true">
24 <property name="Visible">true</property>
25 <property name="FieldName">T</property>
26 <property name="VisibleIndex">0</property>
27 </property>
28 <property name="Item2" isnull="true" iskey="true">
29 <property name="Visible">false</property>
30 <property name="ColumnFilterMode">Value</property>
31 <property name="AutoFilterCondition">Equals</property>
32 <property name="FieldName">Id</property>
33 <property name="Name">Currency_Id</property>
34 <property name="VisibleIndex">1</property>
35 <property name="ActualWidth">NaN</property>
36 </property>
37 <property name="Item3" isnull="true" iskey="true">
38 <property name="Visible">true</property>
39 <property name="ColumnFilterMode">DisplayText</property>
40 <property name="AutoFilterCondition">Contains</property>
41 <property name="FieldName">Name</property>
42 <property name="Name">Currency_Name</property>
43 <property name="VisibleIndex">1</property>
44 <property name="ActualWidth">NaN</property>
45 </property>
46 <property name="Item4" isnull="true" iskey="true">
47 <property name="Visible">true</property>
48 <property name="ColumnFilterMode">DisplayText</property>
49 <property name="AutoFilterCondition">Contains</property>
50 <property name="FieldName">Code</property>
51 <property name="Name">Currency_Code</property>
52 <property name="VisibleIndex">2</property>
53 <property name="ActualWidth">NaN</property>
54 </property>
55 </property>
56 <property name="GroupSummary" iskey="true" value="0" />
57 <property name="GroupCount">0</property>
58 <property name="TotalSummary" iskey="true" value="0" />
59 <property name="MRUFilters" iskey="true" value="0" />
60 <property name="FilterString" isnull="true" />
61 <property name="GroupSummarySortInfo" iskey="true" value="0" />
62 </property>
63 </XtraSerializer>
64 </Folder>
65 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>Action_ShowDuplicates_large_4a3b1c9775044552800493c3ffe5b6eb</title><polygon points="26 26 8 26 8 2 22 2 26 6 26 26" fill="#fff"/><polygon points="20 30 2 30 2 6 16 6 20 10 20 30" fill="#fff"/><path d="M26,6H22V2M20,0V7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><path d="M20,10H16V6M14,4v7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><rect x="4" y="19" width="12" height="2" fill="#adb1b2"/><rect x="4" y="15" width="14" height="2" fill="#adb1b2"/><rect x="4" y="23" width="12" height="2" fill="#adb1b2"/><path d="M31.15,32a0.85,0.85,0,0,1-.6-0.25l-8.12-8.12a0.85,0.85,0,0,1,1.2-1.2l8.12,8.12A0.85,0.85,0,0,1,31.15,32Z" fill="#407fb9"/><circle cx="23" cy="23" r="5.5" fill="#fff"/><path d="M2,30V6H15l5,5v4.58a7.94,7.94,0,0,1,2-.52V10.5L15.5,4H1A1,1,0,0,0,0,5V31a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V30H2Z" fill="#9da2a5"/><path d="M21.5,0H7A1,1,0,0,0,6,1V3H8V2H21l1,1h0.19V3.19L26,7v8.8a8,8,0,0,1,2,1.33V6.5Z" fill="#9da2a5"/><path d="M23,18.5A4.5,4.5,0,1,1,18.5,23,4.51,4.51,0,0,1,23,18.5M23,17a6,6,0,1,0,6,6,6,6,0,0,0-6-6h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>Action_ShowDuplicates_small_4a3b1c9775044552800493c3ffe5b6eb</title><path d="M13,8.85V3L11,1H4V3H2V15h8V14l0.31-.52,0.19,0A3,3,0,0,0,13,8.85Z" fill="#fff"/><path d="M8,6h3V5L8.5,2.5,8,2H2A0.93,0.93,0,0,0,1,3V15a0.93,0.93,0,0,0,1,1h8a1,1,0,0,0,1-1H2S2,3,2,3H7V5A1,1,0,0,0,8,6ZM9.7,5H8V3.3Z" fill="#798288"/><path d="M13.5,2.5l-2-2L11,0H4A1,1,0,0,0,3,1h7V3a1,1,0,0,0,1,1h2V6a5,5,0,0,1,1,1V3ZM11,3V1.3L12.7,3H11Z" fill="#798288"/><path d="M15.5,16a0.5,0.5,0,0,1-.35-0.15l-2.5-2.5a0.5,0.5,0,0,1,.71-0.71l2.5,2.5A0.5,0.5,0,0,1,15.5,16Z" fill="#407fb9"/><path d="M10.5,8A2.5,2.5,0,1,1,8,10.5,2.5,2.5,0,0,1,10.5,8m0-1a3.5,3.5,0,0,0,0,7A3.54,3.54,0,0,0,14,10.5,3.5,3.5,0,0,0,10.5,7h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>databookentry</title><path d="M3,0H13.5a0.5,0.5,0,0,1,.5.5v13a0.5,0.5,0,0,1-.5.5H3a0,0,0,0,1,0,0V0A0,0,0,0,1,3,0Z" fill="#6fa6d4"/><rect x="3" width="1" height="15" fill="#fff"/><path d="M2,1.5v0M3,0H2.5A1.5,1.5,0,0,0,1,1.5V15a1,1,0,0,0,1,1H13.75A0.25,0.25,0,0,0,14,15.75v-0.5A0.25,0.25,0,0,0,13.75,15H3V0H3Z" fill="#6fa6d4"/><rect x="6" y="3" width="6" height="2" fill="#fff"/><path d="M2.25,15H13.5V14H2.25a0.25,0.25,0,0,0-.25.25v0.5A0.25,0.25,0,0,0,2.25,15Z" fill="#fff"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>GroupIconLinks_large_4587e4ba98c4428eabee37d8eab138cd</title><path d="M8,0H28a1,1,0,0,1,1,1V27a1,1,0,0,1-1,1H8a0,0,0,0,1,0,0V0A0,0,0,0,1,8,0Z" fill="#6fa6d4"/><rect x="7" width="1" height="30" fill="#fff"/><path d="M5,30,7,0H6A2,2,0,0,0,4,2V30a2,2,0,0,0,2,2H28a0.94,0.94,0,0,0,1-1,0.91,0.91,0,0,0-1-1H7V0H7Z" fill="#6fa6d4"/><rect x="13" y="6" width="12" height="4" fill="#fff"/><path d="M7,28H28a0,0,0,0,1,0,0v2a0,0,0,0,1,0,0H7a1,1,0,0,1-1-1v0a1,1,0,0,1,1-1Z" fill="#fff"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>Action_ShowDuplicates_large_4a3b1c9775044552800493c3ffe5b6eb</title><polygon points="26 26 8 26 8 2 22 2 26 6 26 26" fill="#fff"/><polygon points="20 30 2 30 2 6 16 6 20 10 20 30" fill="#fff"/><path d="M26,6H22V2M20,0V7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><path d="M20,10H16V6M14,4v7a1,1,0,0,0,1,1h7Z" fill="#9da2a5"/><rect x="4" y="19" width="12" height="2" fill="#adb1b2"/><rect x="4" y="15" width="14" height="2" fill="#adb1b2"/><rect x="4" y="23" width="12" height="2" fill="#adb1b2"/><path d="M31.15,32a0.85,0.85,0,0,1-.6-0.25l-8.12-8.12a0.85,0.85,0,0,1,1.2-1.2l8.12,8.12A0.85,0.85,0,0,1,31.15,32Z" fill="#407fb9"/><circle cx="23" cy="23" r="5.5" fill="#fff"/><path d="M2,30V6H15l5,5v4.58a7.94,7.94,0,0,1,2-.52V10.5L15.5,4H1A1,1,0,0,0,0,5V31a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V30H2Z" fill="#9da2a5"/><path d="M21.5,0H7A1,1,0,0,0,6,1V3H8V2H21l1,1h0.19V3.19L26,7v8.8a8,8,0,0,1,2,1.33V6.5Z" fill="#9da2a5"/><path d="M23,18.5A4.5,4.5,0,1,1,18.5,23,4.51,4.51,0,0,1,23,18.5M23,17a6,6,0,1,0,6,6,6,6,0,0,0-6-6h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>Action_ShowDuplicates_small_4a3b1c9775044552800493c3ffe5b6eb</title><path d="M13,8.85V3L11,1H4V3H2V15h8V14l0.31-.52,0.19,0A3,3,0,0,0,13,8.85Z" fill="#fff"/><path d="M8,6h3V5L8.5,2.5,8,2H2A0.93,0.93,0,0,0,1,3V15a0.93,0.93,0,0,0,1,1h8a1,1,0,0,0,1-1H2S2,3,2,3H7V5A1,1,0,0,0,8,6ZM9.7,5H8V3.3Z" fill="#798288"/><path d="M13.5,2.5l-2-2L11,0H4A1,1,0,0,0,3,1h7V3a1,1,0,0,0,1,1h2V6a5,5,0,0,1,1,1V3ZM11,3V1.3L12.7,3H11Z" fill="#798288"/><path d="M15.5,16a0.5,0.5,0,0,1-.35-0.15l-2.5-2.5a0.5,0.5,0,0,1,.71-0.71l2.5,2.5A0.5,0.5,0,0,1,15.5,16Z" fill="#407fb9"/><path d="M10.5,8A2.5,2.5,0,1,1,8,10.5,2.5,2.5,0,0,1,10.5,8m0-1a3.5,3.5,0,0,0,0,7A3.54,3.54,0,0,0,14,10.5,3.5,3.5,0,0,0,10.5,7h0Z" fill="#407fb9"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.EntityRecognitionInfo;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class EntityRecognitionInfoActions
11 {
12 public override void DeleteEntity(Sungero.Domain.Client.ExecuteActionArgs e)
13 {
14 base.DeleteEntity(e);
15 }
16
17 public override bool CanDeleteEntity(Sungero.Domain.Client.CanExecuteActionArgs e)
18 {
19 return base.CanDeleteEntity(e);
20 }
21
22 }
23
24 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.EntityRecognitionInfo;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class EntityRecognitionInfoFunctions
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.EntityRecognitionInfo;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class EntityRecognitionInfoClientHandlers
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="Columns" iskey="true" value="3">
9 <property name="Item1" isnull="true" iskey="true">
10 <property name="FieldName">T</property>
11 <property name="Visible">true</property>
12 <property name="VisibleIndex">0</property>
13 </property>
14 <property name="Item2" isnull="true" iskey="true">
15 <property name="FieldName">Id</property>
16 <property name="Visible">true</property>
17 <property name="Name">EntityRecognitionInfo_Id</property>
18 <property name="VisibleIndex">1</property>
19 </property>
20 <property name="Item3" isnull="true" iskey="true">
21 <property name="FieldName">Name</property>
22 <property name="Visible">true</property>
23 <property name="Name">EntityRecognitionInfo_Name</property>
24 <property name="VisibleIndex">2</property>
25 </property>
26 </property>
27 </property>
28 </XtraSerializer>
29 </Collection>
30 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="Columns" iskey="true" value="3">
9 <property name="Item1" isnull="true" iskey="true">
10 <property name="FieldName">T</property>
11 <property name="Visible">true</property>
12 <property name="VisibleIndex">0</property>
13 </property>
14 <property name="Item2" isnull="true" iskey="true">
15 <property name="FieldName">Id</property>
16 <property name="Visible">true</property>
17 <property name="Name">EntityRecognitionInfo_Id</property>
18 <property name="VisibleIndex">1</property>
19 </property>
20 <property name="Item3" isnull="true" iskey="true">
21 <property name="FieldName">Name</property>
22 <property name="Visible">true</property>
23 <property name="Name">EntityRecognitionInfo_Name</property>
24 <property name="VisibleIndex">2</property>
25 </property>
26 </property>
27 </property>
28 </XtraSerializer>
29 </Folder>
30 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.ExternalEntityLink;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7 using Sungero.Domain.Client;
8 using Sungero.Domain.Shared;
9
10 namespace Sungero.Commons.Client
11 {
12 partial class ExternalEntityLinkActions
13 {
14 public virtual void OpenEntity(Sungero.Domain.Client.ExecuteActionArgs e)
15 {
16 Functions.ExternalEntityLink.Remote.GetEntity(_obj).Show();
17 }
18
19 public virtual bool CanOpenEntity(Sungero.Domain.Client.CanExecuteActionArgs e)
20 {
21 return true;
22 }
23
24 }
25
26 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.ExternalEntityLink;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class ExternalEntityLinkFunctions
11 {
12 }
13 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.ExternalEntityLink;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class ExternalEntityLinkClientHandlers
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="GroupSummary" iskey="true" value="0" />
9 <property name="View" isnull="true" iskey="true">
10 <property name="ColumnChooserState" isnull="true" iskey="true">
11 <property name="Location">748,-194</property>
12 <property name="Size">220,250</property>
13 </property>
14 <property name="AutoWidth">false</property>
15 <property name="AllowGrouping">true</property>
16 <property name="AllowSorting">true</property>
17 <property name="ShowGroupPanel">true</property>
18 <property name="LinesPerRowMode">OneLineMode</property>
19 <property name="IsRowCellMenuEnabled">false</property>
20 </property>
21 <property name="TotalSummary" iskey="true" value="0" />
22 <property name="GroupCount">0</property>
23 <property name="Columns" iskey="true" value="9">
24 <property name="Item1" isnull="true" iskey="true">
25 <property name="FieldName">T</property>
26 <property name="Visible">true</property>
27 <property name="ExtendedVisibleIndex">0</property>
28 <property name="VisibleIndex">0</property>
29 </property>
30 <property name="Item2" isnull="true" iskey="true">
31 <property name="FieldName">Id</property>
32 <property name="Visible">false</property>
33 <property name="Name">ExternalEntityLink_Id</property>
34 <property name="ExtendedVisibleIndex">1</property>
35 <property name="ActualWidth">NaN</property>
36 </property>
37 <property name="Item3" isnull="true" iskey="true">
38 <property name="FieldName">EntityType</property>
39 <property name="Visible">true</property>
40 <property name="Name">ExternalEntityLink_EntityType</property>
41 <property name="ExtendedVisibleIndex">5</property>
42 <property name="VisibleIndex">4</property>
43 <property name="ActualWidth">20*</property>
44 </property>
45 <property name="Item4" isnull="true" iskey="true">
46 <property name="FieldName">EntityId</property>
47 <property name="Visible">true</property>
48 <property name="Name">ExternalEntityLink_EntityId</property>
49 <property name="ExtendedVisibleIndex">6</property>
50 <property name="VisibleIndex">5</property>
51 <property name="ActualWidth">9*</property>
52 </property>
53 <property name="Item5" isnull="true" iskey="true">
54 <property name="FieldName">ExtEntityType</property>
55 <property name="Visible">true</property>
56 <property name="Name">ExternalEntityLink_ExtEntityType</property>
57 <property name="ExtendedVisibleIndex">3</property>
58 <property name="VisibleIndex">2</property>
59 <property name="ActualWidth">14*</property>
60 </property>
61 <property name="Item6" isnull="true" iskey="true">
62 <property name="FieldName">ExtEntityId</property>
63 <property name="Visible">true</property>
64 <property name="Name">ExternalEntityLink_ExtEntityId</property>
65 <property name="ExtendedVisibleIndex">4</property>
66 <property name="VisibleIndex">3</property>
67 <property name="ActualWidth">20*</property>
68 </property>
69 <property name="Item7" isnull="true" iskey="true">
70 <property name="FieldName">ExtSystemId</property>
71 <property name="Visible">true</property>
72 <property name="Name">ExternalEntityLink_ExtSystemId</property>
73 <property name="ExtendedVisibleIndex">2</property>
74 <property name="VisibleIndex">1</property>
75 <property name="ActualWidth">14*</property>
76 </property>
77 <property name="Item8" isnull="true" iskey="true">
78 <property name="FieldName">SyncDate</property>
79 <property name="Visible">true</property>
80 <property name="Name">ExternalEntityLink_SyncDate</property>
81 <property name="ExtendedVisibleIndex">7</property>
82 <property name="VisibleIndex">6</property>
83 <property name="ActualWidth">13*</property>
84 </property>
85 <property name="Item9" isnull="true" iskey="true">
86 <property name="FieldName">IsDeleted</property>
87 <property name="Visible">true</property>
88 <property name="Name">ExternalEntityLink_IsDeleted</property>
89 <property name="ExtendedVisibleIndex">8</property>
90 <property name="VisibleIndex">7</property>
91 <property name="ActualWidth">7*</property>
92 </property>
93 </property>
94 <property name="SortInfo" iskey="true" value="0" />
95 <property name="GroupSummarySortInfo" iskey="true" value="0" />
96 </property>
97 </XtraSerializer>
98 </Collection>
99 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="Columns" iskey="true" value="3">
9 <property name="Item1" isnull="true" iskey="true">
10 <property name="FieldName">T</property>
11 <property name="Visible">true</property>
12 <property name="VisibleIndex">0</property>
13 </property>
14 <property name="Item2" isnull="true" iskey="true">
15 <property name="FieldName">Id</property>
16 <property name="Visible">true</property>
17 <property name="Name">ExternalEntityLinks_Id</property>
18 <property name="VisibleIndex">1</property>
19 </property>
20 <property name="Item3" isnull="true" iskey="true">
21 <property name="FieldName">Name</property>
22 <property name="Visible">true</property>
23 <property name="Name">ExternalEntityLinks_Name</property>
24 <property name="VisibleIndex">2</property>
25 </property>
26 </property>
27 </property>
28 </XtraSerializer>
29 </Folder>
30 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>GroupIconLinks_large_4587e4ba98c4428eabee37d8eab138cd</title><path d="M8,0H28a1,1,0,0,1,1,1V27a1,1,0,0,1-1,1H8a0,0,0,0,1,0,0V0A0,0,0,0,1,8,0Z" fill="#6fa6d4"/><rect x="7" width="1" height="30" fill="#fff"/><path d="M5,30,7,0H6A2,2,0,0,0,4,2V30a2,2,0,0,0,2,2H28a0.94,0.94,0,0,0,1-1,0.91,0.91,0,0,0-1-1H7V0H7Z" fill="#6fa6d4"/><rect x="13" y="6" width="12" height="4" fill="#fff"/><path d="M7,28H28a0,0,0,0,1,0,0v2a0,0,0,0,1,0,0H7a1,1,0,0,1-1-1v0a1,1,0,0,1,1-1Z" fill="#fff"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Client
8 {
9 public class ModuleFunctions
10 {
11 /// <summary>
12 /// Создать населенный пункт.
13 /// </summary>
14 public virtual void CreateNewCity()
15 {
16 Functions.Module.Remote.CreateNewCity().Show();
17 }
18 }
19 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Client
8 {
9
10 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Client
8 {
9
10 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="GroupSummary" iskey="true" value="0" />
9 <property name="View" isnull="true" iskey="true">
10 <property name="ColumnChooserState" isnull="true" iskey="true">
11 <property name="Location">604,-21</property>
12 <property name="Size">220,250</property>
13 </property>
14 <property name="AutoWidth">true</property>
15 <property name="AllowGrouping">true</property>
16 <property name="AllowSorting">true</property>
17 <property name="ShowGroupPanel">false</property>
18 <property name="LinesPerRowMode">OneLineMode</property>
19 <property name="IsRowCellMenuEnabled">false</property>
20 </property>
21 <property name="TotalSummary" iskey="true" value="0" />
22 <property name="GroupCount">0</property>
23 <property name="Columns" iskey="true" value="6">
24 <property name="Item1" isnull="true" iskey="true">
25 <property name="MinWidth">32</property>
26 <property name="FieldName">T</property>
27 <property name="FixedWidth">true</property>
28 <property name="Visible">true</property>
29 <property name="VisibleIndex">0</property>
30 <property name="Width">32</property>
31 <property name="ActualWidth">4*</property>
32 </property>
33 <property name="Item2" isnull="true" iskey="true">
34 <property name="FieldName">Id</property>
35 <property name="AutoFilterCondition">Equals</property>
36 <property name="Visible">false</property>
37 <property name="Name">Region_Id</property>
38 <property name="VisibleIndex">1</property>
39 <property name="Width">40</property>
40 <property name="ActualWidth">5*</property>
41 </property>
42 <property name="Item3" isnull="true" iskey="true">
43 <property name="FieldName">Status</property>
44 <property name="AutoFilterCondition">Contains</property>
45 <property name="Visible">true</property>
46 <property name="Name">Region_Status</property>
47 <property name="VisibleIndex">4</property>
48 <property name="ActualWidth">18*</property>
49 </property>
50 <property name="Item4" isnull="true" iskey="true">
51 <property name="FieldName">Name</property>
52 <property name="AutoFilterCondition">Contains</property>
53 <property name="Visible">true</property>
54 <property name="Name">Region_Name</property>
55 <property name="VisibleIndex">2</property>
56 <property name="ActualWidth">36*</property>
57 </property>
58 <property name="Item5" isnull="true" iskey="true">
59 <property name="FieldName">Country.DisplayValue</property>
60 <property name="AutoFilterCondition">Contains</property>
61 <property name="Visible">true</property>
62 <property name="Name">Region_Country</property>
63 <property name="VisibleIndex">3</property>
64 <property name="ActualWidth">35*</property>
65 </property>
66 <property name="Item6" isnull="true" iskey="true">
67 <property name="FieldName">Code</property>
68 <property name="Visible">true</property>
69 <property name="Name">Region_Code</property>
70 <property name="VisibleIndex">1</property>
71 <property name="ActualWidth">7*</property>
72 </property>
73 </property>
74 <property name="SortInfo" iskey="true" value="3">
75 <property name="Item1" isnull="true" iskey="true">
76 <property name="FieldName">Status</property>
77 <property name="SortOrder">Ascending</property>
78 </property>
79 <property name="Item2" isnull="true" iskey="true">
80 <property name="FieldName">Country.DisplayValue</property>
81 <property name="SortOrder">Ascending</property>
82 </property>
83 <property name="Item3" isnull="true" iskey="true">
84 <property name="FieldName">Name</property>
85 <property name="SortOrder">Ascending</property>
86 </property>
87 </property>
88 <property name="GroupSummarySortInfo" iskey="true" value="0" />
89 </property>
90 </XtraSerializer>
91 </Collection>
92 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="Columns" iskey="true" value="3">
9 <property name="Item1" isnull="true" iskey="true">
10 <property name="FieldName">T</property>
11 <property name="Visible">true</property>
12 <property name="VisibleIndex">0</property>
13 </property>
14 <property name="Item2" isnull="true" iskey="true">
15 <property name="FieldName">Id</property>
16 <property name="Visible">true</property>
17 <property name="Name">Region_Id</property>
18 <property name="VisibleIndex">1</property>
19 </property>
20 <property name="Item3" isnull="true" iskey="true">
21 <property name="FieldName">Name</property>
22 <property name="Visible">true</property>
23 <property name="Name">Region_Name</property>
24 <property name="VisibleIndex">2</property>
25 </property>
26 </property>
27 </property>
28 </XtraSerializer>
29 </Folder>
30 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><title>region_small</title><rect x="1" y="1" width="14" height="14" fill="#fff"/><rect x="2" y="2" width="12" height="12" fill="#f0dec8"/><path d="M14,10.25a15.52,15.52,0,0,0-3.85-4.4C7.42,4,7.25,2,7.25,2H14v8.25Z" fill="#6fa6d4"/><path d="M11.75,14H2V2H5S5,4.5,7.86,7.46A18.32,18.32,0,0,1,11.75,14Z" fill="#7dab3a"/><path d="M15,1V15H1V1H15m0-1H1A1,1,0,0,0,0,1V15a1,1,0,0,0,1,1H15a1,1,0,0,0,1-1V1a1,1,0,0,0-1-1h0Z" fill="#798288"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><title>region_large</title><path d="M29,3V29H3V3H29m1-2H2A1,1,0,0,0,1,2V30a1,1,0,0,0,1,1H30a1,1,0,0,0,1-1V2a1,1,0,0,0-1-1h0Z" fill="#9da2a5"/><rect x="3" y="3" width="26" height="26" fill="#fff"/><rect x="4" y="4" width="24" height="24" fill="#f0dec8"/><path d="M28,20.5s-3.3-5.77-7.7-8.8C14.83,7.94,14.5,4,14.5,4H28V20.5Z" fill="#6fa6d4"/><path d="M23.5,28H4V4h6s0,5,5.73,10.91A36.64,36.64,0,0,1,23.5,28Z" fill="#7dab3a"/><path d="M14.13,19.78L14,19.69l-0.14.12A16.84,16.84,0,0,1,10.6,21.9C8.35,23.13,5.82,24.53,4,27.53V28H4.3c1.76-3,4.3-4.44,6.55-5.66a18.24,18.24,0,0,0,3.19-2c2.62,1.54,5.68,3.81,6.71,7.69H21l0.24-.06C20.16,23.76,16.87,21.39,14.13,19.78Z" fill="#627c62" opacity="0.9"/><path d="M12.09,16.69a0.5,0.5,0,0,1-.42-0.24c-0.31-.5-0.64-1-1-1.53L9.86,13.66a0.5,0.5,0,0,1,.84-0.54l0.81,1.25c0.34,0.53.68,1,1,1.54A0.5,0.5,0,0,1,12.09,16.69ZM8.86,11.52a0.5,0.5,0,0,1-.44-0.26,31.76,31.76,0,0,1-1.49-3,0.5,0.5,0,1,1,.92-0.39A31.19,31.19,0,0,0,9.3,10.78,0.5,0.5,0,0,1,8.86,11.52Z" fill="#d65633"/><path d="M14,20.5a0.5,0.5,0,0,1-.47-0.34A12.1,12.1,0,0,0,13,18.83a0.5,0.5,0,0,1,.9-0.43,12.87,12.87,0,0,1,.58,1.44,0.5,0.5,0,0,1-.32.63Z" fill="#d65633"/><path d="M6.52,4h-1a0.48,0.48,0,0,0,0,.13q0.2,0.76.43,1.46a0.5,0.5,0,0,0,.48.35l0.15,0A0.5,0.5,0,0,0,6.9,5.29C6.76,4.87,6.64,4.44,6.52,4Z" fill="#d65633"/></svg>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Region;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10
11 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Region;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class RegionFunctions
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Region;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class RegionClientHandlers
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="GroupSummary" iskey="true" value="0" />
9 <property name="View" isnull="true" iskey="true">
10 <property name="AllowGrouping">true</property>
11 <property name="ColumnChooserState" isnull="true" iskey="true">
12 <property name="Location">808,-194</property>
13 <property name="Size">220,250</property>
14 </property>
15 <property name="AllowSorting">true</property>
16 <property name="IsRowCellMenuEnabled">false</property>
17 <property name="LinesPerRowMode">OneLineMode</property>
18 </property>
19 <property name="GroupCount">0</property>
20 <property name="TotalSummary" iskey="true" value="0" />
21 <property name="Columns" iskey="true" value="4">
22 <property name="Item1" isnull="true" iskey="true">
23 <property name="MinWidth">32</property>
24 <property name="FieldName">T</property>
25 <property name="FixedWidth">true</property>
26 <property name="Visible">true</property>
27 <property name="VisibleIndex">0</property>
28 <property name="Width">32</property>
29 <property name="ActualWidth">3*</property>
30 </property>
31 <property name="Item2" isnull="true" iskey="true">
32 <property name="FieldName">Id</property>
33 <property name="Visible">false</property>
34 <property name="Name">VATRate_Id</property>
35 <property name="ExtendedVisibleIndex">1</property>
36 <property name="VisibleIndex">1</property>
37 <property name="ActualWidth">6*</property>
38 </property>
39 <property name="Item3" isnull="true" iskey="true">
40 <property name="FieldName">Name</property>
41 <property name="Visible">true</property>
42 <property name="Name">VATRate_Name</property>
43 <property name="ExtendedVisibleIndex">2</property>
44 <property name="VisibleIndex">1</property>
45 <property name="ActualWidth">15*</property>
46 </property>
47 <property name="Item4" isnull="true" iskey="true">
48 <property name="FieldName">Rate</property>
49 <property name="Visible">true</property>
50 <property name="Name">VATRate_Rate</property>
51 <property name="ExtendedVisibleIndex">3</property>
52 <property name="VisibleIndex">2</property>
53 <property name="ActualWidth">11*</property>
54 </property>
55 </property>
56 <property name="SortInfo" iskey="true" value="1">
57 <property name="Item1" isnull="true" iskey="true">
58 <property name="FieldName">Name</property>
59 <property name="SortOrder">Descending</property>
60 </property>
61 </property>
62 <property name="GroupSummarySortInfo" iskey="true" value="0" />
63 </property>
64 </XtraSerializer>
65 </Collection>
66 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
2 <settings>
3 <ViewName>Default</ViewName>
4 <Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
5 <XtraSerializer version="1.0" application="GridControl">
6 <property name="#LayoutVersion" isnull="true" />
7 <property name="$GridControl" iskey="true" value="GridControl">
8 <property name="GroupSummary" iskey="true" value="0" />
9 <property name="View" isnull="true" iskey="true">
10 <property name="AllowGrouping">true</property>
11 <property name="ColumnChooserState" isnull="true" iskey="true">
12 <property name="Location">990,-194</property>
13 <property name="Size">220,250</property>
14 </property>
15 <property name="AllowSorting">true</property>
16 <property name="IsRowCellMenuEnabled">false</property>
17 <property name="LinesPerRowMode">OneLineMode</property>
18 </property>
19 <property name="GroupCount">0</property>
20 <property name="TotalSummary" iskey="true" value="0" />
21 <property name="Columns" iskey="true" value="4">
22 <property name="Item1" isnull="true" iskey="true">
23 <property name="MinWidth">32</property>
24 <property name="FieldName">T</property>
25 <property name="FixedWidth">true</property>
26 <property name="Visible">true</property>
27 <property name="VisibleIndex">0</property>
28 <property name="Width">32</property>
29 <property name="ActualWidth">3*</property>
30 </property>
31 <property name="Item2" isnull="true" iskey="true">
32 <property name="FieldName">Id</property>
33 <property name="Visible">false</property>
34 <property name="Name">VATRate_Id</property>
35 <property name="ExtendedVisibleIndex">1</property>
36 <property name="VisibleIndex">1</property>
37 <property name="ActualWidth">NaN</property>
38 </property>
39 <property name="Item3" isnull="true" iskey="true">
40 <property name="FieldName">Name</property>
41 <property name="Visible">true</property>
42 <property name="Name">VATRate_Name</property>
43 <property name="ExtendedVisibleIndex">2</property>
44 <property name="VisibleIndex">1</property>
45 <property name="ActualWidth">15*</property>
46 </property>
47 <property name="Item4" isnull="true" iskey="true">
48 <property name="FieldName">Rate</property>
49 <property name="Visible">true</property>
50 <property name="Name">VATRate_Rate</property>
51 <property name="ExtendedVisibleIndex">3</property>
52 <property name="VisibleIndex">2</property>
53 <property name="ActualWidth">8*</property>
54 </property>
55 </property>
56 <property name="SortInfo" iskey="true" value="1">
57 <property name="Item1" isnull="true" iskey="true">
58 <property name="FieldName">Name</property>
59 <property name="SortOrder">Descending</property>
60 </property>
61 </property>
62 <property name="GroupSummarySortInfo" iskey="true" value="0" />
63 </property>
64 </XtraSerializer>
65 </Folder>
66 </settings>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.VATRate;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class VATRateActions
11 {
12 public override void DeleteEntity(Sungero.Domain.Client.ExecuteActionArgs e)
13 {
14 base.DeleteEntity(e);
15 }
16
17 public override bool CanDeleteEntity(Sungero.Domain.Client.CanExecuteActionArgs e)
18 {
19 return string.IsNullOrWhiteSpace(_obj.Sid);
20 }
21
22 }
23
24 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.VATRate;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Client
9 {
10 partial class VATRateFunctions
11 {
12
13 }
14 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.VATRate;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class VATRateClientHandlers
11 {
12
13 public override void Refresh(Sungero.Presentation.FormRefreshEventArgs e)
14 {
15 if (!string.IsNullOrWhiteSpace(_obj.Sid))
16 {
17 _obj.State.Properties.Name.IsEnabled = false;
18 _obj.State.Properties.Rate.IsEnabled = false;
19 }
20 }
21
22 public virtual void RateValueInput(Sungero.Presentation.IntegerValueInputEventArgs e)
23 {
24 if (e.NewValue < 0)
25 e.AddError(VATRates.Resources.RateMustBePositive);
26 }
27
28 }
29 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.City;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10
11 partial class CityRegionPropertyFilteringServerHandler<T>
12 {
13 public virtual IQueryable<T> RegionFiltering(IQueryable<T> query, Sungero.Domain.PropertyFilteringEventArgs e)
14 {
15 // Отфильтровать регионы по странам.
16 if (_obj.Country != null)
17 query = query.Where(region => Equals(region.Country, _obj.Country));
18
19 return query;
20 }
21 }
22 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" ?>
2 <queries>
3 </queries>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.City;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Server
9 {
10 partial class CityFunctions
11 {
12 /// <summary>
13 /// Получить населенный пункт из адреса.
14 /// </summary>
15 /// <param name="address">Адрес.</param>
16 /// <returns>Населенный пункт, указанный в адресе.</returns>
17 [Public]
18 public static ICity GetCityFromAddress(string address)
19 {
20 if (string.IsNullOrWhiteSpace(address))
21 return null;
22
23 var pattern = string.Format(@"(?i:{0}\s(?<cityName>[а-я][а-я-\s\.]+))", Constants.City.AddressTypesMask);
24 var match = System.Text.RegularExpressions.Regex.Match(address, pattern);
25
26 var cityName = match.Groups["cityName"].Value;
27 var city = string.Format("{0} {1}", Constants.City.CityMask, cityName);
28 var locality = string.Format("{0} {1}", Constants.City.LocalityMask, cityName);
29
30 return !match.Success
31 ? null
32 : Cities.GetAll().FirstOrDefault(c =>
33 c.Name.ToLower() == city.ToLower() || c.Name.ToLower() == cityName ||
34 c.Name.ToLower() == locality.ToLower());
35 }
36
37 }
38 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Country;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class CountryServerHandlers
11 {
12
13 public override void BeforeSave(Sungero.Domain.BeforeSaveEventArgs e)
14 {
15 // Проверить валидность кода.
16 var result = Functions.Country.ValidateCountryCode(_obj.Code);
17 if (!string.IsNullOrEmpty(result))
18 e.AddError(Countries.Resources.InvalidCountryCode);
19
20 if (Functions.Country.HaveDuplicates(_obj))
21 e.AddWarning(Sungero.Commons.Resources.DuplicateDetected, _obj.Info.Actions.ShowDuplicates);
22 }
23
24 }
25 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" ?>
2 <queries>
3 </queries>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Country;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Server
9 {
10 partial class CountryFunctions
11 {
12 /// <summary>
13 /// Получить дубли страны.
14 /// </summary>
15 /// <returns>Страны, дублирующие текущую.</returns>
16 [Remote(IsPure = true)]
17 public IQueryable<ICountry> GetDuplicates()
18 {
19 return Countries.GetAll()
20 .Where(c => c.Status != Sungero.CoreEntities.DatabookEntry.Status.Closed)
21 .Where(c => Equals(c.Code, _obj.Code))
22 .Where(c => !Equals(c, _obj));
23 }
24 }
25 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Currency;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class CurrencyServerHandlers
11 {
12 public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e)
13 {
14 if (!Functions.Module.IsAllExternalEntityLinksDeleted(_obj))
15 throw AppliedCodeException.Create(Commons.Resources.HasLinkedExternalEntities);
16 }
17
18 public override void Created(Sungero.Domain.CreatedEventArgs e)
19 {
20 if (!_obj.State.IsCopied)
21 {
22 _obj.IsDefault = false;
23 }
24 }
25
26 public override void BeforeSave(Sungero.Domain.BeforeSaveEventArgs e)
27 {
28 var result = Functions.Currency.ValidateNumericCode(_obj.NumericCode);
29 if (!string.IsNullOrEmpty(result))
30 e.AddError(result);
31
32 if (Functions.Currency.HaveDuplicates(_obj))
33 e.AddError(Sungero.Commons.Resources.DuplicateDetected, _obj.Info.Actions.ShowDuplicates);
34
35 // Нельзя закрывать валюту по умолчанию.
36 if (_obj.Status == Status.Closed && _obj.IsDefault == true)
37 e.AddError(Currencies.Resources.ClosedCurrencyCannotBeDefault);
38
39 // Если установить для текущей валюты флаг валюты по умолчанию, то с другой валюты этот флаг снимается.
40 if (_obj.IsDefault == true)
41 {
42 var defaultCurrency = Functions.Currency.GetDefaultCurrency();
43 if (defaultCurrency != null && defaultCurrency != _obj)
44 {
45 var lockInfo = Locks.GetLockInfo(defaultCurrency);
46 if (lockInfo != null && lockInfo.IsLocked)
47 {
48 var error = Commons.Resources.LinkedEntityLockedFormat(
49 defaultCurrency.Name,
50 defaultCurrency.Id,
51 lockInfo.OwnerName);
52 e.AddError(error);
53 }
54
55 defaultCurrency.IsDefault = false;
56 }
57 }
58 }
59 }
60 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" ?>
2 <queries>
3 </queries>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.Currency;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons.Server
9 {
10 partial class CurrencyFunctions
11 {
12 /// <summary>
13 /// Получить валюту по умолчанию.
14 /// </summary>
15 /// <returns>Валюта, используемая по умолчанию.</returns>
16 [Remote(IsPure = true), Public]
17 public static ICurrency GetDefaultCurrency()
18 {
19 return Currencies.GetAll().FirstOrDefault(r => r.IsDefault.Value == true);
20 }
21
22 /// <summary>
23 /// Получить дубли валюты.
24 /// </summary>
25 /// <returns>Валюты, дублирующие текущую.</returns>
26 [Remote(IsPure = true)]
27 public IQueryable<ICurrency> GetDuplicates()
28 {
29 return Currencies.GetAll()
30 .Where(c => c.Status != Sungero.Commons.Currency.Status.Closed)
31 .Where(c => Equals(c.NumericCode, _obj.NumericCode))
32 .Where(c => !Equals(c, _obj));
33 }
34 }
35 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.EntityRecognitionInfo;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" ?>
2 <queries>
3 </queries>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.EntityRecognitionInfo;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7 using Sungero.Domain.Shared;
8 using Sungero.Metadata;
9
10 namespace Sungero.Commons.Server
11 {
12 partial class EntityRecognitionInfoFunctions
13 {
14 /// <summary>
15 /// Получить результат распознавания сущности.
16 /// </summary>
17 /// <param name="entity">Сущность.</param>
18 /// <returns>Результат распознавания.</returns>
19 [Public, Remote(IsPure = true)]
20 public static IEntityRecognitionInfo GetEntityRecognitionInfo(Sungero.Domain.Shared.IEntity entity)
21 {
22 var typeGuid = entity.GetEntityMetadata()
23 .GetOriginal()
24 .NameGuid.ToString();
25 return EntityRecognitionInfos.GetAll(x => x.EntityId == entity.Id && x.EntityType == typeGuid)
26 .OrderByDescending(x => x.Id).FirstOrDefault();
27 }
28
29 /// <summary>
30 /// Клонировать заданную сущность.
31 /// </summary>
32 /// <param name="targetEntity">Сущность.</param>
33 [Public, Remote]
34 public virtual void Clone(Sungero.Domain.Shared.IEntity targetEntity)
35 {
36 var typeGuid = targetEntity.GetEntityMetadata()
37 .GetOriginal()
38 .NameGuid.ToString();
39 if (EntityRecognitionInfos.GetAll().Any(x => x.EntityId == targetEntity.Id && x.EntityType == typeGuid))
40 return;
41
42 var clone = EntityRecognitionInfos.Copy(_obj);
43 clone.EntityType = typeGuid;
44 clone.Save();
45 }
46
47 /// <summary>
48 /// Получить вероятность, с которой распознано свойство сущности.
49 /// </summary>
50 /// <param name="propertyName">Наименование свойства.</param>
51 /// <returns>Вероятность, с которой распознано свойство сущности.
52 /// null, если для свойства нет результатов распознавания.</returns>
53 [Public]
54 public virtual double? GetProbabilityByPropertyName(string propertyName)
55 {
56 if (string.IsNullOrEmpty(propertyName))
57 return null;
58
59 var factsByPropertyName = _obj.Facts.Where(x => x.PropertyName == propertyName);
60
61 if (!factsByPropertyName.Any())
62 return null;
63
64 return factsByPropertyName.First().Probability;
65 }
66
67 /// <summary>
68 /// Проложить связь между фактом и свойством документа.
69 /// </summary>
70 /// <param name="fact">Факт, который будет связан со свойством документа.</param>
71 /// <param name="fieldName">Поле, которое будет связано со свойством документа. Если не указано, то будут связаны все поля факта.</param>
72 /// <param name="propertyName">Имя свойства документа.</param>
73 /// <param name="propertyValue">Значение свойства.</param>
74 [Public]
75 public virtual void LinkFactAndProperty(Structures.Module.IArioFact fact,
76 string fieldName,
77 string propertyName,
78 object propertyValue)
79 {
80 this.LinkFactAndProperty(fact, fieldName, propertyName, propertyValue, null, null);
81 }
82
83 /// <summary>
84 /// Проложить связь между фактом и свойством документа.
85 /// </summary>
86 /// <param name="fact">Факт, который будет связан со свойством документа.</param>
87 /// <param name="fieldName">Поле, которое будет связано со свойством документа. Если не указано, то будут связаны все поля факта.</param>
88 /// <param name="propertyName">Имя свойства документа.</param>
89 /// <param name="propertyValue">Значение свойства.</param>
90 /// <param name="probability">Вероятность.</param>
91 [Public]
92 public virtual void LinkFactAndProperty(Structures.Module.IArioFact fact,
93 string fieldName,
94 string propertyName,
95 object propertyValue,
96 double? probability)
97 {
98 this.LinkFactAndProperty(fact, fieldName, propertyName, propertyValue, probability, null);
99 }
100
101 /// <summary>
102 /// Проложить связь между фактом и свойством документа.
103 /// </summary>
104 /// <param name="fact">Факт, который будет связан со свойством документа.</param>
105 /// <param name="fieldName">Поле, которое будет связано со свойством документа. Если не указано, то будут связаны все поля факта.</param>
106 /// <param name="propertyName">Имя свойства документа.</param>
107 /// <param name="propertyValue">Значение свойства.</param>
108 /// <param name="probability">Вероятность.</param>
109 /// <param name="collectionRecordId">ИД записи свойства-коллекции.</param>
110 [Public]
111 public virtual void LinkFactAndProperty(Structures.Module.IArioFact fact,
112 string fieldName,
113 string propertyName,
114 object propertyValue,
115 double? probability = null,
116 int? collectionRecordId = null)
117 {
118 var fieldNames = new List<string>() { fieldName };
119 if (fieldName == null)
120 fieldNames = null;
121 this.LinkFactFieldsAndProperty(fact, fieldNames, propertyName, propertyValue, probability, collectionRecordId);
122 }
123
124 /// <summary>
125 /// Проложить связь между полями факта и свойством документа.
126 /// </summary>
127 /// <param name="fact">Факт, который будет связан со свойством документа.</param>
128 /// <param name="fieldNames">Поля, которые будут связаны со свойством документа. Если не указано, то будут связаны все поля факта.</param>
129 /// <param name="propertyName">Имя свойства документа.</param>
130 /// <param name="propertyValue">Значение свойства.</param>
131 /// <param name="probability">Вероятность.</param>
132 /// <param name="collectionRecordId">ИД записи свойства-коллекции.</param>
133 [Public]
134 public virtual void LinkFactFieldsAndProperty(Structures.Module.IArioFact fact,
135 List<string> fieldNames,
136 string propertyName,
137 object propertyValue,
138 double? probability = null,
139 int? collectionRecordId = null)
140 {
141 var propertyStringValue = PublicFunctions.Module.GetValueAsString(propertyValue);
142 if (string.IsNullOrWhiteSpace(propertyStringValue))
143 return;
144
145 var hasFieldNames = fieldNames != null;
146 if (hasFieldNames && !fieldNames.Any())
147 return;
148
149 // Если значение определилось не из фактов,
150 // для подсветки заносим это свойство и результату не доверяем.
151 if (fact == null)
152 {
153 var calculatedFact = _obj.Facts.AddNew();
154 calculatedFact.PropertyName = propertyName;
155 calculatedFact.PropertyValue = propertyStringValue;
156 calculatedFact.Probability = probability;
157 }
158 else
159 {
160 var propertyRelatedFields = _obj.Facts.Where(f => f.FactId == fact.Id)
161 .Where(f => !hasFieldNames || fieldNames.Contains(f.FieldName));
162
163 foreach (var field in propertyRelatedFields)
164 {
165 if (probability == null)
166 probability = PublicFunctions.Module.GetFieldProbability(fact, field.FieldName);
167
168 var factLabel = PublicFunctions.Module.GetFactLabel(fact, propertyName);
169
170 field.PropertyName = propertyName;
171 field.PropertyValue = propertyStringValue;
172 field.Probability = probability;
173 field.FactLabel = factLabel;
174 field.CollectionRecordId = collectionRecordId;
175 }
176 }
177 }
178
179 }
180 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.ExternalEntityLink;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7
8 namespace Sungero.Commons
9 {
10 partial class ExternalEntityLinkServerHandlers
11 {
12
13 public override void Created(Sungero.Domain.CreatedEventArgs e)
14 {
15 _obj.IsDeleted = false;
16 }
17 }
18
19 }
...\ No newline at end of file ...\ No newline at end of file
1 <?xml version="1.0" encoding="utf-8" ?>
2 <queries>
3 </queries>
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Commons.ExternalEntityLink;
5 using Sungero.Core;
6 using Sungero.CoreEntities;
7 using Sungero.Domain.Shared;
8
9 namespace Sungero.Commons.Server
10 {
11 partial class ExternalEntityLinkFunctions
12 {
13 /// <summary>
14 /// Получить сущность.
15 /// </summary>
16 /// <returns>Сущность.</returns>
17 [Remote(IsPure = true)]
18 public Sungero.Domain.Shared.IEntity GetEntity()
19 {
20 var entityType = new System.Guid(_obj.EntityType).GetTypeByGuid();
21 if (_obj.EntityId.HasValue)
22 {
23 using (var session = new Sungero.Domain.Session())
24 {
25 return session.Get(entityType, _obj.EntityId.Value);
26 }
27 }
28 return _obj;
29 }
30
31 }
32 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Server
8 {
9 public class ModuleAsyncHandlers
10 {
11
12 }
13 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Server
8 {
9
10 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Server
8 {
9
10 }
...\ No newline at end of file ...\ No newline at end of file
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6 using Sungero.Domain.Initialization;
7
8 namespace Sungero.Commons.Server
9 {
10 public partial class ModuleInitializer
11 {
12 public override void Initializing(Sungero.Domain.ModuleInitializingEventArgs e)
13 {
14 GrantRigthsToExternalEntityLinks();
15 CreateExternalEntityLinksIndexes();
16 CreateCountryRegionsCitiesFromFIAS();
17 }
18
19 /// <summary>
20 /// Выдать права на чтение справочника ExternalEntityLink всем пользователям.
21 /// </summary>
22 private static void GrantRigthsToExternalEntityLinks()
23 {
24 // Получить роль "Все пользователи", не создавая зависимость от модуля Docflow.
25 var allUsers = Roles.AllUsers;
26
27 ExternalEntityLinks.AccessRights.Grant(allUsers, DefaultAccessRightsTypes.Read);
28 ExternalEntityLinks.AccessRights.Save();
29 }
30
31 /// <summary>
32 /// Создать прикладные индексы для справочника ExternalEntityLink.
33 /// </summary>
34 private static void CreateExternalEntityLinksIndexes()
35 {
36 Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EEntLink_EId_EType_EEType_ESId_SD);
37 Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EEntLink_EEId_ESId);
38 Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EELinks_Discr_EId_EEType_ESysId_SyncDate);
39 Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EEntityLinks_Disc_ExtEntityId_ExtSystemId);
40 }
41
42 /// <summary>
43 /// Создать страну, регионы и города согласно ФИАС.
44 /// </summary>
45 public static void CreateCountryRegionsCitiesFromFIAS()
46 {
47 if (Functions.Module.IsServerCultureRussian() && !Countries.GetAll().Any())
48 {
49 InitializationLogger.DebugFormat("Init: Create country, regions and cities.");
50 Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.CreateCountryRegionsCitiesFromFIAS);
51 }
52 }
53
54 }
55 }
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Server
8 {
9 public class ModuleJobs
10 {
11
12 }
13 }
...\ No newline at end of file ...\ No newline at end of file
This diff could not be displayed because it is too large.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using Sungero.Core;
5 using Sungero.CoreEntities;
6
7 namespace Sungero.Commons.Server
8 {
9
10 }
...\ No newline at end of file ...\ No newline at end of file