Compare commits
52 Commits
Author | SHA1 | Date |
---|---|---|
|
9900f547db | 2 weeks ago |
|
4de2e69a26 | 2 months ago |
|
08b1c7d229 | 6 months ago |
|
06ce605cc3 | 6 months ago |
|
64c15090ce | 6 months ago |
|
88f6b62971 | 6 months ago |
|
8142db5be0 | 7 months ago |
|
fa0df61922 | 7 months ago |
|
9806e11b62 | 7 months ago |
|
1bf1794302 | 7 months ago |
|
7455e2334d | 7 months ago |
|
dfea5b3496 | 7 months ago |
|
5abec9e98d | 8 months ago |
|
169ce3d50a | 8 months ago |
|
0b5e29dae1 | 8 months ago |
|
91c8cadc6e | 8 months ago |
|
2ddfd4cf70 | 8 months ago |
|
234f4aeed1 | 9 months ago |
|
487b1bdad9 | 9 months ago |
|
45e3a05384 | 9 months ago |
|
79d21d17b0 | 9 months ago |
|
cc4da5d194 | 10 months ago |
|
79aec2398d | 10 months ago |
|
9aeac26390 | 10 months ago |
|
1914fabab5 | 10 months ago |
|
05f255483b | 10 months ago |
|
b897f349f2 | 10 months ago |
|
e3ee0e25b6 | 10 months ago |
|
57055d7b83 | 10 months ago |
|
dd24df7010 | 11 months ago |
|
f23f48629f | 11 months ago |
|
eaaeca590f | 11 months ago |
|
4aaa73ecc4 | 11 months ago |
|
aabd198422 | 11 months ago |
|
7f030fa8e3 | 11 months ago |
|
736c63cb9d | 11 months ago |
|
cfd3ae18a9 | 11 months ago |
|
2811ff7d92 | 11 months ago |
|
92113227ea | 11 months ago |
|
be67b3d060 | 12 months ago |
|
f75edad6e7 | 12 months ago |
|
46057e6823 | 12 months ago |
|
dc52c69198 | 12 months ago |
|
bbcac57a9a | 1 year ago |
|
3fce8a3a3b | 1 year ago |
|
e1e43dd81e | 1 year ago |
|
14b2c8ef95 | 1 year ago |
|
29488495c0 | 1 year ago |
|
7070568d24 | 1 year ago |
|
143a29a2d9 | 1 year ago |
|
b173978853 | 1 year ago |
|
b002d508e3 | 1 year ago |
@ -1,4 +0,0 @@
|
|||||||
/com/
|
|
||||||
/mes/
|
|
||||||
/nc/
|
|
||||||
/plm/
|
|
@ -0,0 +1,81 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,204 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,81 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,135 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,135 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,50 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,285 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,187 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,3 @@
|
|||||||
|
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
|
@ -0,0 +1,148 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,19 @@
|
|||||||
|
#\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
|
@ -0,0 +1,41 @@
|
|||||||
|
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
|
@ -0,0 +1,191 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,123 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,86 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,106 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,107 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,24 @@
|
|||||||
|
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
|
@ -0,0 +1,24 @@
|
|||||||
|
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
|
@ -0,0 +1,115 @@
|
|||||||
|
package com.chint.plm.createEcn;
|
||||||
|
|
||||||
|
import java.awt.BorderLayout;
|
||||||
|
import java.awt.Dimension;
|
||||||
|
import java.awt.FlowLayout;
|
||||||
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import javax.swing.JButton;
|
||||||
|
import javax.swing.JPanel;
|
||||||
|
import javax.swing.JScrollPane;
|
||||||
|
import javax.swing.JTextArea;
|
||||||
|
|
||||||
|
import com.teamcenter.rac.aif.AbstractAIFDialog;
|
||||||
|
|
||||||
|
import javafx.scene.control.TableView;
|
||||||
|
import javafx.scene.control.TextArea;
|
||||||
|
/**
|
||||||
|
* 功能描述: 长文本内容弹窗查看编辑
|
||||||
|
* 创建日期:2024-12-02
|
||||||
|
* @author 李冬阳
|
||||||
|
*
|
||||||
|
* 修改日期 修改人 修改描述
|
||||||
|
* 2024-12-02 李冬阳 新增
|
||||||
|
*/
|
||||||
|
public class EditTextDialog extends AbstractAIFDialog {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private JTextArea textArea;
|
||||||
|
private JButton okBtn;
|
||||||
|
private JButton cancelBtn;
|
||||||
|
private String value;
|
||||||
|
private TextArea changeArea;
|
||||||
|
|
||||||
|
public EditTextDialog(CreateEcnFrame parent, TableView<EcnBean> refTable, int row, List<EcnBean> refTableBeans,
|
||||||
|
boolean before, boolean edit, String value) {
|
||||||
|
super(parent, true);
|
||||||
|
|
||||||
|
this.value = value;
|
||||||
|
|
||||||
|
initUI(before, edit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EditTextDialog(CreateEcnFrame parent, boolean before, boolean edit, String value) {
|
||||||
|
super(parent, true);
|
||||||
|
|
||||||
|
this.value = value;
|
||||||
|
|
||||||
|
initUI(before, edit);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EditTextDialog(CreateEcnFrame parent, boolean before, boolean edit, TextArea area) {
|
||||||
|
super(parent, true);
|
||||||
|
|
||||||
|
this.changeArea = area;
|
||||||
|
|
||||||
|
initUI(before, edit);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void initUI(boolean before, boolean edit) {
|
||||||
|
setTitle(before ? "更改前" : "更改后");
|
||||||
|
textArea = new JTextArea();
|
||||||
|
textArea.setLineWrap(true);
|
||||||
|
textArea.setWrapStyleWord(true);
|
||||||
|
textArea.setEditable(edit);
|
||||||
|
if(value != null)
|
||||||
|
textArea.setText(value);
|
||||||
|
else if(changeArea != null)
|
||||||
|
textArea.setText(changeArea.getText());
|
||||||
|
|
||||||
|
JPanel panel = new JPanel(new FlowLayout());
|
||||||
|
okBtn = new JButton("确定");
|
||||||
|
cancelBtn = new JButton("取消");
|
||||||
|
panel.add(okBtn);
|
||||||
|
panel.add(cancelBtn);
|
||||||
|
|
||||||
|
okBtn.setEnabled(edit);
|
||||||
|
|
||||||
|
addActionListener();
|
||||||
|
|
||||||
|
this.setLayout(new BorderLayout());
|
||||||
|
this.add(BorderLayout.CENTER, new JScrollPane(textArea));
|
||||||
|
this.add(BorderLayout.SOUTH, panel);
|
||||||
|
this.setPreferredSize(new Dimension(800, 400));
|
||||||
|
Dimension screen = getToolkit().getScreenSize();
|
||||||
|
setLocation((screen.width - getSize().width) / 2, (screen.height - getSize().height) / 2);
|
||||||
|
setAlwaysOnTop(true);
|
||||||
|
this.setAlwaysOnTop(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void run(){
|
||||||
|
showDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void addActionListener() {
|
||||||
|
//final Shell dialog = shell;
|
||||||
|
okBtn.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent arg0) {
|
||||||
|
changeArea.setText(textArea.getText());
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
cancelBtn.addActionListener(new ActionListener() {
|
||||||
|
@Override
|
||||||
|
public void actionPerformed(ActionEvent arg0) {
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,84 @@
|
|||||||
|
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,164 +1,495 @@
|
|||||||
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 String instanceId;
|
private TextArea instanceId = new TextArea();
|
||||||
private String factory;
|
private TextArea factory = new TextArea();
|
||||||
private String sfId;
|
private TextArea sfId = new TextArea();
|
||||||
private String head;
|
private TextArea head = new TextArea();
|
||||||
private String scheduledtime;
|
private TextArea scheduledtime = new TextArea();
|
||||||
private String model;
|
private TextArea model = new TextArea();
|
||||||
private String productname;
|
private TextArea productname = new TextArea();
|
||||||
private String toolnumber;
|
private TextArea toolnumber = new TextArea();
|
||||||
private String toolname;
|
private TextArea toolname = new TextArea();
|
||||||
private String toolinglevel;
|
private TextArea toolinglevel = new TextArea();
|
||||||
private String reason;
|
|
||||||
private String jsgyrequirements;
|
private TextArea reason = new TextArea();
|
||||||
private String link;
|
private TextArea jsgyrequirements = new TextArea();
|
||||||
private String state;
|
private Button link = new Button();
|
||||||
|
private Button cjgzxq = new Button();
|
||||||
public GzxqBean() {
|
private String linkStr;
|
||||||
super();
|
private String sfIdStr;
|
||||||
}
|
private String instanceIdStr;
|
||||||
|
private TCSession session;
|
||||||
public String getInstanceId() {
|
private TextArea state = new TextArea();
|
||||||
return instanceId;
|
private TextArea xh = new TextArea();
|
||||||
}
|
//设置TextArea的值和Button
|
||||||
|
public GzxqBean(String instanceId, String factory, String sfId, String head, String scheduledtime,
|
||||||
public void setInstanceId(String instanceId) {
|
String model, String productname, String toolnumber, String toolname, String toolinglevel,
|
||||||
this.instanceId = instanceId;
|
String reason, String jsgyrequirements, String link, String state, String xh,TCSession session) {
|
||||||
}
|
super();
|
||||||
|
this.instanceId.setText(instanceId);
|
||||||
public String getFactory() {
|
this.instanceId.setEditable(false);
|
||||||
return factory;
|
this.instanceId.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
this.factory.setText(factory);
|
||||||
public void setFactory(String factory) {
|
this.factory.setEditable(false);
|
||||||
this.factory = factory;
|
this.factory.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
this.sfId.setText(sfId);
|
||||||
public String getSfId() {
|
this.sfId.setEditable(false);
|
||||||
return sfId;
|
this.sfId.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
this.head.setText(head);
|
||||||
public void setSfId(String sfId) {
|
this.head.setEditable(false);
|
||||||
this.sfId = sfId;
|
this.head.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
this.scheduledtime.setText(scheduledtime);
|
||||||
public String getHead() {
|
this.scheduledtime.setEditable(false);
|
||||||
return head;
|
this.scheduledtime.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
|
||||||
public void setHead(String head) {
|
this.model.setText(model);
|
||||||
this.head = head;
|
this.model.setEditable(false);
|
||||||
}
|
this.model.setPrefSize(200, 40);
|
||||||
|
|
||||||
public String getScheduledtime() {
|
this.productname.setText(productname);
|
||||||
return scheduledtime;
|
this.productname.setEditable(false);
|
||||||
}
|
this.productname.setPrefSize(200, 40);
|
||||||
|
|
||||||
public void setScheduledtime(String scheduledtime) {
|
this.toolnumber.setText(toolnumber);
|
||||||
this.scheduledtime = scheduledtime;
|
this.toolnumber.setEditable(false);
|
||||||
}
|
this.toolnumber.setPrefSize(200, 40);
|
||||||
|
|
||||||
public String getModel() {
|
this.toolname.setText(toolname);
|
||||||
return model;
|
this.toolname.setEditable(false);
|
||||||
}
|
this.toolname.setPrefSize(200, 40);
|
||||||
|
|
||||||
public void setModel(String model) {
|
this.toolinglevel.setText(toolinglevel);
|
||||||
this.model = model;
|
this.toolinglevel.setEditable(false);
|
||||||
}
|
this.toolinglevel.setPrefSize(200, 40);
|
||||||
|
|
||||||
public String getProductname() {
|
|
||||||
return productname;
|
|
||||||
}
|
this.reason.setText(reason);
|
||||||
|
this.reason.setEditable(false);
|
||||||
public void setProductname(String productname) {
|
this.reason.setPrefSize(200, 40);
|
||||||
this.productname = productname;
|
|
||||||
}
|
this.jsgyrequirements.setText(jsgyrequirements);
|
||||||
|
this.jsgyrequirements.setEditable(false);
|
||||||
public String getToolnumber() {
|
this.jsgyrequirements.setPrefSize(200, 40);
|
||||||
return toolnumber;
|
|
||||||
}
|
this.cjgzxq.setText("设计");;
|
||||||
|
this.cjgzxq.setPrefSize(200, 40);
|
||||||
public void setToolnumber(String toolnumber) {
|
this.link.setText("打开");
|
||||||
this.toolnumber = toolnumber;
|
this.link.setPrefSize(200, 40);
|
||||||
}
|
this.linkStr = link;
|
||||||
|
this.sfIdStr = sfId;
|
||||||
public String getToolname() {
|
this.instanceIdStr = instanceId;
|
||||||
return toolname;
|
this.session = session;
|
||||||
}
|
|
||||||
|
this.state.setText(state);
|
||||||
public void setToolname(String toolname) {
|
this.state.setEditable(false);
|
||||||
this.toolname = toolname;
|
this.state.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
this.xh.setText(xh);
|
||||||
public String getToolinglevel() {
|
this.xh.setEditable(false);
|
||||||
return toolinglevel;
|
this.xh.setPrefSize(200, 40);
|
||||||
}
|
|
||||||
|
//加按钮监听
|
||||||
public void setToolinglevel(String toolinglevel) {
|
this.link.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
this.toolinglevel = toolinglevel;
|
@Override
|
||||||
}
|
public void handle(ActionEvent event) {
|
||||||
|
System.out.println("Button was clicked!");
|
||||||
public String getReason() {
|
// 在这里可以添加更多的逻辑
|
||||||
return reason;
|
try {
|
||||||
}
|
browse2(linkStr);
|
||||||
|
} catch (Exception e1) {
|
||||||
public void setReason(String reason) {
|
// TODO Auto-generated catch block
|
||||||
this.reason = reason;
|
e1.printStackTrace();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
public String getJsgyrequirements() {
|
});
|
||||||
return jsgyrequirements;
|
|
||||||
}
|
//加按钮监听 创建对象
|
||||||
|
this.cjgzxq.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
public void setJsgyrequirements(String jsgyrequirements) {
|
@Override
|
||||||
this.jsgyrequirements = jsgyrequirements;
|
public void handle(ActionEvent event) {
|
||||||
}
|
System.out.println("Button was clicked!");
|
||||||
|
// 在这里可以添加更多的逻辑
|
||||||
public String getLink() {
|
|
||||||
return link;
|
String formnumber = instanceIdStr;
|
||||||
}
|
String sfid =sfIdStr;
|
||||||
|
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
||||||
public void setLink(String link) {
|
InterfaceAIFComponent target = app.getTargetComponent();
|
||||||
this.link = link;
|
if(target instanceof TCComponentFolder) {
|
||||||
}
|
TCComponentFolder folder = (TCComponentFolder)target;
|
||||||
|
try {
|
||||||
public String getState() {
|
TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
||||||
return state;
|
String newID = typeComponent.getNewID();
|
||||||
}
|
TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
||||||
|
TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
||||||
public void setState(String state) {
|
if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
||||||
this.state = state;
|
itemRev.setStringProperty("zt2_formnumber", formnumber);
|
||||||
}
|
}
|
||||||
|
if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
||||||
public GzxqBean(String instanceId, String factory, String sfId, String head, String scheduledtime, String model,
|
itemRev.setStringProperty("zt2_sfid", sfid);
|
||||||
String productname, String toolnumber, String toolname, String toolinglevel, String reason,
|
}
|
||||||
String jsgyrequirements, String link, String state) {
|
folder.add("contents", item);
|
||||||
super();
|
folder.refresh();
|
||||||
this.instanceId = instanceId;
|
} catch (Exception e2) {
|
||||||
this.factory = factory;
|
// TODO: handle exception
|
||||||
this.sfId = sfId;
|
e2.printStackTrace();
|
||||||
this.head = head;
|
}
|
||||||
this.scheduledtime = scheduledtime;
|
|
||||||
this.model = model;
|
}else {
|
||||||
this.productname = productname;
|
try {
|
||||||
this.toolnumber = toolnumber;
|
TCComponentItemType typeComponent = (TCComponentItemType) session.getTypeComponent("ZT2_Frock");
|
||||||
this.toolname = toolname;
|
String newID = typeComponent.getNewID();
|
||||||
this.toolinglevel = toolinglevel;
|
TCComponentItem item = typeComponent.create(newID, "A", "ZT2_Frock", "", "", null);
|
||||||
this.reason = reason;
|
TCComponentItemRevision itemRev = item.getLatestItemRevision();
|
||||||
this.jsgyrequirements = jsgyrequirements;
|
if(itemRev != null && formnumber != null && !formnumber.isEmpty()) {
|
||||||
this.link = link;
|
itemRev.setStringProperty("zt2_formnumber", formnumber);
|
||||||
this.state = state;
|
|
||||||
}
|
}
|
||||||
|
if(itemRev != null && sfid != null && !sfid.isEmpty()) {
|
||||||
@Override
|
itemRev.setStringProperty("zt2_sfid", sfid);
|
||||||
public String toString() {
|
}
|
||||||
return "GzxqBean [instanceId=" + instanceId + ", factory=" + factory + ", sfId=" + sfId + ", head=" + head
|
session.getUser().getNewStuffFolder().add("contents", item);
|
||||||
+ ", scheduledtime=" + scheduledtime + ", model=" + model + ", productname=" + productname
|
} catch (Exception e2) {
|
||||||
+ ", toolnumber=" + toolnumber + ", toolname=" + toolname + ", toolinglevel=" + toolinglevel
|
// TODO: handle exception
|
||||||
+ ", reason=" + reason + ", jsgyrequirements=" + jsgyrequirements + ", link=" + link + ", state="
|
e2.printStackTrace();
|
||||||
+ state + "]";
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public TextArea getInstanceId() {
|
||||||
|
return instanceId;
|
||||||
|
}
|
||||||
|
public void setInstanceId(TextArea instanceId) {
|
||||||
|
this.instanceId = instanceId;
|
||||||
|
}
|
||||||
|
public TextArea getFactory() {
|
||||||
|
return factory;
|
||||||
|
}
|
||||||
|
public void setFactory(TextArea factory) {
|
||||||
|
this.factory = factory;
|
||||||
|
}
|
||||||
|
public TextArea getSfId() {
|
||||||
|
return sfId;
|
||||||
|
}
|
||||||
|
public void setSfId(TextArea sfId) {
|
||||||
|
this.sfId = sfId;
|
||||||
|
}
|
||||||
|
public TextArea getHead() {
|
||||||
|
return head;
|
||||||
|
}
|
||||||
|
public void setHead(TextArea head) {
|
||||||
|
this.head = head;
|
||||||
|
}
|
||||||
|
public TextArea getScheduledtime() {
|
||||||
|
return scheduledtime;
|
||||||
|
}
|
||||||
|
public void setScheduledtime(TextArea scheduledtime) {
|
||||||
|
this.scheduledtime = scheduledtime;
|
||||||
|
}
|
||||||
|
public TextArea getModel() {
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
public void setModel(TextArea model) {
|
||||||
|
this.model = model;
|
||||||
|
}
|
||||||
|
public TextArea getProductname() {
|
||||||
|
return productname;
|
||||||
|
}
|
||||||
|
public void setProductname(TextArea productname) {
|
||||||
|
this.productname = productname;
|
||||||
|
}
|
||||||
|
public TextArea getToolnumber() {
|
||||||
|
return toolnumber;
|
||||||
|
}
|
||||||
|
public void setToolnumber(TextArea toolnumber) {
|
||||||
|
this.toolnumber = toolnumber;
|
||||||
|
}
|
||||||
|
public TextArea getToolname() {
|
||||||
|
return toolname;
|
||||||
|
}
|
||||||
|
public void setToolname(TextArea toolname) {
|
||||||
|
this.toolname = toolname;
|
||||||
|
}
|
||||||
|
public TextArea getToolinglevel() {
|
||||||
|
return toolinglevel;
|
||||||
|
}
|
||||||
|
public void setToolinglevel(TextArea toolinglevel) {
|
||||||
|
this.toolinglevel = toolinglevel;
|
||||||
|
}
|
||||||
|
public TextArea getReason() {
|
||||||
|
return reason;
|
||||||
|
}
|
||||||
|
public void setReason(TextArea 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() {
|
||||||
|
return jsgyrequirements;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJsgyrequirements(TextArea jsgyrequirements) {
|
||||||
|
this.jsgyrequirements = jsgyrequirements;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLinkStr() {
|
||||||
|
return linkStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLinkStr(String linkStr) {
|
||||||
|
this.linkStr = linkStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSfIdStr() {
|
||||||
|
return sfIdStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSfIdStr(String sfIdStr) {
|
||||||
|
this.sfIdStr = sfIdStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInstanceIdStr() {
|
||||||
|
return instanceIdStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInstanceIdStr(String instanceIdStr) {
|
||||||
|
this.instanceIdStr = instanceIdStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TCSession getSession() {
|
||||||
|
return session;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSession(TCSession session) {
|
||||||
|
this.session = session;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过浏览器打开连接
|
||||||
|
*/
|
||||||
|
private void browse2(String url) throws Exception {
|
||||||
|
Desktop desktop = Desktop.getDesktop();
|
||||||
|
if (Desktop.isDesktopSupported() && desktop.isSupported(Desktop.Action.BROWSE)) {
|
||||||
|
URI uri = new URI(url);
|
||||||
|
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();
|
||||||
}
|
//}
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
|
@ -0,0 +1,25 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,129 @@
|
|||||||
|
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
@ -0,0 +1,106 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,107 @@
|
|||||||
|
<?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.
@ -0,0 +1,69 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,44 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,178 @@
|
|||||||
|
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
@ -0,0 +1,58 @@
|
|||||||
|
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