Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавление отчета по стирке #497

Open
wants to merge 2 commits into
base: release/2.8
Choose a base branch
from

Conversation

Katetim32
Copy link

No description provided.

Copy link

gitguardian bot commented Jun 27, 2024

⚠️ GitGuardian has uncovered 3 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
12233567 Triggered Generic Password 565d8df Workwear/Reports/ClothingServiceReport.rdl View secret
12233567 Triggered Generic Password b853d6b Workwear/Reports/ClothingServiceReport.rdl View secret
12233567 Triggered Generic Password b853d6b Workwear/Reports/ClothingServiceReport.rdl View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Столбец "Закрыта" скрыт в случае закрытых заявок, формат столбца исправлен с +/- на да/нет
using Workwear.ReportParameters.ViewModels;

namespace Workwear.ReportParameters.Views {
[System.ComponentModel.ToolboxItem(true)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Эту строчку можно убрать. Она не нужна

<Left>10pt</Left>
<Height>12pt</Height>
<Width>3in</Width>
<Value>=Globals!PageNumber + ' of ' + Globals!TotalPages</Value>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут можно по русски "из"

var parameters = new Dictionary<string, object>();
using (var unitOfWork = UnitOfWorkFactory.CreateWithoutRoot()) {
var sizes = sizeService.GetSizeType(unitOfWork, onlyUseInEmployee: true).Take(6).ToList();
parameters.Add($"show_closed", showClosed);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем здесь $?

public class ClothingServiceReportViewModel: ReportParametersViewModelBase {
private readonly SizeService sizeService;

public ClothingServiceReportViewModel(RdlViewerViewModel rdlViewerViewModel, SizeService sizeService) : base(rdlViewerViewModel)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Как тут используется сервис размеров? Помоему это мусор.

return parameters;
}

private bool showClosed = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы лучше добавил диапазон дат, если галочка поставлена. Ну типо вариант только текущие. Или все за период. Ибо получать весть список за все время как будто бы никому не надо.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну да, как и говорили, сделать поле с датой в фильтре, чтотбы когда показываются закрытые можно было снизу список обрезать.

@Gankov
Copy link
Member

Gankov commented Jun 27, 2024

И еще надо скрывать этот пункт меню в той версии которая не поддерживает стирку.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Переключи окончания строк на crlf

CASE WHEN state = 'WaitService' THEN
'В ожидании'
WHEN state = 'InReceiptTerminal' THEN
'Принят терминалом'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю, лучше "В терминале приёма" как буд-то будет очевидее работнику сервиса.

return parameters;
}

private bool showClosed = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну да, как и говорили, сделать поле с датой в фильтре, чтотбы когда показываются закрытые можно было снизу список обрезать.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants