постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы

This commit is contained in:
2024-10-24 23:40:24 +03:00
parent f811d9b3ac
commit 36c11ac93f
153 changed files with 765 additions and 739 deletions

View File

@@ -43,8 +43,8 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
}
@Override
public void changedUpdate(DocumentEvent e) {
if (!Global.mainModule.getBugReport().state.equals(BugReportState.draft))
Global.mainModule.getBugReport().descriptionAdditionDraft =
if (!Global.componentsServer.db.bugReports.getUI().getCurrent().state.equals(BugReportState.draft))
Global.componentsServer.db.bugReports.getUI().getCurrent().descriptionAdditionDraft =
BugReportDescriptionAddition.getText();
}
};
@@ -57,8 +57,8 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
}
@Override
public void changedUpdate(DocumentEvent e) {
if (!Global.mainModule.getBugReport().state.equals(BugReportState.draft))
Global.mainModule.getBugReport().commentAdditionDraft = BugReportCommentAddition.getText();
if (!Global.componentsServer.db.bugReports.getUI().getCurrent().state.equals(BugReportState.draft))
Global.componentsServer.db.bugReports.getUI().getCurrent().commentAdditionDraft = BugReportCommentAddition.getText();
}
};
DocumentListener descriptionListener = new DocumentListener() {
@@ -70,10 +70,10 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
}
@Override
public void changedUpdate(DocumentEvent e) {
if (Global.mainModule.getBugReport().state.equals(BugReportState.draft))
Global.mainModule.getBugReport().description =
if (Global.componentsServer.db.bugReports.getUI().getCurrent().state.equals(BugReportState.draft))
Global.componentsServer.db.bugReports.getUI().getCurrent().description =
BugReportDescription.getText();
Global.componentsServer.db.bugReports.getUI().Refresh();
Global.componentsServer.db.bugReports.getUI().RedrawControl();
}
};
DocumentListener commentListener = new DocumentListener() {
@@ -85,8 +85,8 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
}
@Override
public void changedUpdate(DocumentEvent e) {
if (Global.mainModule.getBugReport().state.equals(BugReportState.draft))
Global.mainModule.getBugReport().comment = BugReportComment.getText();
if (Global.componentsServer.db.bugReports.getUI().getCurrent().state.equals(BugReportState.draft))
Global.componentsServer.db.bugReports.getUI().getCurrent().comment = BugReportComment.getText();
}
};
//-------------------------------------------
@@ -507,7 +507,7 @@ public class CallbackForm implements FormWithSplitters, CallbackWindow {
public void ShowCurrentBugReport() {
SwitchListeners(false);
// currentBugReportTabs.setSelectedIndex(0);
BugReport target = Global.mainModule.getBugReport();
BugReport target = Global.componentsServer.db.bugReports.getUI().getCurrent();
target.CheckSubscribers();
Global.componentsServer.db.subscribers.ShowUI();
//-