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

This commit is contained in:
2025-02-19 22:47:56 +03:00
parent 7a9c70f396
commit 4e3597ba7a
40 changed files with 234 additions and 530 deletions

View File

@@ -4,8 +4,6 @@ public interface CallbackWindow extends VisualizerForm {
void ShowAccount();
void ShowBugReports();
void ShowNoBugReports();
void ShowSubscribers();
void ShowNoSubscribers();
void ShowCurrentBugReport();
void ShowNoCurrentBugReport();
void ShowSubscription();
@@ -14,7 +12,6 @@ public interface CallbackWindow extends VisualizerForm {
ShowAccount();
ShowSubscription();
ShowBugReports();
ShowSubscribers();
}
String getBugReportDescriptionText();
String getBugReportDescriptionAdditionText();

View File

@@ -16,6 +16,7 @@ public class AdministrationForm implements FormWithSplitters, AdministrationWind
public AdministrationForm(){
LoadSplitters();
Global.componentsServer.credentials_db.userAccounts.mountUI(userAccountsPanel);
Global.componentsServer.credentials_db.workspaces.mountUI(workspacesPanel);
}
@Override
public void ShowAll() {

View File

@@ -418,7 +418,7 @@
</properties>
<border type="none"/>
<children>
<grid id="bd1dc" binding="subscribersPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
<grid id="bd1dc" binding="recipientsPanel" layout-manager="BorderLayout" hgap="0" vgap="0">
<constraints border-constraint="Center"/>
<properties/>
<border type="none"/>

View File

@@ -101,7 +101,7 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
private JPanel accountPanel;
private JPanel bugReportsPanel;
private JPanel filterFormPanel;
private JPanel subscribersPanel;
private JPanel recipientsPanel;
private JTabbedPane currentBugReportTabs;
private JScrollPane bugSettingsScroll;
private JCheckBox BugReportsMyOnlyFilter;
@@ -153,8 +153,7 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
SwitchScreen(Global.normalProperties.SmallScreen);
//-
Global.componentsServer.db.bugReports.mountUI(bugReportsPanel);
Global.componentsServer.db.subscribers.mountUI(subscribersPanel);
// Global.componentsServer.db.workspaces.mountUI(workspacesPanel);
Global.componentsServer.db.recipients.mountUI(recipientsPanel);
//-
if (!Global.mainModule.getPass(PassCode.CheckAccount).isDone()) {
accountTools.add(Global.mainModule.getPass(PassCode.CheckAccount).createButton());
@@ -457,19 +456,12 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
@Override
public void ShowBugReports() {
Global.componentsServer.db.bugReports.ShowUI();
Global.componentsServer.db.recipients.ShowUI();
}
@Override
public void ShowNoBugReports() {
Global.componentsServer.db.bugReports.ClearUI();
}
@Override
public void ShowSubscribers() {
Global.componentsServer.db.subscribers.ShowUI();
}
@Override
public void ShowNoSubscribers() {
Global.componentsServer.db.subscribers.ClearUI();
}
private void ShowDraft() {
Global.mainModule.setPassesControlsVisible(true,
PassCode.PublishBugReport,
@@ -545,8 +537,8 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
SwitchListeners(false);
// currentBugReportTabs.setSelectedIndex(0);
BugReport target = Global.componentsServer.db.bugReports.getUI().getCurrent();
target.CheckSubscribers();
Global.componentsServer.db.subscribers.ShowUI();
// target.CheckSubscribers();
// Global.componentsServer.db.subscribers.ShowUI();
//-
BugReportDescription.setText(target.description);
BugReportDescription.ShowBegin();
@@ -582,7 +574,7 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
@Override
public void ShowNoCurrentBugReport() {
SwitchListeners(false);
Global.componentsServer.db.subscribers.ShowUI();
// Global.componentsServer.db.subscribers.ShowUI();
//-
BugReportDescription.setText("");
BugReportComment.setText("");