|
|
@ -52,475 +52,475 @@ import javafx.scene.layout.StackPane;
|
|
|
|
|
|
|
|
|
|
|
|
public class SearchSapController extends KFXPanelController {
|
|
|
|
public class SearchSapController extends KFXPanelController {
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TitledPane tp_result;
|
|
|
|
private TitledPane tp_result;
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_closeAll;
|
|
|
|
private Button bt_closeAll;
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TitledPane mxtjPane;
|
|
|
|
private TitledPane mxtjPane;
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private GridPane bt_cx; // 按钮的pane
|
|
|
|
private GridPane bt_cx; // 按钮的pane
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_close; // 关闭
|
|
|
|
private Button bt_close; // 关闭
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_czcx;// 重置查询
|
|
|
|
private Button bt_czcx;// 重置查询
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private StackPane stackPane;
|
|
|
|
private StackPane stackPane;
|
|
|
|
|
|
|
|
|
|
|
|
// table的列
|
|
|
|
// table的列
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_xh;
|
|
|
|
private TableColumn<SumTableBean, String> tc_xh;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_zrws;
|
|
|
|
private TableColumn<SumTableBean, String> tc_zrws;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_rwh;
|
|
|
|
private TableColumn<SumTableBean, String> tc_rwh;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_fqsj;
|
|
|
|
private TableColumn<SumTableBean, String> tc_fqsj;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_fqr;
|
|
|
|
private TableColumn<SumTableBean, String> tc_fqr;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_status;
|
|
|
|
private TableColumn<SumTableBean, String> tc_status;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, Object> tc_log;
|
|
|
|
private TableColumn<SumTableBean, Object> tc_log;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_sapState;
|
|
|
|
private TableColumn<SumTableBean, String> tc_sapState;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, String> tc_plm;
|
|
|
|
private TableColumn<SumTableBean, String> tc_plm;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableColumn<SumTableBean, Object> tc_result;
|
|
|
|
private TableColumn<SumTableBean, Object> tc_result;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TitledPane tp_sxtj;// 筛选条件pane
|
|
|
|
private TitledPane tp_sxtj;// 筛选条件pane
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TitledPane rwtjPane; // 任务条件pane
|
|
|
|
private TitledPane rwtjPane; // 任务条件pane
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private GridPane gridPane; // 第一个pane插入日期控件
|
|
|
|
private GridPane gridPane; // 第一个pane插入日期控件
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_bh; // 文本 任务编号
|
|
|
|
private TextField tx_bh; // 文本 任务编号
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private ComboBox<String> cb_factory; // 工厂下拉
|
|
|
|
private ComboBox<String> cb_factory; // 工厂下拉
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_wbs; // wbs号
|
|
|
|
private TextField tx_wbs; // wbs号
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private ComboBox<String> cb_status; // 数据状态
|
|
|
|
private ComboBox<String> cb_status; // 数据状态
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_user;// 发起人
|
|
|
|
private TextField tx_user;// 发起人
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private ComboBox<String> cb_sapState; // sap处理结果
|
|
|
|
private ComboBox<String> cb_sapState; // sap处理结果
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_projectName;// 项目名称
|
|
|
|
private TextField tx_projectName;// 项目名称
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private CheckBox bt_errTask;// 查询错误任务
|
|
|
|
private CheckBox bt_errTask;// 查询错误任务
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private CheckBox bt_errMsg; // 单个BOM错误信息
|
|
|
|
private CheckBox bt_errMsg; // 单个BOM错误信息
|
|
|
|
// 明细条件
|
|
|
|
// 明细条件
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private ComboBox<String> tx_sapStatus;// sap数据状态
|
|
|
|
private ComboBox<String> tx_sapStatus;// sap数据状态
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_pcode;// 父物料编码
|
|
|
|
private TextField tx_pcode;// 父物料编码
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_wbsMx;// wbs
|
|
|
|
private TextField tx_wbsMx;// wbs
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_sapReturn;// sap返回信息
|
|
|
|
private TextField tx_sapReturn;// sap返回信息
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TextField tx_batchNum;// 批次号
|
|
|
|
private TextField tx_batchNum;// 批次号
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_wy; // 按钮尾页
|
|
|
|
private Button bt_wy; // 按钮尾页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_syy; // 上一页
|
|
|
|
private Button bt_syy; // 上一页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_xyy;// 下一页
|
|
|
|
private Button bt_xyy;// 下一页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_sy;// 首页
|
|
|
|
private Button bt_sy;// 首页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private Button bt_search;
|
|
|
|
private Button bt_search;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private TableView<SumTableBean> tableView;
|
|
|
|
private TableView<SumTableBean> tableView;
|
|
|
|
|
|
|
|
|
|
|
|
// 全部关闭
|
|
|
|
// 全部关闭
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void clossAll(ActionEvent event) {
|
|
|
|
void clossAll(ActionEvent event) {
|
|
|
|
frame.dispose();
|
|
|
|
frame.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String getCombText(Object comb) {
|
|
|
|
String getCombText(Object comb) {
|
|
|
|
String textVal = "";
|
|
|
|
String textVal = "";
|
|
|
|
if (comb instanceof TextField) {
|
|
|
|
if (comb instanceof TextField) {
|
|
|
|
textVal = ((TextField) comb).getText();
|
|
|
|
textVal = ((TextField) comb).getText();
|
|
|
|
} else if (comb instanceof ComboBox) {
|
|
|
|
} else if (comb instanceof ComboBox) {
|
|
|
|
SingleSelectionModel<?> selectionModel = ((ComboBox<?>) comb).getSelectionModel();
|
|
|
|
SingleSelectionModel<?> selectionModel = ((ComboBox<?>) comb).getSelectionModel();
|
|
|
|
if (selectionModel.getSelectedIndex() >= 0) {
|
|
|
|
if (selectionModel.getSelectedIndex() >= 0) {
|
|
|
|
textVal = ((ComboBox<?>) comb).getSelectionModel().getSelectedItem().toString();
|
|
|
|
textVal = ((ComboBox<?>) comb).getSelectionModel().getSelectedItem().toString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (comb instanceof CheckBox) {
|
|
|
|
} else if (comb instanceof CheckBox) {
|
|
|
|
boolean selected = ((CheckBox) comb).isSelected();
|
|
|
|
boolean selected = ((CheckBox) comb).isSelected();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return textVal;
|
|
|
|
return textVal;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private int pageNum;// 分页显示当前第几页
|
|
|
|
private int pageNum;// 分页显示当前第几页
|
|
|
|
private List<List<SumTableBean>> tableBeans = new ArrayList<List<SumTableBean>>();
|
|
|
|
private List<List<SumTableBean>> tableBeans = new ArrayList<List<SumTableBean>>();
|
|
|
|
|
|
|
|
|
|
|
|
// 查询操作
|
|
|
|
// 查询操作
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void searchAction(ActionEvent event) {
|
|
|
|
void searchAction(ActionEvent event) {
|
|
|
|
// 拼接查询语句
|
|
|
|
// 拼接查询语句
|
|
|
|
StringBuilder sql = new StringBuilder(
|
|
|
|
StringBuilder sql = new StringBuilder(
|
|
|
|
"select \"CODE\",\"USER\",STARTTIME,\"NUMBER\",SAPRESULT,DATASTATUS,PLMRESULT,LOGURL from CHINT_BOM_TO_SAP_SUM where 1=1");
|
|
|
|
"select \"CODE\",\"USER\",STARTTIME,\"NUMBER\",SAPRESULT,DATASTATUS,PLMRESULT,LOGURL from CHINT_BOM_TO_SAP_SUM where 1=1");
|
|
|
|
String code = getCombText(tx_bh);
|
|
|
|
String code = getCombText(tx_bh);
|
|
|
|
if (!code.isEmpty()) {
|
|
|
|
if (!code.isEmpty()) {
|
|
|
|
sql.append(" and \"CODE\" = '").append(code).append("'");
|
|
|
|
sql.append(" and \"CODE\" = '").append(code).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String factory = getCombText(cb_factory);
|
|
|
|
String factory = getCombText(cb_factory);
|
|
|
|
if (!factory.isEmpty()) {
|
|
|
|
if (!factory.isEmpty()) {
|
|
|
|
sql.append(" and factory = '").append(factory).append("'");
|
|
|
|
sql.append(" and factory = '").append(factory).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String wbsno = getCombText(tx_wbs);
|
|
|
|
String wbsno = getCombText(tx_wbs);
|
|
|
|
if (!wbsno.isEmpty()) {
|
|
|
|
if (!wbsno.isEmpty()) {
|
|
|
|
sql.append(" and wbsno = '").append(wbsno).append("'");
|
|
|
|
sql.append(" and wbsno = '").append(wbsno).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String datastatus = getCombText(cb_status);
|
|
|
|
String datastatus = getCombText(cb_status);
|
|
|
|
if (!datastatus.isEmpty()) {
|
|
|
|
if (!datastatus.isEmpty()) {
|
|
|
|
sql.append(" and datastatus = '").append(datastatus).append("'");
|
|
|
|
sql.append(" and datastatus = '").append(datastatus).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String user = getCombText(tx_user);
|
|
|
|
String user = getCombText(tx_user);
|
|
|
|
System.out.println("user==>" + user);
|
|
|
|
System.out.println("user==>" + user);
|
|
|
|
if (!user.isEmpty()) {
|
|
|
|
if (!user.isEmpty()) {
|
|
|
|
sql.append(" and \"USER\" = '").append(user).append("'");
|
|
|
|
sql.append(" and \"USER\" = '").append(user).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String sapresult = getCombText(cb_sapState);
|
|
|
|
String sapresult = getCombText(cb_sapState);
|
|
|
|
if (!sapresult.isEmpty()) {
|
|
|
|
if (!sapresult.isEmpty()) {
|
|
|
|
sql.append(" and sapresult = '").append(sapresult).append("'");
|
|
|
|
sql.append(" and sapresult = '").append(sapresult).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String projectno = getCombText(tx_projectName);
|
|
|
|
String projectno = getCombText(tx_projectName);
|
|
|
|
if (!projectno.isEmpty()) {
|
|
|
|
if (!projectno.isEmpty()) {
|
|
|
|
sql.append(" and projectno = '").append(projectno).append("'");
|
|
|
|
sql.append(" and projectno = '").append(projectno).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (bt_errTask.isSelected()) {
|
|
|
|
if (bt_errTask.isSelected()) {
|
|
|
|
sql.append(" and SAPRESULT = '部分失败' ");
|
|
|
|
sql.append(" and SAPRESULT = '部分失败' ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ObjectProperty<LocalDateTime> dateTimeProperty = dateTimeStart.dateTimeProperty();
|
|
|
|
ObjectProperty<LocalDateTime> dateTimeProperty = dateTimeStart.dateTimeProperty();
|
|
|
|
if (dateTimeProperty != null && dateTimeProperty.get() != null) {
|
|
|
|
if (dateTimeProperty != null && dateTimeProperty.get() != null) {
|
|
|
|
String startTime = dateTimeProperty.get().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
String startTime = dateTimeProperty.get().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
sql.append(" and starttime >= to_date('").append(startTime).append("','yyyy-mm-ddhh24:mi:ss') "); // to_date(?,'yyyy-mm-ddhh24:mi:ss')
|
|
|
|
sql.append(" and starttime >= to_date('").append(startTime).append("','yyyy-mm-ddhh24:mi:ss') "); // to_date(?,'yyyy-mm-ddhh24:mi:ss')
|
|
|
|
System.out.println("startTime==>" + startTime);
|
|
|
|
System.out.println("startTime==>" + startTime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ObjectProperty<LocalDateTime> dateTimeProperty2 = dateTimeEnd.dateTimeProperty();
|
|
|
|
ObjectProperty<LocalDateTime> dateTimeProperty2 = dateTimeEnd.dateTimeProperty();
|
|
|
|
if (dateTimeProperty2 != null && dateTimeProperty2.get() != null) {
|
|
|
|
if (dateTimeProperty2 != null && dateTimeProperty2.get() != null) {
|
|
|
|
String endTime = dateTimeProperty2.get().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
String endTime = dateTimeProperty2.get().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
|
sql.append(" and starttime <= to_date('").append(endTime).append("','yyyy-mm-ddhh24:mi:ss') "); // to_date(?,'yyyy-mm-ddhh24:mi:ss')
|
|
|
|
sql.append(" and starttime <= to_date('").append(endTime).append("','yyyy-mm-ddhh24:mi:ss') "); // to_date(?,'yyyy-mm-ddhh24:mi:ss')
|
|
|
|
System.out.println("endTime==>" + endTime);
|
|
|
|
System.out.println("endTime==>" + endTime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 拼接DETAILS表的SQL信息
|
|
|
|
// 拼接DETAILS表的SQL信息
|
|
|
|
StringBuilder detailSql = new StringBuilder("");
|
|
|
|
StringBuilder detailSql = new StringBuilder("");
|
|
|
|
String batchNum = getCombText(tx_batchNum);
|
|
|
|
String batchNum = getCombText(tx_batchNum);
|
|
|
|
if (!batchNum.isEmpty()) {
|
|
|
|
if (!batchNum.isEmpty()) {
|
|
|
|
detailSql.append(" and batchnumber = '").append(batchNum).append("'");
|
|
|
|
detailSql.append(" and batchnumber = '").append(batchNum).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String wbsnoDetail = getCombText(tx_wbsMx);
|
|
|
|
String wbsnoDetail = getCombText(tx_wbsMx);
|
|
|
|
if (!wbsnoDetail.isEmpty()) {
|
|
|
|
if (!wbsnoDetail.isEmpty()) {
|
|
|
|
detailSql.append(" and wbsno = '").append(wbsnoDetail).append("'");
|
|
|
|
detailSql.append(" and wbsno = '").append(wbsnoDetail).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String message = getCombText(tx_sapReturn);
|
|
|
|
String message = getCombText(tx_sapReturn);
|
|
|
|
if (!message.isEmpty()) {
|
|
|
|
if (!message.isEmpty()) {
|
|
|
|
detailSql.append(" and message like '%").append(message).append("%'");
|
|
|
|
detailSql.append(" and message like '%").append(message).append("%'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String productmaterialno = getCombText(tx_pcode);
|
|
|
|
String productmaterialno = getCombText(tx_pcode);
|
|
|
|
if (!productmaterialno.isEmpty()) {
|
|
|
|
if (!productmaterialno.isEmpty()) {
|
|
|
|
detailSql.append(" and productmaterialno like '%").append(productmaterialno).append("%'");
|
|
|
|
detailSql.append(" and productmaterialno like '%").append(productmaterialno).append("%'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
String status = getCombText(tx_sapStatus);
|
|
|
|
String status = getCombText(tx_sapStatus);
|
|
|
|
if (!status.isEmpty()) {
|
|
|
|
if (!status.isEmpty()) {
|
|
|
|
if (status.equals("成功")) {
|
|
|
|
if (status.equals("成功")) {
|
|
|
|
status = "S";
|
|
|
|
status = "S";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
status = "E";
|
|
|
|
status = "E";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
detailSql.append(" and status = '").append(status).append("'");
|
|
|
|
detailSql.append(" and status = '").append(status).append("'");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String[] prefs = ChintPreferenceUtil.getPreferences("database_tc", session);
|
|
|
|
String[] prefs = ChintPreferenceUtil.getPreferences("database_tc", session);
|
|
|
|
SqlUtil.getTCDataConnection(prefs);
|
|
|
|
SqlUtil.getTCDataConnection(prefs);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
tableBeans.clear();
|
|
|
|
tableBeans.clear();
|
|
|
|
sql.append(" order by \"CODE\" asc ");
|
|
|
|
sql.append(" order by \"CODE\" asc ");
|
|
|
|
System.out.println("read==>" + sql);
|
|
|
|
System.out.println("read==>" + sql);
|
|
|
|
ResultSet read = SqlUtil.read(sql.toString());
|
|
|
|
ResultSet read = SqlUtil.read(sql.toString());
|
|
|
|
int i = 1;
|
|
|
|
int i = 1;
|
|
|
|
List<SumTableBean> beanList = null;
|
|
|
|
List<SumTableBean> beanList = null;
|
|
|
|
while (read.next()) {
|
|
|
|
while (read.next()) {
|
|
|
|
// 分页 20 查询结果放入表格
|
|
|
|
// 分页 20 查询结果放入表格
|
|
|
|
System.out.println("read==>" + read.getInt(4));
|
|
|
|
System.out.println("read==>" + read.getInt(4));
|
|
|
|
SumTableBean sumBean = new SumTableBean(new SimpleIntegerProperty(i),
|
|
|
|
SumTableBean sumBean = new SumTableBean(new SimpleIntegerProperty(i),
|
|
|
|
new SimpleStringProperty(String.valueOf(read.getInt(1))),
|
|
|
|
new SimpleStringProperty(String.valueOf(read.getInt(1))),
|
|
|
|
new SimpleStringProperty(read.getString(2)), new SimpleStringProperty(read.getString(3)),
|
|
|
|
new SimpleStringProperty(read.getString(2)), new SimpleStringProperty(read.getString(3)),
|
|
|
|
new SimpleStringProperty(String.valueOf(read.getInt(4))),
|
|
|
|
new SimpleStringProperty(String.valueOf(read.getInt(4))),
|
|
|
|
new SimpleStringProperty(read.getString(5)), new SimpleStringProperty(read.getString(6)),
|
|
|
|
new SimpleStringProperty(read.getString(5)), new SimpleStringProperty(read.getString(6)),
|
|
|
|
new SimpleStringProperty(read.getString(7)), bt_errMsg.isSelected(), detailSql, prefs, code,
|
|
|
|
new SimpleStringProperty(read.getString(7)), bt_errMsg.isSelected(), detailSql, prefs, code,
|
|
|
|
read.getString(8));
|
|
|
|
read.getString(8));
|
|
|
|
if (i % 20 == 1) {
|
|
|
|
if (i % 20 == 1) {
|
|
|
|
beanList = new ArrayList<SumTableBean>();
|
|
|
|
beanList = new ArrayList<SumTableBean>();
|
|
|
|
tableBeans.add(beanList);
|
|
|
|
tableBeans.add(beanList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
beanList.add(sumBean);
|
|
|
|
beanList.add(sumBean);
|
|
|
|
i = i + 1;
|
|
|
|
i = i + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (tableBeans.size() == 0) {
|
|
|
|
if (tableBeans.size() == 0) {
|
|
|
|
MessageBox.post(frame,"未查询到传递记录.", "提示", 2);
|
|
|
|
MessageBox.post(frame, "未查询到传递记录.", "提示", 2);
|
|
|
|
beanList = new ArrayList<SumTableBean>();
|
|
|
|
beanList = new ArrayList<SumTableBean>();
|
|
|
|
tableBeans.add(beanList);
|
|
|
|
tableBeans.add(beanList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pageNum = 0;
|
|
|
|
pageNum = 0;
|
|
|
|
System.out.println("beanList==>" + beanList.size());
|
|
|
|
System.out.println("beanList==>" + beanList.size());
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(0));
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(0));
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.setItems(data);
|
|
|
|
tableView.setItems(data);
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
e.printStackTrace();
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
SqlUtil.freeAll();
|
|
|
|
SqlUtil.freeAll();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if(bt_errMsg)
|
|
|
|
// if(bt_errMsg)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private ScrollPane scrollPane;
|
|
|
|
private ScrollPane scrollPane;
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private BorderPane resultBorder;
|
|
|
|
private BorderPane resultBorder;
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
private BorderPane topBorder;
|
|
|
|
private BorderPane topBorder;
|
|
|
|
private SapResultFrame frame;
|
|
|
|
private SapResultFrame frame;
|
|
|
|
private DateTimePicker dateTimeStart;
|
|
|
|
private DateTimePicker dateTimeStart;
|
|
|
|
private DateTimePicker dateTimeEnd;
|
|
|
|
private DateTimePicker dateTimeEnd;
|
|
|
|
protected AbstractAIFApplication app;
|
|
|
|
protected AbstractAIFApplication app;
|
|
|
|
private TCSession session;
|
|
|
|
private TCSession session;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void initData(KFXPanel paramKFXPanel) throws Exception {
|
|
|
|
public void initData(KFXPanel paramKFXPanel) throws Exception {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
frame = (SapResultFrame) paramKFXPanel.getParentDialog();
|
|
|
|
frame = (SapResultFrame) paramKFXPanel.getParentDialog();
|
|
|
|
addWindListener(frame);
|
|
|
|
addWindListener(frame);
|
|
|
|
frame.setMaximumSize(frame.getMaximumSize());
|
|
|
|
frame.setMaximumSize(frame.getMaximumSize());
|
|
|
|
System.out.println("frame==>" + frame);
|
|
|
|
System.out.println("frame==>" + frame);
|
|
|
|
this.app = AIFUtility.getCurrentApplication();
|
|
|
|
this.app = AIFUtility.getCurrentApplication();
|
|
|
|
this.session = (TCSession) app.getSession();
|
|
|
|
this.session = (TCSession) app.getSession();
|
|
|
|
dateTimeStart = new DateTimePicker();
|
|
|
|
dateTimeStart = new DateTimePicker();
|
|
|
|
dateTimeEnd = new DateTimePicker();
|
|
|
|
dateTimeEnd = new DateTimePicker();
|
|
|
|
gridPane.add(dateTimeStart, 1, 3);
|
|
|
|
gridPane.add(dateTimeStart, 1, 3);
|
|
|
|
gridPane.add(dateTimeEnd, 1, 4);
|
|
|
|
gridPane.add(dateTimeEnd, 1, 4);
|
|
|
|
initCombox();
|
|
|
|
initCombox();
|
|
|
|
|
|
|
|
|
|
|
|
// 表格列绑定bean对象
|
|
|
|
// 表格列绑定bean对象
|
|
|
|
tc_xh.setSortable(false);
|
|
|
|
tc_xh.setSortable(false);
|
|
|
|
tc_zrws.setSortable(false);
|
|
|
|
tc_zrws.setSortable(false);
|
|
|
|
tc_rwh.setSortable(false);
|
|
|
|
tc_rwh.setSortable(false);
|
|
|
|
tc_fqsj.setSortable(false);
|
|
|
|
tc_fqsj.setSortable(false);
|
|
|
|
tc_fqr.setSortable(false);
|
|
|
|
tc_fqr.setSortable(false);
|
|
|
|
tc_status.setSortable(false);
|
|
|
|
tc_status.setSortable(false);
|
|
|
|
tc_log.setSortable(false);
|
|
|
|
tc_log.setSortable(false);
|
|
|
|
tc_sapState.setSortable(false);
|
|
|
|
tc_sapState.setSortable(false);
|
|
|
|
tc_plm.setSortable(false);
|
|
|
|
tc_plm.setSortable(false);
|
|
|
|
tc_result.setSortable(false);
|
|
|
|
tc_result.setSortable(false);
|
|
|
|
// 列绑定bean对象
|
|
|
|
// 列绑定bean对象
|
|
|
|
tc_xh.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("num"));
|
|
|
|
tc_xh.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("num"));
|
|
|
|
tc_zrws.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("cTaskNum"));// cTaskNum
|
|
|
|
tc_zrws.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("cTaskNum"));// cTaskNum
|
|
|
|
tc_rwh.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("taskNo"));
|
|
|
|
tc_rwh.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("taskNo"));
|
|
|
|
tc_fqsj.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("startTime"));
|
|
|
|
tc_fqsj.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("startTime"));
|
|
|
|
tc_fqr.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("user"));
|
|
|
|
tc_fqr.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("user"));
|
|
|
|
tc_status.setCellValueFactory(new PropertyValueFactory<>("dataStatus"));
|
|
|
|
tc_status.setCellValueFactory(new PropertyValueFactory<>("dataStatus"));
|
|
|
|
tc_log.setCellValueFactory(new PropertyValueFactory<SumTableBean, Object>("logDownload"));
|
|
|
|
tc_log.setCellValueFactory(new PropertyValueFactory<SumTableBean, Object>("logDownload"));
|
|
|
|
tc_sapState.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("sapResult"));
|
|
|
|
tc_sapState.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("sapResult"));
|
|
|
|
tc_plm.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("plmResult"));
|
|
|
|
tc_plm.setCellValueFactory(new PropertyValueFactory<SumTableBean, String>("plmResult"));
|
|
|
|
tc_result.setCellValueFactory(new PropertyValueFactory<SumTableBean, Object>("details"));
|
|
|
|
tc_result.setCellValueFactory(new PropertyValueFactory<SumTableBean, Object>("details"));
|
|
|
|
|
|
|
|
|
|
|
|
tc_xh.prefWidthProperty().bind(tableView.widthProperty().multiply(0.05));
|
|
|
|
tc_xh.prefWidthProperty().bind(tableView.widthProperty().multiply(0.05));
|
|
|
|
tc_zrws.prefWidthProperty().bind(tableView.widthProperty().multiply(0.08));
|
|
|
|
tc_zrws.prefWidthProperty().bind(tableView.widthProperty().multiply(0.08));
|
|
|
|
tc_rwh.prefWidthProperty().bind(tableView.widthProperty().multiply(0.12));
|
|
|
|
tc_rwh.prefWidthProperty().bind(tableView.widthProperty().multiply(0.12));
|
|
|
|
tc_fqsj.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_fqsj.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_fqr.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_fqr.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_status.prefWidthProperty().bind(tableView.widthProperty().multiply(0.15));
|
|
|
|
tc_status.prefWidthProperty().bind(tableView.widthProperty().multiply(0.15));
|
|
|
|
tc_log.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_log.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_sapState.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_sapState.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_plm.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_plm.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_result.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
tc_result.prefWidthProperty().bind(tableView.widthProperty().multiply(0.1));
|
|
|
|
|
|
|
|
|
|
|
|
tp_result.setCollapsible(false);
|
|
|
|
tp_result.setCollapsible(false);
|
|
|
|
mxtjPane.setCollapsible(false);
|
|
|
|
mxtjPane.setCollapsible(false);
|
|
|
|
tp_sxtj.setCollapsible(false);
|
|
|
|
tp_sxtj.setCollapsible(false);
|
|
|
|
rwtjPane.setCollapsible(false);
|
|
|
|
rwtjPane.setCollapsible(false);
|
|
|
|
|
|
|
|
|
|
|
|
tc_sapState.setCellFactory(column -> {
|
|
|
|
tc_sapState.setCellFactory(column -> {
|
|
|
|
return new TableCell<SumTableBean, String>() {
|
|
|
|
return new TableCell<SumTableBean, String>() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected void updateItem(String item, boolean empty) {
|
|
|
|
protected void updateItem(String item, boolean empty) {
|
|
|
|
super.updateItem(item, empty);
|
|
|
|
super.updateItem(item, empty);
|
|
|
|
if (item != null && !empty && !item.isEmpty()) {
|
|
|
|
if (item != null && !empty && !item.isEmpty()) {
|
|
|
|
// double contrastPrice = Double.parseDouble(item);
|
|
|
|
// double contrastPrice = Double.parseDouble(item);
|
|
|
|
if (item.equals("未返回")) {
|
|
|
|
if (item.equals("未返回")) {
|
|
|
|
// 不做格式
|
|
|
|
// 不做格式
|
|
|
|
setStyle("-fx-background-color: #ffff99;");
|
|
|
|
setStyle("-fx-background-color: #ffff99;");
|
|
|
|
} else if (item.equals("部分失败")) {
|
|
|
|
} else if (item.equals("部分失败")) {
|
|
|
|
setStyle("-fx-background-color: #FF6600;");
|
|
|
|
setStyle("-fx-background-color: #FF6600;");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
setStyle("-fx-background-color: #A9D08E;");
|
|
|
|
setStyle("-fx-background-color: #A9D08E;");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setText(getItem());
|
|
|
|
setText(getItem());
|
|
|
|
setAlignment(Pos.CENTER); // 设置单元格内容居中对齐
|
|
|
|
setAlignment(Pos.CENTER); // 设置单元格内容居中对齐
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
setStyle("");
|
|
|
|
setStyle("");
|
|
|
|
setText(empty ? null : getItem());
|
|
|
|
setText(empty ? null : getItem());
|
|
|
|
setAlignment(Pos.CENTER); // 设置单元格内容居中对齐
|
|
|
|
setAlignment(Pos.CENTER); // 设置单元格内容居中对齐
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// tableView.setMaxHeight(pageNum);
|
|
|
|
// tableView.setMaxHeight(pageNum);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 初始化下拉框内容
|
|
|
|
// 初始化下拉框内容
|
|
|
|
private void initCombox() {
|
|
|
|
private void initCombox() {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
List<String> factoryList = new ArrayList<String>();
|
|
|
|
List<String> factoryList = new ArrayList<String>();
|
|
|
|
factoryList.add("M040");
|
|
|
|
factoryList.add("M040");
|
|
|
|
cb_factory.getItems().addAll(factoryList);
|
|
|
|
cb_factory.getItems().addAll(factoryList);
|
|
|
|
List<String> statusList = new ArrayList<String>();
|
|
|
|
List<String> statusList = new ArrayList<String>();
|
|
|
|
statusList.add("数据检查未通过");
|
|
|
|
statusList.add("数据检查未通过");
|
|
|
|
statusList.add("数据正常推送SAP");
|
|
|
|
statusList.add("数据正常推送SAP");
|
|
|
|
statusList.add("数据未正常推送SAP");
|
|
|
|
statusList.add("数据未正常推送SAP");
|
|
|
|
cb_status.getItems().addAll(statusList);
|
|
|
|
cb_status.getItems().addAll(statusList);
|
|
|
|
List<String> sapStateList = new ArrayList<String>();
|
|
|
|
List<String> sapStateList = new ArrayList<String>();
|
|
|
|
sapStateList.add("PLM数据检查未通过");
|
|
|
|
sapStateList.add("PLM数据检查未通过");
|
|
|
|
sapStateList.add("未返回");
|
|
|
|
sapStateList.add("未返回");
|
|
|
|
sapStateList.add("处理中");
|
|
|
|
sapStateList.add("处理中");
|
|
|
|
sapStateList.add("全部成功");
|
|
|
|
sapStateList.add("全部成功");
|
|
|
|
sapStateList.add("部分失败");
|
|
|
|
sapStateList.add("部分失败");
|
|
|
|
cb_sapState.getItems().addAll(sapStateList);
|
|
|
|
cb_sapState.getItems().addAll(sapStateList);
|
|
|
|
List<String> sapStatusList = new ArrayList<String>();
|
|
|
|
List<String> sapStatusList = new ArrayList<String>();
|
|
|
|
sapStatusList.add("成功");
|
|
|
|
sapStatusList.add("成功");
|
|
|
|
sapStatusList.add("失败");
|
|
|
|
sapStatusList.add("失败");
|
|
|
|
tx_sapStatus.getItems().addAll(sapStatusList);
|
|
|
|
tx_sapStatus.getItems().addAll(sapStatusList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 跳转首页
|
|
|
|
// 跳转首页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void firstBtnAction(ActionEvent event) {
|
|
|
|
void firstBtnAction(ActionEvent event) {
|
|
|
|
pageNum = 0;
|
|
|
|
pageNum = 0;
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(0));
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(0));
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.setItems(data);
|
|
|
|
tableView.setItems(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 跳转上一页
|
|
|
|
// 跳转上一页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void lastBtnAction(ActionEvent event) {
|
|
|
|
void lastBtnAction(ActionEvent event) {
|
|
|
|
if (pageNum > 0) {
|
|
|
|
if (pageNum > 0) {
|
|
|
|
pageNum = pageNum - 1;
|
|
|
|
pageNum = pageNum - 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(pageNum));
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(pageNum));
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.setItems(data);
|
|
|
|
tableView.setItems(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 跳转下一页
|
|
|
|
// 跳转下一页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void nextBtnAction(ActionEvent event) {
|
|
|
|
void nextBtnAction(ActionEvent event) {
|
|
|
|
if (pageNum < tableBeans.size() - 1) {
|
|
|
|
if (pageNum < tableBeans.size() - 1) {
|
|
|
|
pageNum = pageNum + 1;
|
|
|
|
pageNum = pageNum + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(pageNum));
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(pageNum));
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.setItems(data);
|
|
|
|
tableView.setItems(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 跳转尾页
|
|
|
|
// 跳转尾页
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void tailBtnAction(ActionEvent event) {
|
|
|
|
void tailBtnAction(ActionEvent event) {
|
|
|
|
pageNum = tableBeans.size() - 1;
|
|
|
|
pageNum = tableBeans.size() - 1;
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(pageNum));
|
|
|
|
ObservableList<SumTableBean> data = FXCollections.observableArrayList(tableBeans.get(pageNum));
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.getItems().clear();
|
|
|
|
tableView.setItems(data);
|
|
|
|
tableView.setItems(data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @param frame
|
|
|
|
* @param frame
|
|
|
|
* @function 添加页面的监听
|
|
|
|
* @function 添加页面的监听
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void addWindListener(SapResultFrame frame) {
|
|
|
|
private void addWindListener(SapResultFrame frame) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
frame.addComponentListener(new ComponentListener() {
|
|
|
|
frame.addComponentListener(new ComponentListener() {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void componentShown(ComponentEvent e) {
|
|
|
|
public void componentShown(ComponentEvent e) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void componentResized(ComponentEvent e) {
|
|
|
|
public void componentResized(ComponentEvent e) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// System.out.println("==============");
|
|
|
|
// System.out.println("==============");
|
|
|
|
Component component = e.getComponent();
|
|
|
|
Component component = e.getComponent();
|
|
|
|
System.out.println("component==>" + component);
|
|
|
|
System.out.println("component==>" + component);
|
|
|
|
double width = component.getSize().getWidth();
|
|
|
|
double width = component.getSize().getWidth();
|
|
|
|
// // double width = primaryStage.getWidth();
|
|
|
|
// // double width = primaryStage.getWidth();
|
|
|
|
System.out.println("width==>" + width);
|
|
|
|
System.out.println("width==>" + width);
|
|
|
|
scrollPane.setPrefWidth(width * 0.98);
|
|
|
|
scrollPane.setPrefWidth(width * 0.98);
|
|
|
|
topBorder.setPrefWidth(width * 0.98);
|
|
|
|
topBorder.setPrefWidth(width * 0.98);
|
|
|
|
tp_sxtj.setPrefWidth(width * 0.98);
|
|
|
|
tp_sxtj.setPrefWidth(width * 0.98);
|
|
|
|
resultBorder.setPrefWidth(width * 0.98);
|
|
|
|
resultBorder.setPrefWidth(width * 0.98);
|
|
|
|
gridPane.setPrefWidth(width * 0.98);
|
|
|
|
gridPane.setPrefWidth(width * 0.98);
|
|
|
|
tableView.setPrefWidth(width * 0.97);
|
|
|
|
tableView.setPrefWidth(width * 0.97);
|
|
|
|
// refTable.setPrefWidth(width * 0.97);
|
|
|
|
// refTable.setPrefWidth(width * 0.97);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void componentMoved(ComponentEvent e) {
|
|
|
|
public void componentMoved(ComponentEvent e) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void componentHidden(ComponentEvent e) {
|
|
|
|
public void componentHidden(ComponentEvent e) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void resetClick(ActionEvent event) {
|
|
|
|
void resetClick(ActionEvent event) {
|
|
|
|
tx_bh.setText("");
|
|
|
|
tx_bh.setText("");
|
|
|
|
cb_sapState.getSelectionModel().clearSelection();
|
|
|
|
cb_sapState.getSelectionModel().clearSelection();
|
|
|
|
cb_factory.getSelectionModel().clearSelection();
|
|
|
|
cb_factory.getSelectionModel().clearSelection();
|
|
|
|
tx_user.setText("");
|
|
|
|
tx_user.setText("");
|
|
|
|
tx_wbs.setText("");
|
|
|
|
tx_wbs.setText("");
|
|
|
|
tx_projectName.setText("");
|
|
|
|
tx_projectName.setText("");
|
|
|
|
tx_pcode.setText("");
|
|
|
|
tx_pcode.setText("");
|
|
|
|
tx_wbsMx.setText("");
|
|
|
|
tx_wbsMx.setText("");
|
|
|
|
tx_batchNum.setText("");
|
|
|
|
tx_batchNum.setText("");
|
|
|
|
tx_sapReturn.setText("");
|
|
|
|
tx_sapReturn.setText("");
|
|
|
|
cb_status.getSelectionModel().clearSelection();
|
|
|
|
cb_status.getSelectionModel().clearSelection();
|
|
|
|
tx_sapStatus.getSelectionModel().clearSelection();
|
|
|
|
tx_sapStatus.getSelectionModel().clearSelection();
|
|
|
|
bt_errTask.setSelected(false);
|
|
|
|
bt_errTask.setSelected(false);
|
|
|
|
bt_errMsg.setSelected(false);
|
|
|
|
bt_errMsg.setSelected(false);
|
|
|
|
dateTimeStart.clearTimeProperty();
|
|
|
|
dateTimeStart.clearTimeProperty();
|
|
|
|
dateTimeEnd.clearTimeProperty();
|
|
|
|
dateTimeEnd.clearTimeProperty();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@FXML
|
|
|
|
@FXML
|
|
|
|
void closeClick(ActionEvent event) {
|
|
|
|
void closeClick(ActionEvent event) {
|
|
|
|
frame.dispose();
|
|
|
|
frame.dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|