feat(dal): В Work добавлена маска имени шаблонов, выполнена миграция БД.
This commit is contained in:
20
PARR.Constants/Shortcodes/Shortcodes.cs
Normal file
20
PARR.Constants/Shortcodes/Shortcodes.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Data.Common;
|
||||
|
||||
namespace PARR.Constants.Shortcodes
|
||||
{
|
||||
public static class Shortcodes
|
||||
{
|
||||
private static readonly List<ShortcodeItem> ShortcodesList = new List<ShortcodeItem>()
|
||||
{
|
||||
new ShortcodeItem { ShortcodeEnum = ShortcodeEnum.EK, Name = "%ЭК%", Description = "Элемент конфигурации"},
|
||||
new ShortcodeItem { ShortcodeEnum = ShortcodeEnum.ZO, Name = "%ЗО%", Description = "Зона ответственности"}
|
||||
|
||||
};
|
||||
|
||||
public static string GetShortcodeName(ShortcodeEnum shortcode)
|
||||
{
|
||||
return ShortcodesList.First(s => s.ShortcodeEnum == shortcode).Name;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user