-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add UserService.java to gdbigdata-accessmiddleserver
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
desktop/src/main/java/edu/jnu/gdbddesktop/components/MyErrorAlert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package edu.jnu.gdbddesktop.components; | ||
|
||
import com.jfoenix.controls.JFXAlert; | ||
import com.jfoenix.controls.JFXButton; | ||
import com.jfoenix.controls.JFXDialogLayout; | ||
import edu.jnu.gdbddesktop.ServiceDesk; | ||
import javafx.scene.control.Label; | ||
import javafx.stage.Modality; | ||
|
||
/** | ||
* @作者: 郭梓繁 | ||
* @邮箱: [email protected] | ||
* @版本: 1.0 | ||
* @创建日期: 2023年05月05日 22时17分 | ||
* @功能描述: 错误弹窗组件 | ||
*/ | ||
public class MyErrorAlert { | ||
|
||
public MyErrorAlert(String message, String confirmButtonText) { | ||
JFXAlert< String> alert = new JFXAlert<>(ServiceDesk.getInstance().getStage()); | ||
alert.initModality(Modality.APPLICATION_MODAL); | ||
alert.setOverlayClose(false); | ||
JFXDialogLayout layout = new JFXDialogLayout(); | ||
layout.setHeading(new Label("错误")); | ||
layout.setBody(new Label(message)); | ||
JFXButton closeButton = new JFXButton(confirmButtonText); | ||
closeButton.getStyleClass().addAll("dialog-accept"); | ||
closeButton.setOnAction(event -> alert.hideWithAnimation()); | ||
layout.setActions(closeButton); | ||
alert.setContent(layout); | ||
alert.show(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
desktop/src/main/resources/edu.jnu.gdbddesktop/fxml/file_view.fxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.control.TableColumn?> | ||
<?import javafx.scene.control.TableView?> | ||
<?import javafx.scene.layout.AnchorPane?> | ||
|
||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="511.0" prefWidth="761.0" | ||
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" fx:controller="edu.jnu.gdbddesktop.controller.core.FileViewController"> | ||
<children> | ||
<TableView fx:id="filesTable" prefHeight="305.0" prefWidth="761.0"> | ||
<columns> | ||
<TableColumn fx:id="fileId" onEditStart="#fileIdOnEdit" prefWidth="190.25" text="文件id" /> | ||
<TableColumn fx:id="fileName" onEditStart="#fileNameOnEdit" prefWidth="190.25" text="文件名" /> | ||
<TableColumn fx:id="isFirstSaver" onEditStart="#firstSaverOnEdit" prefWidth="190.25" text="是否为第一个上传文件的用户" /> | ||
<TableColumn fx:id="signFileId" onEditStart="#signFileIdOnEdit" prefWidth="190.25" text="签名文件id" /> | ||
<TableColumn fx:id="auditParamsFileId" onEditStart="#auditParamsFileIdOnEdit" prefWidth="190.25" text="审计文件id" /> | ||
</columns> | ||
</TableView> | ||
<Button fx:id="refreshBtn" layoutX="340.9" layoutY="305" onAction="#refresh" prefWidth="79.2" styleClass="cf-success-but" text="刷新" /> | ||
</children> | ||
</AnchorPane> |