亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? indexframe.java

?? 根據企業對人事管理的要求
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package com.mwq.frame;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTree;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.border.TitledBorder;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;

import com.mwq.PersonnelManage;
import com.mwq.frame.personnel.BringUpSelectedPanel;
import com.mwq.frame.personnel.RecordSelectedPanel;
import com.mwq.frame.personnel.RewardsAndPunishmentPanel;
import com.mwq.frame.personnel.TimecardPanel;
import com.mwq.frame.system.DataPanel;
import com.mwq.frame.system.FrameworkPanel;
import com.mwq.frame.treatement.CriterionSetPanel;
import com.mwq.frame.treatement.PersonnelSetPanel;
import com.mwq.frame.treatement.ReportFormsPanel;
import com.mwq.frame.user.AddUserPanel;
import com.mwq.frame.user.UpdatePasswordDialog;
import com.mwq.hibernate.Dao;
import com.mwq.hibernate.mapping.TbRecord;

public class IndexFrame extends JFrame {

	private JTree tree;

	final JPanel rightPanel = new JPanel();

	private TbRecord record;

	private final Dao dao = Dao.getInstance();

	/**
	 * Launch the application
	 * 
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			IndexFrame frame = new IndexFrame(null);
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the frame
	 */
	public IndexFrame(TbRecord tbRecord) {
		super();

		this.record = tbRecord;

		setResizable(false);
		setExtendedState(IndexFrame.MAXIMIZED_BOTH);// 設置窗口以最大化打開
		setTitle(" T 科技");
		setBounds(0, 0, 950, 700);
		setBounds(0, 0, 1024, 768);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JPanel topPanel = new JPanel();
		topPanel.setLayout(new BorderLayout());
		topPanel.setPreferredSize(new Dimension(0, 100));
		getContentPane().add(topPanel, BorderLayout.NORTH);

		final JLabel label = new JLabel();
		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setHorizontalTextPosition(SwingConstants.CENTER);
		URL resource = IndexFrame.this.getClass().getResource("/img/logo.JPG");
		ImageIcon icon = new ImageIcon(resource);
		label.setIcon(icon);
		label.setBorder(new TitledBorder(null, "",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, null, null));
		label.setPreferredSize(new Dimension(160, 0));
		topPanel.add(label, BorderLayout.WEST);

		final JPanel buttonPanel = new JPanel();// 創建工具欄面板
		final GridLayout gridLayout = new GridLayout(1, 0);// 創建一個水平箱式布局管理器對象
		gridLayout.setVgap(6);// 箱的垂直間隔為6像素
		gridLayout.setHgap(6);// 箱的水平間隔為6像素
		buttonPanel.setLayout(gridLayout);// 設置工具欄面板采用的布局管理器為箱式布局
		buttonPanel.setBackground(new Color(90, 130, 189));// 設置工具欄面板的背景色
		buttonPanel.setBorder(new TitledBorder(null, "",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, null, null));// 設置工具欄面板采用的邊框樣式
		topPanel.add(buttonPanel, BorderLayout.CENTER);// 將工具欄面板添加到上級面板中

		final JButton recordShortcutKeyButton = new JButton();// 創建進入“檔案管理”的快捷按鈕
		resource = this.getClass().getResource("/img/record.JPG");
		icon = new ImageIcon(resource);
		recordShortcutKeyButton.setIcon(icon);
		// 為按鈕添加事件監聽器,用來捕獲按鈕被點擊的事件
		recordShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();// 移除內容面板中的所有內容
				rightPanel.add(new RecordSelectedPanel(rightPanel),
						BorderLayout.CENTER);// 將檔案管理面版添加到內容面板中
				SwingUtilities.updateComponentTreeUI(rightPanel);// 刷新內容面板中的內容
			}
		});
		buttonPanel.add(recordShortcutKeyButton);

		final JButton timecardShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/timecard.JPG");
		icon = new ImageIcon(resource);
		timecardShortcutKeyButton.setIcon(icon);
		timecardShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				rightPanel.add(new TimecardPanel(), BorderLayout.CENTER);
				SwingUtilities.updateComponentTreeUI(rightPanel);
			}
		});
		buttonPanel.add(timecardShortcutKeyButton);

		final JButton rewardsAndPunishmentShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/rewAndPun.JPG");
		icon = new ImageIcon(resource);
		rewardsAndPunishmentShortcutKeyButton.setIcon(icon);
		rewardsAndPunishmentShortcutKeyButton
				.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						rightPanel.removeAll();
						rightPanel.add(new RewardsAndPunishmentPanel(),
								BorderLayout.CENTER);
						SwingUtilities.updateComponentTreeUI(rightPanel);
					}
				});
		buttonPanel.add(rewardsAndPunishmentShortcutKeyButton);

		final JButton reportFormsShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/stat.JPG");
		icon = new ImageIcon(resource);
		reportFormsShortcutKeyButton.setIcon(icon);
		reportFormsShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				rightPanel.add(new ReportFormsPanel(), BorderLayout.CENTER);
				SwingUtilities.updateComponentTreeUI(rightPanel);
			}
		});
		buttonPanel.add(reportFormsShortcutKeyButton);

		final JButton basicDataShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/data.JPG");
		icon = new ImageIcon(resource);
		basicDataShortcutKeyButton.setIcon(icon);
		basicDataShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				rightPanel.add(new DataPanel(), BorderLayout.CENTER);
				SwingUtilities.updateComponentTreeUI(rightPanel);
			}
		});
		buttonPanel.add(basicDataShortcutKeyButton);

		final JButton updatePasswordShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/password.JPG");
		icon = new ImageIcon(resource);
		updatePasswordShortcutKeyButton.setIcon(icon);
		if (record == null)// 當record為null時,說明是通過默認用戶登錄的,此時不能修改密碼
			updatePasswordShortcutKeyButton.setEnabled(false);// 在這種情況下設置按鈕不可用
		updatePasswordShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				SwingUtilities.updateComponentTreeUI(rightPanel);
				UpdatePasswordDialog dialog = new UpdatePasswordDialog();// 創建用來修改密碼的對話框
				dialog.setRecord(record);// 將當前登錄管理員的檔案對象傳入對話框
				dialog.setVisible(true);// 設置對話框為可見的,即顯示對話框
			}
		});
		buttonPanel.add(updatePasswordShortcutKeyButton);

		final JButton counterShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/calculator.JPG");
		icon = new ImageIcon(resource);
		counterShortcutKeyButton.setIcon(icon);
		counterShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Desktop desktop = Desktop.getDesktop();// 獲得當前系統對象
				File file = new File("C:/WINDOWS/system32/calc.exe");// 創建一個系統計算器對象
				try {
					desktop.open(file);// 打開系統計算器
				} catch (Exception e1) {// 當打開失敗時,彈出提示信息
					JOptionPane.showMessageDialog(null, "很抱歉,未能打開系統自帶的計算器!",
							"友情提示", JOptionPane.INFORMATION_MESSAGE);
					return;
				}
			}
		});
		buttonPanel.add(counterShortcutKeyButton);

		final JButton excelShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/excel.JPG");
		icon = new ImageIcon(resource);
		excelShortcutKeyButton.setIcon(icon);
		excelShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Desktop desktop = Desktop.getDesktop();
				File file = new File("res/other/new.xls");
				try {
					desktop.open(file);
				} catch (Exception e1) {
					JOptionPane.showMessageDialog(null, "很抱歉,您的機器還沒有安裝Office!",
							"友情提示", JOptionPane.INFORMATION_MESSAGE);
					return;
				}
			}
		});
		buttonPanel.add(excelShortcutKeyButton);

		final JButton exitShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/exit.JPG");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲第四色夜色| 在线观看日韩一区| 在线观看91精品国产入口| 欧美二区三区91| 国产精品久久久久久久浪潮网站 | 99re这里只有精品首页| 欧美片网站yy| 国产精品污网站| 久久99这里只有精品| 91.com在线观看| 国产精品美女久久久久久久网站| 日韩av中文字幕一区二区三区| 97久久精品人人做人人爽50路| 精品动漫一区二区三区在线观看| 亚洲永久免费av| 91年精品国产| 国产精品黄色在线观看| 国产精一品亚洲二区在线视频| 91麻豆精品91久久久久久清纯| 自拍偷拍国产亚洲| 91看片淫黄大片一级| 国产精品女同一区二区三区| 国产精品自拍av| 久久理论电影网| 国产精品正在播放| 国产亚洲欧美日韩日本| 国产揄拍国内精品对白| 精品国产乱码久久久久久久| 久久99久国产精品黄毛片色诱| 欧美日韩成人综合在线一区二区| 亚洲观看高清完整版在线观看| 一本一本久久a久久精品综合麻豆| 国产日本一区二区| 国产91色综合久久免费分享| 国产精品免费久久| 99久久精品国产一区| 日韩久久一区二区| 日本韩国视频一区二区| 一区二区激情小说| 欧美日韩一级二级三级| 欧美aaa在线| 2022国产精品视频| 成人久久视频在线观看| 一区二区中文字幕在线| 91国产视频在线观看| 亚洲第一会所有码转帖| 欧美一区二区三区视频免费 | 91精品欧美久久久久久动漫| 日韩精品乱码免费| 日韩欧美在线综合网| 寂寞少妇一区二区三区| 国产精品五月天| 欧美视频一区二区三区四区| 麻豆一区二区三区| 中文字幕成人网| 在线观看视频一区二区欧美日韩| 亚洲第一av色| 国产欧美精品在线观看| 99re8在线精品视频免费播放| 一区二区三区不卡在线观看| 制服丝袜在线91| 国产盗摄视频一区二区三区| 亚洲蜜桃精久久久久久久| 制服视频三区第一页精品| 狠狠色丁香婷综合久久| 亚洲欧美一区二区视频| 欧美老女人在线| 成人av手机在线观看| 午夜精品福利一区二区三区蜜桃| 国产欧美精品一区| 欧美日韩综合在线免费观看| 国产成人综合在线播放| 五月天国产精品| 一区免费观看视频| 精品国产乱码久久久久久老虎| 色综合久久中文综合久久牛| 久久精品二区亚洲w码| 亚洲视频1区2区| 精品剧情v国产在线观看在线| 色综合天天综合网天天看片| 久久亚洲欧美国产精品乐播| 色av一区二区| 国产麻豆午夜三级精品| 亚洲国产精品一区二区久久恐怖片 | 不卡视频在线观看| 秋霞成人午夜伦在线观看| 国产精品婷婷午夜在线观看| 91精品国产黑色紧身裤美女| 不卡影院免费观看| 国产精品18久久久久久vr| 亚洲高清久久久| 亚洲视频在线一区观看| 国产调教视频一区| 欧美成人性战久久| 91精品国产欧美一区二区成人| 91美女片黄在线观看91美女| 国产精品综合网| 精品一区二区三区日韩| 日本不卡高清视频| 图片区小说区国产精品视频| 日韩美女视频一区| 国产欧美一区二区三区网站| www久久久久| 欧美成人高清电影在线| 91精品国产一区二区三区蜜臀 | 香蕉成人啪国产精品视频综合网| 国产精品久久久久久久久免费桃花 | 欧美一二三区在线观看| 欧美男同性恋视频网站| 91电影在线观看| 色综合天天综合网国产成人综合天 | 777亚洲妇女| 欧美日韩情趣电影| 欧美性色综合网| 欧美日韩一区二区三区高清| 欧美视频中文一区二区三区在线观看 | 日韩码欧中文字| 国产精品乱码妇女bbbb| 国产精品美女久久福利网站| 国产精品色哟哟网站| 国产精品人成在线观看免费| 中文字幕久久午夜不卡| 国产精品私房写真福利视频| 国产精品久久福利| ●精品国产综合乱码久久久久| |精品福利一区二区三区| 又紧又大又爽精品一区二区| 亚洲一区二区三区四区中文字幕| 亚洲成人午夜电影| 天堂一区二区在线| 久久国产精品无码网站| 国产精品99久久久久| 99久久综合国产精品| 91福利视频网站| 日韩一区二区三区av| 国产天堂亚洲国产碰碰| 亚洲视频一二区| 亚洲成人在线免费| 久久精品国产精品青草| 国产成人在线视频网站| 91香蕉国产在线观看软件| 欧美精品视频www在线观看| 精品国产一二三| 中文字幕制服丝袜成人av| 午夜国产精品影院在线观看| 国产在线一区二区| 91国偷自产一区二区三区成为亚洲经典 | 精品国产亚洲在线| 亚洲天堂精品视频| 亚洲成av人影院| 国产一区二区91| 91国产免费看| 国产婷婷色一区二区三区四区| 亚洲美女在线一区| 国产自产视频一区二区三区| 在线国产电影不卡| 欧美刺激午夜性久久久久久久 | 久久九九99视频| 亚洲激情av在线| 国产一区二区美女诱惑| 一本大道久久a久久综合婷婷| 欧美一级高清大全免费观看| 亚洲国产精品国自产拍av| 无码av中文一区二区三区桃花岛| 国产乱码精品一区二区三| 欧美午夜不卡在线观看免费| 日本一区二区免费在线观看视频| 午夜免费久久看| 91视频免费播放| 国产日韩欧美激情| 强制捆绑调教一区二区| 欧洲一区二区三区在线| 国产精品国模大尺度视频| 免费观看一级特黄欧美大片| 色嗨嗨av一区二区三区| 国产精品免费久久| 极品瑜伽女神91| 日韩欧美精品在线视频| 一区二区三区高清| 99久久伊人精品| 欧美激情一区二区三区全黄| 捆绑调教一区二区三区| 欧美日韩第一区日日骚| 亚洲精品国产第一综合99久久| 高清视频一区二区| 国产日韩欧美综合在线| 蜜臀av性久久久久蜜臀aⅴ| 欧美色图12p| 一区二区免费看| 欧美影视一区二区三区| 一区二区三区精品视频在线| 93久久精品日日躁夜夜躁欧美| 中文字幕欧美国产| 成人综合在线观看| 国产精品嫩草影院av蜜臀| 不卡一二三区首页| 国产精品超碰97尤物18| av高清久久久| 自拍偷拍欧美激情| 在线观看不卡视频|