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

📄 resultemp.java

📁 完整的JAVA工程
💻 JAVA
字号:
package employee;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.awt.*;
import java.sql.*;
import javax.swing.*;
import java.util.*;
import javax.swing.border.*;
import javax.swing.table.*;
import java.awt.event.*;

public class ResultEmp extends EmpInfoSearch1{
	ImageIcon icon;
	String eColValue;
	String[] s = new String[24];
	byte[]b=new byte[1];
	public ResultEmp(String colvalue){
		this.eColValue = colvalue;
		EmpBean searchEmp = new EmpBean();
			s = searchEmp.empSearch(eColValue);
			b = searchEmp.empPic(eColValue);
			if(s == null){
				JOptionPane.showMessageDialog(null, "记录不存在!");
				eEid1.setText("");
				ePassword.setText("");
			    eName.setText("");
			    eSex.setText("");
			    eNation.setText("");
			    eRegion.setText("");
			    eEducation.setText("");
			    eSpecialty.setText("");
			    eBirthday.setText("");
			    eGstatus.setText("");
			    eMarriage.setText("");
			    eIdcard.setText("");
			    eHlocation.setText("");
			    eCityhk.setText("");
			    eCaddress.setText("");
			    ePostcode.setText("");
			    eMobilephone.setText("");
			    eHomephone.setText("");
			    eEmail.setText("");
			    eCategory.setText("");
			    eJobdate.setText("");
			    eContractdate.setText("");
			    eZzdate.setText("");
			    eXqdate.setText("");
			    eFilelocation.setText("");
				
				ePassword.setEditable(false);
				eName.setEditable(false);
		        eSex.setEditable(false);
		        eNation.setEditable(false);
		        eRegion.setEditable(false);
		        eEducation.setEditable(false);
		        eSpecialty.setEditable(false);
		        eBirthday.setEditable(false);
		        eGstatus.setEditable(false);
		        eMarriage.setEditable(false);
		        eIdcard.setEditable(false);
		        eHlocation.setEditable(false);
		        eCityhk.setEditable(false);
		        eCaddress.setEditable(false);
		        ePostcode.setEditable(false);
		        eMobilephone.setEditable(false);
		        eHomephone.setEditable(false);
		        eEmail.setEditable(false);
		        eCategory.setEditable(false);
		        eJobdate.setEditable(false);
		        eContractdate.setEditable(false);
		        eZzdate.setEditable(false);
		        eXqdate.setEditable(false);
		        eFilelocation.setEditable(false);
				return;
			}
			else{
				eEid1.setText(eColValue);
				ePassword.setText(s[0]);
			    eName.setText(s[1]);
			    eSex.setText(s[2]);
			    eNation.setText(s[3]);
			    eRegion.setText(s[4]);
			    eEducation.setText(s[5]);
			    eSpecialty.setText(s[6]);
			    eBirthday.setText(s[7]);
			    eGstatus.setText(s[8]);
			    eMarriage.setText(s[9]);
			    eIdcard.setText(s[10]);
			    eHlocation.setText(s[11]);
			    eCityhk.setText(s[12]);
			    eCaddress.setText(s[13]);
			    ePostcode.setText(s[14]);
			    eMobilephone.setText(s[15]);
			    eHomephone.setText(s[16]);
			    eEmail.setText(s[17]);
			    eCategory.setText(s[18]);
			    eJobdate.setText(s[19]);
			    eContractdate.setText(s[20]);
			    eZzdate.setText(s[21]);
			    eXqdate.setText(s[22]);
			    eFilelocation.setText(s[23]);
			    icon=new ImageIcon(b);
			    pic.setIcon(icon);
			    }
	}
	/*public static void main(String []arg){
		ResultEmp aa=new ResultEmp("3041601");
		aa.setVisible(true);
	}*/
}

⌨️ 快捷键说明

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