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

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

?? insertuserinfogui.java

?? 企業級的即時通軟件。。java語言寫的 這是服務端部份。
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
			{
				if(!(Tools.checkMsg(passwordField.getText(), 6, 10, false)))
	 			{
	 				JOptionPane.showMessageDialog(frame,"輸入的密碼不符合長度!","警告",JOptionPane.WARNING_MESSAGE,null);
	 				passwordField.setText("");
	 				return;
	 			}
			}
			if(passwordTwo.getText().length()==0)
				{
				JOptionPane.showMessageDialog(frame,"重復密碼不能為空!","警告",JOptionPane.WARNING_MESSAGE,null);
				return;
				}
			else
			{
				if(!(Tools.checkMsg(passwordTwo.getText(), 6, 10, false)))
	 			{
	 				JOptionPane.showMessageDialog(frame,"輸入的重復密碼不符合長度!","警告",JOptionPane.WARNING_MESSAGE,null);
	 				passwordTwo.setText("");
	 				return;
	 			}
			}
			if(!passwordField.getText().equals(passwordTwo.getText()))
				{
				JOptionPane.showMessageDialog(frame,"重復密碼和新密碼不同!","警告",JOptionPane.WARNING_MESSAGE,null);
				passwordField.setText("");
				passwordTwo.setText("");
				return;
				}
			if(sex.equals(""))
			{
				JOptionPane.showMessageDialog(frame,"請選擇性別!","警告",JOptionPane.WARNING_MESSAGE,null);
				return;
			}
			if(positionField.getText().length()==0)
			{
				JOptionPane.showMessageDialog(frame,"職務不能為空","警告",JOptionPane.WARNING_MESSAGE,null);
				return;
			}else
			{
				if(!(positionField.getText().length()<=5))
				{
					JOptionPane.showMessageDialog(frame,"職務超過5個字符!","警告",JOptionPane.WARNING_MESSAGE,null);
					return;
				}
			}
			if((!(Tools.checkMsg(delField.getText(), 7, 12, true)))||delField.getText().length()==0)
			{
				JOptionPane.showMessageDialog(frame,"電話輸入的不對,請確認是在7-12的數字!","警告",JOptionPane.WARNING_MESSAGE,null);
				return;
			}
			if((!(Tools.includeChar(emailField.getText(),'@')))||emailField.getText().length()==0)
			{
				JOptionPane.showMessageDialog(frame,"E_mail輸入的格式不正確!","警告",JOptionPane.WARNING_MESSAGE,null);
				return;
			}
			if(!(Tools.checkMsg(textArea.getText(), 0, 30, false)))
			{
				JOptionPane.showMessageDialog(frame,"備注超過長度!","警告",JOptionPane.WARNING_MESSAGE,null);
				return;
			}
				
			String [] userinfo=UserBO.userhead(idField.getText());
			if(userinfo[0]!="F"){
				JOptionPane.showMessageDialog(frame, "該ID號已存在", "提示", JOptionPane.WARNING_MESSAGE);
				 idField.setText("");
				 idField.requestFocus();
				 return;
			}else{
				JOptionPane.showMessageDialog(frame, "可以使用", "提示", JOptionPane.WARNING_MESSAGE);
				idField.setEditable(false);
			}
						
						String year=(String)yearComboBox.getSelectedItem();
						String month=(String)monthComboBox.getSelectedItem();
						if(month.length()==1){
							month="0"+month;
						}
						String day=(String)dayComboBox.getSelectedItem();
						if(day.length()==1){
							day="0"+day;
						}
						String dept=(String)deptComboBox.getSelectedItem();
						String birth=year+month+day;
						String name=nameField.getText();
						String position=positionField.getText();
						String remark=textArea.getText();
						
						int i=UserBO.insertInfo(idField.getText(), name, passwordField.getText(), position, dept, sex, birth, delField.getText(), emailField.getText(), headpic, remark);
						if(i==1){
							JOptionPane.showMessageDialog(frame, "添加成功", "提示", JOptionPane.INFORMATION_MESSAGE);
						}else
						{
							JOptionPane.showMessageDialog(frame, "添加失敗", "提示", JOptionPane.WARNING_MESSAGE);
						}
					}
		});
		commit.setText("提交");
		commit.setBounds(71, 421, 78, 27);
		frame.getContentPane().add(commit);

		final JButton butRe = new JButton();
		butRe.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				idField.setEditable(true);
				textArea.setText("");
				emailField.setText("");
				delField.setText("");
				passwordTwo.setText("");
				passwordField.setText("");
				nameField.setText("");
				idField.setText("");
			}
		});
		butRe.setText("重置");
		butRe.setBounds(171, 421, 77, 27);
		frame.getContentPane().add(butRe);

		head = new JButton();
		
		head.setBounds(336, 6, 49, 48);
		frame.getContentPane().add(head);

		final JButton button_2 = new JButton();
		button_2.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				panel.setVisible(true);
			}
		});
		button_2.addMouseListener(new MouseAdapter() {
			public void mouseEntered(final MouseEvent e) {
				button_2.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/0.gif"));
			}
			public void mouseExited(final MouseEvent e) {
				button_2.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/h7.gif"));
			}
		});
		button_2.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/h7.gif"));
		button_2.setBounds(384, 27, 15, 27);
		frame.getContentPane().add(button_2);

		panel = new JPanel();
		panel.setLayout(new GridLayout(0, 1));
		panel.setBounds(336, 52, 45, 318);
		panel.setVisible(false);
		frame.getContentPane().add(panel);

		final JButton button_9 = new JButton();
		button_9.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_9.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t2.png";
			}
		});
		button_9.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t2.png"));
		panel.add(button_9);

		final JButton button_5 = new JButton();
		button_5.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_5.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t1.png";
			}
		});
		button_5.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t1.png"));
		panel.add(button_5);

		final JButton button_3 = new JButton();
		button_3.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_3.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t3.png";
			}
		});
		button_3.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t3.png"));
		panel.add(button_3);

		final JButton button_4 = new JButton();
		button_4.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t7.png"));
		button_4.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_4.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t7.png";
			}
		});
		panel.add(button_4);

		final JButton button_6 = new JButton();
		button_6.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t4.png"));
		button_6.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_6.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t4.png";
			}
		});
		panel.add(button_6);

		final JButton button_7 = new JButton();
		button_7.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t5.png"));
		button_7.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_7.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t5.png";
			}
		});
		panel.add(button_7);

		final JButton button_8 = new JButton();
		button_8.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t6.png"));
		button_8.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_8.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t6.png";
			}
		});
		panel.add(button_8);

		final JButton button_10 = new JButton();
		button_10.setIcon(SwingResourceManager.getIcon(InsertUserInfoGUI.class, "/edu/sccp/chat/image/t8.png"));
		button_10.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				head.setIcon(button_10.getIcon());
				panel.setVisible(false);
				headpic="/edu/sccp/chat/image/t8.png";
			}
		});
			
		panel.add(button_10);

		final JButton button = new JButton();
		
		button.setText("檢測ID");
		button.addActionListener(new ActionListener(){
			public void actionPerformed(final ActionEvent e){
				if(idField.getText().length()==0)
		 		{
		 			JOptionPane.showMessageDialog(frame,"用戶名不能為空!","警告",JOptionPane.WARNING_MESSAGE,null);
		 			idField.setText("");
					return;
		 		}
		 		else
		 		{
		 			if(!(Tools.checkMsg(idField.getText(),8,10,true)))
		 			{
		 				JOptionPane.showMessageDialog(frame,"用戶名輸入格式不對,請確認輸入的是數字并保持在8-10之內!","警告",JOptionPane.WARNING_MESSAGE,null);
		 				idField.setText("");
		 				return;
		 			}
		 		}
				String [] userinfo=UserBO.userhead(idField.getText());
				if(userinfo[0]!="F"){
					JOptionPane.showMessageDialog(frame, "該ID號已存在", "提示", JOptionPane.WARNING_MESSAGE);
					 idField.setText("");
					 idField.requestFocus();
				}else{
					JOptionPane.showMessageDialog(frame, "可以使用", "提示", JOptionPane.WARNING_MESSAGE);
					idField.setEditable(false);
				}
			}
		});
		button.setBounds(226, 7, 75, 25);
		frame.getContentPane().add(button);

		label_11 = new JLabel();
		label_11.setForeground(new Color(255, 0, 0));
		label_11.setBounds(226, 67, 82, 15);
		frame.getContentPane().add(label_11);

		label_12 = new JLabel();
		label_12.setForeground(new Color(255, 0, 0));
		label_12.setBounds(227, 96, 81, 15);
		frame.getContentPane().add(label_12);

		label_13 = new JLabel();
		label_13.setForeground(new Color(255, 0, 0));
		label_13.setBounds(226, 245, 87, 15);
		frame.getContentPane().add(label_13);

		label_14 = new JLabel();
		label_14.setForeground(new Color(255, 0, 0));
		label_14.setBounds(226, 271, 82, 15);
		frame.getContentPane().add(label_14);
		
		Tools.setFormat(label_11);
		Tools.setFormat(label_12);
		Tools.setFormat(label_13);
		Tools.setFormat(label_14);

		final JLabel label_15 = new JLabel();
		label_15.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		label_15.setText("職務:");
		label_15.setBounds(0, 293, 64, 25);
		frame.getContentPane().add(label_15);

		positionField = new JTextField();
		positionField.setBounds(81, 293, 141, 26);
		frame.getContentPane().add(positionField);

		label_16 = new JLabel();
		label_16.setForeground(new Color(255, 0, 0));
		label_16.setBounds(226, 37, 82, 16);
		frame.getContentPane().add(label_16);

		final JButton button_1 = new JButton();
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(final ActionEvent e) {
				frame.dispose();
			}
		});
		button_1.setText("關閉");
		button_1.setBounds(263, 422, 77, 25);
		frame.getContentPane().add(button_1);
	}
	public void showGUI()
	{
		frame.setResizable(false);
		frame.setSize(410,482);
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frame.setLocationRelativeTo(null);
		frame.setVisible(true);
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		//new InsertUserInfoGUI().showGUI();
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区在线观看| 精品乱码亚洲一区二区不卡| 国产成人午夜精品5599| 奇米精品一区二区三区在线观看 | 久久久久久久国产精品影院| 91精品国产乱| 日韩区在线观看| 日韩三级中文字幕| 日韩女优毛片在线| 精品日韩一区二区三区免费视频| 欧美一区二区三区的| 日韩一区二区视频在线观看| 欧美成人一区二区三区在线观看| 欧美一区二区久久| 久久久精品日韩欧美| 国产精品拍天天在线| 一区二区三区精品| 午夜伦欧美伦电影理论片| 免费观看在线综合色| 国产激情精品久久久第一区二区| 国产成+人+日韩+欧美+亚洲| 色综合天天综合网天天狠天天| 欧美在线短视频| 欧美一级片在线看| 中文乱码免费一区二区| 亚洲综合精品久久| 麻豆一区二区99久久久久| 国产成人在线视频免费播放| 91免费版在线看| 欧美伦理影视网| 欧美激情中文不卡| 婷婷综合五月天| 国产福利精品一区二区| 欧洲色大大久久| 久久噜噜亚洲综合| 亚洲激情中文1区| 精品一区二区三区免费播放| 色狠狠色狠狠综合| 精品噜噜噜噜久久久久久久久试看| 中文字幕高清不卡| 日韩不卡一二三区| 成人理论电影网| 91精品国产一区二区三区| 国产欧美日韩在线| 日韩中文字幕区一区有砖一区| 风间由美性色一区二区三区| 91精品久久久久久久99蜜桃| 亚洲视频网在线直播| 久色婷婷小香蕉久久| 色婷婷av一区二区三区gif| 久久久国产精品麻豆| 三级欧美韩日大片在线看| 成人午夜激情在线| 精品国产乱码久久久久久久久| 曰韩精品一区二区| 成人免费视频播放| 久久久青草青青国产亚洲免观| 亚洲成国产人片在线观看| 99精品视频免费在线观看| 久久久久久亚洲综合| 男男gaygay亚洲| 3d动漫精品啪啪1区2区免费| 一区二区三区在线观看动漫| 成人性生交大片免费看视频在线| 精品久久久久久无| 蜜臀91精品一区二区三区| 在线电影国产精品| 亚洲成va人在线观看| 欧美日韩免费视频| 一区二区三区在线视频免费 | 国产精品国产三级国产aⅴ无密码| 久久精品99国产精品| 欧美一区二区视频在线观看2020| 亚洲第一二三四区| 欧美日韩国产另类不卡| 亚洲国产成人av好男人在线观看| 在线观看91精品国产入口| 一区二区高清视频在线观看| 91原创在线视频| 亚洲精品水蜜桃| 欧美色图在线观看| 亚洲国产精品一区二区尤物区| 色综合久久久久| 亚洲一区二区精品久久av| 欧美性猛交xxxxxxxx| 亚洲国产精品一区二区久久| 欧美二区乱c少妇| 激情综合一区二区三区| 久久精品欧美日韩精品| 成人少妇影院yyyy| 亚洲黄色免费电影| 日韩美女视频一区二区在线观看| 美国一区二区三区在线播放| 26uuu精品一区二区| 99久久精品免费看| 亚洲 欧美综合在线网络| 欧美一区二区三区性视频| 韩国精品主播一区二区在线观看 | 在线观看91av| 久久不见久久见中文字幕免费| 日韩精品一区二区三区四区视频 | 国产精品全国免费观看高清| av激情亚洲男人天堂| 亚洲精品视频在线观看免费| 91精品国产综合久久福利| 国产精品18久久久久久久网站| 欧美国产一区视频在线观看| 在线看不卡av| 国产精品18久久久久久久久久久久| 亚洲天堂a在线| 欧美日韩国产综合草草| 国产东北露脸精品视频| 亚洲高清视频的网址| 2023国产精品自拍| 色综合久久综合| 麻豆国产精品官网| 亚洲欧美日本韩国| 欧美成人r级一区二区三区| av在线一区二区三区| 久久国产三级精品| 亚洲男人的天堂在线观看| 久久网这里都是精品| 欧美日韩亚洲丝袜制服| 国产v日产∨综合v精品视频| 日韩电影在线观看一区| 亚洲欧洲另类国产综合| 日韩一区二区视频在线观看| 日本精品视频一区二区| 国产精品1区2区3区在线观看| 午夜电影网一区| 自拍偷拍欧美激情| 久久久久久一级片| 91精品国产入口在线| 欧美中文字幕亚洲一区二区va在线| 国产乱子伦视频一区二区三区| 午夜av电影一区| 亚洲一区在线视频观看| 中文字幕日韩精品一区| 久久免费的精品国产v∧| 日韩一区二区三区在线| 欧美亚洲综合在线| 欧洲亚洲国产日韩| 不卡一区二区中文字幕| 国产精品123| 国产乱码字幕精品高清av| 美女国产一区二区| 九一久久久久久| 久久精品国产亚洲一区二区三区 | 国产成人在线免费观看| 青椒成人免费视频| 麻豆一区二区三区| 免费三级欧美电影| 日本成人在线网站| 久久精品国产亚洲a| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩黄色在线观看| 美女在线视频一区| 久久99精品国产麻豆婷婷 | 亚洲蜜桃精久久久久久久| 国产精品大尺度| 亚洲另类在线制服丝袜| 亚洲一区二区在线视频| 天天爽夜夜爽夜夜爽精品视频| 日韩电影在线免费看| 狠狠v欧美v日韩v亚洲ⅴ| 国产成人av电影在线| 99国内精品久久| 欧美性xxxxx极品少妇| 欧美久久一二区| 精品国产百合女同互慰| 国产亚洲成年网址在线观看| 亚洲色图视频网| 亚洲国产日产av| 精品一区二区三区在线播放| 国产69精品久久777的优势| 成人久久久精品乱码一区二区三区| 天堂成人免费av电影一区| 亚洲小说欧美激情另类| 国产欧美一区视频| 亚洲日本中文字幕区| 一区二区三区在线播放| 亚洲国产一区二区三区青草影视| 九一九一国产精品| 国产成人综合亚洲91猫咪| 成人免费高清视频在线观看| 欧美性色欧美a在线播放| 8v天堂国产在线一区二区| 欧美一二三四区在线| 国产三级精品在线| 亚洲人成在线播放网站岛国 | 亚洲欧美日韩国产另类专区| 亚洲自拍偷拍综合| 日本欧美在线看| 国产在线视频一区二区| 成人免费观看视频| 成人av在线网| 精品国产免费久久| 国产精品国产成人国产三级| 亚洲男人电影天堂| 国产传媒一区在线|