Skip to content

Commit

Permalink
Assembly v 5.6.4 (5.06.24)
Browse files Browse the repository at this point in the history
  • Loading branch information
adslbarxatov committed Jun 4, 2024
1 parent 7ed0d83 commit 133373d
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# Константы, используемые далее по тексту
env:
PROJ: ${{ github.event.repository.name }}
TAG: '5.6.3'
TAG: '5.6.4'

steps:
# Проверка состава репозитория (без анализа, как может показаться)
Expand Down
Binary file modified .release/KassArray.apk
Binary file not shown.
Binary file modified .release/KassArray.exe
Binary file not shown.
Binary file modified .release/KassArrayDB.dll
Binary file not shown.
Binary file modified .release/KassArrayFN.exe
Binary file not shown.
Binary file modified .release/KassArrayLL.dll
Binary file not shown.
9 changes: 4 additions & 5 deletions .release/Release.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
_Изменения для v 5.6.3_:
_Изменения для v 5.6.4_:
- Обновлены ссылки на справку и поддержку;
- `Android`: возможно, исправлена проблема с зависанием тачскрина;
- Реализовано универсальное кеширование настроек приложения (исключены множественные обращения к реестру);
- Исправлены некоторые проблемы с конвертором символов;
- `Windows`: исправлено перекрытие сообщения по статисике по реестру ККТ в режиме «Поверх других окон»;
- Обновлён интерфейс отображения поддержки ФФД, добавлена статистика по реестру ККТ;
- Добавлены серии ЗН ККТ для `Атол 55 v2 Ф` и `Атол СТБ 6Ф`;
- Обновлены настройки ОФД `Тензор`;
- Упразднена опция отключения хранения настроек приложения;
- `Windows`: приложение перенацелено на `.NET Framework 4.8.1`;
- `Android`: переработан код фоновой службы, исправлен ряд проблем в совместимости с `Android 13`
- Обновлены настройки ОФД `Тензор`
4 changes: 4 additions & 0 deletions Changes.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
KassArray: лог изменений

Версия 5.6.4:
• Обновлены ссылки на справку и поддержку;
• Android: возможно, исправлена проблема с зависанием тачскрина

Версия 5.6.3:
• Реализовано универсальное кеширование настроек приложения (исключены множественные
обращения к реестру);
Expand Down
1 change: 0 additions & 1 deletion src/KKTSerial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public KKTSerial ()

serialSamples.Add (values[4]);
serialOffsets.Add (uint.Parse (values[5]));
/*ffdSupport.Add (new List<FFDSupportStatuses> ());*/
ffdSupport.Add (state);

if (values[2] == "1")
Expand Down
56 changes: 15 additions & 41 deletions src/TextToKKTForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace RD_AAOW
public partial class TextToKKTForm: Form
{
// Дескрипторы информационных классов
/*private ConfigAccessor ca = null;*/
private KassArrayDB::RD_AAOW.KnowledgeBase kb;

// Дескриптор иконки в трее
Expand Down Expand Up @@ -58,7 +57,6 @@ public TextToKKTForm (string Flags)
if (!RDLocale.IsCurrentLanguageRuRu)
RDLocale.CurrentLanguage = RDLanguages.ru_ru;

/*ca = new ConfigAccessor ();*/
kb = new KassArrayDB::RD_AAOW.KnowledgeBase ();
hideWindow = (Flags == HideWindowKey);

Expand Down Expand Up @@ -109,7 +107,7 @@ public TextToKKTForm (string Flags)
// Получение настроек
RDGenerics.LoadWindowDimensions (this);

if (!RDGenerics.AppHasAccessRights (false, true))
if (!RDGenerics.AppHasAccessRights (false, false))
this.Text += RDLocale.GetDefaultText (RDLDefaultTexts.Message_LimitedFunctionality);

TopFlag.Checked = AppSettings.TopMost;
Expand Down Expand Up @@ -250,6 +248,8 @@ private void TextToKKTForm_Shown (object sender, EventArgs e)
// Включение / выключение режима сервис-инженера
private void ExtendedMode_CheckedChanged (object sender, EventArgs e)
{
this.TopMost = false;

if (ExtendedMode.Checked)
{
RDGenerics.MessageBox (RDMessageTypes.Error_Left, AppSettings.ExtendedModeMessage);
Expand All @@ -260,6 +260,8 @@ private void ExtendedMode_CheckedChanged (object sender, EventArgs e)
RDGenerics.MessageBox (RDMessageTypes.Question_Left, AppSettings.NoExtendedModeMessage);
AppSettings.EnableExtendedMode = false;
}

this.TopMost = TopFlag.Checked;
}

// Возврат окна приложения
Expand Down Expand Up @@ -661,28 +663,19 @@ private void FNLifeStartDate_ValueChanged (object sender, EventArgs e)
FNLifeResult.Text = "ФН прекратит работу ";
if (res.StartsWith (KassArrayDB::RD_AAOW.KKTSupport.FNLifeInacceptableSign))
{
/*FNLifeResult.ForeColor = Color.FromArgb (255, 0, 0);*/
FNLifeResult.ForeColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.ErrorText);
/*FNLifeResult.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.ErrorMessage);*/

fnLifeResult = res.Substring (1);
FNLifeResult.Text += (fnLifeResult + KassArrayDB::RD_AAOW.FNSerial.FNIsNotAcceptableMessage);
}
else if (res.StartsWith (KassArrayDB::RD_AAOW.KKTSupport.FNLifeUnwelcomeSign))
{
/*FNLifeResult.ForeColor = Color.FromArgb (255, 128, 0);*/
FNLifeResult.ForeColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.WarningText);
/*FNLifeResult.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.WarningMessage);*/

fnLifeResult = res.Substring (1);
FNLifeResult.Text += (fnLifeResult + KassArrayDB::RD_AAOW.FNSerial.FNIsNotRecommendedMessage);
}
else
{
/*FNLifeResult.ForeColor = Color.FromArgb (0, 128, 0);*/
FNLifeResult.ForeColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessText);
/*FNLifeResult.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);*/

fnLifeResult = res;
FNLifeResult.Text += res;
}
Expand All @@ -694,19 +687,16 @@ private void FNLifeStartDate_ValueChanged (object sender, EventArgs e)
FNLifeResult.ForeColor = Color.FromArgb (255, 0, 0);

FNLifeResult.Text += KassArrayDB::RD_AAOW.FNSerial.FNIsNotAllowedMessage;
FNLifeName.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Unsupported);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.ErrorMessage);
FNLifeName.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.ErrorMessage);
}
else
{
FNLifeName.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Supported);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);
FNLifeName.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);
}
}
else
{
FNLifeName.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Unknown);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.QuestionMessage);
FNLifeName.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.QuestionMessage);
}
}

Expand Down Expand Up @@ -822,48 +812,33 @@ private void RNMSerial_TextChanged (object sender, EventArgs e)
string s = kb.KKTNumbers.GetFFDSupportStatus (RNMSerial.Text);
if (!string.IsNullOrWhiteSpace (s))
RNMSerialResult.Text += RDLocale.RN + s;

/*KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStates statuses =
kb.KKTNumbers.GetFFDSupportStatus (RNMSerial.Text);*/

/*RNMSupport105.BackColor = StatusToColor (statuses[0]);
RNMSupport11.BackColor = StatusToColor (statuses[1]);
RNMSupport12.BackColor = StatusToColor (statuses[2]);*/
}
else
{
RNMSerialResult.Text = "(введите ЗН ККТ)";
/*RNMSupport105.BackColor = RNMSupport11.BackColor = RNMSupport12.BackColor =
StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Unknown);*/
}

// ИНН пользователя
RegionLabel.Text = "";
int checkINN = KassArrayDB::RD_AAOW.KKTSupport.CheckINN (RNMUserINN.Text);
if (checkINN < 0)
RNMUserINN.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Unknown);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.QuestionMessage);
RNMUserINN.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.QuestionMessage);
else if (checkINN == 0)
RNMUserINN.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Supported);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);
RNMUserINN.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);
else
RNMUserINN.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Planned);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.WarningMessage);
RNMUserINN.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.WarningMessage);
// Не ошибка

RegionLabel.Text = kb.KKTNumbers.GetRegionName (RNMUserINN.Text);

// РН
if (RNMValue.Text.Length < 10)
RNMValue.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Unknown);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.QuestionMessage);
RNMValue.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.QuestionMessage);
else if (KassArrayDB::RD_AAOW.KKTSupport.GetFullRNM (RNMUserINN.Text, RNMSerial.Text,
RNMValue.Text.Substring (0, 10)) == RNMValue.Text)
RNMValue.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Supported);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);
RNMValue.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.SuccessMessage);
else
RNMValue.BackColor = /*StatusToColor (KassArrayDB::RD_AAOW.KKTSerial.FFDSupportStatuses.Unsupported);*/
RDGenerics.GetInterfaceColor (RDInterfaceColors.ErrorMessage);
RNMValue.BackColor = RDGenerics.GetInterfaceColor (RDInterfaceColors.ErrorMessage);
}

// Генерация регистрационного номера
Expand Down Expand Up @@ -1047,7 +1022,7 @@ private void LowLevelClearButton_Click (object sender, EventArgs e)
private void KKTListForManuals_SelectedIndexChanged (object sender, EventArgs e)
{
byte idx = (byte)OperationsListForManuals.SelectedIndex;

var sections = (KassArrayDB::RD_AAOW.UserManualsSections)AppSettings.UserManualSectionsState;
AddToPrint.Checked = sections.HasFlag ((KassArrayDB::RD_AAOW.UserManualsSections)(1u << idx));

Expand Down Expand Up @@ -1081,7 +1056,6 @@ private void AddToPrint_CheckedChanged (object sender, EventArgs e)
else
sections &= ~idx;

/*ca.SetUserManualSectionState ((byte)OperationsListForManuals.SelectedIndex, AddToPrint.Checked);*/
AppSettings.UserManualSectionsState = (uint)sections;
}

Expand Down
5 changes: 5 additions & 0 deletions src/TextToKKTProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public static void Main (string[] args)
if (!RDGenerics.IsAppInstanceUnique (true))
return;


// Контроль прав и целостности
if (!RDGenerics.AppHasAccessRights (true, false))
return;

if (!RDGenerics.StartedFromMSStore &&
!RDGenerics.CheckLibraries (new string[] { ProgramDescription.KassArrayDLLs[0] }, true))
return;
Expand Down
Loading

0 comments on commit 133373d

Please sign in to comment.