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.

using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.City;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.City;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class CityFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.City;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class CityClientHandlers
{
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="View" isnull="true" iskey="true">
<property name="AutoWidth">true</property>
<property name="ShowGroupPanel">true</property>
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">604,-21</property>
<property name="Size">220,250</property>
</property>
<property name="AllowGrouping">true</property>
<property name="AllowSorting">true</property>
<property name="LinesPerRowMode">OneLineMode</property>
<property name="IsRowCellMenuEnabled">false</property>
</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="GroupSummary" iskey="true" value="0" />
<property name="GroupCount">2</property>
<property name="SortInfo" iskey="true" value="4">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">Country.DisplayValue</property>
<property name="SortOrder">Ascending</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Region.DisplayValue</property>
<property name="SortOrder">Ascending</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Status</property>
<property name="SortOrder">Ascending</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="SortOrder">Ascending</property>
</property>
</property>
<property name="Columns" iskey="true" value="6">
<property name="Item1" isnull="true" iskey="true">
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
<property name="FieldName">T</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="ColumnFilterMode">Value</property>
<property name="AutoFilterCondition">Equals</property>
<property name="FieldName">Id</property>
<property name="VisibleIndex">1</property>
<property name="Name">City_Id</property>
<property name="Visible">false</property>
<property name="ActualWidth">5*</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Name</property>
<property name="VisibleIndex">1</property>
<property name="Name">City_Name</property>
<property name="Visible">true</property>
<property name="ActualWidth">52*</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Region.DisplayValue</property>
<property name="Name">City_Region</property>
<property name="Visible">true</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item5" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Country.DisplayValue</property>
<property name="Name">City_Country</property>
<property name="Visible">true</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item6" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Status</property>
<property name="VisibleIndex">2</property>
<property name="Name">City_Status</property>
<property name="Visible">true</property>
<property name="ActualWidth">44*</property>
</property>
</property>
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="Columns" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">true</property>
<property name="Name">City_Id</property>
<property name="VisibleIndex">1</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">City_Name</property>
<property name="VisibleIndex">2</property>
</property>
</property>
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
<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
<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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Country;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class CountryActions
{
public virtual void ShowDuplicates(Sungero.Domain.Client.ExecuteActionArgs e)
{
var duplicates = Functions.Country.Remote.GetDuplicates(_obj);
if (duplicates.Any())
duplicates.Show();
else
Dialogs.NotifyMessage(Sungero.Commons.Resources.DuplicateNotFound);
}
public virtual bool CanShowDuplicates(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return true;
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Country;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class CountryFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Country;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class CountryClientHandlers
{
public virtual void CodeValueInput(Sungero.Presentation.StringValueInputEventArgs e)
{
var result = Functions.Country.ValidateCountryCode(e.NewValue);
if (!string.IsNullOrEmpty(result))
e.AddError(_obj.Info.Properties.Code, result);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="View" isnull="true" iskey="true">
<property name="AutoWidth">true</property>
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">604,-21</property>
<property name="Size">220,250</property>
</property>
<property name="AllowGrouping">true</property>
<property name="AllowSorting">true</property>
<property name="LinesPerRowMode">OneLineMode</property>
<property name="IsRowCellMenuEnabled">true</property>
</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="GroupSummary" iskey="true" value="0" />
<property name="GroupCount">0</property>
<property name="SortInfo" iskey="true" value="2">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">Status</property>
<property name="SortOrder">Ascending</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="SortOrder">Ascending</property>
</property>
</property>
<property name="Columns" iskey="true" value="4">
<property name="Item1" isnull="true" iskey="true">
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
<property name="FieldName">T</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="ColumnFilterMode">Value</property>
<property name="AutoFilterCondition">Equals</property>
<property name="FieldName">Id</property>
<property name="VisibleIndex">1</property>
<property name="Name">Country_Id</property>
<property name="Visible">false</property>
<property name="Width">40</property>
<property name="ActualWidth">5*</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Name</property>
<property name="VisibleIndex">1</property>
<property name="Name">Country_Name</property>
<property name="Visible">true</property>
<property name="ActualWidth">60*</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Status</property>
<property name="VisibleIndex">2</property>
<property name="Name">Country_Status</property>
<property name="Visible">true</property>
<property name="ActualWidth">37*</property>
</property>
</property>
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="Columns" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">true</property>
<property name="Name">Country_Id</property>
<property name="VisibleIndex">1</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">Country_Name</property>
<property name="VisibleIndex">2</property>
</property>
</property>
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
<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
<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
<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
<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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Currency;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class CurrencyActions
{
public virtual void ShowDuplicates(Sungero.Domain.Client.ExecuteActionArgs e)
{
var duplicates = Functions.Currency.Remote.GetDuplicates(_obj);
if (duplicates.Any())
duplicates.Show();
else
Dialogs.NotifyMessage(Sungero.Commons.Resources.DuplicateNotFound);
}
public virtual bool CanShowDuplicates(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return true;
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Currency;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class CurrencyFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Currency;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class CurrencyClientHandlers
{
public override void StatusValueInput(Sungero.Presentation.EnumerationValueInputEventArgs e)
{
_obj.State.Properties.IsDefault.IsEnabled = e.NewValue != Status.Closed;
}
public virtual void NumericCodeValueInput(Sungero.Presentation.StringValueInputEventArgs e)
{
var result = Functions.Currency.ValidateNumericCode(e.NewValue);
if (!string.IsNullOrEmpty(result))
e.AddError(_obj.Info.Properties.NumericCode, result);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="View" isnull="true" iskey="true">
<property name="ShowTotalSummary">false</property>
<property name="AutoWidth">false</property>
<property name="ShowGroupPanel">false</property>
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">588,49.2</property>
<property name="Size">220,250</property>
</property>
<property name="AllowGrouping">true</property>
<property name="AllowSorting">true</property>
<property name="LinesPerRowMode">OneLineMode</property>
<property name="IsRowCellMenuEnabled">false</property>
</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="GroupSummary" iskey="true" value="0" />
<property name="GroupCount">0</property>
<property name="SortInfo" iskey="true" value="1">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="SortOrder">Ascending</property>
</property>
</property>
<property name="Columns" iskey="true" value="5">
<property name="Item1" isnull="true" iskey="true">
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
<property name="FieldName">T</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="ColumnFilterMode">Value</property>
<property name="AutoFilterCondition">Equals</property>
<property name="FieldName">Id</property>
<property name="VisibleIndex">1</property>
<property name="Name">Currency_Id</property>
<property name="Visible">false</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Status</property>
<property name="VisibleIndex">3</property>
<property name="Name">Currency_Status</property>
<property name="Visible">false</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Name</property>
<property name="VisibleIndex">1</property>
<property name="Name">Currency_Name</property>
<property name="Visible">true</property>
<property name="ActualWidth">18*</property>
</property>
<property name="Item5" isnull="true" iskey="true">
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Code</property>
<property name="VisibleIndex">2</property>
<property name="Name">Currency_Code</property>
<property name="Visible">true</property>
<property name="ActualWidth">8*</property>
</property>
</property>
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="SortInfo" iskey="true" value="0" />
<property name="View" isnull="true" iskey="true">
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">588,49.2</property>
<property name="Size">220,250</property>
</property>
<property name="ShowTotalSummary">false</property>
<property name="AutoWidth">false</property>
<property name="IsRowCellMenuEnabled">false</property>
<property name="AllowSorting">true</property>
<property name="ShowGroupPanel">false</property>
<property name="AllowGrouping">true</property>
<property name="LinesPerRowMode">OneLineMode</property>
</property>
<property name="Columns" iskey="true" value="4">
<property name="Item1" isnull="true" iskey="true">
<property name="Visible">true</property>
<property name="FieldName">T</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="Visible">false</property>
<property name="ColumnFilterMode">Value</property>
<property name="AutoFilterCondition">Equals</property>
<property name="FieldName">Id</property>
<property name="Name">Currency_Id</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="Visible">true</property>
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Name</property>
<property name="Name">Currency_Name</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="Visible">true</property>
<property name="ColumnFilterMode">DisplayText</property>
<property name="AutoFilterCondition">Contains</property>
<property name="FieldName">Code</property>
<property name="Name">Currency_Code</property>
<property name="VisibleIndex">2</property>
<property name="ActualWidth">NaN</property>
</property>
</property>
<property name="GroupSummary" iskey="true" value="0" />
<property name="GroupCount">0</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="MRUFilters" iskey="true" value="0" />
<property name="FilterString" isnull="true" />
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
<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
<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
<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
<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
<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
<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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.EntityRecognitionInfo;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class EntityRecognitionInfoActions
{
public override void DeleteEntity(Sungero.Domain.Client.ExecuteActionArgs e)
{
base.DeleteEntity(e);
}
public override bool CanDeleteEntity(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return base.CanDeleteEntity(e);
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.EntityRecognitionInfo;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class EntityRecognitionInfoFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.EntityRecognitionInfo;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class EntityRecognitionInfoClientHandlers
{
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="Columns" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">true</property>
<property name="Name">EntityRecognitionInfo_Id</property>
<property name="VisibleIndex">1</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">EntityRecognitionInfo_Name</property>
<property name="VisibleIndex">2</property>
</property>
</property>
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="Columns" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">true</property>
<property name="Name">EntityRecognitionInfo_Id</property>
<property name="VisibleIndex">1</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">EntityRecognitionInfo_Name</property>
<property name="VisibleIndex">2</property>
</property>
</property>
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.ExternalEntityLink;
using Sungero.Core;
using Sungero.CoreEntities;
using Sungero.Domain.Client;
using Sungero.Domain.Shared;
namespace Sungero.Commons.Client
{
partial class ExternalEntityLinkActions
{
public virtual void OpenEntity(Sungero.Domain.Client.ExecuteActionArgs e)
{
Functions.ExternalEntityLink.Remote.GetEntity(_obj).Show();
}
public virtual bool CanOpenEntity(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return true;
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.ExternalEntityLink;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class ExternalEntityLinkFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.ExternalEntityLink;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class ExternalEntityLinkClientHandlers
{
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="GroupSummary" iskey="true" value="0" />
<property name="View" isnull="true" iskey="true">
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">748,-194</property>
<property name="Size">220,250</property>
</property>
<property name="AutoWidth">false</property>
<property name="AllowGrouping">true</property>
<property name="AllowSorting">true</property>
<property name="ShowGroupPanel">true</property>
<property name="LinesPerRowMode">OneLineMode</property>
<property name="IsRowCellMenuEnabled">false</property>
</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="GroupCount">0</property>
<property name="Columns" iskey="true" value="9">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="ExtendedVisibleIndex">0</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">false</property>
<property name="Name">ExternalEntityLink_Id</property>
<property name="ExtendedVisibleIndex">1</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">EntityType</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_EntityType</property>
<property name="ExtendedVisibleIndex">5</property>
<property name="VisibleIndex">4</property>
<property name="ActualWidth">20*</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="FieldName">EntityId</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_EntityId</property>
<property name="ExtendedVisibleIndex">6</property>
<property name="VisibleIndex">5</property>
<property name="ActualWidth">9*</property>
</property>
<property name="Item5" isnull="true" iskey="true">
<property name="FieldName">ExtEntityType</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_ExtEntityType</property>
<property name="ExtendedVisibleIndex">3</property>
<property name="VisibleIndex">2</property>
<property name="ActualWidth">14*</property>
</property>
<property name="Item6" isnull="true" iskey="true">
<property name="FieldName">ExtEntityId</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_ExtEntityId</property>
<property name="ExtendedVisibleIndex">4</property>
<property name="VisibleIndex">3</property>
<property name="ActualWidth">20*</property>
</property>
<property name="Item7" isnull="true" iskey="true">
<property name="FieldName">ExtSystemId</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_ExtSystemId</property>
<property name="ExtendedVisibleIndex">2</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">14*</property>
</property>
<property name="Item8" isnull="true" iskey="true">
<property name="FieldName">SyncDate</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_SyncDate</property>
<property name="ExtendedVisibleIndex">7</property>
<property name="VisibleIndex">6</property>
<property name="ActualWidth">13*</property>
</property>
<property name="Item9" isnull="true" iskey="true">
<property name="FieldName">IsDeleted</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLink_IsDeleted</property>
<property name="ExtendedVisibleIndex">8</property>
<property name="VisibleIndex">7</property>
<property name="ActualWidth">7*</property>
</property>
</property>
<property name="SortInfo" iskey="true" value="0" />
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="Columns" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLinks_Id</property>
<property name="VisibleIndex">1</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">ExternalEntityLinks_Name</property>
<property name="VisibleIndex">2</property>
</property>
</property>
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
<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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
public class ModuleFunctions
{
/// <summary>
/// Создать населенный пункт.
/// </summary>
public virtual void CreateNewCity()
{
Functions.Module.Remote.CreateNewCity().Show();
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="GroupSummary" iskey="true" value="0" />
<property name="View" isnull="true" iskey="true">
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">604,-21</property>
<property name="Size">220,250</property>
</property>
<property name="AutoWidth">true</property>
<property name="AllowGrouping">true</property>
<property name="AllowSorting">true</property>
<property name="ShowGroupPanel">false</property>
<property name="LinesPerRowMode">OneLineMode</property>
<property name="IsRowCellMenuEnabled">false</property>
</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="GroupCount">0</property>
<property name="Columns" iskey="true" value="6">
<property name="Item1" isnull="true" iskey="true">
<property name="MinWidth">32</property>
<property name="FieldName">T</property>
<property name="FixedWidth">true</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
<property name="Width">32</property>
<property name="ActualWidth">4*</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="AutoFilterCondition">Equals</property>
<property name="Visible">false</property>
<property name="Name">Region_Id</property>
<property name="VisibleIndex">1</property>
<property name="Width">40</property>
<property name="ActualWidth">5*</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Status</property>
<property name="AutoFilterCondition">Contains</property>
<property name="Visible">true</property>
<property name="Name">Region_Status</property>
<property name="VisibleIndex">4</property>
<property name="ActualWidth">18*</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="AutoFilterCondition">Contains</property>
<property name="Visible">true</property>
<property name="Name">Region_Name</property>
<property name="VisibleIndex">2</property>
<property name="ActualWidth">36*</property>
</property>
<property name="Item5" isnull="true" iskey="true">
<property name="FieldName">Country.DisplayValue</property>
<property name="AutoFilterCondition">Contains</property>
<property name="Visible">true</property>
<property name="Name">Region_Country</property>
<property name="VisibleIndex">3</property>
<property name="ActualWidth">35*</property>
</property>
<property name="Item6" isnull="true" iskey="true">
<property name="FieldName">Code</property>
<property name="Visible">true</property>
<property name="Name">Region_Code</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">7*</property>
</property>
</property>
<property name="SortInfo" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">Status</property>
<property name="SortOrder">Ascending</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Country.DisplayValue</property>
<property name="SortOrder">Ascending</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="SortOrder">Ascending</property>
</property>
</property>
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="Columns" iskey="true" value="3">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">T</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">true</property>
<property name="Name">Region_Id</property>
<property name="VisibleIndex">1</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">Region_Name</property>
<property name="VisibleIndex">2</property>
</property>
</property>
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
<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
<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
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Region;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Region;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class RegionFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Region;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class RegionClientHandlers
{
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Collection FormGuid="cddd4c25-da1e-45d4-ab4b-0250a22ce940">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="GroupSummary" iskey="true" value="0" />
<property name="View" isnull="true" iskey="true">
<property name="AllowGrouping">true</property>
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">808,-194</property>
<property name="Size">220,250</property>
</property>
<property name="AllowSorting">true</property>
<property name="IsRowCellMenuEnabled">false</property>
<property name="LinesPerRowMode">OneLineMode</property>
</property>
<property name="GroupCount">0</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="Columns" iskey="true" value="4">
<property name="Item1" isnull="true" iskey="true">
<property name="MinWidth">32</property>
<property name="FieldName">T</property>
<property name="FixedWidth">true</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
<property name="Width">32</property>
<property name="ActualWidth">3*</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">false</property>
<property name="Name">VATRate_Id</property>
<property name="ExtendedVisibleIndex">1</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">6*</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">VATRate_Name</property>
<property name="ExtendedVisibleIndex">2</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">15*</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="FieldName">Rate</property>
<property name="Visible">true</property>
<property name="Name">VATRate_Rate</property>
<property name="ExtendedVisibleIndex">3</property>
<property name="VisibleIndex">2</property>
<property name="ActualWidth">11*</property>
</property>
</property>
<property name="SortInfo" iskey="true" value="1">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="SortOrder">Descending</property>
</property>
</property>
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Collection>
</settings>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<ViewName>Default</ViewName>
<Folder FormGuid="8dbb6507-6d7b-4ef2-9247-a64a15eb5dbb">
<XtraSerializer version="1.0" application="GridControl">
<property name="#LayoutVersion" isnull="true" />
<property name="$GridControl" iskey="true" value="GridControl">
<property name="GroupSummary" iskey="true" value="0" />
<property name="View" isnull="true" iskey="true">
<property name="AllowGrouping">true</property>
<property name="ColumnChooserState" isnull="true" iskey="true">
<property name="Location">990,-194</property>
<property name="Size">220,250</property>
</property>
<property name="AllowSorting">true</property>
<property name="IsRowCellMenuEnabled">false</property>
<property name="LinesPerRowMode">OneLineMode</property>
</property>
<property name="GroupCount">0</property>
<property name="TotalSummary" iskey="true" value="0" />
<property name="Columns" iskey="true" value="4">
<property name="Item1" isnull="true" iskey="true">
<property name="MinWidth">32</property>
<property name="FieldName">T</property>
<property name="FixedWidth">true</property>
<property name="Visible">true</property>
<property name="VisibleIndex">0</property>
<property name="Width">32</property>
<property name="ActualWidth">3*</property>
</property>
<property name="Item2" isnull="true" iskey="true">
<property name="FieldName">Id</property>
<property name="Visible">false</property>
<property name="Name">VATRate_Id</property>
<property name="ExtendedVisibleIndex">1</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">NaN</property>
</property>
<property name="Item3" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="Visible">true</property>
<property name="Name">VATRate_Name</property>
<property name="ExtendedVisibleIndex">2</property>
<property name="VisibleIndex">1</property>
<property name="ActualWidth">15*</property>
</property>
<property name="Item4" isnull="true" iskey="true">
<property name="FieldName">Rate</property>
<property name="Visible">true</property>
<property name="Name">VATRate_Rate</property>
<property name="ExtendedVisibleIndex">3</property>
<property name="VisibleIndex">2</property>
<property name="ActualWidth">8*</property>
</property>
</property>
<property name="SortInfo" iskey="true" value="1">
<property name="Item1" isnull="true" iskey="true">
<property name="FieldName">Name</property>
<property name="SortOrder">Descending</property>
</property>
</property>
<property name="GroupSummarySortInfo" iskey="true" value="0" />
</property>
</XtraSerializer>
</Folder>
</settings>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.VATRate;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class VATRateActions
{
public override void DeleteEntity(Sungero.Domain.Client.ExecuteActionArgs e)
{
base.DeleteEntity(e);
}
public override bool CanDeleteEntity(Sungero.Domain.Client.CanExecuteActionArgs e)
{
return string.IsNullOrWhiteSpace(_obj.Sid);
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.VATRate;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Client
{
partial class VATRateFunctions
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.VATRate;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class VATRateClientHandlers
{
public override void Refresh(Sungero.Presentation.FormRefreshEventArgs e)
{
if (!string.IsNullOrWhiteSpace(_obj.Sid))
{
_obj.State.Properties.Name.IsEnabled = false;
_obj.State.Properties.Rate.IsEnabled = false;
}
}
public virtual void RateValueInput(Sungero.Presentation.IntegerValueInputEventArgs e)
{
if (e.NewValue < 0)
e.AddError(VATRates.Resources.RateMustBePositive);
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.City;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class CityRegionPropertyFilteringServerHandler<T>
{
public virtual IQueryable<T> RegionFiltering(IQueryable<T> query, Sungero.Domain.PropertyFilteringEventArgs e)
{
// Отфильтровать регионы по странам.
if (_obj.Country != null)
query = query.Where(region => Equals(region.Country, _obj.Country));
return query;
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<queries>
</queries>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.City;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
partial class CityFunctions
{
/// <summary>
/// Получить населенный пункт из адреса.
/// </summary>
/// <param name="address">Адрес.</param>
/// <returns>Населенный пункт, указанный в адресе.</returns>
[Public]
public static ICity GetCityFromAddress(string address)
{
if (string.IsNullOrWhiteSpace(address))
return null;
var pattern = string.Format(@"(?i:{0}\s(?<cityName>[а-я][а-я-\s\.]+))", Constants.City.AddressTypesMask);
var match = System.Text.RegularExpressions.Regex.Match(address, pattern);
var cityName = match.Groups["cityName"].Value;
var city = string.Format("{0} {1}", Constants.City.CityMask, cityName);
var locality = string.Format("{0} {1}", Constants.City.LocalityMask, cityName);
return !match.Success
? null
: Cities.GetAll().FirstOrDefault(c =>
c.Name.ToLower() == city.ToLower() || c.Name.ToLower() == cityName ||
c.Name.ToLower() == locality.ToLower());
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Country;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class CountryServerHandlers
{
public override void BeforeSave(Sungero.Domain.BeforeSaveEventArgs e)
{
// Проверить валидность кода.
var result = Functions.Country.ValidateCountryCode(_obj.Code);
if (!string.IsNullOrEmpty(result))
e.AddError(Countries.Resources.InvalidCountryCode);
if (Functions.Country.HaveDuplicates(_obj))
e.AddWarning(Sungero.Commons.Resources.DuplicateDetected, _obj.Info.Actions.ShowDuplicates);
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<queries>
</queries>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Country;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
partial class CountryFunctions
{
/// <summary>
/// Получить дубли страны.
/// </summary>
/// <returns>Страны, дублирующие текущую.</returns>
[Remote(IsPure = true)]
public IQueryable<ICountry> GetDuplicates()
{
return Countries.GetAll()
.Where(c => c.Status != Sungero.CoreEntities.DatabookEntry.Status.Closed)
.Where(c => Equals(c.Code, _obj.Code))
.Where(c => !Equals(c, _obj));
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Currency;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class CurrencyServerHandlers
{
public override void BeforeDelete(Sungero.Domain.BeforeDeleteEventArgs e)
{
if (!Functions.Module.IsAllExternalEntityLinksDeleted(_obj))
throw AppliedCodeException.Create(Commons.Resources.HasLinkedExternalEntities);
}
public override void Created(Sungero.Domain.CreatedEventArgs e)
{
if (!_obj.State.IsCopied)
{
_obj.IsDefault = false;
}
}
public override void BeforeSave(Sungero.Domain.BeforeSaveEventArgs e)
{
var result = Functions.Currency.ValidateNumericCode(_obj.NumericCode);
if (!string.IsNullOrEmpty(result))
e.AddError(result);
if (Functions.Currency.HaveDuplicates(_obj))
e.AddError(Sungero.Commons.Resources.DuplicateDetected, _obj.Info.Actions.ShowDuplicates);
// Нельзя закрывать валюту по умолчанию.
if (_obj.Status == Status.Closed && _obj.IsDefault == true)
e.AddError(Currencies.Resources.ClosedCurrencyCannotBeDefault);
// Если установить для текущей валюты флаг валюты по умолчанию, то с другой валюты этот флаг снимается.
if (_obj.IsDefault == true)
{
var defaultCurrency = Functions.Currency.GetDefaultCurrency();
if (defaultCurrency != null && defaultCurrency != _obj)
{
var lockInfo = Locks.GetLockInfo(defaultCurrency);
if (lockInfo != null && lockInfo.IsLocked)
{
var error = Commons.Resources.LinkedEntityLockedFormat(
defaultCurrency.Name,
defaultCurrency.Id,
lockInfo.OwnerName);
e.AddError(error);
}
defaultCurrency.IsDefault = false;
}
}
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<queries>
</queries>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.Currency;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
partial class CurrencyFunctions
{
/// <summary>
/// Получить валюту по умолчанию.
/// </summary>
/// <returns>Валюта, используемая по умолчанию.</returns>
[Remote(IsPure = true), Public]
public static ICurrency GetDefaultCurrency()
{
return Currencies.GetAll().FirstOrDefault(r => r.IsDefault.Value == true);
}
/// <summary>
/// Получить дубли валюты.
/// </summary>
/// <returns>Валюты, дублирующие текущую.</returns>
[Remote(IsPure = true)]
public IQueryable<ICurrency> GetDuplicates()
{
return Currencies.GetAll()
.Where(c => c.Status != Sungero.Commons.Currency.Status.Closed)
.Where(c => Equals(c.NumericCode, _obj.NumericCode))
.Where(c => !Equals(c, _obj));
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.EntityRecognitionInfo;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<queries>
</queries>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.EntityRecognitionInfo;
using Sungero.Core;
using Sungero.CoreEntities;
using Sungero.Domain.Shared;
using Sungero.Metadata;
namespace Sungero.Commons.Server
{
partial class EntityRecognitionInfoFunctions
{
/// <summary>
/// Получить результат распознавания сущности.
/// </summary>
/// <param name="entity">Сущность.</param>
/// <returns>Результат распознавания.</returns>
[Public, Remote(IsPure = true)]
public static IEntityRecognitionInfo GetEntityRecognitionInfo(Sungero.Domain.Shared.IEntity entity)
{
var typeGuid = entity.GetEntityMetadata()
.GetOriginal()
.NameGuid.ToString();
return EntityRecognitionInfos.GetAll(x => x.EntityId == entity.Id && x.EntityType == typeGuid)
.OrderByDescending(x => x.Id).FirstOrDefault();
}
/// <summary>
/// Клонировать заданную сущность.
/// </summary>
/// <param name="targetEntity">Сущность.</param>
[Public, Remote]
public virtual void Clone(Sungero.Domain.Shared.IEntity targetEntity)
{
var typeGuid = targetEntity.GetEntityMetadata()
.GetOriginal()
.NameGuid.ToString();
if (EntityRecognitionInfos.GetAll().Any(x => x.EntityId == targetEntity.Id && x.EntityType == typeGuid))
return;
var clone = EntityRecognitionInfos.Copy(_obj);
clone.EntityType = typeGuid;
clone.Save();
}
/// <summary>
/// Получить вероятность, с которой распознано свойство сущности.
/// </summary>
/// <param name="propertyName">Наименование свойства.</param>
/// <returns>Вероятность, с которой распознано свойство сущности.
/// null, если для свойства нет результатов распознавания.</returns>
[Public]
public virtual double? GetProbabilityByPropertyName(string propertyName)
{
if (string.IsNullOrEmpty(propertyName))
return null;
var factsByPropertyName = _obj.Facts.Where(x => x.PropertyName == propertyName);
if (!factsByPropertyName.Any())
return null;
return factsByPropertyName.First().Probability;
}
/// <summary>
/// Проложить связь между фактом и свойством документа.
/// </summary>
/// <param name="fact">Факт, который будет связан со свойством документа.</param>
/// <param name="fieldName">Поле, которое будет связано со свойством документа. Если не указано, то будут связаны все поля факта.</param>
/// <param name="propertyName">Имя свойства документа.</param>
/// <param name="propertyValue">Значение свойства.</param>
[Public]
public virtual void LinkFactAndProperty(Structures.Module.IArioFact fact,
string fieldName,
string propertyName,
object propertyValue)
{
this.LinkFactAndProperty(fact, fieldName, propertyName, propertyValue, null, null);
}
/// <summary>
/// Проложить связь между фактом и свойством документа.
/// </summary>
/// <param name="fact">Факт, который будет связан со свойством документа.</param>
/// <param name="fieldName">Поле, которое будет связано со свойством документа. Если не указано, то будут связаны все поля факта.</param>
/// <param name="propertyName">Имя свойства документа.</param>
/// <param name="propertyValue">Значение свойства.</param>
/// <param name="probability">Вероятность.</param>
[Public]
public virtual void LinkFactAndProperty(Structures.Module.IArioFact fact,
string fieldName,
string propertyName,
object propertyValue,
double? probability)
{
this.LinkFactAndProperty(fact, fieldName, propertyName, propertyValue, probability, null);
}
/// <summary>
/// Проложить связь между фактом и свойством документа.
/// </summary>
/// <param name="fact">Факт, который будет связан со свойством документа.</param>
/// <param name="fieldName">Поле, которое будет связано со свойством документа. Если не указано, то будут связаны все поля факта.</param>
/// <param name="propertyName">Имя свойства документа.</param>
/// <param name="propertyValue">Значение свойства.</param>
/// <param name="probability">Вероятность.</param>
/// <param name="collectionRecordId">ИД записи свойства-коллекции.</param>
[Public]
public virtual void LinkFactAndProperty(Structures.Module.IArioFact fact,
string fieldName,
string propertyName,
object propertyValue,
double? probability = null,
int? collectionRecordId = null)
{
var fieldNames = new List<string>() { fieldName };
if (fieldName == null)
fieldNames = null;
this.LinkFactFieldsAndProperty(fact, fieldNames, propertyName, propertyValue, probability, collectionRecordId);
}
/// <summary>
/// Проложить связь между полями факта и свойством документа.
/// </summary>
/// <param name="fact">Факт, который будет связан со свойством документа.</param>
/// <param name="fieldNames">Поля, которые будут связаны со свойством документа. Если не указано, то будут связаны все поля факта.</param>
/// <param name="propertyName">Имя свойства документа.</param>
/// <param name="propertyValue">Значение свойства.</param>
/// <param name="probability">Вероятность.</param>
/// <param name="collectionRecordId">ИД записи свойства-коллекции.</param>
[Public]
public virtual void LinkFactFieldsAndProperty(Structures.Module.IArioFact fact,
List<string> fieldNames,
string propertyName,
object propertyValue,
double? probability = null,
int? collectionRecordId = null)
{
var propertyStringValue = PublicFunctions.Module.GetValueAsString(propertyValue);
if (string.IsNullOrWhiteSpace(propertyStringValue))
return;
var hasFieldNames = fieldNames != null;
if (hasFieldNames && !fieldNames.Any())
return;
// Если значение определилось не из фактов,
// для подсветки заносим это свойство и результату не доверяем.
if (fact == null)
{
var calculatedFact = _obj.Facts.AddNew();
calculatedFact.PropertyName = propertyName;
calculatedFact.PropertyValue = propertyStringValue;
calculatedFact.Probability = probability;
}
else
{
var propertyRelatedFields = _obj.Facts.Where(f => f.FactId == fact.Id)
.Where(f => !hasFieldNames || fieldNames.Contains(f.FieldName));
foreach (var field in propertyRelatedFields)
{
if (probability == null)
probability = PublicFunctions.Module.GetFieldProbability(fact, field.FieldName);
var factLabel = PublicFunctions.Module.GetFactLabel(fact, propertyName);
field.PropertyName = propertyName;
field.PropertyValue = propertyStringValue;
field.Probability = probability;
field.FactLabel = factLabel;
field.CollectionRecordId = collectionRecordId;
}
}
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.ExternalEntityLink;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons
{
partial class ExternalEntityLinkServerHandlers
{
public override void Created(Sungero.Domain.CreatedEventArgs e)
{
_obj.IsDeleted = false;
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<queries>
</queries>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Commons.ExternalEntityLink;
using Sungero.Core;
using Sungero.CoreEntities;
using Sungero.Domain.Shared;
namespace Sungero.Commons.Server
{
partial class ExternalEntityLinkFunctions
{
/// <summary>
/// Получить сущность.
/// </summary>
/// <returns>Сущность.</returns>
[Remote(IsPure = true)]
public Sungero.Domain.Shared.IEntity GetEntity()
{
var entityType = new System.Guid(_obj.EntityType).GetTypeByGuid();
if (_obj.EntityId.HasValue)
{
using (var session = new Sungero.Domain.Session())
{
return session.Get(entityType, _obj.EntityId.Value);
}
}
return _obj;
}
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
public class ModuleAsyncHandlers
{
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
using Sungero.Domain.Initialization;
namespace Sungero.Commons.Server
{
public partial class ModuleInitializer
{
public override void Initializing(Sungero.Domain.ModuleInitializingEventArgs e)
{
GrantRigthsToExternalEntityLinks();
CreateExternalEntityLinksIndexes();
CreateCountryRegionsCitiesFromFIAS();
}
/// <summary>
/// Выдать права на чтение справочника ExternalEntityLink всем пользователям.
/// </summary>
private static void GrantRigthsToExternalEntityLinks()
{
// Получить роль "Все пользователи", не создавая зависимость от модуля Docflow.
var allUsers = Roles.AllUsers;
ExternalEntityLinks.AccessRights.Grant(allUsers, DefaultAccessRightsTypes.Read);
ExternalEntityLinks.AccessRights.Save();
}
/// <summary>
/// Создать прикладные индексы для справочника ExternalEntityLink.
/// </summary>
private static void CreateExternalEntityLinksIndexes()
{
Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EEntLink_EId_EType_EEType_ESId_SD);
Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EEntLink_EEId_ESId);
Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EELinks_Discr_EId_EEType_ESysId_SyncDate);
Sungero.Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.idx_EEntityLinks_Disc_ExtEntityId_ExtSystemId);
}
/// <summary>
/// Создать страну, регионы и города согласно ФИАС.
/// </summary>
public static void CreateCountryRegionsCitiesFromFIAS()
{
if (Functions.Module.IsServerCultureRussian() && !Countries.GetAll().Any())
{
InitializationLogger.DebugFormat("Init: Create country, regions and cities.");
Docflow.PublicFunctions.Module.ExecuteSQLCommand(Queries.Module.CreateCountryRegionsCitiesFromFIAS);
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
public class ModuleJobs
{
}
}
\ No newline at end of file
This diff could not be displayed because it is too large.
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Commons.Server
{
}
\ No newline at end of file