()
| 265 | } |
| 266 | |
| 267 | @FXML |
| 268 | void submit(){ |
| 269 | String attipText = attip.getText(); |
| 270 | String gongjiText = gongji.getText(); |
| 271 | String faxianText = faxian.getText(); |
| 272 | String leixingText = leixing.getText(); |
| 273 | String xiangqingText = xiangqing.getText(); |
| 274 | String baobiaoText = baobiao.getText(); |
| 275 | String qingbaoText = qingbao.getText(); |
| 276 | if(selectedItem==null){ |
| 277 | selectedItem = "事件一"; |
| 278 | } |
| 279 | if(StrUtil.isBlank(xiangqingText) || StrUtil.isBlank(attipText) || StrUtil.isBlank(faxianText) || StrUtil.isBlank(gongjiText) || StrUtil.isBlank(leixingText) || StrUtil.isBlank(baobiaoText) || StrUtil.isBlank(qingbaoText)){ |
| 280 | flag = false; |
| 281 | Platform.runLater(() -> { |
| 282 | info.appendText("请完成 "+selectedItem+" 的记录信息并提交\n" ); |
| 283 | }); |
| 284 | return; |
| 285 | } |
| 286 | String[] Text = new String[7]; |
| 287 | Text[0] = attipText; |
| 288 | Text[1] = faxianText; |
| 289 | Text[2] = gongjiText; |
| 290 | Text[3] = leixingText; |
| 291 | Text[4] = xiangqingText; |
| 292 | Text[5] = baobiaoText; |
| 293 | Text[6] = qingbaoText; |
| 294 | |
| 295 | result.put(selectedItem,Text); |
| 296 | Platform.runLater(() -> { |
| 297 | info.appendText("已提交 "+selectedItem+" 记录信息\n" ); |
| 298 | }); |
| 299 | } |
| 300 | |
| 301 | @FXML |
| 302 | public void initialize() { |
nothing calls this directly
no outgoing calls
no test coverage detected