⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.java

📁 实习时做的人事系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
																Main.this,																Main.this.model,																"人员录用");														Main.this.personnelManageEastPanel																.add(Main.this.viewer);														Main.this.pack();													}												});									}									{										this.depButton = new JButton();										this.depButton.setName("depButton");										this.depButton												.addActionListener(new ActionListener() {													public void actionPerformed(															ActionEvent evt) {														if (Main.this.viewer == null) {															Main.this.model = new DBTableModel(																	DBQuery.SELECT_DEPARTMENT_ALL_QUERY,																	"person",																	"部门信息");															Main.this.viewer = new DBTableViewer(																	Main.this,																	Main.this.model,																	"部门信息");															Main.this.personnelManageEastPanel																	.add(Main.this.viewer);															Main.this.pack();															return;														}														if (Main.this.viewer																.getDBTableName()																.equals("部门信息")) {															return;														}														Main.this.personnelManageEastPanel																.remove(Main.this.viewer);														Main.this.viewer																.closeDB();														Main.this.model = new DBTableModel(																DBQuery.SELECT_DEPARTMENT_ALL_QUERY,																"person",																"部门信息");														Main.this.viewer = new DBTableViewer(																Main.this,																Main.this.model,																"部门信息");														Main.this.personnelManageEastPanel																.add(Main.this.viewer);														Main.this.pack();													}												});									}									{										this.prizeButton = new JButton();										this.prizeButton.setName("prizeButton");										this.prizeButton												.addActionListener(new ActionListener() {													public void actionPerformed(															ActionEvent evt) {														if (Main.this.viewer == null) {															Main.this.model = new DBTableModel(																	DBQuery.SELECT_PRIZE_ALL_QUERY,																	"person",																	"员工奖惩");															Main.this.viewer = new DBTableViewer(																	Main.this,																	Main.this.model,																	"员工奖惩");															Main.this.personnelManageEastPanel																	.add(Main.this.viewer);															Main.this.pack();															return;														}														if (Main.this.viewer																.getDBTableName()																.equals("员工奖惩")) {															return;														}														Main.this.personnelManageEastPanel																.remove(Main.this.viewer);														Main.this.viewer																.closeDB();														Main.this.model = new DBTableModel(																DBQuery.SELECT_PRIZE_ALL_QUERY,																"person",																"员工奖惩");														Main.this.viewer = new DBTableViewer(																Main.this,																Main.this.model,																"员工奖惩");														Main.this.personnelManageEastPanel																.add(Main.this.viewer);														Main.this.pack();													}												});									}									{										this.examButton = new JButton();										this.examButton.setName("examButton");										this.examButton												.addActionListener(new ActionListener() {													public void actionPerformed(															ActionEvent evt) {														if (Main.this.viewer == null) {															Main.this.model = new DBTableModel(																	DBQuery.SELECT_EXAM_ALL_QUERY,																	"person",																	"员工绩效考核");															Main.this.viewer = new DBTableViewer(																	Main.this,																	Main.this.model,																	"员工绩效考核");															Main.this.personnelManageEastPanel																	.add(Main.this.viewer);															Main.this.pack();															return;														}														if (Main.this.viewer																.getDBTableName()																.equals(																		"员工绩效考核")) {															return;														}														Main.this.personnelManageEastPanel																.remove(Main.this.viewer);														Main.this.viewer																.closeDB();														Main.this.model = new DBTableModel(																DBQuery.SELECT_EXAM_ALL_QUERY,																"person",																"员工绩效考核");														Main.this.viewer = new DBTableViewer(																Main.this,																Main.this.model,																"员工绩效考核");														Main.this.personnelManageEastPanel																.add(Main.this.viewer);														Main.this.pack();													}												});									}									{										this.jButton1 = new JButton();										this.jToolBar2.add(this.jButton1);										this.jButton1.setName("jButton1");										this.jButton1												.addActionListener(new ActionListener() {													public void actionPerformed(															ActionEvent evt) {														if (Main.this.viewer == null) {															Main.this.model = new DBTableModel(																	DBQuery.SELECT_EMPLOYEETRAIN_ALL_QUERY,																	"person",																	"员工培训");															Main.this.viewer = new DBTableViewer(																	Main.this,																	Main.this.model,																	"员工培训");															Main.this.personnelManageEastPanel																	.add(Main.this.viewer);															Main.this.pack();															return;														}														if (Main.this.viewer																.getDBTableName()																.equals("员工培训")) {															return;														}														Main.this.personnelManageEastPanel																.remove(Main.this.viewer);														Main.this.viewer																.closeDB();														Main.this.model = new DBTableModel(																DBQuery.SELECT_EMPLOYEETRAIN_ALL_QUERY,																"person",																"员工培训");														Main.this.viewer = new DBTableViewer(																Main.this,																Main.this.model,																"员工培训");														Main.this.personnelManageEastPanel																.add(Main.this.viewer);														Main.this.pack();													}												});									}									{										this.postButton = new JButton();										this.postButton.setName("postButton");										this.jToolBar2.add(this.prizeButton);										this.jToolBar2.add(this.examButton);										this.jToolBar2.add(this.wanterInfo);										this.jToolBar2.add(this.fireButton);										this.jToolBar2.add(this.depButton);										this.jToolBar2.add(this.postButton);										this.jToolBar2												.add(this.employeeWantButton);										this.jToolBar2												.add(this.employeeTrainButton);										{											printReportButton = new JButton();											jToolBar2.add(printReportButton);											printReportButton.setName("printReportButton");											printReportButton.addActionListener(new ActionListener() {												public void actionPerformed(ActionEvent evt) {													Report report = new Report(Main.this);													report.showReport("com/personnel/resources/员工报表.jrxml", DBQuery.REPORT_EMPLOYEE);												}											});										}										this.postButton												.addActionListener(new ActionListener() {													public void actionPerformed(															ActionEvent evt) {														if (Main.this.viewer == null) {															Main.this.model = new DBTableModel(																	DBQuery.SELECT_POST_ALL_QUERY,																	"person",																	"职位信息");															Main.this.viewer = new DBTableViewer(																	Main.this,																	Main.this.model,																	"职位信息");															Main.this.personnelManageEastPanel																	.add(Main.this.viewer);															Main.this.pack();															return;														}														if (Main.this.viewer																.getDBTableName()																.equals("职位信息")) {															return;														}														Main.this.personnelManageEastPanel																.remove(Main.this.viewer);														Main.this.viewer																.closeDB();														Main.this.model = new DBTableModel(																DBQuery.SELECT_POST_ALL_QUERY,																"person",																"职位信息");														Main.this.viewer = new DBTableViewer(																Main.this,																Main.this.model,																"职位信息");														Main.this.personnelManageEastPanel																.add(Main.this.viewer);														Main.this.pack();													}												});									}								}							}							{								this.personnelManageEastPanel = new JPanel();								this.personnelManagePanel.add(										this.personnelManageEastPanel,										BorderLayout.CENTER);								personnelManageEastPanel.setSize(105, 495);							}						}						{							this.systemConfigurePanel = new JPanel();							BorderLayout jPanel3Layout = new BorderLayout();							this.systemConfigurePanel.setLayout(jPanel3Layout);							this.rootPane.addTab("系统设置", null,									this.systemConfigurePanel, null);							{								systemConfigureToolBar = new JPanel();								FlowLayout systemConfigureToolBarLayout = new FlowLayout();								systemConfigureToolBar.setLayout(systemConfigureToolBarLayout);								systemConfigurePanel.add(systemConfigureToolBar, BorderLayout.WEST);								{									systemConfigueToolBar = new JToolBar();									systemConfigureToolBar.add(systemConfigueToolBar);									systemConfigueToolBar.setOrientation(SwingConstants.VERTICAL);									{										baseInfoConfigueButton = new JButton();										systemConfigueToolBar.add(baseInfoConfigueButton);										baseInfoConfigueButton.setName("baseInfoConfigueButton");									}									{										adminConfigueButton = new JButton();										systemConfigueToolBar.add(adminConfigueButton);										adminConfigueButton.setName("adminConfigueButton");										adminConfigueButton.addActionListener(new ActionListener() {											public void actionPerformed(ActionEvent evt) {												if (Main.this.viewer1 == null) {													Main.this.model1 = new DBTableModel(															DBQuery.SELECT_ADMIN_ALL_QUERY,															"person",															"admin");													Main.this.viewer1 = new DBTableViewer(															Main.this,															Main.this.model1,															"admin");													Main.this.systemConfigueContentPane															.add(Main.this.viewer1);													Main.this.pack();													return;												}												if (Main.this.viewer1														.getDBTableName()														.equals("admin")) {													return;												}												Main.this.systemConfigueContentPane														.remove(Main.this.viewer1);												Main.this.viewer														.closeDB();												Main.this.model1 = new DBTableModel(														DBQuery.SELECT_ADMIN_ALL_QUERY,														"person",														"admin");												Main.this.viewer1 = new DBTableViewer(														Main.this,														Main.this.model1,														"admin");												Main.this.systemConfigueContentPane														.add(Main.this.viewer1);												Main.this.pack();											}										});									}								}							}							{								systemConfigueContentPane = new JPanel();								systemConfigurePanel.add(systemConfigueContentPane, BorderLayout.CENTER);							}						}					}					{						this.bottonPanel = new JPanel();						FlowLayout jPanel4Layout = new FlowLayout();						jPanel4Layout.setAlignment(FlowLayout.LEFT);						this.bottonPanel.setLayout(jPanel4Layout);						this.contentPanel.add(this.bottonPanel,								BorderLayout.SOUTH);						this.bottonPanel								.setPreferredSize(new java.awt.Dimension(792,										25));						{							this.label1 = new JLabel();							this.bottonPanel.add(this.label1);							this.label1.setName("label1");							this.label1									.setPreferredSize(new java.awt.Dimension(											172, 15));						}						{							this.stateBar = new JLabel();							this.bottonPanel.add(this.stateBar);							this.stateBar.setName("stateBar");							if (this.admin == null||this.admin.equals("")) {								this.stateBar.setText("操作员:");							} else {								this.stateBar.setText("操作员:" + this.admin);							}							this.stateBar									.setPreferredSize(new java.awt.Dimension(											275, 15));						}					}				}			}			this.pack();			this.setSize(824, 600);			Application.getInstance().getContext().getResourceMap(					this.getClass()).injectComponents(this.getContentPane());		} catch (Exception e) {			e.printStackTrace();		}	}	@Action	public void newStuff() {	}	/**	 * Returns the action map used by this application. Actions defined using	 * the Action annotation are returned by this method	 */	private ApplicationActionMap getAppActionMap() {		return Application.getInstance().getContext().getActionMap(this);	}	@Action	public void exitAction() {		System.exit(0);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -