Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
6451df480e | 6 months ago |
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>chint_wuhan</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import tornadofx.control.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.SearchSapResult.DetailsController">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="girdPane">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints maxHeight="30.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="100.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<FlowPane fx:id="flowPane" alignment="TOP_CENTER" prefHeight="200.0" prefWidth="200.0" style="-fx-padding: 5;">
|
|
||||||
<children>
|
|
||||||
<CheckBox fx:id="cb_errBtn" mnemonicParsing="false" text="仅显示错误数据" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
<ScrollPane fx:id="scrollPane" prefHeight="1200.0" prefWidth="1200.0" style="-fx-padding: 5;" GridPane.rowIndex="1">
|
|
||||||
<content>
|
|
||||||
<TableView fx:id="tableView" prefHeight="660.0" prefWidth="1180.0" style="-fx-faint-focus-color: transparent;">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="tc_xh" prefWidth="75.0" text="序号" />
|
|
||||||
<TableColumn fx:id="tc_batch" prefWidth="75.0" text="批次号" />
|
|
||||||
<TableColumn fx:id="tc_material" prefWidth="162.0" text="父物料编码" />
|
|
||||||
<TableColumn fx:id="tc_wbs" minWidth="0.0" prefWidth="127.0" text="WBS号" />
|
|
||||||
<TableColumn fx:id="tc_SapResult" minWidth="0.0" prefWidth="99.0" text="SAP处理结果" />
|
|
||||||
<TableColumn fx:id="tc_msg" prefWidth="126.0" text="结果内容" />
|
|
||||||
<TableColumn fx:id="tc_cDate" prefWidth="114.0" text="BOM创建日期" />
|
|
||||||
<TableColumn fx:id="tc_cTime" prefWidth="110.0" text="BOM创建时间" />
|
|
||||||
<TableColumn fx:id="tc_returnDate" prefWidth="110.0" text="BOM同步日期" />
|
|
||||||
<TableColumn fx:id="tc_returnTime" prefWidth="104.0" text="BOM同步时间" />
|
|
||||||
<TableColumn fx:id="tc_plm" prefWidth="82.0" text="PLM状态" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
<BorderPane prefHeight="100.0" prefWidth="200.0" style="-fx-padding: 10;" GridPane.rowIndex="2">
|
|
||||||
<left>
|
|
||||||
<FlowPane hgap="15.0" prefHeight="140.0" prefWidth="552.0" style="-fx-padding: 0;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_first" mnemonicParsing="false" onAction="#firstAction" prefHeight="30.0" prefWidth="80.0" text="首页" />
|
|
||||||
<Button fx:id="bt_last" mnemonicParsing="false" onAction="#lastAction" prefHeight="30.0" prefWidth="80.0" text="上一页" />
|
|
||||||
<Button fx:id="bt_next" mnemonicParsing="false" onAction="#nextAction" prefWidth="80.0" text="下一页" />
|
|
||||||
<Button fx:id="bt_tail" mnemonicParsing="false" onAction="#tailAction" prefWidth="80.0" text="尾页" />
|
|
||||||
<Button fx:id="bt_all" mnemonicParsing="false" onAction="#allAction" text="本页全部加载" />
|
|
||||||
</children>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
</left>
|
|
||||||
<right>
|
|
||||||
<FlowPane alignment="TOP_CENTER" prefHeight="140.0" prefWidth="589.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<TextField fx:id="pageNumTxt" alignment="TOP_RIGHT" prefHeight="30.0" prefWidth="154.0" text="1" />
|
|
||||||
<Label fx:id="lb_page" prefWidth="80.0" text="/" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#outputAction" text="结果导出" />
|
|
||||||
</children>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
</FlowPane>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,204 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import tornadofx.control.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1600.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.SearchSapResult.SearchSapController">
|
|
||||||
<children>
|
|
||||||
<ScrollPane fx:id="scrollPane" prefHeight="200.0">
|
|
||||||
<content>
|
|
||||||
<BorderPane fx:id="topBorder" prefHeight="200.0" prefWidth="200.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="tp_sxtj" prefHeight="650.0" text="筛选条件" BorderPane.alignment="CENTER">
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="5.0" left="5.0" right="5.0" top="10.0" />
|
|
||||||
</padding>
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="200.0" prefWidth="200.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="rwtjPane" prefHeight="300.0" prefWidth="200.0" text="任务条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<GridPane fx:id="gridPane" style="-fx-padding: 15;">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="40.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="60.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="5.0" left="5.0" right="10.0" top="5.0" />
|
|
||||||
</padding>
|
|
||||||
<children>
|
|
||||||
<Label text="任务编号:" />
|
|
||||||
<Label text="工厂:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="发起人:" GridPane.rowIndex="2" />
|
|
||||||
<Label text="发起时间晚于:" GridPane.rowIndex="3" />
|
|
||||||
<Label text="发起时间早于:" GridPane.rowIndex="4" />
|
|
||||||
<Label text="项目名称:" GridPane.columnIndex="3" GridPane.rowIndex="4" />
|
|
||||||
<Label text="WBS号:" GridPane.columnIndex="3" GridPane.rowIndex="3" />
|
|
||||||
<Label text="数据状态:" GridPane.columnIndex="3" GridPane.rowIndex="5" />
|
|
||||||
<Label text="是否仅查看错误数据:" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label text="是否仅查看错误任务:" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<Label text="任务SAP处理结果:" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="tx_bh" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="tx_user" promptText="用户名称或用户ID" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="tx_wbs" promptText="wbs号" GridPane.columnIndex="4" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="tx_projectName" promptText="项目名称" GridPane.columnIndex="4" GridPane.rowIndex="4" />
|
|
||||||
<ComboBox fx:id="cb_factory" prefWidth="250.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<ComboBox fx:id="cb_status" prefWidth="250.0" GridPane.columnIndex="4" GridPane.rowIndex="5" />
|
|
||||||
<ComboBox fx:id="cb_sapState" prefWidth="250.0" GridPane.columnIndex="4" />
|
|
||||||
<CheckBox fx:id="bt_errMsg" mnemonicParsing="false" text="是" GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<CheckBox fx:id="bt_errTask" mnemonicParsing="false" text="是" GridPane.columnIndex="4" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<TitledPane fx:id="mxtjPane" prefHeight="200.0" prefWidth="200.0" text="明细条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<GridPane style="-fx-padding: 15;">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="40.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="60.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="父物料编码:" />
|
|
||||||
<Label text="SAP数据状态:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="SAP返回信息" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="tx_pcode" promptText="多个物料以;隔开" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="tx_sapReturn" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<ComboBox fx:id="tx_sapStatus" prefWidth="250.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<Label text="WBS号:" GridPane.columnIndex="3" />
|
|
||||||
<Label text="批次号:" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="tx_wbsMx" GridPane.columnIndex="4" />
|
|
||||||
<TextField fx:id="tx_batchNum" GridPane.columnIndex="4" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<GridPane fx:id="bt_cx" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_close" mnemonicParsing="false" onAction="#closeClick" text="关闭" GridPane.columnIndex="3" />
|
|
||||||
<Button fx:id="bt_search" mnemonicParsing="false" onAction="#searchAction" text="查询" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_czcx" mnemonicParsing="false" onAction="#resetClick" text="重置查询" GridPane.columnIndex="2" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<BorderPane fx:id="resultBorder" prefHeight="800.0" prefWidth="1200.0" BorderPane.alignment="CENTER">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="tp_result" prefHeight="600.0" prefWidth="200.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="5.0" left="5.0" right="5.0" top="10.0" />
|
|
||||||
</padding>
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="200.0" prefWidth="200.0" style="-fx-padding: 5;">
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
||||||
</padding>
|
|
||||||
<opaqueInsets>
|
|
||||||
<Insets />
|
|
||||||
</opaqueInsets>
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" prefHeight="460.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="tc_xh" prefWidth="75.0" text="序号" />
|
|
||||||
<TableColumn fx:id="tc_rwh" prefWidth="102.0" text="任务号" />
|
|
||||||
<TableColumn fx:id="tc_fqr" prefWidth="133.0" text="发起人" />
|
|
||||||
<TableColumn fx:id="tc_fqsj" prefWidth="160.0" text="发起时间" />
|
|
||||||
<TableColumn fx:id="tc_zrws" prefWidth="85.0" text="子任务数" />
|
|
||||||
<TableColumn fx:id="tc_sapState" prefWidth="142.0" text="SAP处理结果" />
|
|
||||||
<TableColumn fx:id="tc_status" prefWidth="111.0" text="数据状态" />
|
|
||||||
<TableColumn fx:id="tc_plm" prefWidth="133.0" text="PLM处理进度" />
|
|
||||||
<TableColumn fx:id="tc_result" minWidth="7.0" prefWidth="103.0" text="结果明细" />
|
|
||||||
<TableColumn fx:id="tc_log" minWidth="0.0" prefWidth="91.0" text="日志获取" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets bottom="10.0" left="10.0" right="10.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="bt_xyy" mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="3" />
|
|
||||||
<Button fx:id="bt_wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="4" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
</BorderPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<AnchorPane prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_closeAll" layoutX="1108.0" layoutY="14.0" mnemonicParsing="false" onAction="#clossAll" text="关闭" />
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</bottom>
|
|
||||||
<padding>
|
|
||||||
<Insets left="10.0" />
|
|
||||||
</padding>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import tornadofx.control.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.SearchSapResult.DetailsController">
|
|
||||||
<children>
|
|
||||||
<GridPane>
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints maxHeight="30.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="100.0" minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<FlowPane alignment="TOP_CENTER" prefHeight="200.0" prefWidth="200.0" style="-fx-padding: 5;">
|
|
||||||
<children>
|
|
||||||
<CheckBox fx:id="cb_errBtn" mnemonicParsing="false" onAction="#errBtnAction" text="仅显示错误数据" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
<ScrollPane prefHeight="1200.0" prefWidth="1200.0" style="-fx-padding: 5;" GridPane.rowIndex="1">
|
|
||||||
<content>
|
|
||||||
<TableView fx:id="tableView" prefHeight="700.0" prefWidth="1190.0" style="-fx-faint-focus-color: transparent;">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="tc_xh" prefWidth="75.0" text="序号" />
|
|
||||||
<TableColumn fx:id="tc_batch" prefWidth="75.0" text="批次号" />
|
|
||||||
<TableColumn fx:id="tc_material" prefWidth="162.0" text="父物料编码" />
|
|
||||||
<TableColumn fx:id="tc_wbs" minWidth="0.0" prefWidth="127.0" text="WBS号" />
|
|
||||||
<TableColumn fx:id="tc_SapResult" minWidth="0.0" prefWidth="99.0" text="SAP处理结果" />
|
|
||||||
<TableColumn fx:id="tc_msg" prefWidth="126.0" text="结果内容" />
|
|
||||||
<TableColumn fx:id="tc_cDate" prefWidth="114.0" text="BOM创建日期" />
|
|
||||||
<TableColumn fx:id="tc_cTime" prefWidth="110.0" text="BOM创建时间" />
|
|
||||||
<TableColumn fx:id="tc_returnDate" prefWidth="110.0" text="BOM同步日期" />
|
|
||||||
<TableColumn fx:id="tc_returnTime" prefWidth="104.0" text="BOM同步时间" />
|
|
||||||
<TableColumn fx:id="tc_plm" prefWidth="82.0" text="PLM状态" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
<BorderPane prefHeight="100.0" prefWidth="200.0" style="-fx-padding: 10;" GridPane.rowIndex="2">
|
|
||||||
<left>
|
|
||||||
<FlowPane hgap="15.0" prefHeight="140.0" prefWidth="552.0" style="-fx-padding: 0;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_first" mnemonicParsing="false" onAction="#firstAction" prefHeight="30.0" prefWidth="80.0" text="首页" />
|
|
||||||
<Button fx:id="bt_last" mnemonicParsing="false" onAction="#lastAction" prefHeight="30.0" prefWidth="80.0" text="上一页" />
|
|
||||||
<Button fx:id="bt_next" mnemonicParsing="false" onAction="#nextAction" prefWidth="80.0" text="下一页" />
|
|
||||||
<Button fx:id="bt_tail" mnemonicParsing="false" onAction="#tailAction" prefWidth="80.0" text="尾页" />
|
|
||||||
<Button fx:id="bt_all" mnemonicParsing="false" onAction="#allAction" text="本页全部加载" />
|
|
||||||
</children>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="10.0" right="10.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
</left>
|
|
||||||
<right>
|
|
||||||
<FlowPane alignment="TOP_CENTER" prefHeight="140.0" prefWidth="589.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<TextField alignment="TOP_RIGHT" prefHeight="30.0" prefWidth="154.0" text="1" />
|
|
||||||
<Label fx:id="lb_page" prefWidth="80.0" text="/" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#outputAction" text="结果导出" />
|
|
||||||
</children>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
</FlowPane>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,135 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import tornadofx.control.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1600.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.SearchSapResult.SearchSapController">
|
|
||||||
<children>
|
|
||||||
<ScrollPane prefHeight="865.0" prefWidth="1192.0">
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="849.0" prefWidth="1075.0">
|
|
||||||
<center>
|
|
||||||
<BorderPane prefHeight="503.0" prefWidth="1075.0" BorderPane.alignment="CENTER">
|
|
||||||
<right>
|
|
||||||
<TitledPane fx:id="tp_result" animated="false" prefHeight="480.0" prefWidth="1075.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="400.0" prefWidth="900.0">
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" BorderPane.alignment="CENTER">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="tc_xh" prefWidth="54.0" text="序号" />
|
|
||||||
<TableColumn fx:id="tc_drawingno" prefWidth="96.0" text="图号" />
|
|
||||||
<TableColumn fx:id="tc_datesetname" prefWidth="103.0" text="文件名称" />
|
|
||||||
<TableColumn fx:id="tc_materialno" prefWidth="98.0" text="物料编码" />
|
|
||||||
<TableColumn fx:id="tc_wbs" prefWidth="97.0" text="WBS号" />
|
|
||||||
<TableColumn fx:id="tc_revision" prefWidth="45.0" text="版本" />
|
|
||||||
<TableColumn fx:id="tc_code" prefWidth="66.0" text="文件类型" />
|
|
||||||
<TableColumn fx:id="tc_urlcreatetime" prefWidth="94.0" text="提交时间" />
|
|
||||||
<TableColumn fx:id="tc_released" prefWidth="71.0" text="发放状态" />
|
|
||||||
<TableColumn fx:id="tc_username" prefWidth="59.0" text="提交人" />
|
|
||||||
<TableColumn fx:id="tc_fileurl" prefWidth="265.0" text="链接" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="321.0" minWidth="10.0" prefWidth="265.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="349.0" minWidth="10.0" prefWidth="160.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="334.0" minWidth="10.0" prefWidth="155.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="309.0" minWidth="10.0" prefWidth="149.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="219.0" minWidth="10.0" prefWidth="213.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="bt_xyy" mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="3" />
|
|
||||||
<Button fx:id="bt_wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="4" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
|
||||||
</center>
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="tp_sxtj" animated="false" text="筛选条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="331.0" prefWidth="1073.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane layoutX="26.0" layoutY="8.0" prefHeight="235.0" prefWidth="1022.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="rwtjPane" animated="false" prefHeight="236.0" prefWidth="1022.0" text="查询条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPane" layoutX="20.0" layoutY="16.0" prefHeight="175.0" prefWidth="980.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="208.0" minWidth="10.0" prefWidth="157.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="300.0" minWidth="10.0" prefWidth="268.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="291.0" minWidth="10.0" prefWidth="101.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="214.0" minWidth="10.0" prefWidth="97.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="356.0" minWidth="10.0" prefWidth="356.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="发放人:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="物料编码" GridPane.rowIndex="2" />
|
|
||||||
<Label text="发放状态" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<Label text="工厂" GridPane.columnIndex="3" />
|
|
||||||
<Label text="WBS号:" />
|
|
||||||
<TextField fx:id="tx_bh" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="tx_projectName" prefHeight="30.0" prefWidth="291.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="tx_user" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<ComboBox fx:id="cb_sapState" prefHeight="30.0" prefWidth="271.0" GridPane.columnIndex="4" />
|
|
||||||
<ComboBox fx:id="cb_status" prefHeight="30.0" prefWidth="272.0" GridPane.columnIndex="4" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
</BorderPane>
|
|
||||||
<GridPane layoutX="216.0" layoutY="270.0" prefHeight="30.0" prefWidth="702.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="95.0" minWidth="10.0" prefWidth="80.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="219.0" minWidth="10.0" prefWidth="219.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="216.0" minWidth="10.0" prefWidth="210.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="185.0" minWidth="10.0" prefWidth="74.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_close" mnemonicParsing="false" onAction="#closeClick" prefHeight="30.0" prefWidth="86.0" text="关闭" GridPane.columnIndex="3" />
|
|
||||||
<Button fx:id="bt_search" mnemonicParsing="false" onAction="#searchAction" prefHeight="30.0" prefWidth="96.0" text="查询" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_czcx" mnemonicParsing="false" onAction="#resetClick" prefHeight="30.0" prefWidth="88.0" text="重置查询" GridPane.columnIndex="2" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,135 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import tornadofx.control.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1600.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.SearchSapResult9.SearchSapController">
|
|
||||||
<children>
|
|
||||||
<ScrollPane fx:id="scrollPane" prefHeight="865.0" prefWidth="1192.0">
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="849.0" prefWidth="1075.0">
|
|
||||||
<center>
|
|
||||||
<BorderPane fx:id="resultBorder" prefHeight="503.0" prefWidth="1075.0" BorderPane.alignment="CENTER">
|
|
||||||
<right>
|
|
||||||
<TitledPane fx:id="tp_result" animated="false" prefHeight="480.0" prefWidth="1075.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="400.0" prefWidth="900.0">
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" prefHeight="374.0" prefWidth="1049.0" BorderPane.alignment="CENTER">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="tc_xh" prefWidth="54.0" text="序号" />
|
|
||||||
<TableColumn fx:id="tc_drawingno" prefWidth="96.0" text="图号" />
|
|
||||||
<TableColumn fx:id="tc_datesetname" prefWidth="103.0" text="文件名称" />
|
|
||||||
<TableColumn fx:id="tc_materialno" prefWidth="98.0" text="物料编码" />
|
|
||||||
<TableColumn fx:id="tc_wbs" prefWidth="97.0" text="WBS号" />
|
|
||||||
<TableColumn fx:id="tc_revision" prefWidth="45.0" text="版本" />
|
|
||||||
<TableColumn fx:id="tc_code" prefWidth="66.0" text="文件类型" />
|
|
||||||
<TableColumn fx:id="tc_urlcreatetime" prefWidth="94.0" text="提交时间" />
|
|
||||||
<TableColumn fx:id="tc_released" prefWidth="71.0" text="发放状态" />
|
|
||||||
<TableColumn fx:id="tc_username" prefWidth="59.0" text="提交人" />
|
|
||||||
<TableColumn fx:id="tc_fileurl" prefWidth="265.0" text="链接" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="321.0" minWidth="10.0" prefWidth="265.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="349.0" minWidth="10.0" prefWidth="160.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="334.0" minWidth="10.0" prefWidth="155.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="309.0" minWidth="10.0" prefWidth="149.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="219.0" minWidth="10.0" prefWidth="213.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="bt_xyy" mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="3" />
|
|
||||||
<Button fx:id="bt_wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="4" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
|
||||||
</center>
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="tp_sxtj" animated="false" text="筛选条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="331.0" prefWidth="1073.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane layoutX="26.0" layoutY="8.0" prefHeight="235.0" prefWidth="1022.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="rwtjPane" animated="false" prefHeight="236.0" prefWidth="1022.0" text="查询条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPane" layoutX="20.0" layoutY="16.0" prefHeight="175.0" prefWidth="980.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="208.0" minWidth="10.0" prefWidth="157.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="300.0" minWidth="10.0" prefWidth="268.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="291.0" minWidth="10.0" prefWidth="101.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="214.0" minWidth="10.0" prefWidth="97.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="356.0" minWidth="10.0" prefWidth="356.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="发放人:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="物料编码" GridPane.rowIndex="2" />
|
|
||||||
<Label text="发放状态" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<Label text="工厂" GridPane.columnIndex="3" />
|
|
||||||
<Label text="WBS号:" />
|
|
||||||
<TextField fx:id="tx_bh" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="tx_projectName" prefHeight="30.0" prefWidth="291.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="tx_user" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<ComboBox fx:id="cb_sapState" prefHeight="30.0" prefWidth="271.0" GridPane.columnIndex="4" />
|
|
||||||
<ComboBox fx:id="cb_status" prefHeight="30.0" prefWidth="272.0" GridPane.columnIndex="4" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
</BorderPane>
|
|
||||||
<GridPane layoutX="216.0" layoutY="270.0" prefHeight="30.0" prefWidth="702.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="95.0" minWidth="10.0" prefWidth="80.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="219.0" minWidth="10.0" prefWidth="219.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="216.0" minWidth="10.0" prefWidth="210.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="185.0" minWidth="10.0" prefWidth="74.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_close" mnemonicParsing="false" onAction="#closeClick" prefHeight="30.0" prefWidth="86.0" text="关闭" GridPane.columnIndex="3" />
|
|
||||||
<Button fx:id="bt_search" mnemonicParsing="false" onAction="#searchAction" prefHeight="30.0" prefWidth="96.0" text="查询" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_czcx" mnemonicParsing="false" onAction="#resetClick" prefHeight="30.0" prefWidth="88.0" text="重置查询" GridPane.columnIndex="2" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,50 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.image.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<GridPane hgap="5.0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="240.0" prefWidth="400.0" vgap="5.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.createEcn.AssignIdController">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" vgrow="NEVER" />
|
|
||||||
<RowConstraints minHeight="10.0" vgrow="NEVER" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<FlowPane alignment="CENTER" hgap="12.0" GridPane.rowIndex="1">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="assignBtn" mnemonicParsing="false" onAction="#okBtnClick" prefWidth="77.0" text="指派" />
|
|
||||||
<Button fx:id="closeBtn" mnemonicParsing="false" onAction="#cancelBtnClick" text=" 取消 " />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
<GridPane alignment="CENTER" prefHeight="200.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="100.0" minWidth="10.0" prefWidth="50.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="创建者工厂:" />
|
|
||||||
<ComboBox fx:id="factoryComb" maxWidth="200.0" prefWidth="150.0" GridPane.columnIndex="1" />
|
|
||||||
<Label text="创建者部门:" GridPane.rowIndex="1" />
|
|
||||||
<ComboBox fx:id="bmComb" maxWidth="200.0" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<RadioButton fx:id="rb_formalChange" maxWidth="200.0" prefWidth="150.0" mnemonicParsing="false" text="正式更改" GridPane.rowIndex="2" />
|
|
||||||
<RadioButton fx:id="rb_tempChange" mnemonicParsing="false" text="临时更改" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<Label text="预览" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="ylText" maxWidth="200.0" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
|
|
||||||
</padding>
|
|
||||||
</GridPane>
|
|
@ -1,285 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.createEcn.CreateEcnController">
|
|
||||||
<children>
|
|
||||||
<ScrollPane fx:id="scollPane" prefHeight="800.0" prefWidth="1200.0">
|
|
||||||
<content>
|
|
||||||
<GridPane fx:id="gridPane" prefHeight="1600.0" prefWidth="1180.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints maxHeight="160.0" minHeight="10.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="280.0" minHeight="10.0" prefHeight="230.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="600.0" minHeight="10.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" vgrow="NEVER" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<BorderPane prefHeight="160.0" prefWidth="200.0">
|
|
||||||
<left>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="12.0" prefHeight="80.0" prefWidth="400.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="单位:" />
|
|
||||||
<TextField fx:id="factoryText" />
|
|
||||||
</children>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="10.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
</left>
|
|
||||||
<center>
|
|
||||||
<FlowPane alignment="CENTER" prefHeight="200.0" prefWidth="100.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="更改通知单">
|
|
||||||
<font>
|
|
||||||
<Font size="22.0" />
|
|
||||||
</font>
|
|
||||||
</Label>
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</center>
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" top="2.0" />
|
|
||||||
</padding>
|
|
||||||
<bottom>
|
|
||||||
<BorderPane prefHeight="80.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<left>
|
|
||||||
<FlowPane alignment="CENTER" prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="更改类型">
|
|
||||||
<font>
|
|
||||||
<Font size="18.0" />
|
|
||||||
</font>
|
|
||||||
</Label>
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</left>
|
|
||||||
<center>
|
|
||||||
<GridPane style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="400.0" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="100.0" prefHeight="200.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<RadioButton fx:id="rb_formalChange" mnemonicParsing="false" text="正式更改" />
|
|
||||||
<RadioButton fx:id="rb_tempChange" mnemonicParsing="false" text="临时更改" />
|
|
||||||
</children>
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="100.0" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1">
|
|
||||||
<children>
|
|
||||||
<RadioButton fx:id="rb_product" mnemonicParsing="false" text="产品" />
|
|
||||||
<RadioButton fx:id="rb_Process" mnemonicParsing="false" text="过程" />
|
|
||||||
</children>
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="15.0" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</bottom>
|
|
||||||
<right>
|
|
||||||
<GridPane prefHeight="78.0" prefWidth="400.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="120.0" minWidth="10.0" prefWidth="80.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="150.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="60.0" minWidth="10.0" prefWidth="20.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="通知单编号:" />
|
|
||||||
<Label text="关联申请单编号:" GridPane.rowIndex="1" />
|
|
||||||
<Button fx:id="assignBtn" mnemonicParsing="false" onAction="#assignClick" text="指派" GridPane.columnIndex="2" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#relateClick" text="查看" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="ecnId" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="relateEcnText" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</GridPane>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
|
||||||
<TitledPane fx:id="tp_product" animated="false" prefHeight="280.0" prefWidth="1200.0" text="产品及项目信息:" GridPane.rowIndex="1">
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="200.0" prefWidth="200.0">
|
|
||||||
<center>
|
|
||||||
<GridPane fx:id="productPane" alignment="CENTER" maxHeight="200.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="160.0" minWidth="10.0" prefWidth="20.0" />
|
|
||||||
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="160.0" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="产品型号:" />
|
|
||||||
<Label text="产品名称:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="文件代号及名称:" GridPane.rowIndex="2" />
|
|
||||||
<ComboBox fx:id="pmCombox" prefHeight="30.0" prefWidth="370.0" GridPane.columnIndex="1" />
|
|
||||||
<ComboBox fx:id="prodNameComb" prefHeight="30.0" prefWidth="370.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="markText" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<Label text="合同代号:" GridPane.columnIndex="2" />
|
|
||||||
<Label text="合同名称:" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
|
||||||
<Label text="更改实施日期:" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="contractText" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="htNameText" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<DatePicker fx:id="changeDate" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</padding>
|
|
||||||
</GridPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<BorderPane prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets top="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<left>
|
|
||||||
<FlowPane alignment="CENTER" prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="发放部门" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</left>
|
|
||||||
<center>
|
|
||||||
<FlowPane fx:id="departPane" alignment="CENTER_LEFT" hgap="20.0" prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" />
|
|
||||||
</padding>
|
|
||||||
</TitledPane>
|
|
||||||
<TitledPane fx:id="tc_details" prefHeight="1200.0" prefWidth="200.0" text="变更明细:" GridPane.rowIndex="2">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets top="5.0" />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" />
|
|
||||||
</padding>
|
|
||||||
<content>
|
|
||||||
<BorderPane>
|
|
||||||
<center>
|
|
||||||
<ScrollPane prefHeight="500.0" style="-fx-padding: 5;" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<TableView fx:id="tableView" prefHeight="480.0" prefWidth="1142.0" style="-fx-faint-focus-color: transparent;" />
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</center>
|
|
||||||
<top>
|
|
||||||
<FlowPane alignment="CENTER" hgap="25.0" prefHeight="80.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="addRows" mnemonicParsing="false" onAction="#addRows" text="增加五行" />
|
|
||||||
<Button fx:id="addRow" mnemonicParsing="false" onAction="#addRow" text="增加行" />
|
|
||||||
<Button fx:id="deleteRow" mnemonicParsing="false" onAction="#deleteRow" text="删除行" />
|
|
||||||
</children>
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets bottom="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
</FlowPane>
|
|
||||||
</top>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
<GridPane GridPane.rowIndex="3">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" vgrow="NEVER" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="100.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<TitledPane fx:id="referencePane" animated="false" text="影响分析(会签):">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets top="5.0" />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" />
|
|
||||||
</padding>
|
|
||||||
<content>
|
|
||||||
<ScrollPane prefHeight="400.0">
|
|
||||||
<content>
|
|
||||||
<TableView fx:id="refTable" prefHeight="400.0" prefWidth="1170.0" />
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
<BorderPane prefHeight="100.0" prefWidth="200.0" GridPane.rowIndex="1">
|
|
||||||
<left>
|
|
||||||
<Label text="备注:" />
|
|
||||||
</left>
|
|
||||||
<center>
|
|
||||||
<ScrollPane prefHeight="100.0" style="-fx-padding: 5;" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<TextArea fx:id="remarkArea" prefHeight="99.0" prefWidth="1100.0" wrapText="true" />
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
<FlowPane alignment="TOP_CENTER" hgap="40.0" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="2">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="createBtn" mnemonicParsing="false" onAction="#createClick" text="确定" />
|
|
||||||
<Button alignment="CENTER" mnemonicParsing="false" onAction="#disposeClick" text="取消" />
|
|
||||||
</children>
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets top="5.0" />
|
|
||||||
</GridPane.margin>
|
|
||||||
</FlowPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,187 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import tornadofx.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.chint.plm.createEcn.RelateEcnController">
|
|
||||||
<children>
|
|
||||||
<ScrollPane fx:id="scollPane" prefHeight="800.0" prefWidth="1200.0">
|
|
||||||
<content>
|
|
||||||
<GridPane fx:id="gridPane" prefHeight="800.0" prefWidth="1180.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints maxHeight="85.0" minHeight="10.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="280.0" minHeight="10.0" prefHeight="230.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="400.0" minHeight="10.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<BorderPane maxHeight="80.0" prefHeight="80.0" prefWidth="200.0">
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" top="2.0" />
|
|
||||||
</padding>
|
|
||||||
<bottom>
|
|
||||||
<BorderPane prefHeight="80.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<left>
|
|
||||||
<FlowPane alignment="CENTER" prefHeight="200.0" prefWidth="200.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="更改类型">
|
|
||||||
<font>
|
|
||||||
<Font size="18.0" />
|
|
||||||
</font>
|
|
||||||
</Label>
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</left>
|
|
||||||
<center>
|
|
||||||
<GridPane style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="400.0" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="100.0" prefHeight="200.0" prefWidth="200.0">
|
|
||||||
<children>
|
|
||||||
<RadioButton fx:id="rb_formalChange" mnemonicParsing="false" text="正式更改" />
|
|
||||||
<RadioButton fx:id="rb_tempChange" mnemonicParsing="false" text="临时更改" />
|
|
||||||
</children>
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="15.0" prefHeight="200.0" prefWidth="200.0" GridPane.rowIndex="1">
|
|
||||||
<children>
|
|
||||||
<RadioButton fx:id="rb_product" mnemonicParsing="false" text="产品" />
|
|
||||||
<Label text="产品特性:" />
|
|
||||||
<RadioButton mnemonicParsing="false" text="A" />
|
|
||||||
<RadioButton mnemonicParsing="false" text="B" />
|
|
||||||
<RadioButton mnemonicParsing="false" text="C" />
|
|
||||||
</children>
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
<FlowPane alignment="CENTER_LEFT" hgap="15.0" prefHeight="200.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
|
||||||
<children>
|
|
||||||
<RadioButton fx:id="rb_Process" mnemonicParsing="false" text="过程" />
|
|
||||||
<Label text="过程特性:" />
|
|
||||||
<RadioButton mnemonicParsing="false" text="A" />
|
|
||||||
<RadioButton mnemonicParsing="false" text="B" />
|
|
||||||
<RadioButton mnemonicParsing="false" text="C" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets left="5.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
<TitledPane fx:id="tp_product" animated="false" prefHeight="280.0" prefWidth="1200.0" text="更改涉及内容:" GridPane.rowIndex="1">
|
|
||||||
<content>
|
|
||||||
<BorderPane prefHeight="200.0" prefWidth="200.0">
|
|
||||||
<center>
|
|
||||||
<GridPane alignment="CENTER" maxHeight="200.0" style="-fx-border-color: black;" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="160.0" minWidth="10.0" prefWidth="20.0" />
|
|
||||||
<ColumnConstraints halignment="LEFT" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" maxWidth="160.0" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="产品型号:" />
|
|
||||||
<Label text="产品名称:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="文件代号及名称:" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="prodModelText" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="prodNameText" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="docCodeText" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<Label text="合同代号:" GridPane.columnIndex="2" />
|
|
||||||
<Label text="合同名称:" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
|
||||||
<Label text="图样代号及名称:" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="contCondeText" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="contNameText" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="pattCodeText" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label text="申请人:" GridPane.rowIndex="3" />
|
|
||||||
<Label text="申请单号:" GridPane.columnIndex="2" GridPane.rowIndex="3" />
|
|
||||||
<Label text="申请时间晚于:" GridPane.rowIndex="4" />
|
|
||||||
<Label text="申请时间早于:" GridPane.columnIndex="2" GridPane.rowIndex="4" />
|
|
||||||
<TextField fx:id="applicantText" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="requestNoText" GridPane.columnIndex="3" GridPane.rowIndex="3" />
|
|
||||||
<DatePicker fx:id="startTime" GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
|
||||||
<DatePicker fx:id="endTime" GridPane.columnIndex="3" GridPane.rowIndex="4" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets right="10.0" top="2.0" />
|
|
||||||
</padding>
|
|
||||||
</GridPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<BorderPane prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<BorderPane.margin>
|
|
||||||
<Insets top="5.0" />
|
|
||||||
</BorderPane.margin>
|
|
||||||
<right>
|
|
||||||
<FlowPane alignment="CENTER" hgap="30.0" prefHeight="40.0" prefWidth="318.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Button mnemonicParsing="false" onAction="#searchClick" prefWidth="80.0" text="查询" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#closeClick" prefWidth="80.0" text="关闭" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</right>
|
|
||||||
</BorderPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" />
|
|
||||||
</padding>
|
|
||||||
</TitledPane>
|
|
||||||
<TitledPane fx:id="tc_details" prefHeight="400.0" prefWidth="200.0" text="搜索结果:" GridPane.rowIndex="2">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets top="5.0" />
|
|
||||||
</GridPane.margin>
|
|
||||||
<padding>
|
|
||||||
<Insets left="2.0" right="2.0" />
|
|
||||||
</padding>
|
|
||||||
<content>
|
|
||||||
<BorderPane>
|
|
||||||
<center>
|
|
||||||
<ScrollPane prefHeight="400.0" style="-fx-padding: 5;" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<TableView fx:id="tableView" prefHeight="400.0" prefWidth="1142.0" style="-fx-faint-focus-color: transparent;" />
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,3 +0,0 @@
|
|||||||
ERROR_NOT_CHANGE=\u8BF7\u9009\u62E9\u66F4\u6539\u901A\u77E5\u5355\u5BF9\u8C61
|
|
||||||
ERROR_NO_CHANGE=\u672A\u627E\u5230\u53D8\u66F4\u524D\u540E\u5BF9\u8C61,\u65E0\u6CD5\u63D0\u53D6\u5DEE\u5F02\u9879\uFF01
|
|
||||||
SUCC_CHANGE=\u63D0\u53D6\u5B8C\u6210
|
|
@ -1,148 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.scene.text.*?>
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
|
|
||||||
<StackPane fx:id="stackPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1200.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.chint.JDBPackage.MySceneController">
|
|
||||||
<children>
|
|
||||||
|
|
||||||
<ScrollPane fx:id="scollPane" prefHeight="1200.0" prefWidth="1200.0">
|
|
||||||
<content>
|
|
||||||
<AnchorPane fx:id="parentPane" minHeight="0.0" minWidth="0.0" prefHeight="1800.0" prefWidth="1200.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="borderPane" layoutX="-7.0" prefHeight="1800.0" prefWidth="1200.0" style="-fx-padding: 5;">
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="18.0" left="18.0" right="18.0" top="18.0" />
|
|
||||||
</padding>
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="topTitlePane" animated="false" blendMode="DARKEN" pickOnBounds="false" style="-fx-padding: 10;" text="校对条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="182.0" prefWidth="1162.0" style="-fx-padding: 5;">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPane" hgap="9.0" layoutX="17.0" maxWidth="1400.0" prefHeight="175.0" prefWidth="1098.0" style="-fx-padding: 7;" vgap="9.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="NEVER" maxWidth="104.0" minWidth="10.0" prefWidth="104.0" />
|
|
||||||
<ColumnConstraints hgrow="ALWAYS" maxWidth="373.0" minWidth="10.0" prefWidth="283.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="NEVER" maxWidth="361.0" minWidth="10.0" prefWidth="208.0" />
|
|
||||||
<ColumnConstraints hgrow="ALWAYS" maxWidth="317.0" minWidth="0.0" prefWidth="122.0" />
|
|
||||||
<ColumnConstraints halignment="RIGHT" hgrow="NEVER" maxWidth="146.0" minWidth="0.0" prefWidth="0.0" />
|
|
||||||
<ColumnConstraints hgrow="ALWAYS" maxWidth="322.0" minWidth="10.0" prefWidth="322.0" />
|
|
||||||
<ColumnConstraints hgrow="NEVER" maxWidth="5.0" minWidth="0.0" prefWidth="0.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="36.0" minHeight="10.0" prefHeight="36.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints maxHeight="23.0" minHeight="10.0" prefHeight="20.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
|
|
||||||
<children>
|
|
||||||
<Label text="编号:" />
|
|
||||||
<Label text="检查次数:" GridPane.columnIndex="3" />
|
|
||||||
<Label text="校对表编号:" GridPane.rowIndex="2" />
|
|
||||||
<Label text="校对日期:" GridPane.rowIndex="1" />
|
|
||||||
<Label text="检查人:" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<ComboBox fx:id="cb_jccs" editable="true" maxWidth="1.7976931348623157E308" onAction="#selectJccs" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="tf_bh" prefHeight="30.0" prefWidth="288.0" GridPane.columnIndex="1" />
|
|
||||||
<ComboBox fx:id="cb_jclx" maxWidth="1.7976931348623157E308" prefWidth="150.0" GridPane.columnIndex="5" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="tf_jcr" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<Label text="图号清单:" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<ComboBox fx:id="cb_thqd" maxWidth="1.7976931348623157E308" GridPane.columnIndex="5" GridPane.rowIndex="2" />
|
|
||||||
<Label text="版本号:" GridPane.rowIndex="3" />
|
|
||||||
<Label text="检查类型:" GridPane.columnIndex="3" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="jdrq" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="revId" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="jdbbh" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<Label text="过滤不通过项:" GridPane.rowIndex="4" />
|
|
||||||
<CheckBox fx:id="glBtn" mnemonicParsing="false" onAction="#selectBtnGl" GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<TabPane fx:id="TestPane" prefHeight="263.0" prefWidth="1180.0" style="-fx-padding: 10;" tabClosingPolicy="UNAVAILABLE" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" BorderPane.alignment="CENTER">
|
|
||||||
<tabs>
|
|
||||||
<Tab text="检查结果">
|
|
||||||
<content>
|
|
||||||
<TableView fx:id="table" prefHeight="292.0" prefWidth="1170.0" style="-fx-faint-focus-color: transparent; -fx-focus-color: rgba(0,0,0,0.2);" />
|
|
||||||
</content>
|
|
||||||
</Tab>
|
|
||||||
</tabs>
|
|
||||||
</TabPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<BorderPane prefHeight="200.0" prefWidth="200.0" style="-fx-padding: 10;" BorderPane.alignment="CENTER">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="btoTitlePane" animated="false" prefHeight="260.0" prefWidth="1160.0" style="-fx-padding: 5;" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="457.0" prefWidth="1178.0">
|
|
||||||
<children>
|
|
||||||
<GridPane prefHeight="214.0" prefWidth="1178.0" style="-fx-padding: 15;">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="1166.0" minWidth="10.0" prefWidth="1127.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="584.0" minWidth="10.0" prefWidth="51.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label text="校对人员发现的问题真实记录:" />
|
|
||||||
<Label text="审核人员发现的问题真实记录:" GridPane.rowIndex="2" />
|
|
||||||
<Label text="校对、审核发现的问题“是否”已逐条进行更改?如未更改则写明未更改理由。(审核人再审签字):" GridPane.rowIndex="4" />
|
|
||||||
<TextField fx:id="tx1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="tx2" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="tx3" GridPane.rowIndex="5" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children></AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane style="-fx-padding: 30;" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="bt_tj" mnemonicParsing="false" onAction="#tjBtnClick" text="提交" />
|
|
||||||
<Button fx:id="bt_sc" mnemonicParsing="false" text="输出" GridPane.columnIndex="1" />
|
|
||||||
<Button fx:id="bt_lsbc" mnemonicParsing="false" onAction="#lsbcBtnClick" text="临时保存" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="bt_outbtg" mnemonicParsing="false" text="输出不通过项" GridPane.columnIndex="3" />
|
|
||||||
<Button mnemonicParsing="false" text="输出当前检查" GridPane.columnIndex="4" />
|
|
||||||
<Button fx:id="qxBtn" mnemonicParsing="false" onAction="#qxBtnClick" text="取消" GridPane.columnIndex="5" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</ScrollPane>
|
|
||||||
</children>
|
|
||||||
</StackPane>
|
|
@ -1,19 +0,0 @@
|
|||||||
#\u6570\u636E\u5E93\u9A71\u52A8
|
|
||||||
driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
#\u6570\u636E\u5E93\u8FDE\u63A5\u5730\u5740
|
|
||||||
url=jdbc:sqlserver://10.128.10.135:1433;DatabaseName=CHINT_DB
|
|
||||||
#\u7528\u6237\u540D
|
|
||||||
username=PLMUser
|
|
||||||
#\u5BC6\u7801
|
|
||||||
password=PLMUser
|
|
||||||
#\u8FDE\u63A5\u6C60\u7684\u6700\u5927\u6570\u636E\u5E93\u8FDE\u63A5\u6570\u3002\u8BBE\u4E3A0\u8868\u793A\u65E0\u9650\u5236
|
|
||||||
maxActive=30
|
|
||||||
#\u6700\u5927\u7A7A\u95F2\u6570\uFF0C\u6570\u636E\u5E93\u8FDE\u63A5\u7684\u6700\u5927\u7A7A\u95F2\u65F6\u95F4\u3002\u8D85\u8FC7\u7A7A\u95F2\u65F6\u95F4\uFF0C\u6570\u636E\u5E93\u8FDE
|
|
||||||
#\u63A5\u5C06\u88AB\u6807\u8BB0\u4E3A\u4E0D\u53EF\u7528\uFF0C\u7136\u540E\u88AB\u91CA\u653E\u3002\u8BBE\u4E3A0\u8868\u793A\u65E0\u9650\u5236
|
|
||||||
maxIdle=10
|
|
||||||
#\u6700\u5927\u5EFA\u7ACB\u8FDE\u63A5\u7B49\u5F85\u65F6\u95F4\u3002\u5982\u679C\u8D85\u8FC7\u6B64\u65F6\u95F4\u5C06\u63A5\u5230\u5F02\u5E38\u3002\u8BBE\u4E3A-1\u8868\u793A\u65E0\u9650\u5236
|
|
||||||
maxWait=1000
|
|
||||||
#\u8D85\u8FC7removeAbandonedTimeout\u65F6\u95F4\u540E\uFF0C\u662F\u5426\u8FDB \u884C\u6CA1\u7528\u8FDE\u63A5\uFF08\u5E9F\u5F03\uFF09\u7684\u56DE\u6536\uFF08\u9ED8\u8BA4\u4E3Afalse\uFF0C\u8C03\u6574\u4E3Atrue)
|
|
||||||
removeAbandoned=true
|
|
||||||
#\u8D85\u8FC7\u65F6\u95F4\u9650\u5236\uFF0C\u56DE\u6536\u6CA1\u6709\u7528(\u5E9F\u5F03)\u7684\u8FDE\u63A5\uFF08\u9ED8\u8BA4\u4E3A 300\u79D2\uFF0C\u8C03\u6574\u4E3A180\uFF09
|
|
||||||
removeAbandonedTimeout=180
|
|
@ -1,41 +0,0 @@
|
|||||||
SQL.URL=jdbc:sqlserver://10.128.20.35:1433;DatabaseName=BDP2020
|
|
||||||
SQL.DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
SQL.USER=PLMUser
|
|
||||||
SQL.PASSWORD=PLMUser
|
|
||||||
|
|
||||||
#\u4F4E\u538B\u8BDA\u521B
|
|
||||||
SQL.CC.URL=jdbc:sqlserver://10.128.10.135:1433;DatabaseName=CHINT_DB
|
|
||||||
SQL.CC.DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
SQL.CC.USER=PLMUser
|
|
||||||
SQL.CC.PASSWORD=PLMUser
|
|
||||||
|
|
||||||
# Test
|
|
||||||
#SQL.SH.URL=jdbc:sqlserver://10.128.155.236:1433;DatabaseName=ISP.CADAssistant
|
|
||||||
#SQL.SH.DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
#SQL.SH.USER=sa
|
|
||||||
#SQL.SH.PASSWORD=2wsx#EDC
|
|
||||||
#
|
|
||||||
SQL.SH.URL=jdbc:sqlserver://10.128.155.140:1433;DatabaseName=ISP.CADAssistant
|
|
||||||
SQL.SH.DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
||||||
SQL.SH.USER=sa
|
|
||||||
SQL.SH.PASSWORD=2wsx#EDC
|
|
||||||
|
|
||||||
SQL.TC.URL=jdbc:oracle:thin:@10.128.10.207:1521:tcprod
|
|
||||||
SQL.TC.DRIVER=oracle.jdbc.driver.OracleDriver
|
|
||||||
SQL.TC.USER=infodba
|
|
||||||
SQL.TC.PASSWORD=infodba
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#SQL.TCDATA.URL=jdbc:oracle:thin:@192.168.0.103:1521:TC
|
|
||||||
SQL.TCDATA.URL=jdbc:oracle:thin:@10.128.18.139:1521:testdb
|
|
||||||
SQL.TCDATA.DRIVER=oracle.jdbc.driver.OracleDriver
|
|
||||||
SQL.TCDATA.USER=infodba
|
|
||||||
SQL.TCDATA.PASSWORD=infodba
|
|
||||||
|
|
||||||
SQL.TEMPLATE_TREE=select t.PmpcCode, t.PmpcCompanyCode, t.PmpcName, t.PmpcUpperCode, t.PmpcItem, t.PmpcPrhCode, t.PmpcEnd,t.PmpcCanzz,t.PmpcPType,t.PmpcMType from CcemVW_Pmpc t;
|
|
||||||
SQL.TEMPLATE=select t.PrhName,t.PrdLine,t.PrdNo,t.PrdFeatureCode,t.FeatureName,t.PrdCanInput,t.PrdSign from CcemVW_Prd t where t.prhcode = ? order by t.PrdNo
|
|
||||||
SQL.LOV=select t.PrddNo,t.PrddFeatureCode,t.PrddValue from CcemVW_Prdd t where t.PrddCode = ? and PrddLine = ? order by t.PrddNo
|
|
||||||
SQL.FEATURE=select t.FeatureCode,t.FeatureName from CcemVW_Feature t
|
|
||||||
SQL.GROUP=select t.ProductGroupCode,t.ProductGroupName from CcemVW_ProductGroup t
|
|
@ -1,191 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.Insets?>
|
|
||||||
<?import javafx.scene.control.Button?>
|
|
||||||
<?import javafx.scene.control.ComboBox?>
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<?import javafx.scene.control.TableColumn?>
|
|
||||||
<?import javafx.scene.control.TableView?>
|
|
||||||
<?import javafx.scene.control.TextArea?>
|
|
||||||
<?import javafx.scene.control.TextField?>
|
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
|
||||||
<?import javafx.scene.layout.BorderPane?>
|
|
||||||
<?import javafx.scene.layout.ColumnConstraints?>
|
|
||||||
<?import javafx.scene.layout.FlowPane?>
|
|
||||||
<?import javafx.scene.layout.GridPane?>
|
|
||||||
<?import javafx.scene.layout.RowConstraints?>
|
|
||||||
|
|
||||||
<AnchorPane fx:id="coverPane" prefHeight="842.0" prefWidth="1326.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.CreateOuotation.MyController">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPane" layoutX="14.0" layoutY="108.0" prefHeight="189.0" prefWidth="1302.0" style="-fx-border-color: gray; -fx-border-width: 0.5px; -fx-border-radius: 5px;" AnchorPane.leftAnchor="9.0" AnchorPane.rightAnchor="10.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label fx:id="projectNameLabel" prefHeight="20.0" prefWidth="83.0" text="项目名称:" />
|
|
||||||
<TextField fx:id="projectNameTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" />
|
|
||||||
<Label fx:id="transformerModelLabel" prefHeight="20.0" prefWidth="83.0" text="变压器型号:" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="transformerModelTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<Label fx:id="noLoadLossLabel" prefHeight="20.0" prefWidth="83.0" text="空载损耗:" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="noLoadLossTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<Label fx:id="loadLossLabel" prefHeight="20.0" prefWidth="120.0" text="负载损耗(KW):" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="loadLossTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
|
||||||
<Label fx:id="biddingNumberLabel" prefHeight="20.0" prefWidth="83.0" text="投标编号:" GridPane.columnIndex="2" />
|
|
||||||
<Label fx:id="capacityRatioLabel" prefHeight="20.0" prefWidth="120.0" text="容量比(MVA):" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
|
||||||
<Label fx:id="impedanceVoltageLabel" prefHeight="20.0" prefWidth="83.0" text="阻抗电压:" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="biddingNumberTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="capacityRatioTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="impedanceVoltageTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label fx:id="projectManagerLabel" prefHeight="20.0" prefWidth="83.0" text="项目经理:" GridPane.columnIndex="4" />
|
|
||||||
<Label fx:id="voltageRatioLabel" prefHeight="20.0" prefWidth="83.0" text="电压比(kV):" GridPane.columnIndex="4" GridPane.rowIndex="1" />
|
|
||||||
<Label fx:id="transportationWeightLabel" prefHeight="20.0" prefWidth="83.0" text="运输重(t):" GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="projectManagerTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="voltageRatioTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="transportationWeightTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" GridPane.rowIndex="2" />
|
|
||||||
<Label fx:id="quantityLabel" prefHeight="20.0" prefWidth="83.0" text="数量:" GridPane.columnIndex="6" />
|
|
||||||
<TextField fx:id="quantityTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="7" />
|
|
||||||
<Label fx:id="totalWeightLabel" prefHeight="20.0" prefWidth="83.0" text="总重(t):" GridPane.columnIndex="6" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="totalWeightTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="7" GridPane.rowIndex="2" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets right="15.0" />
|
|
||||||
</padding>
|
|
||||||
</GridPane>
|
|
||||||
<FlowPane fx:id="buttonPane" alignment="CENTER_RIGHT" hgap="40.0" layoutX="618.0" layoutY="766.0" prefHeight="60.0" prefWidth="698.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="10.0">
|
|
||||||
<children>
|
|
||||||
<Button fx:id="saveButton" mnemonicParsing="false" prefWidth="100.0" text="保存" />
|
|
||||||
<Button fx:id="calculateButton" mnemonicParsing="false" prefWidth="100.0" text="计算金额" />
|
|
||||||
<Button fx:id="selectComparisonButton" mnemonicParsing="false" prefWidth="100.0" text="选择对比" />
|
|
||||||
<Button fx:id="compareButton" mnemonicParsing="false" prefWidth="100.0" text="对比" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets right="30.0" />
|
|
||||||
</padding>
|
|
||||||
</FlowPane>
|
|
||||||
<BorderPane fx:id="tablePane" layoutX="14.0" layoutY="365.0" prefHeight="379.0" prefWidth="1302.0" AnchorPane.bottomAnchor="80.0" AnchorPane.leftAnchor="9.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="350.0">
|
|
||||||
<center>
|
|
||||||
<TableView fx:id="materialsTable" prefHeight="320.0" prefWidth="1302.0" BorderPane.alignment="CENTER">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="no" prefWidth="54.0" />
|
|
||||||
<TableColumn fx:id="materialNameColumn" prefWidth="78.0" text="材料名称" />
|
|
||||||
<TableColumn fx:id="relatedMaterialColumn" prefWidth="76.0" text="材料名称" />
|
|
||||||
<TableColumn fx:id="specificationColumn" prefWidth="223.0" text="规格" />
|
|
||||||
<TableColumn fx:id="manufacturerColumn" minWidth="0.0" prefWidth="215.0" text="制造厂商" />
|
|
||||||
<TableColumn fx:id="quantityColumn" prefWidth="81.0" text="数量(净重)" />
|
|
||||||
<TableColumn fx:id="utilizationRateColumn" prefWidth="71.0" text="利用率" />
|
|
||||||
<TableColumn fx:id="unitColumn" prefWidth="60.0" text="单位" />
|
|
||||||
<TableColumn fx:id="unitPriceColumn" prefWidth="89.0" text="单价(元)" />
|
|
||||||
<TableColumn fx:id="amountColumn" prefWidth="85.0" text="金额(元)" />
|
|
||||||
<TableColumn fx:id="comparedQuantityColumn" prefWidth="74.0" text="对比数量" />
|
|
||||||
<TableColumn fx:id="comparedUnitPriceColumn" prefWidth="75.0" text="对比单价" />
|
|
||||||
<TableColumn fx:id="comparedResultColumn" prefWidth="114.0" text="对比结果(元)" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<BorderPane fx:id="bordPane" prefHeight="60.0" prefWidth="314.0" BorderPane.alignment="CENTER">
|
|
||||||
<center>
|
|
||||||
<FlowPane alignment="CENTER_RIGHT" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<FlowPane alignment="CENTER" prefHeight="43.0" prefWidth="447.0">
|
|
||||||
<children>
|
|
||||||
<Label alignment="CENTER" contentDisplay="CENTER" nodeOrientation="LEFT_TO_RIGHT" text="颜色备注:">
|
|
||||||
<FlowPane.margin>
|
|
||||||
<Insets top="10.0" />
|
|
||||||
</FlowPane.margin>
|
|
||||||
</Label>
|
|
||||||
<TextField editable="false" prefHeight="20.0" prefWidth="37.0" style="-fx-background-color: #FF6600;">
|
|
||||||
<FlowPane.margin>
|
|
||||||
<Insets top="10.0" />
|
|
||||||
</FlowPane.margin>
|
|
||||||
</TextField>
|
|
||||||
<Label text=":代表亏损 ">
|
|
||||||
<FlowPane.margin>
|
|
||||||
<Insets top="10.0" />
|
|
||||||
</FlowPane.margin>
|
|
||||||
</Label>
|
|
||||||
<TextField editable="false" prefHeight="20.0" prefWidth="37.0" style="-fx-background-color: #A9D08E;">
|
|
||||||
<FlowPane.margin>
|
|
||||||
<Insets top="10.0" />
|
|
||||||
</FlowPane.margin>
|
|
||||||
</TextField>
|
|
||||||
<Label text=":代表盈利 ">
|
|
||||||
<FlowPane.margin>
|
|
||||||
<Insets top="10.0" />
|
|
||||||
</FlowPane.margin>
|
|
||||||
</Label>
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
<Label prefWidth="86.0" text=" 总价:" />
|
|
||||||
<TextField fx:id="totalPriceTextField" prefHeight="30.0" prefWidth="131.0" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<FlowPane alignment="CENTER_RIGHT" prefHeight="50.0" prefWidth="1237.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="总价对比结果:" />
|
|
||||||
<TextField fx:id="totalPriceCompareTextField" prefHeight="30.0" prefWidth="131.0" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</bottom>
|
|
||||||
<padding>
|
|
||||||
<Insets top="2.0" />
|
|
||||||
</padding>
|
|
||||||
</BorderPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
<FlowPane alignment="TOP_RIGHT" hgap="40.0" layoutX="160.0" layoutY="26.0" prefHeight="48.0" prefWidth="1151.0" AnchorPane.rightAnchor="10.0">
|
|
||||||
<children>
|
|
||||||
<Label fx:id="costSheetTypeLabel" prefHeight="20.0" prefWidth="83.0" text="成本单类型:" />
|
|
||||||
<ComboBox fx:id="costSheetTypeComboBox" prefHeight="30.0" prefWidth="216.0" />
|
|
||||||
<Label fx:id="editionLabel" prefHeight="20.0" prefWidth="52.0" text="版次:" />
|
|
||||||
<ComboBox fx:id="editionComboBox" prefWidth="100.0" />
|
|
||||||
<Label fx:id="comparedCostSheetLabel" prefHeight="20.0" prefWidth="113.0" text="要对比的成本单:" />
|
|
||||||
<TextField fx:id="comparedCostSheetTextField" prefHeight="30.0" prefWidth="200.0" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
<GridPane fx:id="centerPane" layoutX="14.0" layoutY="304.0" prefHeight="48.0" prefWidth="1297.0" style="-fx-border-color: gray; -fx-border-width: 0.5px; -fx-border-radius: 5px;" AnchorPane.leftAnchor="9.0" AnchorPane.rightAnchor="10.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label fx:id="copperAmountLabel" prefHeight="20.0" prefWidth="83.0" text="用铜量(kg):" />
|
|
||||||
<TextField fx:id="copperAmountTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" />
|
|
||||||
<Label fx:id="copperMarketPriceLabel" prefHeight="20.0" prefWidth="139.0" text="铜价市场价(元/kg):" GridPane.columnIndex="2" />
|
|
||||||
<TextField fx:id="copperMarketPriceTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" />
|
|
||||||
<Label fx:id="voltageLevelLabel" prefHeight="20.0" prefWidth="74.0" text="电压等级:" GridPane.columnIndex="4" />
|
|
||||||
<TextField fx:id="voltageLevelTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets right="15.0" />
|
|
||||||
</padding>
|
|
||||||
</GridPane>
|
|
||||||
<TextArea fx:id="changeReason" layoutX="106.0" layoutY="794.0" prefHeight="106.0" prefWidth="450.0" AnchorPane.bottomAnchor="1.0" />
|
|
||||||
<Label layoutX="37.0" layoutY="796.0" text="更改原因:" AnchorPane.bottomAnchor="90.0" />
|
|
||||||
</children>
|
|
||||||
<padding>
|
|
||||||
<Insets bottom="30.0" left="5.0" right="5.0" top="10.0" />
|
|
||||||
</padding>
|
|
||||||
</AnchorPane>
|
|
@ -1,123 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
<?import javafx.scene.control.Button?>
|
|
||||||
<?import javafx.scene.control.ComboBox?>
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<?import javafx.scene.control.TableColumn?>
|
|
||||||
<?import javafx.scene.control.TableView?>
|
|
||||||
<?import javafx.scene.control.TextField?>
|
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
|
||||||
<?import javafx.scene.layout.Pane?>
|
|
||||||
|
|
||||||
<AnchorPane fx:id="coverPane" prefHeight="814.0" prefWidth="1329.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.CreateOuotation.MyController">
|
|
||||||
<children>
|
|
||||||
<Label fx:id="costSheetTypeLabel" layoutX="461.0" layoutY="50.0" prefHeight="20.0" prefWidth="83.0" text="成本单类型:" />
|
|
||||||
<ComboBox fx:id="costSheetTypeComboBox" layoutX="560.0" layoutY="45.0" prefWidth="160.0" />
|
|
||||||
<Label fx:id="editionLabel" layoutX="762.0" layoutY="50.0" prefHeight="20.0" prefWidth="52.0" text="版次:" />
|
|
||||||
<ComboBox fx:id="editionComboBox" layoutX="822.0" layoutY="45.0" prefWidth="100.0" />
|
|
||||||
<Label fx:id="comparedCostSheetLabel" layoutX="957.0" layoutY="50.0" prefHeight="20.0" prefWidth="113.0" text="要对比的成本单:" />
|
|
||||||
<TextField fx:id="comparedCostSheetTextField" layoutX="1093.0" layoutY="45.0" prefHeight="30.0" prefWidth="200.0" />
|
|
||||||
<Pane fx:id="centerPane" layoutX="14.0" layoutY="299.0" prefHeight="48.0" prefWidth="1302.0" style="-fx-border-color: gray; -fx-border-width: 0.5px; -fx-border-radius: 5px;">
|
|
||||||
<children>
|
|
||||||
<Label fx:id="copperAmountLabel" layoutX="25.0" layoutY="14.0" prefHeight="20.0" prefWidth="83.0" text="用铜量(kg):" />
|
|
||||||
<TextField fx:id="copperAmountTextField" layoutX="131.0" layoutY="9.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="copperMarketPriceLabel" layoutX="375.0" layoutY="14.0" prefHeight="20.0" prefWidth="139.0" text="铜价市场价(元/kg):" />
|
|
||||||
<TextField fx:id="copperMarketPriceTextField" layoutX="533.0" layoutY="9.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="voltageLevelLabel" layoutX="766.0" layoutY="14.0" prefHeight="20.0" prefWidth="74.0" text="电压等级:" />
|
|
||||||
<TextField fx:id="voltageLevelTextField" layoutX="854.0" layoutY="9.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
||||||
<Pane fx:id="tablePane" layoutX="14.0" layoutY="365.0" prefHeight="380.0" prefWidth="1302.0">
|
|
||||||
<children>
|
|
||||||
<TableView fx:id="materialsTable" prefHeight="309.0" prefWidth="1302.0">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="no" prefWidth="75.0" />
|
|
||||||
<TableColumn fx:id="materialNameColumn" prefWidth="126.0" text="材料名称" />
|
|
||||||
<TableColumn fx:id="relatedMaterialColumn" prefWidth="122.0" text="材料名称" />
|
|
||||||
<TableColumn fx:id="specificationColumn" prefWidth="250.0" text="规格" />
|
|
||||||
<TableColumn fx:id="manufacturerColumn" minWidth="0.0" prefWidth="203.0" text="制造厂商" />
|
|
||||||
<TableColumn fx:id="quantityColumn" prefWidth="91.0" text="数量(净重)" />
|
|
||||||
<TableColumn fx:id="utilizationRateColumn" prefWidth="69.0" text="利用率" />
|
|
||||||
<TableColumn fx:id="unitColumn" prefWidth="70.0" text="单位" />
|
|
||||||
<TableColumn fx:id="unitPriceColumn" prefWidth="86.0" text="单价(元)" />
|
|
||||||
<TableColumn fx:id="amountColumn" prefWidth="94.0" text="金额(元)" />
|
|
||||||
<TableColumn fx:id="comparedResultColumn" prefWidth="115.0" text="对比结果(元)" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
<BorderPane fx:id="bordPane" layoutX="974.0" layoutY="309.0" prefHeight="60.0" prefWidth="314.0">
|
|
||||||
<center>
|
|
||||||
<FlowPane alignment="CENTER_RIGHT" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label prefWidth="86.0" text=" 总价:" />
|
|
||||||
<TextField fx:id="totalPriceTextField" prefHeight="30.0" prefWidth="131.0" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</center>
|
|
||||||
<bottom>
|
|
||||||
<FlowPane alignment="CENTER_RIGHT" prefHeight="50.0" prefWidth="314.0" BorderPane.alignment="CENTER">
|
|
||||||
<children>
|
|
||||||
<Label text="总价对比结果:" />
|
|
||||||
<TextField fx:id="totalPriceCompareTextField" prefHeight="30.0" prefWidth="131.0" />
|
|
||||||
</children>
|
|
||||||
</FlowPane>
|
|
||||||
</bottom>
|
|
||||||
<padding>
|
|
||||||
<Insets top="2.0" />
|
|
||||||
</padding>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
||||||
<Button fx:id="saveButton" layoutX="750.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="保存" />
|
|
||||||
<Button fx:id="calculateButton" layoutX="900.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="计算金额" />
|
|
||||||
<Button fx:id="selectComparisonButton" layoutX="1050.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="选择对比" />
|
|
||||||
<Button fx:id="compareButton" layoutX="1200.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="对比" />
|
|
||||||
<GridPane fx:id="gridPane" layoutX="14.0" layoutY="108.0" prefHeight="189.0" prefWidth="1302.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Label fx:id="projectNameLabel" prefHeight="20.0" prefWidth="83.0" text="项目名称:" />
|
|
||||||
<TextField fx:id="projectNameTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" />
|
|
||||||
<Label fx:id="transformerModelLabel" prefHeight="20.0" prefWidth="83.0" text="变压器型号:" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="transformerModelTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<Label fx:id="noLoadLossLabel" prefHeight="20.0" prefWidth="83.0" text="空载损耗:" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="noLoadLossTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<Label fx:id="loadLossLabel" prefHeight="20.0" prefWidth="120.0" text="负载损耗(KW):" GridPane.rowIndex="3" />
|
|
||||||
<TextField fx:id="loadLossTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
|
||||||
<Label fx:id="biddingNumberLabel" prefHeight="20.0" prefWidth="83.0" text="投标编号:" GridPane.columnIndex="2" />
|
|
||||||
<Label fx:id="capacityRatioLabel" prefHeight="20.0" prefWidth="120.0" text="容量比(MVA):" GridPane.columnIndex="2" GridPane.rowIndex="1" />
|
|
||||||
<Label fx:id="impedanceVoltageLabel" prefHeight="20.0" prefWidth="83.0" text="阻抗电压:" GridPane.columnIndex="2" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="biddingNumberTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="capacityRatioTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="impedanceVoltageTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label fx:id="projectManagerLabel" prefHeight="20.0" prefWidth="83.0" text="项目经理:" GridPane.columnIndex="4" />
|
|
||||||
<Label fx:id="voltageRatioLabel" prefHeight="20.0" prefWidth="83.0" text="电压比(kV):" GridPane.columnIndex="4" GridPane.rowIndex="1" />
|
|
||||||
<Label fx:id="transportationWeightLabel" prefHeight="20.0" prefWidth="83.0" text="运输重(t):" GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="projectManagerTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="voltageRatioTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="transportationWeightTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="5" GridPane.rowIndex="2" />
|
|
||||||
<Label fx:id="quantityLabel" prefHeight="20.0" prefWidth="83.0" text="数量:" GridPane.columnIndex="6" />
|
|
||||||
<TextField fx:id="quantityTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="7" />
|
|
||||||
<Label fx:id="totalWeightLabel" prefHeight="20.0" prefWidth="83.0" text="总重(t):" GridPane.columnIndex="6" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="totalWeightTextField" prefHeight="20.0" prefWidth="166.0" GridPane.columnIndex="7" GridPane.rowIndex="2" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
@ -1,86 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.scene.control.Button?>
|
|
||||||
<?import javafx.scene.control.ComboBox?>
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<?import javafx.scene.control.TableColumn?>
|
|
||||||
<?import javafx.scene.control.TableView?>
|
|
||||||
<?import javafx.scene.control.TextField?>
|
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
|
||||||
<?import javafx.scene.layout.Pane?>
|
|
||||||
|
|
||||||
<AnchorPane fx:id="coverPane" prefHeight="814.0" prefWidth="1329.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.CreateOuotation.MyController">
|
|
||||||
<children>
|
|
||||||
<Pane fx:id="topPane" layoutX="14.0" layoutY="91.0" prefHeight="189.0" prefWidth="1302.0" style="-fx-border-color: gray; -fx-border-width: 0.5px; -fx-border-radius: 5px;">
|
|
||||||
<children>
|
|
||||||
<Label fx:id="projectNameLabel" layoutX="23.0" layoutY="16.0" prefHeight="20.0" prefWidth="83.0" text="项目名称:" />
|
|
||||||
<Label fx:id="transformerModelLabel" layoutX="23.0" layoutY="60.0" prefHeight="20.0" prefWidth="83.0" text="变压器型号:" />
|
|
||||||
<Label fx:id="noLoadLossLabel" layoutX="23.0" layoutY="105.0" prefHeight="20.0" prefWidth="83.0" text="空载损耗:" />
|
|
||||||
<Label fx:id="loadLossLabel" layoutX="23.0" layoutY="148.0" prefHeight="20.0" prefWidth="120.0" text="负载损耗(KW):" />
|
|
||||||
<TextField fx:id="projectNameTextField" layoutX="129.0" layoutY="11.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<TextField fx:id="transformerModelTextField" layoutX="129.0" layoutY="55.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<TextField fx:id="noLoadLossTextField" layoutX="129.0" layoutY="100.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<TextField fx:id="loadLossTextField" layoutX="129.0" layoutY="143.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="biddingNumberLabel" layoutX="355.0" layoutY="16.0" prefHeight="20.0" prefWidth="83.0" text="投标编号:" />
|
|
||||||
<TextField fx:id="biddingNumberTextField" layoutX="473.0" layoutY="11.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="capacityRatioLabel" layoutX="355.0" layoutY="60.0" prefHeight="20.0" prefWidth="120.0" text="容量比(MVA):" />
|
|
||||||
<TextField fx:id="capacityRatioTextField" layoutX="473.0" layoutY="55.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="impedanceVoltageLabel" layoutX="355.0" layoutY="105.0" prefHeight="20.0" prefWidth="83.0" text="阻抗电压:" />
|
|
||||||
<Label fx:id="projectManagerLabel" layoutX="705.0" layoutY="16.0" prefHeight="20.0" prefWidth="83.0" text="项目经理:" />
|
|
||||||
<TextField fx:id="impedanceVoltageTextField" layoutX="473.0" layoutY="100.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<TextField fx:id="projectManagerTextField" layoutX="825.0" layoutY="11.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="voltageRatioLabel" layoutX="705.0" layoutY="60.0" prefHeight="20.0" prefWidth="83.0" text="电压比(kV):" />
|
|
||||||
<Label fx:id="transportationWeightLabel" layoutX="705.0" layoutY="105.0" prefHeight="20.0" prefWidth="83.0" text="运输重(t):" />
|
|
||||||
<TextField fx:id="voltageRatioTextField" layoutX="825.0" layoutY="55.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<TextField fx:id="transportationWeightTextField" layoutX="825.0" layoutY="100.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="quantityLabel" layoutX="1044.0" layoutY="15.0" prefHeight="20.0" prefWidth="83.0" text="数量:" />
|
|
||||||
<Label fx:id="totalWeightLabel" layoutX="1044.0" layoutY="105.0" prefHeight="20.0" prefWidth="83.0" text="总重(t):" />
|
|
||||||
<TextField fx:id="quantityTextField" layoutX="1113.0" layoutY="11.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<TextField fx:id="totalWeightTextField" layoutX="1113.0" layoutY="100.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
||||||
<Label fx:id="costSheetTypeLabel" layoutX="461.0" layoutY="50.0" prefHeight="20.0" prefWidth="83.0" text="成本单类型:" />
|
|
||||||
<ComboBox fx:id="costSheetTypeComboBox" layoutX="560.0" layoutY="45.0" prefWidth="160.0" />
|
|
||||||
<Label fx:id="editionLabel" layoutX="762.0" layoutY="50.0" prefHeight="20.0" prefWidth="52.0" text="版次:" />
|
|
||||||
<ComboBox fx:id="editionComboBox" layoutX="822.0" layoutY="45.0" prefWidth="100.0" />
|
|
||||||
<Label fx:id="comparedCostSheetLabel" layoutX="957.0" layoutY="50.0" prefHeight="20.0" prefWidth="113.0" text="要对比的成本单:" />
|
|
||||||
<TextField fx:id="comparedCostSheetTextField" layoutX="1093.0" layoutY="45.0" prefHeight="30.0" prefWidth="200.0" />
|
|
||||||
<Pane fx:id="centerPane" layoutX="14.0" layoutY="299.0" prefHeight="48.0" prefWidth="1302.0" style="-fx-border-color: gray; -fx-border-width: 0.5px; -fx-border-radius: 5px;">
|
|
||||||
<children>
|
|
||||||
<Label fx:id="copperAmountLabel" layoutX="25.0" layoutY="14.0" prefHeight="20.0" prefWidth="83.0" text="用铜量(kg):" />
|
|
||||||
<TextField fx:id="copperAmountTextField" layoutX="131.0" layoutY="9.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="copperMarketPriceLabel" layoutX="375.0" layoutY="14.0" prefHeight="20.0" prefWidth="139.0" text="铜价市场价(元/kg):" />
|
|
||||||
<TextField fx:id="copperMarketPriceTextField" layoutX="533.0" layoutY="9.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
<Label fx:id="voltageLevelLabel" layoutX="766.0" layoutY="14.0" prefHeight="20.0" prefWidth="74.0" text="电压等级:" />
|
|
||||||
<TextField fx:id="voltageLevelTextField" layoutX="854.0" layoutY="9.0" prefHeight="20.0" prefWidth="166.0" />
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
||||||
<Pane fx:id="tablePane" layoutX="14.0" layoutY="365.0" prefHeight="380.0" prefWidth="1302.0">
|
|
||||||
<children>
|
|
||||||
<TableView fx:id="materialsTable" prefHeight="309.0" prefWidth="1302.0">
|
|
||||||
<columns>
|
|
||||||
<TableColumn fx:id="no" prefWidth="75.0" />
|
|
||||||
<TableColumn fx:id="materialNameColumn" prefWidth="126.0" text="材料名称" />
|
|
||||||
<TableColumn fx:id="relatedMaterialColumn" prefWidth="122.0" text="材料名称" />
|
|
||||||
<TableColumn fx:id="specificationColumn" prefWidth="250.0" text="规格" />
|
|
||||||
<TableColumn fx:id="manufacturerColumn" minWidth="0.0" prefWidth="203.0" text="制造厂商" />
|
|
||||||
<TableColumn fx:id="quantityColumn" prefWidth="91.0" text="数量(净重)" />
|
|
||||||
<TableColumn fx:id="utilizationRateColumn" prefWidth="69.0" text="利用率" />
|
|
||||||
<TableColumn fx:id="unitColumn" prefWidth="70.0" text="单位" />
|
|
||||||
<TableColumn fx:id="unitPriceColumn" prefWidth="86.0" text="单价(元)" />
|
|
||||||
<TableColumn fx:id="amountColumn" prefWidth="94.0" text="金额(元)" />
|
|
||||||
<TableColumn fx:id="comparedResultColumn" prefWidth="115.0" text="对比结果(元)" />
|
|
||||||
</columns>
|
|
||||||
</TableView>
|
|
||||||
<TextField fx:id="totalPriceTextField" layoutX="1171.0" layoutY="308.0" prefHeight="30.0" prefWidth="131.0" />
|
|
||||||
<Label layoutX="1085.0" layoutY="313.0" prefWidth="86.0" text=" 总价:" />
|
|
||||||
<Label layoutX="1050.0" layoutY="346.0" text="总价对比结果:" />
|
|
||||||
<TextField fx:id="totalPriceCompareTextField" layoutX="1171.0" layoutY="341.0" prefHeight="30.0" prefWidth="131.0" />
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
||||||
<Button fx:id="saveButton" layoutX="750.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="保存" />
|
|
||||||
<Button fx:id="calculateButton" layoutX="900.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="计算金额" />
|
|
||||||
<Button fx:id="selectComparisonButton" layoutX="1050.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="选择对比" />
|
|
||||||
<Button fx:id="compareButton" layoutX="1200.0" layoutY="759.0" mnemonicParsing="false" prefWidth="100.0" text="对比" />
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
@ -1,106 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
|
|
||||||
<Pane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="840.0" prefWidth="1270.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.GZXQ.GZXQController">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="bpane" layoutX="5.0" layoutY="14.0" prefHeight="840.0" prefWidth="1261.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="titlePaneCondition" animated="false" prefHeight="182.0" prefWidth="1034.0" text="条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="151.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPaneCondition" layoutX="13.0" layoutY="11.0" prefHeight="114.0" prefWidth="1218.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="109.0" minWidth="10.0" prefWidth="86.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="216.0" minWidth="10.0" prefWidth="164.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="112.0" minWidth="10.0" prefWidth="93.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="233.0" minWidth="10.0" prefWidth="185.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="103.0" minWidth="10.0" prefWidth="95.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="246.0" minWidth="10.0" prefWidth="191.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="189.0" minWidth="10.0" prefWidth="97.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="212.0" minWidth="10.0" prefWidth="212.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<TextField fx:id="jTextField1" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="jTextField2" prefHeight="30.0" prefWidth="189.0" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="jTextField5" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField6" prefHeight="30.0" prefWidth="152.0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField7" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField3" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="jTextField8" GridPane.columnIndex="7" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField4" prefHeight="30.0" prefWidth="168.0" GridPane.columnIndex="7" />
|
|
||||||
<TextField fx:id="jTextField9" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="jTextField10" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label text="流程实例ID" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="工装名称" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="产品名称" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工艺负责人" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="委托理由" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="工装等级" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="产品型号" GridPane.columnIndex="4" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="计划时间" GridPane.columnIndex="4" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工装编号" GridPane.columnIndex="6" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="申请人" GridPane.columnIndex="6" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Button fx:id="jButton2" mnemonicParsing="false" onAction="#cxAction" prefHeight="30.0" prefWidth="98.0" text="查 询" GridPane.columnIndex="7" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="BOTTOM">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
</Button>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<TitledPane fx:id="titlePaneResult" animated="false" prefHeight="620.0" prefWidth="966.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="570.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="tablePane" layoutX="8.0" layoutY="6.0" prefHeight="573.0" prefWidth="1245.0">
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" prefHeight="544.0" prefWidth="1195.0" BorderPane.alignment="CENTER" />
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane fx:id="gridPaneResult" prefHeight="29.0" prefWidth="948.0" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="3" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="4" fx:id="xyy" />
|
|
||||||
<Button fx:id="wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="5" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
@ -1,107 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
|
|
||||||
<Pane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="840.0" prefWidth="1270.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.GZXQ.GZXQController">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="bpane" layoutX="5.0" layoutY="14.0" prefHeight="840.0" prefWidth="1261.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="titlePaneCondition" animated="false" prefHeight="182.0" prefWidth="1034.0" text="条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="151.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPaneCondition" layoutX="13.0" layoutY="11.0" prefHeight="114.0" prefWidth="1218.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="109.0" minWidth="10.0" prefWidth="86.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="216.0" minWidth="10.0" prefWidth="164.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="112.0" minWidth="10.0" prefWidth="93.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="233.0" minWidth="10.0" prefWidth="185.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="103.0" minWidth="10.0" prefWidth="95.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="246.0" minWidth="10.0" prefWidth="191.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="189.0" minWidth="10.0" prefWidth="97.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="212.0" minWidth="10.0" prefWidth="212.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<TextField fx:id="jTextField1" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="jTextField2" prefHeight="30.0" prefWidth="189.0" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="jTextField5" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField6" prefHeight="30.0" prefWidth="152.0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField3" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="jTextField8" GridPane.columnIndex="7" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField4" prefHeight="30.0" prefWidth="168.0" GridPane.columnIndex="7" />
|
|
||||||
<TextField fx:id="jTextField9" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="jTextField10" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label text="流程实例ID" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="工装名称" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="产品名称" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工艺负责人" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="委托理由" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="工装等级" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="产品型号" GridPane.columnIndex="4" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="计划时间" GridPane.columnIndex="4" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工装编号" GridPane.columnIndex="6" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="申请人" GridPane.columnIndex="6" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Button fx:id="jButton2" mnemonicParsing="false" onAction="#cxAction" prefHeight="30.0" prefWidth="98.0" text="查 询" GridPane.columnIndex="7" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="BOTTOM">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
</Button>
|
|
||||||
<DatePicker GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<DatePicker fx:id="jTextField7" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<TitledPane fx:id="titlePaneResult" animated="false" prefHeight="620.0" prefWidth="966.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="570.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="tablePane" layoutX="8.0" layoutY="6.0" prefHeight="573.0" prefWidth="1245.0">
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" prefHeight="544.0" prefWidth="1195.0" BorderPane.alignment="CENTER" />
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane fx:id="gridPaneResult" prefHeight="29.0" prefWidth="948.0" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="3" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="4" fx:id="xyy" />
|
|
||||||
<Button fx:id="wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="5" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
@ -1,24 +0,0 @@
|
|||||||
preferr=\u9996\u9009\u9879\u914D\u7F6E\u4E0D\u6B63\u786E
|
|
||||||
err=\u9519\u8BEF\uFF1A
|
|
||||||
#ProcessCheckDialog
|
|
||||||
title=\u5DE5\u827A\u8DEF\u7EBF\u9F50\u5957\u6027\u68C0\u67E5
|
|
||||||
cols=\u5E8F\u53F7;\u7269\u6599\u7F16\u7801;\u7269\u6599\u540D\u79F0;\u662F\u5426\u5173\u8054\u5DE5\u827A\u8DEF\u7EBF
|
|
||||||
xmzx=\u9879\u76EE\u6267\u884C
|
|
||||||
zztz=13-\u603B\u88C5\u56FE\u7EB8
|
|
||||||
msg1=\u8BF7\u9009\u62E9\u9879\u76EE\u5BF9\u8C61
|
|
||||||
msg2=\u672A\u627E\u5230\u603B\u88C5\u56FE\u7EB8
|
|
||||||
yes=\u662F
|
|
||||||
no=\u5426
|
|
||||||
#AssProcessAutoFeedingCommand
|
|
||||||
cpxh=\u4EA7\u54C1\u578B\u53F7
|
|
||||||
info1=\u8BF7\u767B\u5F55\u6B63\u786E\u7EC4
|
|
||||||
info2=\u8BF7\u9009\u62E9BOM\u884C\u6216\u8005\u7248\u672C\u5BF9\u8C61
|
|
||||||
info3=\u8BF7\u9009\u62E9PBOM\u5BF9\u8C61
|
|
||||||
info4=\u672A\u627E\u5230\u4EA7\u6210\u54C1\u6587\u4EF6\u5939\uFF0C\u8BF7\u68C0\u67E5
|
|
||||||
info5=\u5B58\u5728\u9876\u5C42P\u7269\u6599\u6CA1\u6709\u5173\u8054\u56FE\u7EB8\uFF0C\u8BF7\u68C0\u67E5
|
|
||||||
info6=\u5F53\u524D\u4EA7\u54C1\u578B\u53F7\u672A\u7EF4\u62A4\uFF0C\u8BF7\u9009\u62E9\u5BF9\u5E94\u4EA7\u54C1\u65CF
|
|
||||||
info7=\u6B63\u5728\u8FDB\u884C\u4E00\u952E\u6307\u6D3E\u5DE5\u827A\u8DEF\u7EBF......
|
|
||||||
info8=\u6307\u6D3E\u5DE5\u827A\u8DEF\u7EBF\u5B58\u5728\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\uFF1A\n
|
|
||||||
info9=\u6B63\u5728\u8FDB\u884C\u81EA\u52A8\u6295\u6599......
|
|
||||||
info10=\u81EA\u52A8\u6295\u6599\u5B58\u5728\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\uFF1A\n
|
|
||||||
info11=\u6307\u6D3E\u5DE5\u827A\u8DEF\u7EBF\u4E0E\u81EA\u52A8\u6295\u6599\u5B8C\u6210
|
|
@ -1,24 +0,0 @@
|
|||||||
preferr=\u9996\u9009\u9879\u914D\u7F6E\u4E0D\u6B63\u786E
|
|
||||||
#ProcessCheckDialog
|
|
||||||
err=\u9519\u8BEF\uFF1A
|
|
||||||
title=\u5DE5\u827A\u8DEF\u7EBF\u9F50\u5957\u6027\u68C0\u67E5
|
|
||||||
cols=\u5E8F\u53F7;\u7269\u6599\u7F16\u7801;\u7269\u6599\u540D\u79F0;\u662F\u5426\u5173\u8054\u5DE5\u827A\u8DEF\u7EBF
|
|
||||||
xmzx=\u9879\u76EE\u6267\u884C
|
|
||||||
zztz=13-\u603B\u88C5\u56FE\u7EB8
|
|
||||||
msg1=\u8BF7\u9009\u62E9\u9879\u76EE\u5BF9\u8C61
|
|
||||||
msg2=\u672A\u627E\u5230\u603B\u88C5\u56FE\u7EB8
|
|
||||||
yes=\u662F
|
|
||||||
no=\u5426
|
|
||||||
#AssProcessAutoFeedingCommand
|
|
||||||
cpxh=\u4EA7\u54C1\u578B\u53F7
|
|
||||||
info1=\u8BF7\u767B\u5F55\u6B63\u786E\u7EC4
|
|
||||||
info2=\u8BF7\u9009\u62E9BOM\u884C\u6216\u8005\u7248\u672C\u5BF9\u8C61
|
|
||||||
info3=\u8BF7\u9009\u62E9PBOM\u5BF9\u8C61
|
|
||||||
info4=\u672A\u627E\u5230\u4EA7\u6210\u54C1\u6587\u4EF6\u5939\uFF0C\u8BF7\u68C0\u67E5
|
|
||||||
info5=\u5B58\u5728\u9876\u5C42P\u7269\u6599\u6CA1\u6709\u5173\u8054\u56FE\u7EB8\uFF0C\u8BF7\u68C0\u67E5
|
|
||||||
info6=\u5F53\u524D\u4EA7\u54C1\u578B\u53F7\u672A\u7EF4\u62A4\uFF0C\u8BF7\u9009\u62E9\u5BF9\u5E94\u4EA7\u54C1\u65CF
|
|
||||||
info7=\u6B63\u5728\u8FDB\u884C\u4E00\u952E\u6307\u6D3E\u5DE5\u827A\u8DEF\u7EBF......
|
|
||||||
info8=\u6307\u6D3E\u5DE5\u827A\u8DEF\u7EBF\u5B58\u5728\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\uFF1A\n
|
|
||||||
info9=\u6B63\u5728\u8FDB\u884C\u81EA\u52A8\u6295\u6599......
|
|
||||||
info10=\u81EA\u52A8\u6295\u6599\u5B58\u5728\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\uFF1A\n
|
|
||||||
info11=\u6307\u6D3E\u5DE5\u827A\u8DEF\u7EBF\u4E0E\u81EA\u52A8\u6295\u6599\u5B8C\u6210
|
|
@ -1,30 +0,0 @@
|
|||||||
package com.connor.chint.yunpi.command;
|
|
||||||
|
|
||||||
import org.eclipse.core.commands.AbstractHandler;
|
|
||||||
import org.eclipse.core.commands.ExecutionEvent;
|
|
||||||
import org.eclipse.core.commands.ExecutionException;
|
|
||||||
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
||||||
import com.teamcenter.rac.kernel.TCSession;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import com.connor.chint.yunpi.KCommand;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
|
|
||||||
public class QueryZxjcHandler extends KCommand {
|
|
||||||
|
|
||||||
public QueryZxjcHandler(AbstractAIFApplication app, String commandId, String actionInfo) {
|
|
||||||
super(app, commandId, actionInfo);
|
|
||||||
TCSession session = (TCSession) app.getSession();
|
|
||||||
try {
|
|
||||||
|
|
||||||
new QueryZxjcFram(session);
|
|
||||||
}catch(Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,260 +0,0 @@
|
|||||||
package com.connor.chint.yunpi.command;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Map.Entry;
|
|
||||||
|
|
||||||
//import com.connor.chint.sap2.sap.SAPPushBOMBean;
|
|
||||||
//import com.connor.chint.sap2.sap_by.SAPZZDialogController;
|
|
||||||
import com.teamcenter.rac.aif.kernel.AIFComponentContext;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponent;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItem;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
|
||||||
import com.teamcenter.rac.kernel.TCException;
|
|
||||||
|
|
||||||
public class ZxjcBean extends SAPPushBOMBean {
|
|
||||||
public static final String TYPE_FACTNO = "ZT2_FactoryNo";
|
|
||||||
public static final String REL_PART_FACTNO = "ZT2_FactoryNumber";
|
|
||||||
private int index;
|
|
||||||
public TCComponentItemRevision part;
|
|
||||||
public TCComponentItem factoryNo;
|
|
||||||
public TCComponentItemRevision zzDesignRev = null;
|
|
||||||
public TCComponent[] factoryNos;
|
|
||||||
public String materialNo;
|
|
||||||
//出厂编号
|
|
||||||
public String ccbh;
|
|
||||||
public String getCcbh() {
|
|
||||||
return ccbh;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCcbh(String ccbh) {
|
|
||||||
this.ccbh = ccbh;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TCComponentItemRevision getZzDesignRev() {
|
|
||||||
return zzDesignRev;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setZzDesignRev(TCComponentItemRevision zzDesignRev) {
|
|
||||||
this.zzDesignRev = zzDesignRev;
|
|
||||||
}
|
|
||||||
public String getMaterialNo() {
|
|
||||||
return materialNo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMaterialNo(String materialNo) {
|
|
||||||
this.materialNo = materialNo;
|
|
||||||
}
|
|
||||||
public int getIndex() {
|
|
||||||
return index;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIndex(int index) {
|
|
||||||
this.index = index;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ZxjcBean(TCComponentItemRevision part, int index) {
|
|
||||||
this.index = index;
|
|
||||||
this.part = part;
|
|
||||||
try {
|
|
||||||
getZZDesign(this.part);
|
|
||||||
} catch (Exception e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public ZxjcBean(TCComponentItemRevision part, int index,String dy) {
|
|
||||||
this.index = index;
|
|
||||||
this.part = part;
|
|
||||||
// try {
|
|
||||||
// getZZDesign(this.part);
|
|
||||||
// } catch (Exception e) {
|
|
||||||
// // TODO Auto-generated catch block
|
|
||||||
// e.printStackTrace();
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
private TCComponentItemRevision getZZDesign(TCComponentItemRevision part) throws Exception {
|
|
||||||
try {
|
|
||||||
TCComponent[] facts = part.getRelatedComponents(REL_PART_FACTNO);
|
|
||||||
int len = facts.length;
|
|
||||||
for (int i = 0; i < len; i++) {
|
|
||||||
String type = facts[i].getType();
|
|
||||||
System.out.println(">> 找到子对象:" + facts[i] + "|" + type);
|
|
||||||
if (TYPE_FACTNO.equals(type)) {
|
|
||||||
// factNo = facts[i].getStringProperty("item_id");//出厂编码
|
|
||||||
this.factoryNo = (TCComponentItem) facts[i];
|
|
||||||
AIFComponentContext contexts[] = factoryNo.whereReferencedByTypeRelation(
|
|
||||||
new String[] { "ZT2_Design3DRevision" }, new String[] { "ZT2_FactoryNumber" });
|
|
||||||
Map<TCComponentItem, List<TCComponentItemRevision>> items2 = new HashMap<TCComponentItem, List<TCComponentItemRevision>>(
|
|
||||||
10);
|
|
||||||
for (int j = 0; j < contexts.length; j++) {
|
|
||||||
String type2 = contexts[j].getComponent().getType();
|
|
||||||
String name = contexts[j].getComponent().getProperty("object_name");
|
|
||||||
System.out.println(contexts[j] + "->type:" + type2);
|
|
||||||
// if (name.contains("总装")) { // || name.contains("变压器")
|
|
||||||
TCComponentItemRevision pRev = (TCComponentItemRevision) contexts[j].getComponent();
|
|
||||||
TCComponentItem item = pRev.getItem();
|
|
||||||
if (items2.containsKey(item)) {
|
|
||||||
items2.get(item).add(pRev);
|
|
||||||
} else {
|
|
||||||
List<TCComponentItemRevision> revs = new ArrayList<TCComponentItemRevision>();
|
|
||||||
revs.add(pRev);
|
|
||||||
items2.put(item, revs);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* zzDesignRev =(TCComponentItemRevision) contexts[j].getComponent();
|
|
||||||
* if(isLastRev(zzDesignRev)) { //zztydh =
|
|
||||||
* contexts[j].getComponent().getProperty("item_id"); break; } zzDesignRev=null;
|
|
||||||
*/
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
if (items2.size() > 0) {
|
|
||||||
List<TCComponentItemRevision> cZZRevs = new ArrayList<TCComponentItemRevision>();
|
|
||||||
addLastRevisions(items2, cZZRevs);
|
|
||||||
if (cZZRevs.size() > 0) {
|
|
||||||
zzDesignRev = cZZRevs.get(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (TCException e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addLastRevisions(Map<TCComponentItem, List<TCComponentItemRevision>> items,
|
|
||||||
List<TCComponentItemRevision> cParts) throws TCException {
|
|
||||||
Iterator<Entry<TCComponentItem, List<TCComponentItemRevision>>> iterator = items.entrySet().iterator();
|
|
||||||
while (iterator.hasNext()) {
|
|
||||||
Entry<TCComponentItem, List<TCComponentItemRevision>> it = iterator.next();
|
|
||||||
List<TCComponentItemRevision> revs = it.getValue();
|
|
||||||
// System.out.println("item["+it.getKey()+"]已发布版本个数:"+revs.size());
|
|
||||||
if (revs.size() == 1) {
|
|
||||||
cParts.add(revs.get(0));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (revs.size() > 1) {
|
|
||||||
TCComponentItemRevision max_Rev = null;
|
|
||||||
String s = "";
|
|
||||||
;
|
|
||||||
int index = -1;
|
|
||||||
for (int j = 0, len2 = revs.size(); j < len2; j++) {
|
|
||||||
String item_id = revs.get(j).getProperty("item_revision_id");
|
|
||||||
if (s.isEmpty()) {
|
|
||||||
s = item_id;
|
|
||||||
max_Rev = revs.get(j);
|
|
||||||
for (int k = 0; k < s.length(); k++) {
|
|
||||||
if (s.charAt(k) >= '0' && s.charAt(k) <= '9') {
|
|
||||||
index = k;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
String temp = item_id;
|
|
||||||
if (index != -1) {
|
|
||||||
if (temp.substring(0, index).compareTo(s.substring(0, index)) > 0) {
|
|
||||||
s = temp;
|
|
||||||
max_Rev = revs.get(j);
|
|
||||||
} else if (temp.substring(0, index).compareTo(s.substring(0, index)) == 0) {
|
|
||||||
String s1 = s.substring(index);
|
|
||||||
String temp1 = temp.substring(index);
|
|
||||||
int min = Math.min(s1.length(), temp1.length());
|
|
||||||
for (int k = 0; k < min; k++) {
|
|
||||||
if (temp1.charAt(k) > s1.charAt(k)) {
|
|
||||||
s = temp;
|
|
||||||
max_Rev = revs.get(j);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (temp1.length() > min) {
|
|
||||||
s = temp;
|
|
||||||
max_Rev = revs.get(j);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
} else if (temp.compareTo(s) > 0) {
|
|
||||||
s = temp;
|
|
||||||
max_Rev = revs.get(j);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cParts.add(max_Rev);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Object[] getRowDataZxjc() throws Exception {
|
|
||||||
String name = part.getStringProperty("object_name");
|
|
||||||
TCComponent[] facts = part.getRelatedComponents(REL_PART_FACTNO);
|
|
||||||
int len = facts == null ? 0 : facts.length;
|
|
||||||
System.out.println("获取出厂编号:" + part);
|
|
||||||
String factNo = "";
|
|
||||||
for (int i = 0; i < len; i++) {
|
|
||||||
String type = facts[i].getType();
|
|
||||||
System.out.println(">> 找到子对象:" + facts[i] + "|" + type);
|
|
||||||
factoryNos = facts;
|
|
||||||
if (TYPE_FACTNO.equals(type)) {
|
|
||||||
factNo = facts[i].getStringProperty("item_id");
|
|
||||||
this.factoryNo = (TCComponentItem) facts[i];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//获取图纸id
|
|
||||||
String tzid = "";
|
|
||||||
TCComponent tzRev = part.getRelatedComponent("TC_Is_Represented_By");
|
|
||||||
if(tzRev != null) {
|
|
||||||
tzid = tzRev.getStringProperty("item_id");
|
|
||||||
}
|
|
||||||
|
|
||||||
//获取产成品数量
|
|
||||||
String zt2_Quantity = part.getStringProperty("zt2_Quantity");
|
|
||||||
String zt2_site = part.getStringProperty("zt2_Site");
|
|
||||||
String zt2_tankNo = part.getStringProperty("zt2_TankNo");
|
|
||||||
// return new Object[] {true,index,zt2_site,zt2_tankNo,name,this,factNo};
|
|
||||||
return new Object[] { true, index, zt2_site, zt2_tankNo, name, this, factNo,tzid,zt2_Quantity};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public Object[] getZYKGRowData() throws Exception {
|
|
||||||
String name = part.getStringProperty("object_name");
|
|
||||||
String zt2_site = part.getStringProperty("zt2_Site");
|
|
||||||
String zt2_tankNo = part.getStringProperty("zt2_TankNo");
|
|
||||||
System.out.println("->" + Arrays.toString(new Object[] { true, index, zt2_site, zt2_tankNo, name, this,
|
|
||||||
getZt2_SapBomState(), getUserName(), getZDATE() }));
|
|
||||||
return new Object[] { true, index, zt2_site, zt2_tankNo, name, this, getZt2_SapBomState(), getUserName(),
|
|
||||||
getZDATE() };
|
|
||||||
// return new Object[] {true,index,zt2_site,zt2_tankNo,name,this};
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
try {
|
|
||||||
return part == null ? "" : part.getStringProperty("zt2_MaterialNo");
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
public TCComponentItemRevision getPart() {
|
|
||||||
return part;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPart(TCComponentItemRevision part) {
|
|
||||||
this.part = part;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,154 +0,0 @@
|
|||||||
package com.connor.chint.yunpi.command;
|
|
||||||
|
|
||||||
import java.awt.Component;
|
|
||||||
import java.awt.Dimension;
|
|
||||||
import java.awt.event.KeyAdapter;
|
|
||||||
import java.awt.event.KeyEvent;
|
|
||||||
import java.awt.event.MouseAdapter;
|
|
||||||
import java.awt.event.MouseEvent;
|
|
||||||
import java.util.regex.Pattern;
|
|
||||||
|
|
||||||
import javax.swing.AbstractCellEditor;
|
|
||||||
import javax.swing.JTable;
|
|
||||||
import javax.swing.JTextField;
|
|
||||||
import javax.swing.table.TableCellEditor;
|
|
||||||
import javax.swing.text.JTextComponent;
|
|
||||||
|
|
||||||
import com.connor.chint.sap2.util.KUtil;
|
|
||||||
import com.connor.chint.sap2.util.POIUtil;
|
|
||||||
import com.connor.chint.sap2.util.ProgressBar;
|
|
||||||
import com.teamcenter.rac.util.MessageBox;
|
|
||||||
|
|
||||||
public class ZxjcCellEditor extends AbstractCellEditor implements TableCellEditor {
|
|
||||||
|
|
||||||
private static final long serialVersionUID = -5118171189856914639L;
|
|
||||||
private JTable t_part;
|
|
||||||
private JTextComponent jtf;
|
|
||||||
private ZxjcFram dialog;
|
|
||||||
|
|
||||||
|
|
||||||
public ZxjcCellEditor(ZxjcFram dialog) {
|
|
||||||
this.dialog = dialog;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object getCellEditorValue() {
|
|
||||||
jtf.selectAll();
|
|
||||||
return jtf.getText();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
|
|
||||||
jtf = new JTextField();
|
|
||||||
t_part = table;
|
|
||||||
jtf.setText("");
|
|
||||||
final int selectRow = row;
|
|
||||||
final int col = column;
|
|
||||||
final String dh = (String) table.getValueAt(row, 2);
|
|
||||||
ProgressBar pb = new ProgressBar(dialog, new Dimension(300, 50));
|
|
||||||
try {
|
|
||||||
|
|
||||||
if (value != null) {
|
|
||||||
jtf.setText(String.valueOf(value));
|
|
||||||
jtf.selectAll();
|
|
||||||
|
|
||||||
if (column == 1) {
|
|
||||||
jtf.setEditable(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
jtf.addKeyListener(new KeyAdapter() {
|
|
||||||
@Override
|
|
||||||
public void keyPressed(KeyEvent e) {
|
|
||||||
|
|
||||||
int code = e.getKeyCode();
|
|
||||||
int i = jtf.getCaretPosition();
|
|
||||||
final String text = jtf.getText();
|
|
||||||
if (code == KeyEvent.VK_LEFT) {
|
|
||||||
System.out.println("触发修改2");
|
|
||||||
if (KUtil.isEmpty(text) || i == 0) {
|
|
||||||
switch (col) {
|
|
||||||
case 2:
|
|
||||||
if (selectRow > 0) {
|
|
||||||
setTableEditting(selectRow - 1, 7);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
Pattern pattern = Pattern.compile("[0-9]*");
|
|
||||||
if (!pattern.matcher(text).matches() || POIUtil.getIntValue(text) < 1) {
|
|
||||||
MessageBox.post(dialog, "第" + (selectRow + 1) + "行数量请输入正整数", "", 2);
|
|
||||||
} else {
|
|
||||||
setTableEditting(selectRow, 3);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
case 7:
|
|
||||||
setTableEditting(selectRow, col - 1);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (code == KeyEvent.VK_RIGHT) {
|
|
||||||
// 没有文本的时候 或者光标在最右边的时候
|
|
||||||
if (KUtil.isEmpty(text) || i == text.length()) {
|
|
||||||
switch (col) {
|
|
||||||
case 3:
|
|
||||||
setTableEditting(selectRow, 6);
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
if (selectRow != t_part.getRowCount() - 1 && selectRow > 0) {
|
|
||||||
setTableEditting(selectRow + 1, 2);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
setTableEditting(selectRow, col + 1);
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
// String value = (String) t_part.getValueAt(selectRow, col);
|
|
||||||
Pattern pattern = Pattern.compile("[0-9]*");
|
|
||||||
if (!pattern.matcher(text).matches() || POIUtil.getIntValue(text) < 1) {
|
|
||||||
MessageBox.post(dialog, "第" + (selectRow + 1) + "行数量请输入正整数", "", 2);
|
|
||||||
} else {
|
|
||||||
setTableEditting(selectRow, col + 1);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
pb.disposeDialog();
|
|
||||||
e.printStackTrace();
|
|
||||||
MessageBox.post(dialog, "异常:" + e.getMessage(), "", 2);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return jtf;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTableEditting(int row, int col) {
|
|
||||||
// t_part.clearSelection();
|
|
||||||
t_part.changeSelection(row, col, false, false);
|
|
||||||
t_part.editCellAt(row, col, null);
|
|
||||||
// System.out.println("第一次:"+edit_row+";"+edit_col);
|
|
||||||
Component editor = t_part.getEditorComponent();
|
|
||||||
if (editor != null) {
|
|
||||||
// editor.requestFocusInWindow();
|
|
||||||
editor.requestFocus();
|
|
||||||
Component c = editor.getComponentAt(0, 0);
|
|
||||||
if (c != null && c instanceof JTextComponent) {
|
|
||||||
JTextComponent jtc = (JTextComponent) c;
|
|
||||||
String value = jtc.getText();
|
|
||||||
|
|
||||||
if (!KUtil.isEmpty(value)) {
|
|
||||||
jtc.setCaretPosition(value.length());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,18 +0,0 @@
|
|||||||
package com.connor.chint.yunpi.command;
|
|
||||||
|
|
||||||
import com.connor.chint.yunpi.KCommand;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
|
|
||||||
public class ZxjcCommand extends KCommand {
|
|
||||||
|
|
||||||
public ZxjcCommand(AbstractAIFApplication app, String commandId, String actionInfo) {
|
|
||||||
super(app, commandId, actionInfo);
|
|
||||||
|
|
||||||
try {
|
|
||||||
|
|
||||||
this.setRunnable(new ZxjcFram(app));
|
|
||||||
}catch(Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,84 +0,0 @@
|
|||||||
package com.connor.chint.yunpi.command;
|
|
||||||
|
|
||||||
public class ZxjcMATERIALBean {
|
|
||||||
private int SEQ;
|
|
||||||
private String FACTORY;
|
|
||||||
private String OBJECTNAME;
|
|
||||||
private String SPECIFICATIONS;
|
|
||||||
private int QUANTITY;
|
|
||||||
private String DRAWINGNO;
|
|
||||||
private String UNIT;
|
|
||||||
private String REMARK;
|
|
||||||
public int getSEQ() {
|
|
||||||
return SEQ;
|
|
||||||
}
|
|
||||||
public void setSEQ(int sEQ) {
|
|
||||||
SEQ = sEQ;
|
|
||||||
}
|
|
||||||
public String getFACTORY() {
|
|
||||||
return FACTORY;
|
|
||||||
}
|
|
||||||
public void setFACTORY(String fACTORY) {
|
|
||||||
FACTORY = fACTORY;
|
|
||||||
}
|
|
||||||
public String getOBJECTNAME() {
|
|
||||||
return OBJECTNAME;
|
|
||||||
}
|
|
||||||
public void setOBJECTNAME(String oBJECTNAME) {
|
|
||||||
OBJECTNAME = oBJECTNAME;
|
|
||||||
}
|
|
||||||
public String getSPECIFICATIONS() {
|
|
||||||
return SPECIFICATIONS;
|
|
||||||
}
|
|
||||||
public void setSPECIFICATIONS(String sPECIFICATIONS) {
|
|
||||||
SPECIFICATIONS = sPECIFICATIONS;
|
|
||||||
}
|
|
||||||
public int getQUANTITY() {
|
|
||||||
return QUANTITY;
|
|
||||||
}
|
|
||||||
public void setQUANTITY(int qUANTITY) {
|
|
||||||
QUANTITY = qUANTITY;
|
|
||||||
}
|
|
||||||
public String getDRAWINGNO() {
|
|
||||||
return DRAWINGNO;
|
|
||||||
}
|
|
||||||
public void setDRAWINGNO(String dRAWINGNO) {
|
|
||||||
DRAWINGNO = dRAWINGNO;
|
|
||||||
}
|
|
||||||
public String getUNIT() {
|
|
||||||
return UNIT;
|
|
||||||
}
|
|
||||||
public void setUNIT(String uNIT) {
|
|
||||||
UNIT = uNIT;
|
|
||||||
}
|
|
||||||
public String getREMARK() {
|
|
||||||
return REMARK;
|
|
||||||
}
|
|
||||||
public void setREMARK(String rEMARK) {
|
|
||||||
REMARK = rEMARK;
|
|
||||||
}
|
|
||||||
public ZxjcMATERIALBean(int sEQ, String fACTORY, String oBJECTNAME, String sPECIFICATIONS, int qUANTITY,
|
|
||||||
String dRAWINGNO, String uNIT, String rEMARK) {
|
|
||||||
super();
|
|
||||||
SEQ = sEQ;
|
|
||||||
FACTORY = fACTORY;
|
|
||||||
OBJECTNAME = oBJECTNAME;
|
|
||||||
SPECIFICATIONS = sPECIFICATIONS;
|
|
||||||
QUANTITY = qUANTITY;
|
|
||||||
DRAWINGNO = dRAWINGNO;
|
|
||||||
UNIT = uNIT;
|
|
||||||
REMARK = rEMARK;
|
|
||||||
}
|
|
||||||
public ZxjcMATERIALBean() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
return "ZxjcMATERIALBean [SEQ=" + SEQ + ", FACTORY=" + FACTORY + ", OBJECTNAME=" + OBJECTNAME
|
|
||||||
+ ", SPECIFICATIONS=" + SPECIFICATIONS + ", QUANTITY=" + QUANTITY + ", DRAWINGNO=" + DRAWINGNO
|
|
||||||
+ ", UNIT=" + UNIT + ", REMARK=" + REMARK + "]";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,495 +1,164 @@
|
|||||||
package com.connor.plm.CostListManagement.pojo;
|
package com.connor.plm.CostListManagement.pojo;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ===============================================================================
|
|
||||||
* Copyright (c) 2012-2024 CONNOR lijh. Unpublished - All Rights Reserved
|
|
||||||
* ===============================================================================
|
|
||||||
* File description:
|
|
||||||
*
|
|
||||||
* GzxqBean.java 工装需求bean
|
|
||||||
*
|
|
||||||
* ===============================================================================
|
|
||||||
* DATE Name Description of Change
|
|
||||||
*
|
|
||||||
* 2024-06-13 ljh create
|
|
||||||
* ===============================================================================
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import java.awt.Desktop;
|
|
||||||
import java.net.URI;
|
|
||||||
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
|
||||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentFolder;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItem;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItemType;
|
|
||||||
import com.teamcenter.rac.kernel.TCSession;
|
|
||||||
|
|
||||||
import javafx.event.ActionEvent;
|
|
||||||
import javafx.event.EventHandler;
|
|
||||||
import javafx.scene.control.Button;
|
|
||||||
import javafx.scene.control.TextArea;
|
|
||||||
|
|
||||||
public class GzxqBean {
|
public class GzxqBean {
|
||||||
private TextArea instanceId = new TextArea();
|
private String instanceId;
|
||||||
private TextArea factory = new TextArea();
|
private String factory;
|
||||||
private TextArea sfId = new TextArea();
|
private String sfId;
|
||||||
private TextArea head = new TextArea();
|
private String head;
|
||||||
private TextArea scheduledtime = new TextArea();
|
private String scheduledtime;
|
||||||
private TextArea model = new TextArea();
|
private String model;
|
||||||
private TextArea productname = new TextArea();
|
private String productname;
|
||||||
private TextArea toolnumber = new TextArea();
|
private String toolnumber;
|
||||||
private TextArea toolname = new TextArea();
|
private String toolname;
|
||||||
private TextArea toolinglevel = new TextArea();
|
private String toolinglevel;
|
||||||
|
private String reason;
|
||||||
private TextArea reason = new TextArea();
|
private String jsgyrequirements;
|
||||||
private TextArea jsgyrequirements = new TextArea();
|
private String link;
|
||||||
private Button link = new Button();
|
private String state;
|
||||||
private Button cjgzxq = new Button();
|
|
||||||
private String linkStr;
|
public GzxqBean() {
|
||||||
private String sfIdStr;
|
|
||||||
private String instanceIdStr;
|
|
||||||
private TCSession session;
|
|
||||||
private TextArea state = new TextArea();
|
|
||||||
private TextArea xh = new TextArea();
|
|
||||||
//设置TextArea的值和Button
|
|
||||||
public GzxqBean(String instanceId, String factory, String sfId, String head, String scheduledtime,
|
|
||||||
String model, String productname, String toolnumber, String toolname, String toolinglevel,
|
|
||||||
String reason, String jsgyrequirements, String link, String state, String xh,TCSession session) {
|
|
||||||
super();
|
super();
|
||||||
this.instanceId.setText(instanceId);
|
|
||||||
this.instanceId.setEditable(false);
|
|
||||||
this.instanceId.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.factory.setText(factory);
|
|
||||||
this.factory.setEditable(false);
|
|
||||||
this.factory.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.sfId.setText(sfId);
|
|
||||||
this.sfId.setEditable(false);
|
|
||||||
this.sfId.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.head.setText(head);
|
|
||||||
this.head.setEditable(false);
|
|
||||||
this.head.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.scheduledtime.setText(scheduledtime);
|
|
||||||
this.scheduledtime.setEditable(false);
|
|
||||||
this.scheduledtime.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
|
|
||||||
this.model.setText(model);
|
|
||||||
this.model.setEditable(false);
|
|
||||||
this.model.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.productname.setText(productname);
|
|
||||||
this.productname.setEditable(false);
|
|
||||||
this.productname.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.toolnumber.setText(toolnumber);
|
|
||||||
this.toolnumber.setEditable(false);
|
|
||||||
this.toolnumber.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.toolname.setText(toolname);
|
|
||||||
this.toolname.setEditable(false);
|
|
||||||
this.toolname.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.toolinglevel.setText(toolinglevel);
|
|
||||||
this.toolinglevel.setEditable(false);
|
|
||||||
this.toolinglevel.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.reason.setText(reason);
|
|
||||||
this.reason.setEditable(false);
|
|
||||||
this.reason.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.jsgyrequirements.setText(jsgyrequirements);
|
|
||||||
this.jsgyrequirements.setEditable(false);
|
|
||||||
this.jsgyrequirements.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.cjgzxq.setText("设计");;
|
|
||||||
this.cjgzxq.setPrefSize(200, 40);
|
|
||||||
this.link.setText("打开");
|
|
||||||
this.link.setPrefSize(200, 40);
|
|
||||||
this.linkStr = link;
|
|
||||||
this.sfIdStr = sfId;
|
|
||||||
this.instanceIdStr = instanceId;
|
|
||||||
this.session = session;
|
|
||||||
|
|
||||||
this.state.setText(state);
|
|
||||||
this.state.setEditable(false);
|
|
||||||
this.state.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
this.xh.setText(xh);
|
|
||||||
this.xh.setEditable(false);
|
|
||||||
this.xh.setPrefSize(200, 40);
|
|
||||||
|
|
||||||
//加按钮监听
|
|
||||||
this.link.setOnAction(new EventHandler<ActionEvent>() {
|
|
||||||
@Override
|
|
||||||
public void handle(ActionEvent event) {
|
|
||||||
System.out.println("Button was clicked!");
|
|
||||||
// 在这里可以添加更多的逻辑
|
|
||||||
try {
|
|
||||||
browse2(linkStr);
|
|
||||||
} catch (Exception e1) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
//加按钮监听 创建对象
|
|
||||||
this.cjgzxq.setOnAction(new EventHandler<ActionEvent>() {
|
|
||||||
@Override
|
|
||||||
public void handle(ActionEvent event) {
|
|
||||||
System.out.println("Button was clicked!");
|
|
||||||
// 在这里可以添加更多的逻辑
|
|
||||||
|
|
||||||
String formnumber = instanceIdStr;
|
|
||||||
String sfid =sfIdStr;
|
|
||||||
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
|
||||||
InterfaceAIFComponent target = app.getTargetComponent();
|
|
||||||
if(target instanceof TCComponentFolder) {
|
|
||||||
TCComponentFolder folder = (TCComponentFolder)target;
|
|
||||||
try {
|
|
||||||
TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
|
||||||
String newID = typeComponent.getNewID();
|
|
||||||
TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
|
||||||
TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
|
||||||
if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
|
||||||
itemRev.setStringProperty("zt2_formnumber", formnumber);
|
|
||||||
}
|
|
||||||
if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
|
||||||
itemRev.setStringProperty("zt2_sfid", sfid);
|
|
||||||
}
|
|
||||||
folder.add("contents", item);
|
|
||||||
folder.refresh();
|
|
||||||
} catch (Exception e2) {
|
|
||||||
// TODO: handle exception
|
|
||||||
e2.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}else {
|
|
||||||
try {
|
|
||||||
TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
|
||||||
String newID = typeComponent.getNewID();
|
|
||||||
TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
|
||||||
TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
|
||||||
if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
|
||||||
itemRev.setStringProperty("zt2_formnumber", formnumber);
|
|
||||||
|
|
||||||
}
|
|
||||||
if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
|
||||||
itemRev.setStringProperty("zt2_sfid", sfid);
|
|
||||||
}
|
|
||||||
session.getUser().getNewStuffFolder().add("contents", item);
|
|
||||||
} catch (Exception e2) {
|
|
||||||
// TODO: handle exception
|
|
||||||
e2.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
public String getInstanceId() {
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public TextArea getInstanceId() {
|
|
||||||
return instanceId;
|
return instanceId;
|
||||||
}
|
}
|
||||||
public void setInstanceId(TextArea instanceId) {
|
|
||||||
|
public void setInstanceId(String instanceId) {
|
||||||
this.instanceId = instanceId;
|
this.instanceId = instanceId;
|
||||||
}
|
}
|
||||||
public TextArea getFactory() {
|
|
||||||
|
public String getFactory() {
|
||||||
return factory;
|
return factory;
|
||||||
}
|
}
|
||||||
public void setFactory(TextArea factory) {
|
|
||||||
|
public void setFactory(String factory) {
|
||||||
this.factory = factory;
|
this.factory = factory;
|
||||||
}
|
}
|
||||||
public TextArea getSfId() {
|
|
||||||
|
public String getSfId() {
|
||||||
return sfId;
|
return sfId;
|
||||||
}
|
}
|
||||||
public void setSfId(TextArea sfId) {
|
|
||||||
|
public void setSfId(String sfId) {
|
||||||
this.sfId = sfId;
|
this.sfId = sfId;
|
||||||
}
|
}
|
||||||
public TextArea getHead() {
|
|
||||||
|
public String getHead() {
|
||||||
return head;
|
return head;
|
||||||
}
|
}
|
||||||
public void setHead(TextArea head) {
|
|
||||||
|
public void setHead(String head) {
|
||||||
this.head = head;
|
this.head = head;
|
||||||
}
|
}
|
||||||
public TextArea getScheduledtime() {
|
|
||||||
|
public String getScheduledtime() {
|
||||||
return scheduledtime;
|
return scheduledtime;
|
||||||
}
|
}
|
||||||
public void setScheduledtime(TextArea scheduledtime) {
|
|
||||||
|
public void setScheduledtime(String scheduledtime) {
|
||||||
this.scheduledtime = scheduledtime;
|
this.scheduledtime = scheduledtime;
|
||||||
}
|
}
|
||||||
public TextArea getModel() {
|
|
||||||
|
public String getModel() {
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
public void setModel(TextArea model) {
|
|
||||||
|
public void setModel(String model) {
|
||||||
this.model = model;
|
this.model = model;
|
||||||
}
|
}
|
||||||
public TextArea getProductname() {
|
|
||||||
|
public String getProductname() {
|
||||||
return productname;
|
return productname;
|
||||||
}
|
}
|
||||||
public void setProductname(TextArea productname) {
|
|
||||||
|
public void setProductname(String productname) {
|
||||||
this.productname = productname;
|
this.productname = productname;
|
||||||
}
|
}
|
||||||
public TextArea getToolnumber() {
|
|
||||||
|
public String getToolnumber() {
|
||||||
return toolnumber;
|
return toolnumber;
|
||||||
}
|
}
|
||||||
public void setToolnumber(TextArea toolnumber) {
|
|
||||||
|
public void setToolnumber(String toolnumber) {
|
||||||
this.toolnumber = toolnumber;
|
this.toolnumber = toolnumber;
|
||||||
}
|
}
|
||||||
public TextArea getToolname() {
|
|
||||||
|
public String getToolname() {
|
||||||
return toolname;
|
return toolname;
|
||||||
}
|
}
|
||||||
public void setToolname(TextArea toolname) {
|
|
||||||
|
public void setToolname(String toolname) {
|
||||||
this.toolname = toolname;
|
this.toolname = toolname;
|
||||||
}
|
}
|
||||||
public TextArea getToolinglevel() {
|
|
||||||
|
public String getToolinglevel() {
|
||||||
return toolinglevel;
|
return toolinglevel;
|
||||||
}
|
}
|
||||||
public void setToolinglevel(TextArea toolinglevel) {
|
|
||||||
|
public void setToolinglevel(String toolinglevel) {
|
||||||
this.toolinglevel = toolinglevel;
|
this.toolinglevel = toolinglevel;
|
||||||
}
|
}
|
||||||
public TextArea getReason() {
|
|
||||||
|
public String getReason() {
|
||||||
return reason;
|
return reason;
|
||||||
}
|
}
|
||||||
public void setReason(TextArea reason) {
|
|
||||||
|
public void setReason(String reason) {
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
public Button getCjgzxq() {
|
|
||||||
return cjgzxq;
|
|
||||||
}
|
|
||||||
public void setCjgzxq(Button cjgzxq) {
|
|
||||||
this.cjgzxq = cjgzxq;
|
|
||||||
}
|
|
||||||
public Button getLink() {
|
|
||||||
return link;
|
|
||||||
}
|
|
||||||
public void setLink(Button link) {
|
|
||||||
this.link = link;
|
|
||||||
}
|
|
||||||
public TextArea getState() {
|
|
||||||
return state;
|
|
||||||
}
|
|
||||||
public void setState(TextArea state) {
|
|
||||||
this.state = state;
|
|
||||||
}
|
|
||||||
public TextArea getXh() {
|
|
||||||
return xh;
|
|
||||||
}
|
|
||||||
public void setXh(TextArea xh) {
|
|
||||||
this.xh = xh;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public TextArea getJsgyrequirements() {
|
public String getJsgyrequirements() {
|
||||||
return jsgyrequirements;
|
return jsgyrequirements;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setJsgyrequirements(TextArea jsgyrequirements) {
|
public void setJsgyrequirements(String jsgyrequirements) {
|
||||||
this.jsgyrequirements = jsgyrequirements;
|
this.jsgyrequirements = jsgyrequirements;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLinkStr() {
|
public String getLink() {
|
||||||
return linkStr;
|
return link;
|
||||||
}
|
|
||||||
|
|
||||||
public void setLinkStr(String linkStr) {
|
|
||||||
this.linkStr = linkStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSfIdStr() {
|
|
||||||
return sfIdStr;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setSfIdStr(String sfIdStr) {
|
|
||||||
this.sfIdStr = sfIdStr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getInstanceIdStr() {
|
public void setLink(String link) {
|
||||||
return instanceIdStr;
|
this.link = link;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setInstanceIdStr(String instanceIdStr) {
|
public String getState() {
|
||||||
this.instanceIdStr = instanceIdStr;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TCSession getSession() {
|
public void setState(String state) {
|
||||||
return session;
|
this.state = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSession(TCSession session) {
|
public GzxqBean(String instanceId, String factory, String sfId, String head, String scheduledtime, String model,
|
||||||
this.session = session;
|
String productname, String toolnumber, String toolname, String toolinglevel, String reason,
|
||||||
|
String jsgyrequirements, String link, String state) {
|
||||||
|
super();
|
||||||
|
this.instanceId = instanceId;
|
||||||
|
this.factory = factory;
|
||||||
|
this.sfId = sfId;
|
||||||
|
this.head = head;
|
||||||
|
this.scheduledtime = scheduledtime;
|
||||||
|
this.model = model;
|
||||||
|
this.productname = productname;
|
||||||
|
this.toolnumber = toolnumber;
|
||||||
|
this.toolname = toolname;
|
||||||
|
this.toolinglevel = toolinglevel;
|
||||||
|
this.reason = reason;
|
||||||
|
this.jsgyrequirements = jsgyrequirements;
|
||||||
|
this.link = link;
|
||||||
|
this.state = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
@Override
|
||||||
* 通过浏览器打开连接
|
public String toString() {
|
||||||
*/
|
return "GzxqBean [instanceId=" + instanceId + ", factory=" + factory + ", sfId=" + sfId + ", head=" + head
|
||||||
private void browse2(String url) throws Exception {
|
+ ", scheduledtime=" + scheduledtime + ", model=" + model + ", productname=" + productname
|
||||||
Desktop desktop = Desktop.getDesktop();
|
+ ", toolnumber=" + toolnumber + ", toolname=" + toolname + ", toolinglevel=" + toolinglevel
|
||||||
if (Desktop.isDesktopSupported() && desktop.isSupported(Desktop.Action.BROWSE)) {
|
+ ", reason=" + reason + ", jsgyrequirements=" + jsgyrequirements + ", link=" + link + ", state="
|
||||||
URI uri = new URI(url);
|
+ state + "]";
|
||||||
desktop.browse(uri);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// public GzxqBean() {
|
|
||||||
// super();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getInstanceId() {
|
|
||||||
// return instanceId;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setInstanceId(String instanceId) {
|
|
||||||
// this.instanceId = instanceId;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getFactory() {
|
|
||||||
// return factory;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setFactory(String factory) {
|
|
||||||
// this.factory = factory;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getSfId() {
|
|
||||||
// return sfId;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setSfId(String sfId) {
|
|
||||||
// this.sfId = sfId;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getHead() {
|
|
||||||
// return head;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setHead(String head) {
|
|
||||||
// this.head = head;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getScheduledtime() {
|
|
||||||
// return scheduledtime;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setScheduledtime(String scheduledtime) {
|
|
||||||
// this.scheduledtime = scheduledtime;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getModel() {
|
|
||||||
// return model;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setModel(String model) {
|
|
||||||
// this.model = model;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getProductname() {
|
|
||||||
// return productname;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setProductname(String productname) {
|
|
||||||
// this.productname = productname;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getToolnumber() {
|
|
||||||
// return toolnumber;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setToolnumber(String toolnumber) {
|
|
||||||
// this.toolnumber = toolnumber;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getToolname() {
|
|
||||||
// return toolname;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setToolname(String toolname) {
|
|
||||||
// this.toolname = toolname;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getToolinglevel() {
|
|
||||||
// return toolinglevel;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setToolinglevel(String toolinglevel) {
|
|
||||||
// this.toolinglevel = toolinglevel;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getReason() {
|
|
||||||
// return reason;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setReason(String reason) {
|
|
||||||
// this.reason = reason;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getJsgyrequirements() {
|
|
||||||
// return jsgyrequirements;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setJsgyrequirements(String jsgyrequirements) {
|
|
||||||
// this.jsgyrequirements = jsgyrequirements;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getLink() {
|
|
||||||
// return link;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setLink(String link) {
|
|
||||||
// this.link = link;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public String getState() {
|
|
||||||
// return state;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public void setState(String state) {
|
|
||||||
// this.state = state;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public GzxqBean(String instanceId, String factory, String sfId, String head, String scheduledtime, String model,
|
|
||||||
// String productname, String toolnumber, String toolname, String toolinglevel, String reason,
|
|
||||||
// String jsgyrequirements, String link, String state) {
|
|
||||||
// super();
|
|
||||||
// this.instanceId = instanceId;
|
|
||||||
// this.factory = factory;
|
|
||||||
// this.sfId = sfId;
|
|
||||||
// this.head = head;
|
|
||||||
// this.scheduledtime = scheduledtime;
|
|
||||||
// this.model = model;
|
|
||||||
// this.productname = productname;
|
|
||||||
// this.toolnumber = toolnumber;
|
|
||||||
// this.toolname = toolname;
|
|
||||||
// this.toolinglevel = toolinglevel;
|
|
||||||
// this.reason = reason;
|
|
||||||
// this.jsgyrequirements = jsgyrequirements;
|
|
||||||
// this.link = link;
|
|
||||||
// this.state = state;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public String toString() {
|
|
||||||
// return "GzxqBean [instanceId=" + instanceId + ", factory=" + factory + ", sfId=" + sfId + ", head=" + head
|
|
||||||
// + ", scheduledtime=" + scheduledtime + ", model=" + model + ", productname=" + productname
|
|
||||||
// + ", toolnumber=" + toolnumber + ", toolname=" + toolname + ", toolinglevel=" + toolinglevel
|
|
||||||
// + ", reason=" + reason + ", jsgyrequirements=" + jsgyrequirements + ", link=" + link + ", state="
|
|
||||||
// + state + "]";
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,124 +1,124 @@
|
|||||||
//package com.connor.plm.GZXQ;
|
package com.connor.plm.GZXQ;
|
||||||
//
|
|
||||||
//import java.awt.Component;
|
import java.awt.Component;
|
||||||
//import java.awt.Desktop;
|
import java.awt.Desktop;
|
||||||
//import java.net.URI;
|
import java.net.URI;
|
||||||
//import java.util.List;
|
import java.util.List;
|
||||||
//
|
|
||||||
//import javax.swing.AbstractCellEditor;
|
import javax.swing.AbstractCellEditor;
|
||||||
//import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
//import javax.swing.JTable;
|
import javax.swing.JTable;
|
||||||
//import javax.swing.table.TableCellEditor;
|
import javax.swing.table.TableCellEditor;
|
||||||
//
|
|
||||||
//import com.connor.plm.CostListManagement.pojo.Cusquotation;
|
import com.connor.plm.CostListManagement.pojo.Cusquotation;
|
||||||
//import com.connor.plm.CostListManagement.pojo.GzxqBean;
|
import com.connor.plm.CostListManagement.pojo.GzxqBean;
|
||||||
//import com.teamcenter.rac.aif.AbstractAIFApplication;
|
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
||||||
//import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
||||||
//import com.teamcenter.rac.aifrcp.AIFUtility;
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||||
//import com.teamcenter.rac.kernel.TCComponent;
|
import com.teamcenter.rac.kernel.TCComponent;
|
||||||
//import com.teamcenter.rac.kernel.TCComponentFolder;
|
import com.teamcenter.rac.kernel.TCComponentFolder;
|
||||||
//import com.teamcenter.rac.kernel.TCComponentItem;
|
import com.teamcenter.rac.kernel.TCComponentItem;
|
||||||
//import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
||||||
//import com.teamcenter.rac.kernel.TCComponentItemType;
|
import com.teamcenter.rac.kernel.TCComponentItemType;
|
||||||
//import com.teamcenter.rac.kernel.TCSession;
|
import com.teamcenter.rac.kernel.TCSession;
|
||||||
//
|
|
||||||
//public class ButtonCellEditor extends AbstractCellEditor implements TableCellEditor{
|
public class ButtonCellEditor extends AbstractCellEditor implements TableCellEditor{
|
||||||
//
|
|
||||||
//
|
|
||||||
// private JButton button;
|
private JButton button;
|
||||||
// private JTable table;
|
private JTable table;
|
||||||
// private List<GzxqBean> quotations;
|
private List<GzxqBean> quotations;
|
||||||
// private Boolean flag = false;
|
private Boolean flag = false;
|
||||||
// public static GzxqBean quotation;
|
public static GzxqBean quotation;
|
||||||
// public static Cusquotation cusquotation;
|
public static Cusquotation cusquotation;
|
||||||
// public static TCSession session;
|
public static TCSession session;
|
||||||
//
|
|
||||||
// public ButtonCellEditor(JTable jTable2,List<GzxqBean> quotations,TCSession session, TCComponent f) {
|
public ButtonCellEditor(JTable jTable2,List<GzxqBean> quotations,TCSession session, TCComponent f) {
|
||||||
// button = new JButton();
|
button = new JButton();
|
||||||
// this.table = jTable2;
|
this.table = jTable2;
|
||||||
// this.quotations = quotations;
|
this.quotations = quotations;
|
||||||
// this.session = session;
|
this.session = session;
|
||||||
// button.addActionListener(e -> {
|
button.addActionListener(e -> {
|
||||||
// // 这里可以添加按钮的点击事件响应逻辑
|
// 这里可以添加按钮的点击事件响应逻辑
|
||||||
// int selectedRow = table.getSelectedRow();
|
int selectedRow = table.getSelectedRow();
|
||||||
// System.out.println("点击了第"+selectedRow+"行");
|
System.out.println("点击了第"+selectedRow+"行");
|
||||||
// String text = button.getText();
|
String text = button.getText();
|
||||||
// System.out.println("点击按钮名称:"+text);
|
System.out.println("点击按钮名称:"+text);
|
||||||
// if("打开".equals(text)) {
|
if("打开".equals(text)) {
|
||||||
// String url = quotations.get(selectedRow).getLink();
|
String url = quotations.get(selectedRow).getLink();
|
||||||
// try {
|
try {
|
||||||
// browse2(url);
|
browse2(url);
|
||||||
// } catch (Exception e1) {
|
} catch (Exception e1) {
|
||||||
// // TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
// e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
// }
|
}
|
||||||
// }else if("设计".equals(text)){
|
}else if("设计".equals(text)){
|
||||||
// String formnumber = quotations.get(selectedRow).getInstanceId();
|
String formnumber = quotations.get(selectedRow).getInstanceId();
|
||||||
// String sfid = quotations.get(selectedRow).getSfId();
|
String sfid = quotations.get(selectedRow).getSfId();
|
||||||
// AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
||||||
// InterfaceAIFComponent target = app.getTargetComponent();
|
InterfaceAIFComponent target = app.getTargetComponent();
|
||||||
// if(target instanceof TCComponentFolder) {
|
if(target instanceof TCComponentFolder) {
|
||||||
// TCComponentFolder folder = (TCComponentFolder)target;
|
TCComponentFolder folder = (TCComponentFolder)target;
|
||||||
// try {
|
try {
|
||||||
// TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
||||||
// String newID = typeComponent.getNewID();
|
String newID = typeComponent.getNewID();
|
||||||
// TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
||||||
// TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
||||||
// if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
||||||
// itemRev.setStringProperty("zt2_formnumber", formnumber);
|
itemRev.setStringProperty("zt2_formnumber", formnumber);
|
||||||
// }
|
}
|
||||||
// if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
||||||
// itemRev.setStringProperty("zt2_sfid", sfid);
|
itemRev.setStringProperty("zt2_sfid", sfid);
|
||||||
// }
|
}
|
||||||
// folder.add("contents", item);
|
folder.add("contents", item);
|
||||||
// folder.refresh();
|
folder.refresh();
|
||||||
// } catch (Exception e2) {
|
} catch (Exception e2) {
|
||||||
// // TODO: handle exception
|
// TODO: handle exception
|
||||||
// e2.printStackTrace();
|
e2.printStackTrace();
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// }else {
|
}else {
|
||||||
// try {
|
try {
|
||||||
// TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
||||||
// String newID = typeComponent.getNewID();
|
String newID = typeComponent.getNewID();
|
||||||
// TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
||||||
// TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
||||||
// if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
||||||
// itemRev.setStringProperty("zt2_formnumber", formnumber);
|
itemRev.setStringProperty("zt2_formnumber", formnumber);
|
||||||
//
|
|
||||||
// }
|
}
|
||||||
// if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
||||||
// itemRev.setStringProperty("zt2_sfid", sfid);
|
itemRev.setStringProperty("zt2_sfid", sfid);
|
||||||
// }
|
}
|
||||||
// session.getUser().getNewStuffFolder().add("contents", item);
|
session.getUser().getNewStuffFolder().add("contents", item);
|
||||||
// } catch (Exception e2) {
|
} catch (Exception e2) {
|
||||||
// // TODO: handle exception
|
// TODO: handle exception
|
||||||
// e2.printStackTrace();
|
e2.printStackTrace();
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
//
|
|
||||||
// }
|
}
|
||||||
//private void browse2(String url) throws Exception {
|
private void browse2(String url) throws Exception {
|
||||||
// Desktop desktop = Desktop.getDesktop();
|
Desktop desktop = Desktop.getDesktop();
|
||||||
// if (Desktop.isDesktopSupported() && desktop.isSupported(Desktop.Action.BROWSE)) {
|
if (Desktop.isDesktopSupported() && desktop.isSupported(Desktop.Action.BROWSE)) {
|
||||||
// URI uri = new URI(url);
|
URI uri = new URI(url);
|
||||||
// desktop.browse(uri);
|
desktop.browse(uri);
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
//
|
|
||||||
//@Override
|
@Override
|
||||||
//public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
|
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected,
|
||||||
// int row, int column) {
|
int row, int column) {
|
||||||
// button.setText(value != null ? value.toString() : "");
|
button.setText(value != null ? value.toString() : "");
|
||||||
// return button;
|
return button;
|
||||||
//}
|
}
|
||||||
//
|
|
||||||
//@Override
|
@Override
|
||||||
//public Object getCellEditorValue() {
|
public Object getCellEditorValue() {
|
||||||
// return button.getText();
|
return button.getText();
|
||||||
//}
|
}
|
||||||
//
|
|
||||||
//}
|
}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
package com.connor.plm.GZXQ;
|
|
||||||
|
|
||||||
import javax.swing.*;
|
|
||||||
import javax.swing.table.DefaultTableCellRenderer;
|
|
||||||
import javax.swing.table.TableCellRenderer;
|
|
||||||
import java.awt.*;
|
|
||||||
|
|
||||||
public class CenterRenderer extends DefaultTableCellRenderer implements TableCellRenderer {
|
|
||||||
|
|
||||||
public CenterRenderer() {
|
|
||||||
// 设置水平对齐方式为居中
|
|
||||||
setHorizontalAlignment(SwingConstants.CENTER);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Component getTableCellRendererComponent(JTable table, Object value,
|
|
||||||
boolean isSelected, boolean hasFocus,
|
|
||||||
int row, int column) {
|
|
||||||
// 调用父类的实现,然后根据需要做进一步的自定义
|
|
||||||
Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
|
|
||||||
|
|
||||||
// 如果需要,可以在这里做更多的自定义,如字体、颜色等
|
|
||||||
return c;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
package com.connor.plm.GZXQ;
|
|
||||||
import javax.swing.*;
|
|
||||||
import javax.swing.border.*;
|
|
||||||
import javax.swing.table.TableCellRenderer;
|
|
||||||
|
|
||||||
import java.awt.*;
|
|
||||||
|
|
||||||
public class CustomHeaderRenderer extends JLabel implements TableCellRenderer {
|
|
||||||
|
|
||||||
private Border border = new LineBorder(Color.black, 1); // ÉèÖñ߿òÑÕÉ«ºÍ¿í¶È
|
|
||||||
|
|
||||||
public CustomHeaderRenderer() {
|
|
||||||
setOpaque(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Component getTableCellRendererComponent(JTable table, Object value,
|
|
||||||
boolean isSelected, boolean hasFocus,
|
|
||||||
int row, int column) {
|
|
||||||
setText(value.toString());
|
|
||||||
setBorder(border);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,26 +0,0 @@
|
|||||||
package com.connor.plm.GZXQ;
|
|
||||||
|
|
||||||
import java.awt.BorderLayout;
|
|
||||||
import java.awt.Dimension;
|
|
||||||
|
|
||||||
import com.chint.plm.fxUtil.KFrame;
|
|
||||||
|
|
||||||
import javafx.embed.swing.JFXPanel;
|
|
||||||
|
|
||||||
public class GZXQFrame extends KFrame {
|
|
||||||
|
|
||||||
public GZXQFrame() {
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
protected void initUI() throws Exception {
|
|
||||||
this.setTitle("¹¤×°ÐèÇó");
|
|
||||||
this.setLayout(new BorderLayout());
|
|
||||||
this.setPreferredSize(new Dimension(1490, 900));
|
|
||||||
JFXPanel panel = new JFXPanel();
|
|
||||||
panel.setScene(new GZXQPanel(this).getScene());
|
|
||||||
this.add(BorderLayout.CENTER, panel);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
package com.connor.plm.GZXQ;
|
|
||||||
|
|
||||||
import java.awt.Window;
|
|
||||||
|
|
||||||
import com.chint.plm.fxUtil.KFXPanel;
|
|
||||||
|
|
||||||
public class GZXQPanel extends KFXPanel {
|
|
||||||
|
|
||||||
public GZXQPanel(Window dialog) {
|
|
||||||
super(dialog, "a.fxml");
|
|
||||||
// TODO Auto-generated constructor stub
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,129 +0,0 @@
|
|||||||
package com.connor.plm.GZXQ;
|
|
||||||
//import javax.swing.*;
|
|
||||||
//import javax.swing.table.*;
|
|
||||||
//import java.awt.*;
|
|
||||||
//
|
|
||||||
//public class MultiLineTableCellRenderer extends JTextArea implements TableCellRenderer {
|
|
||||||
//
|
|
||||||
// public MultiLineTableCellRenderer() {
|
|
||||||
// // 设置JTextArea的属性
|
|
||||||
// this.setEditable(false);
|
|
||||||
// this.setLineWrap(true); // 启用自动换行
|
|
||||||
// this.setWrapStyleWord(true); // 保持单词的完整性,不在单词中间换行
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
|
|
||||||
// // 清除样式,避免残留样式影响显示
|
|
||||||
// this.setText(value == null ? "" : value.toString());
|
|
||||||
//
|
|
||||||
// // 可以根据需要设置字体、颜色等样式
|
|
||||||
// if (isSelected) {
|
|
||||||
// this.setBackground(table.getSelectionBackground());
|
|
||||||
// this.setForeground(table.getSelectionForeground());
|
|
||||||
// } else {
|
|
||||||
// this.setBackground(table.getBackground());
|
|
||||||
// this.setForeground(table.getForeground());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return this;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
//import javax.swing.*;
|
|
||||||
//import javax.swing.table.DefaultTableCellRenderer;
|
|
||||||
//import javax.swing.table.TableCellRenderer;
|
|
||||||
//import java.awt.*;
|
|
||||||
//
|
|
||||||
//public class MultiLineTableCellRenderer extends DefaultTableCellRenderer implements TableCellRenderer {
|
|
||||||
//
|
|
||||||
// private JScrollPane scrollPane;
|
|
||||||
//
|
|
||||||
// public MultiLineTableCellRenderer() {
|
|
||||||
// JTextArea textArea = new JTextArea();
|
|
||||||
// textArea.setEditable(false); // 禁止编辑
|
|
||||||
// textArea.setLineWrap(true); // 允许换行
|
|
||||||
// textArea.setWrapStyleWord(true); // 单词整行换行
|
|
||||||
//
|
|
||||||
// scrollPane = new JScrollPane(textArea);
|
|
||||||
// scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
|
|
||||||
// scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
|
||||||
// scrollPane.setBorder(null); // 移除边框
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public Component getTableCellRendererComponent(JTable table, Object value,
|
|
||||||
// boolean isSelected, boolean hasFocus,
|
|
||||||
// int row, int column) {
|
|
||||||
// JTextArea textArea = (JTextArea) scrollPane.getViewport().getView();
|
|
||||||
// textArea.setText(value == null ? "" : value.toString());
|
|
||||||
//
|
|
||||||
// // 设置选中状态的颜色
|
|
||||||
// if (isSelected) {
|
|
||||||
// textArea.setBackground(table.getSelectionBackground());
|
|
||||||
// textArea.setForeground(table.getSelectionForeground());
|
|
||||||
// } else {
|
|
||||||
// textArea.setBackground(table.getBackground());
|
|
||||||
// textArea.setForeground(table.getForeground());
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return scrollPane;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
import javax.swing.*;
|
|
||||||
import javax.swing.table.DefaultTableCellRenderer;
|
|
||||||
import javax.swing.table.TableCellRenderer;
|
|
||||||
import java.awt.*;
|
|
||||||
|
|
||||||
public class MultiLineTableCellRenderer extends DefaultTableCellRenderer implements TableCellRenderer {
|
|
||||||
|
|
||||||
private JTextArea textArea;
|
|
||||||
private JScrollPane scrollPane;
|
|
||||||
|
|
||||||
public MultiLineTableCellRenderer() {
|
|
||||||
textArea = new JTextArea();
|
|
||||||
textArea.setEditable(false);
|
|
||||||
textArea.setLineWrap(true);
|
|
||||||
textArea.setWrapStyleWord(true);
|
|
||||||
|
|
||||||
scrollPane = new JScrollPane(textArea);
|
|
||||||
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
|
|
||||||
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
|
||||||
scrollPane.setBorder(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Component getTableCellRendererComponent(JTable table, Object value,
|
|
||||||
boolean isSelected, boolean hasFocus,
|
|
||||||
int row, int column) {
|
|
||||||
textArea.setText(value == null ? "" : value.toString());
|
|
||||||
|
|
||||||
// 设置选中状态的颜色
|
|
||||||
if (isSelected) {
|
|
||||||
textArea.setBackground(table.getSelectionBackground());
|
|
||||||
textArea.setForeground(table.getSelectionForeground());
|
|
||||||
} else {
|
|
||||||
textArea.setBackground(table.getBackground());
|
|
||||||
textArea.setForeground(table.getForeground());
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取单元格的首选大小
|
|
||||||
Dimension preferredSize = table.getColumnModel().getColumn(column).getPreferredWidth() > 0 ?
|
|
||||||
new Dimension(table.getColumnModel().getColumn(column).getPreferredWidth(), table.getRowHeight(row)) :
|
|
||||||
new Dimension(table.getColumnModel().getColumn(column).getWidth(), table.getRowHeight(row));
|
|
||||||
|
|
||||||
// 设置JScrollPane的大小
|
|
||||||
scrollPane.setPreferredSize(preferredSize);
|
|
||||||
scrollPane.setMaximumSize(preferredSize);
|
|
||||||
scrollPane.setMinimumSize(preferredSize);
|
|
||||||
scrollPane.setSize(preferredSize);
|
|
||||||
|
|
||||||
// 重新计算JScrollPane的布局
|
|
||||||
scrollPane.revalidate();
|
|
||||||
scrollPane.repaint();
|
|
||||||
|
|
||||||
return scrollPane;
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,106 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
|
|
||||||
<Pane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="840.0" prefWidth="1270.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.GZXQ.GZXQController">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="bpane" layoutX="5.0" layoutY="14.0" prefHeight="840.0" prefWidth="1261.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="titlePaneCondition" animated="false" prefHeight="182.0" prefWidth="1034.0" text="条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="151.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPaneCondition" layoutX="13.0" layoutY="11.0" prefHeight="114.0" prefWidth="1218.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="109.0" minWidth="10.0" prefWidth="86.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="216.0" minWidth="10.0" prefWidth="164.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="112.0" minWidth="10.0" prefWidth="93.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="233.0" minWidth="10.0" prefWidth="185.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="103.0" minWidth="10.0" prefWidth="95.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="246.0" minWidth="10.0" prefWidth="191.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="189.0" minWidth="10.0" prefWidth="97.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="212.0" minWidth="10.0" prefWidth="212.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<TextField fx:id="jTextField1" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="jTextField2" prefHeight="30.0" prefWidth="189.0" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="jTextField5" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField6" prefHeight="30.0" prefWidth="152.0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField7" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField3" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="jTextField8" GridPane.columnIndex="7" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField4" prefHeight="30.0" prefWidth="168.0" GridPane.columnIndex="7" />
|
|
||||||
<TextField fx:id="jTextField9" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="jTextField10" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label text="流程实例ID" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="工装名称" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="产品名称" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工艺负责人" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="委托理由" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="工装等级" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="产品型号" GridPane.columnIndex="4" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="计划时间" GridPane.columnIndex="4" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工装编号" GridPane.columnIndex="6" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="申请人" GridPane.columnIndex="6" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Button fx:id="jButton2" mnemonicParsing="false" onAction="#cxAction" prefHeight="30.0" prefWidth="98.0" text="查 询" GridPane.columnIndex="7" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="BOTTOM">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
</Button>
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<TitledPane fx:id="titlePaneResult" animated="false" prefHeight="620.0" prefWidth="966.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="570.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="tablePane" layoutX="8.0" layoutY="6.0" prefHeight="573.0" prefWidth="1245.0">
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" prefHeight="544.0" prefWidth="1195.0" BorderPane.alignment="CENTER" />
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane fx:id="gridPaneResult" prefHeight="29.0" prefWidth="948.0" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="3" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="4" fx:id="xyy" />
|
|
||||||
<Button fx:id="wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="5" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
@ -1,107 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.*?>
|
|
||||||
<?import javafx.scene.control.*?>
|
|
||||||
<?import java.lang.*?>
|
|
||||||
<?import javafx.scene.layout.*?>
|
|
||||||
|
|
||||||
<Pane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="840.0" prefWidth="1270.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.GZXQ.GZXQController">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="bpane" layoutX="5.0" layoutY="14.0" prefHeight="840.0" prefWidth="1261.0">
|
|
||||||
<top>
|
|
||||||
<TitledPane fx:id="titlePaneCondition" animated="false" prefHeight="182.0" prefWidth="1034.0" text="条件" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="151.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<GridPane fx:id="gridPaneCondition" layoutX="13.0" layoutY="11.0" prefHeight="114.0" prefWidth="1218.0">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="109.0" minWidth="10.0" prefWidth="86.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="216.0" minWidth="10.0" prefWidth="164.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="112.0" minWidth="10.0" prefWidth="93.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="233.0" minWidth="10.0" prefWidth="185.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="103.0" minWidth="10.0" prefWidth="95.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="246.0" minWidth="10.0" prefWidth="191.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="189.0" minWidth="10.0" prefWidth="97.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="212.0" minWidth="10.0" prefWidth="212.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<TextField fx:id="jTextField1" GridPane.columnIndex="1" />
|
|
||||||
<TextField fx:id="jTextField2" prefHeight="30.0" prefWidth="189.0" GridPane.columnIndex="3" />
|
|
||||||
<TextField fx:id="jTextField5" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField6" prefHeight="30.0" prefWidth="152.0" GridPane.columnIndex="3" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField3" GridPane.columnIndex="5" />
|
|
||||||
<TextField fx:id="jTextField8" GridPane.columnIndex="7" GridPane.rowIndex="1" />
|
|
||||||
<TextField fx:id="jTextField4" prefHeight="30.0" prefWidth="168.0" GridPane.columnIndex="7" />
|
|
||||||
<TextField fx:id="jTextField9" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
|
||||||
<TextField fx:id="jTextField10" GridPane.columnIndex="3" GridPane.rowIndex="2" />
|
|
||||||
<Label text="流程实例ID" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="工装名称" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="产品名称" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工艺负责人" GridPane.columnIndex="2" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="委托理由" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label text="工装等级" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="2" />
|
|
||||||
<Label text="产品型号" GridPane.columnIndex="4" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="计划时间" GridPane.columnIndex="4" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Label GridPane.columnIndex="4" GridPane.rowIndex="2" />
|
|
||||||
<Label text="工装编号" GridPane.columnIndex="6" GridPane.halignment="CENTER" />
|
|
||||||
<Label text="申请人" GridPane.columnIndex="6" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
|
||||||
<Button fx:id="jButton2" mnemonicParsing="false" onAction="#cxAction" prefHeight="30.0" prefWidth="98.0" text="查 询" GridPane.columnIndex="7" GridPane.halignment="CENTER" GridPane.rowIndex="2" GridPane.valignment="BOTTOM">
|
|
||||||
<GridPane.margin>
|
|
||||||
<Insets />
|
|
||||||
</GridPane.margin>
|
|
||||||
</Button>
|
|
||||||
<DatePicker GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
<DatePicker fx:id="jTextField7" GridPane.columnIndex="5" GridPane.rowIndex="1" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</top>
|
|
||||||
<center>
|
|
||||||
<TitledPane fx:id="titlePaneResult" animated="false" prefHeight="620.0" prefWidth="966.0" text="结果" BorderPane.alignment="CENTER">
|
|
||||||
<content>
|
|
||||||
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="570.0" prefWidth="964.0">
|
|
||||||
<children>
|
|
||||||
<BorderPane fx:id="tablePane" layoutX="8.0" layoutY="6.0" prefHeight="573.0" prefWidth="1245.0">
|
|
||||||
<top>
|
|
||||||
<TableView fx:id="tableView" prefHeight="544.0" prefWidth="1195.0" BorderPane.alignment="CENTER" />
|
|
||||||
</top>
|
|
||||||
<bottom>
|
|
||||||
<GridPane fx:id="gridPaneResult" prefHeight="29.0" prefWidth="948.0" BorderPane.alignment="CENTER">
|
|
||||||
<columnConstraints>
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
|
||||||
</columnConstraints>
|
|
||||||
<rowConstraints>
|
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
|
||||||
<children>
|
|
||||||
<Button fx:id="sy" mnemonicParsing="false" onAction="#firstBtnAction" text="首页" GridPane.columnIndex="2" />
|
|
||||||
<Button fx:id="syy" mnemonicParsing="false" onAction="#lastBtnAction" text="上一页" GridPane.columnIndex="3" />
|
|
||||||
<Button mnemonicParsing="false" onAction="#nextBtnAction" text="下一页" GridPane.columnIndex="4" fx:id="xyy" />
|
|
||||||
<Button fx:id="wy" mnemonicParsing="false" onAction="#tailBtnAction" text="尾页" GridPane.columnIndex="5" />
|
|
||||||
</children>
|
|
||||||
</GridPane>
|
|
||||||
</bottom>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</AnchorPane>
|
|
||||||
</content>
|
|
||||||
</TitledPane>
|
|
||||||
</center>
|
|
||||||
</BorderPane>
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
Binary file not shown.
@ -1,69 +0,0 @@
|
|||||||
package com.connor.plm.txdp;
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
import org.eclipse.core.commands.AbstractHandler;
|
|
||||||
import org.eclipse.core.commands.ExecutionEvent;
|
|
||||||
import org.eclipse.core.commands.ExecutionException;
|
|
||||||
|
|
||||||
import com.connor.chint.sap2.util.SAPUtil;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
||||||
import com.teamcenter.rac.kernel.TCSession;
|
|
||||||
import com.teamcenter.rac.util.MessageBox;
|
|
||||||
|
|
||||||
public class BZGSHandler extends AbstractHandler{
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
|
||||||
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
|
||||||
TCSession session = (TCSession) app.getSession();
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
//获取首选项判断用户是否可以使用该功能
|
|
||||||
String[] prefs = session.getPreferenceService().getStringValues("CHINT_WORKHOUR_ACL");
|
|
||||||
String userId = session.getUser().getUserId();
|
|
||||||
String groupID = SAPUtil.getGroupID(session);
|
|
||||||
HashMap<String, String> groupNamesMap = new HashMap<String, String>();
|
|
||||||
for (int i = 0; i < prefs.length; i++) {
|
|
||||||
String[] split = prefs[i].split(":");
|
|
||||||
groupNamesMap.put(split[0], split[1]);
|
|
||||||
}
|
|
||||||
System.out.println("groupNamesMap==="+groupNamesMap.toString());
|
|
||||||
String names = groupNamesMap.get(groupID);
|
|
||||||
System.out.println("names==="+names);
|
|
||||||
if(names == null || names.isEmpty()) {
|
|
||||||
MessageBox.post("您无权使用此功能,请联系管理员处理。", "提示", MessageBox.INFORMATION);
|
|
||||||
return null;
|
|
||||||
}else {
|
|
||||||
if(!names.contains(userId)) {
|
|
||||||
MessageBox.post("您无权使用此功能,请联系管理员处理。", "提示", MessageBox.INFORMATION);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
new Thread() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
|
|
||||||
try {
|
|
||||||
new BZGSFram(session);
|
|
||||||
} catch (Exception e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}.start();
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
// TODO: handle exception
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,44 +0,0 @@
|
|||||||
package com.connor.plm.txdp;
|
|
||||||
import org.eclipse.core.commands.AbstractHandler;
|
|
||||||
import org.eclipse.core.commands.ExecutionEvent;
|
|
||||||
import org.eclipse.core.commands.ExecutionException;
|
|
||||||
|
|
||||||
import com.connor.chint.yunpi.command.BomDcSapOp;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
||||||
import com.teamcenter.rac.kernel.TCSession;
|
|
||||||
|
|
||||||
public class GXTZHandler extends AbstractHandler{
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
|
||||||
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
|
||||||
TCSession session = (TCSession) app.getSession();
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
new Thread() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
|
|
||||||
try {
|
|
||||||
new GXTZOp(app).executeOperation();
|
|
||||||
} catch (Exception e) {
|
|
||||||
// TODO Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}.start();
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
// TODO: handle exception
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,178 +0,0 @@
|
|||||||
package com.connor.plm.txdp;
|
|
||||||
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Map.Entry;
|
|
||||||
|
|
||||||
import javax.swing.JButton;
|
|
||||||
import javax.swing.JTextField;
|
|
||||||
|
|
||||||
import org.apache.poi.ss.usermodel.Workbook;
|
|
||||||
import org.dom4j.Document;
|
|
||||||
import org.dom4j.DocumentHelper;
|
|
||||||
import org.dom4j.Element;
|
|
||||||
|
|
||||||
import com.connor.chint.sap2.util.BomToSapUtil;
|
|
||||||
import com.connor.chint.sap2.util.BomUtilWh;
|
|
||||||
import com.connor.chint.sap2.util.KUtil;
|
|
||||||
import com.connor.chint.sap2.util.MyProgressBarCompent;
|
|
||||||
import com.connor.chint.sap2.util.SAPMessageUtil;
|
|
||||||
import com.connor.chint.sap2.util.SAPUtil;
|
|
||||||
import com.connor.chint.sap2.util.SqlUtil;
|
|
||||||
import com.connor.chint.sap2.util.TXTUtil;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFOperation;
|
|
||||||
import com.teamcenter.rac.aif.kernel.AIFComponentContext;
|
|
||||||
import com.teamcenter.rac.aif.kernel.InterfaceAIFComponent;
|
|
||||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponent;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentBOMLine;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentBOMWindow;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentBOMWindowType;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentDataset;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItem;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItemType;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentMEProcessRevision;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentUser;
|
|
||||||
import com.teamcenter.rac.kernel.TCException;
|
|
||||||
import com.teamcenter.rac.kernel.TCSession;
|
|
||||||
import com.teamcenter.rac.util.MessageBox;
|
|
||||||
import com.teamcenter.services.rac.cad._2007_01.StructureManagement.ExpandPSData;
|
|
||||||
|
|
||||||
public class GXTZOp extends AbstractAIFOperation {
|
|
||||||
|
|
||||||
private AbstractAIFApplication app;
|
|
||||||
private TCSession session;
|
|
||||||
private String groupName;
|
|
||||||
private String userName;
|
|
||||||
private String[] prefs;
|
|
||||||
|
|
||||||
public GXTZOp(AbstractAIFApplication app) {
|
|
||||||
// Auto-generated constructor stub
|
|
||||||
this.app = app;
|
|
||||||
this.session = (TCSession) app.getSession();
|
|
||||||
|
|
||||||
prefs = session.getPreferenceService().getStringValues("CHINT_SRM_SQL_CONNECT");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void executeOperation() throws Exception {
|
|
||||||
// Auto-generated method stub
|
|
||||||
MyProgressBarCompent comp = null;
|
|
||||||
SqlUtil.SRMGetTCDataConnection(prefs);
|
|
||||||
try {
|
|
||||||
KUtil.setByPass(true);
|
|
||||||
groupName = SAPUtil.getGroupID(session);
|
|
||||||
userName = getUserName(session);
|
|
||||||
System.out.println(groupName + "------------------" + userName);
|
|
||||||
InterfaceAIFComponent target = app.getTargetComponent();
|
|
||||||
TCComponentItemRevision degignRev = null;
|
|
||||||
if (target != null && target.getType().equals("ZT2_Design3DRevision")) {
|
|
||||||
degignRev = (TCComponentItemRevision) target;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
MessageBox.post("请选择图纸版本", "", MessageBox.INFORMATION);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// sql查询获取对应组的图纸id
|
|
||||||
HashMap<String, String> sqlMap = new HashMap<String, String>();
|
|
||||||
String selectSql = "SELECT \"drawingno\",\"source\" FROM CHINT_DESIGN__SOURCE_RULE WHERE \"factory\" = '"
|
|
||||||
+ groupName + "'";
|
|
||||||
System.out.println("selectSql =========" + selectSql);
|
|
||||||
ResultSet rs = SqlUtil.read(selectSql);
|
|
||||||
while (rs.next()) {
|
|
||||||
sqlMap.put(rs.getString(1), rs.getString(2));
|
|
||||||
}
|
|
||||||
if (sqlMap.size() == 0) {
|
|
||||||
MessageBox.post("该组织未在数据库中获取到图纸", "", MessageBox.INFORMATION);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
System.out.println("sqlMap====" + sqlMap.toString());
|
|
||||||
|
|
||||||
comp = new MyProgressBarCompent("", "正在进行更新图纸自制外购....");
|
|
||||||
String lineSeparator = System.lineSeparator();// 换行符
|
|
||||||
StringBuffer errMessage = new StringBuffer("");
|
|
||||||
StringBuffer succMessage = new StringBuffer("");
|
|
||||||
succMessage.append("成功修改数据如下:").append(lineSeparator);
|
|
||||||
errMessage.append("无法修改数据如下:").append(lineSeparator);
|
|
||||||
String current_user_name = getUserName(session);
|
|
||||||
TCComponentBOMWindowType bomWinType = (TCComponentBOMWindowType) session.getTypeComponent("BOMWindow");
|
|
||||||
TCComponentBOMWindow win = bomWinType.create(null);
|
|
||||||
TCComponentBOMLine setWindowTopLine = win.setWindowTopLine(degignRev.getItem(), degignRev, null, null);
|
|
||||||
|
|
||||||
// soa获取bom子
|
|
||||||
List<TCComponentItemRevision> childLines = BomToSapUtil.getBomLineTreeNodeSOA2(setWindowTopLine);
|
|
||||||
System.out.println("childLines.size====" + childLines.size());
|
|
||||||
|
|
||||||
// 遍历逻辑
|
|
||||||
for (int i = 0; i < childLines.size(); i++) {
|
|
||||||
TCComponentItemRevision tcComponentItemRevision = childLines.get(i);
|
|
||||||
String[] properties = tcComponentItemRevision
|
|
||||||
.getProperties(new String[] { "item_id", "item_revision_id" });
|
|
||||||
String zt2_Source = tcComponentItemRevision.getStringProperty("zt2_Source");
|
|
||||||
for (Entry<String, String> map : sqlMap.entrySet()) {
|
|
||||||
String key = map.getKey();
|
|
||||||
if (properties[0].contains(key)) {
|
|
||||||
String value = map.getValue();
|
|
||||||
System.out.println("item_id========" + properties[0]);
|
|
||||||
if (!zt2_Source.equals(value)) {
|
|
||||||
|
|
||||||
// 判断是否发布
|
|
||||||
if (KUtil.isTCM(tcComponentItemRevision)) {
|
|
||||||
errMessage.append(properties[0] + "-" + properties[1] + "因发布无法更改,请手工处理");
|
|
||||||
errMessage.append(lineSeparator);
|
|
||||||
} else {
|
|
||||||
|
|
||||||
// 判断登录人是否owning_user
|
|
||||||
TCComponent owning_user = tcComponentItemRevision.getReferenceProperty("owning_user");
|
|
||||||
String user_name = owning_user.getProperty("user_name");
|
|
||||||
if (current_user_name.equals(user_name)) {
|
|
||||||
// 修改版本的值
|
|
||||||
tcComponentItemRevision.setProperty("zt2_Source", value);
|
|
||||||
succMessage.append(
|
|
||||||
properties[0] + "-" + properties[1] + "已从" + (zt2_Source.equals("S1")?"自制":"外购") + "改成" + (value.equals("S1")?"自制":"外购"));
|
|
||||||
succMessage.append(lineSeparator);
|
|
||||||
} else {
|
|
||||||
errMessage.append(properties[0] + "-" + properties[1] + "所有者为" + user_name
|
|
||||||
+ ",无法更改,请联系" + user_name);
|
|
||||||
errMessage.append(lineSeparator);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
win.close();
|
|
||||||
|
|
||||||
MessageBox.post(succMessage.toString() + lineSeparator + errMessage.toString(), "项目BOM传递SAP", 2);
|
|
||||||
} catch (Exception e) {
|
|
||||||
|
|
||||||
e.printStackTrace();
|
|
||||||
if (comp != null) {
|
|
||||||
comp.setVisible(false);
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
KUtil.setByPass(false);
|
|
||||||
if (comp != null) {
|
|
||||||
comp.setVisible(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUserName(TCSession session) throws TCException {
|
|
||||||
TCComponentUser user = session.getUser();
|
|
||||||
session.getUserName();
|
|
||||||
return user.getTCProperty("user_name").getDisplayValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,58 +0,0 @@
|
|||||||
package com.connor.plm.txdp;
|
|
||||||
import org.eclipse.core.commands.AbstractHandler;
|
|
||||||
import org.eclipse.core.commands.ExecutionEvent;
|
|
||||||
import org.eclipse.core.commands.ExecutionException;
|
|
||||||
|
|
||||||
import com.connor.chint.sap2.util.ChintPreferenceUtil;
|
|
||||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
|
||||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponent;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentFolder;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItem;
|
|
||||||
import com.teamcenter.rac.kernel.TCComponentItemRevision;
|
|
||||||
import com.teamcenter.rac.kernel.TCSession;
|
|
||||||
import com.teamcenter.rac.util.MessageBox;
|
|
||||||
|
|
||||||
public class TXDPHandler extends AbstractHandler {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
|
||||||
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
|
||||||
TCSession session = (TCSession) app.getSession();
|
|
||||||
try {
|
|
||||||
String type = ChintPreferenceUtil.getPreference("CHINT_IRON_TYPE", session);
|
|
||||||
if(type == null || type.isEmpty()) {
|
|
||||||
MessageBox.post("首选项CHINT_IRON_TYPE配置不正确", "提示", MessageBox.WARNING);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
TCComponent target = (TCComponent) app.getTargetComponent();
|
|
||||||
if(target instanceof TCComponentItem && !target.isTypeOf(type)) {
|
|
||||||
MessageBox.post("请选择文件夹或铁心剪切单进行导入", "提示", MessageBox.WARNING);
|
|
||||||
return null;
|
|
||||||
}else if(target instanceof TCComponentItemRevision
|
|
||||||
&& !((TCComponentItemRevision)target).getItem().isTypeOf(type)) {
|
|
||||||
MessageBox.post("请选择文件夹或铁心剪切单进行导入", "提示", MessageBox.WARNING);
|
|
||||||
return null;
|
|
||||||
}else if(!(target instanceof TCComponentFolder)) {
|
|
||||||
MessageBox.post("请选择文件夹或铁心剪切单进行导入", "提示", MessageBox.WARNING);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
new Thread() {
|
|
||||||
@Override
|
|
||||||
public void run() {
|
|
||||||
try {
|
|
||||||
new TXDPFram(session, target, type);
|
|
||||||
} catch (Exception e) {
|
|
||||||
// Auto-generated catch block
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}.start();
|
|
||||||
} catch (Exception e) {
|
|
||||||
// : handle exception
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in new issue