Skip to content

Commit

Permalink
Add UserService.java to gdbigdata-accessmiddleserver
Browse files Browse the repository at this point in the history
  • Loading branch information
826148267 committed Oct 13, 2024
1 parent d5a9b2b commit 71021c4
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
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 desktop/src/main/resources/edu.jnu.gdbddesktop/fxml/file_view.fxml
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>

0 comments on commit 71021c4

Please sign in to comment.