parent
91c8cadc6e
commit
0b5e29dae1
@ -1 +1,4 @@
|
||||
/com/
|
||||
/mes/
|
||||
/nc/
|
||||
/plm/
|
||||
|
Binary file not shown.
@ -1,100 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import java.lang.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
|
||||
<Pane fx:id="pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="840.0" prefWidth="1270.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.connor.plm.rdmCreate.RdmCreateController">
|
||||
<children>
|
||||
<TitledPane fx:id="titlePane" animated="false" layoutY="-1.0" prefHeight="156.0" prefWidth="1272.0" text="创建研发项目">
|
||||
<content>
|
||||
<AnchorPane fx:id="anchorPane1" minHeight="0.0" minWidth="0.0" prefHeight="120.0" prefWidth="1270.0">
|
||||
<children>
|
||||
<GridPane fx:id="gridTop" layoutX="197.0" layoutY="18.0" prefHeight="90.0" prefWidth="839.0">
|
||||
<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>
|
||||
<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="cjButton" mnemonicParsing="false" onAction="#cjbutton" prefHeight="30.0" prefWidth="136.0" text="创建" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
||||
<Button fx:id="gbxmButton" mnemonicParsing="false" onAction="#gbxmButton" prefHeight="30.0" prefWidth="135.0" text="关闭项目" GridPane.columnIndex="2" GridPane.halignment="CENTER" GridPane.rowIndex="1" />
|
||||
</children>
|
||||
</GridPane>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</content>
|
||||
</TitledPane>
|
||||
<SplitPane fx:id="splitPane" dividerPositions="0.23548740416210295" layoutY="165.0" prefHeight="675.0" prefWidth="1270.0">
|
||||
<items>
|
||||
<AnchorPane fx:id="anchorPane2" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
|
||||
<children>
|
||||
<GridPane fx:id="grid" layoutX="20.0" layoutY="41.0" prefHeight="457.0" prefWidth="253.0">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="122.0" minWidth="10.0" prefWidth="93.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="160.0" minWidth="10.0" prefWidth="160.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 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 prefHeight="20.0" prefWidth="82.0" text="内部订单号" />
|
||||
<Label text="项目定义" GridPane.rowIndex="1" />
|
||||
<Label text="集团项目号" GridPane.rowIndex="2" />
|
||||
<Label text="项目名称" GridPane.rowIndex="3" />
|
||||
<Label text="项目经理" GridPane.rowIndex="4" />
|
||||
<Label text="工厂" GridPane.rowIndex="5" />
|
||||
<Label text="推送者" GridPane.rowIndex="6" />
|
||||
<Label text="推送时间早于" GridPane.rowIndex="7" />
|
||||
<Label text="推送时间晚于" GridPane.rowIndex="8" />
|
||||
<Label text="状态" GridPane.rowIndex="9" />
|
||||
<TextField fx:id="f0" GridPane.columnIndex="1" />
|
||||
<TextField fx:id="f1" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
||||
<TextField fx:id="f2" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||
<TextField fx:id="f3" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
||||
<TextField fx:id="f4" GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
||||
<TextField fx:id="f6" GridPane.columnIndex="1" GridPane.rowIndex="6" />
|
||||
<DatePicker fx:id="f7" GridPane.columnIndex="1" GridPane.rowIndex="7" />
|
||||
<DatePicker fx:id="f8" GridPane.columnIndex="1" GridPane.rowIndex="8" />
|
||||
<ComboBox fx:id="f5" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="5" />
|
||||
<ComboBox fx:id="f9" prefWidth="150.0" GridPane.columnIndex="1" GridPane.rowIndex="9" />
|
||||
<Button fx:id="cxButton" mnemonicParsing="false" onAction="#cxButton" prefHeight="30.0" prefWidth="88.0" text="查询" GridPane.columnIndex="1" GridPane.rowIndex="11" />
|
||||
</children>
|
||||
</GridPane>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
<AnchorPane fx:id="anchorPane3" minHeight="0.0" minWidth="0.0" prefHeight="415.0" prefWidth="965.0">
|
||||
<children>
|
||||
<ScrollPane prefHeight="673.0" prefWidth="965.0">
|
||||
<content>
|
||||
<AnchorPane fx:id="anchorPane4" minHeight="0.0" minWidth="0.0" prefHeight="677.0" prefWidth="972.0">
|
||||
<children>
|
||||
<TableView fx:id="table" prefHeight="655.0" prefWidth="947.0" />
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</content>
|
||||
</ScrollPane>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</items>
|
||||
</SplitPane>
|
||||
</children>
|
||||
</Pane>
|
@ -1,138 +0,0 @@
|
||||
package com.connor.plm.rdmCreate;
|
||||
|
||||
import java.sql.Date;
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
import javafx.scene.control.TextArea;
|
||||
|
||||
public class RdmCreateBean {
|
||||
|
||||
private TextArea ordernumber = new TextArea();
|
||||
private TextArea projectno = new TextArea();
|
||||
private TextArea rdmprojectno = new TextArea();
|
||||
private TextArea projectname = new TextArea();
|
||||
private TextArea projectleader = new TextArea();
|
||||
private TextArea factory = new TextArea();
|
||||
private TextArea pushuser = new TextArea();
|
||||
private TextArea pushdate = new TextArea();
|
||||
private TextArea status = new TextArea();
|
||||
private TextArea createdate = new TextArea();
|
||||
private TextArea projectleaderid = new TextArea();
|
||||
private TextArea pushuserid = new TextArea();
|
||||
|
||||
|
||||
|
||||
public RdmCreateBean(String ordernumber, String projectno, String rdmprojectno, String projectname,
|
||||
String projectleader, String factory, String pushuser, Date pushdate, String status, Date createdate,
|
||||
String projectleaderid, String pushuserid) {
|
||||
super();
|
||||
|
||||
this.ordernumber.setText(ordernumber);
|
||||
this.ordernumber.setEditable(false);
|
||||
this.ordernumber.setPrefSize(200, 40);
|
||||
|
||||
this.projectno.setText(projectno);
|
||||
this.projectno.setEditable(false);
|
||||
this.projectno.setPrefSize(200, 40);
|
||||
|
||||
this.rdmprojectno.setText(rdmprojectno);
|
||||
this.rdmprojectno.setEditable(false);
|
||||
this.rdmprojectno.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.projectname.setText(projectname);
|
||||
this.projectname.setEditable(false);
|
||||
this.projectname.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.projectleader.setText(projectleader);
|
||||
this.projectleader.setEditable(false);
|
||||
this.projectleader.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.factory.setText(factory);
|
||||
this.factory.setEditable(false);
|
||||
this.factory.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.pushuser.setText(pushuser);
|
||||
this.pushuser.setEditable(false);
|
||||
this.pushuser.setPrefSize(200, 40);
|
||||
|
||||
SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-M-dd");
|
||||
|
||||
this.pushdate.setText(sdf2.format(pushdate));
|
||||
this.pushdate.setEditable(false);
|
||||
this.pushdate.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.status.setText(status);
|
||||
this.status.setEditable(false);
|
||||
this.status.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.createdate.setText(sdf2.format(createdate));
|
||||
this.createdate.setEditable(false);
|
||||
this.createdate.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.projectleaderid.setText(projectleaderid);
|
||||
this.projectleaderid.setEditable(false);
|
||||
this.projectleaderid.setPrefSize(200, 40);
|
||||
|
||||
|
||||
this.pushuserid.setText(pushuserid);
|
||||
this.pushuserid.setEditable(false);
|
||||
this.pushuserid.setPrefSize(200, 40);
|
||||
}
|
||||
|
||||
public void setOrdernumber(TextArea ordernumber) {
|
||||
this.ordernumber = ordernumber;
|
||||
}
|
||||
|
||||
public void setProjectno(TextArea projectno) {
|
||||
this.projectno = projectno;
|
||||
}
|
||||
|
||||
public void setRdmprojectno(TextArea rdmprojectno) {
|
||||
this.rdmprojectno = rdmprojectno;
|
||||
}
|
||||
|
||||
public void setProjectname(TextArea projectname) {
|
||||
this.projectname = projectname;
|
||||
}
|
||||
|
||||
public void setProjectleader(TextArea projectleader) {
|
||||
this.projectleader = projectleader;
|
||||
}
|
||||
|
||||
public void setFactory(TextArea factory) {
|
||||
this.factory = factory;
|
||||
}
|
||||
|
||||
public void setPushuser(TextArea pushuser) {
|
||||
this.pushuser = pushuser;
|
||||
}
|
||||
|
||||
public void setPushdate(TextArea pushdate) {
|
||||
this.pushdate = pushdate;
|
||||
}
|
||||
|
||||
public void setStatus(TextArea status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public void setCreatedate(TextArea createdate) {
|
||||
this.createdate = createdate;
|
||||
}
|
||||
|
||||
public void setProjectleaderid(TextArea projectleaderid) {
|
||||
this.projectleaderid = projectleaderid;
|
||||
}
|
||||
|
||||
public void setPushuserid(TextArea pushuserid) {
|
||||
this.pushuserid = pushuserid;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
package com.connor.plm.rdmCreate;
|
||||
|
||||
import java.awt.Dimension;
|
||||
import java.awt.Toolkit;
|
||||
|
||||
import org.apache.log4j.chainsaw.Main;
|
||||
import org.eclipse.core.commands.AbstractHandler;
|
||||
import org.eclipse.core.commands.ExecutionEvent;
|
||||
|
||||
import com.chint.plm.SearchSapResult.SapResultFrame;
|
||||
import com.teamcenter.rac.aif.AbstractAIFApplication;
|
||||
import com.teamcenter.rac.aifrcp.AIFUtility;
|
||||
import com.teamcenter.rac.kernel.TCSession;
|
||||
|
||||
/**
|
||||
* 成本单管理
|
||||
* @author admin
|
||||
* 2023/11/16
|
||||
*/
|
||||
public class RdmCreateHandler extends AbstractHandler{
|
||||
|
||||
@Override
|
||||
public Object execute(ExecutionEvent arg0) {
|
||||
// TODO Auto-generated method stub
|
||||
AbstractAIFApplication app = AIFUtility.getCurrentApplication();
|
||||
TCSession session = (TCSession)app.getSession();
|
||||
try {
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
// NewJFrame newJFrame = new NewJFrame(session);
|
||||
// int width2 = newJFrame.getWidth();
|
||||
// int height2 = newJFrame.getHeight();
|
||||
// Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); // 获取屏幕尺寸
|
||||
// int screenWidth = screenSize.width; // 获取屏幕宽度
|
||||
// int screenHeight = screenSize.height; // 获取屏幕高度
|
||||
// int x = (screenWidth - width2) / 2; // 计算Frame的左上角x坐标
|
||||
// int y = (screenHeight - height2) / 2; // 计算Frame的左上角y坐标
|
||||
// newJFrame.setTitle("工装需求查询");
|
||||
// // this.getContentPane().setBackground(Color.red);
|
||||
// newJFrame.getContentPane().setBackground(new java.awt.Color(255, 255, 255));
|
||||
// newJFrame.setSize(1240, height2); // 设置Frame的大小
|
||||
// newJFrame.setLocation(x, y); // 设置Frame的位置
|
||||
// newJFrame.setResizable(false);
|
||||
// newJFrame.setDefaultCloseOperation(2); // 设置窗口关闭时的默认操作
|
||||
// newJFrame.setVisible(true);
|
||||
|
||||
|
||||
|
||||
new RdmCreateFrame();
|
||||
}
|
||||
}.start();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new RdmCreateFrame();
|
||||
}
|
||||
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package com.connor.plm.rdmCreate;
|
||||
|
||||
import java.awt.Window;
|
||||
|
||||
import com.chint.plm.fxUtil.KFXPanel;
|
||||
|
||||
public class RdmCreatePanel extends KFXPanel {
|
||||
|
||||
public RdmCreatePanel(Window dialog) {
|
||||
super(dialog, "RdmCreate.fxml");
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
}
|
Loading…
Reference in new issue