package module;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.*;
import java.util.Calendar;
import java.util.Vector;
import javax.print.DocPrintJob;
import javax.swing.*;
import page.index;
import sql.MyConnection;
import sql.fcheck_sql;
import sql.fregister_sql;
public class fselect_detail implements ActionListener{
int quan = 0;
fregister_sql sql =new fregister_sql();
ResultSet rs =null;
public JPanel frJPanel = null;
JButton sumb = null;
JButton change = null;
JButton dele=null;
JButton retu = null;
JLabel dj0 = null;
JLabel dj1 = null;
JLabel dj2 = null;
JLabel dj3 = null;
JLabel dj4 = null;
JLabel dj5 = null;
JLabel dj6 = null;
JLabel dj7 = null;
JLabel dj8 = null;
JLabel dj9 = null;
JLabel dj10 = null;
JLabel dj11 = null;
JLabel dj12 = null;
JLabel dj13 = null;
JLabel dj14 = null;
JLabel dj15 = null;
JLabel dj16 = null;
JLabel dj17 = null;
JLabel dj18 = null;
JLabel dj19 = null;
JLabel dj20 = null;
JLabel dj21 = null;
JLabel dj22 = null;
JLabel dj23 = null;
JLabel dj24 = null;
JLabel dj25 = null;
JLabel dj26 = null;
JLabel dj27 = null;
JLabel dj28 = null;
JLabel dj29 = null;
JLabel dj30 = null;
JLabel dj31 = null;
JLabel dj32 = null;
JLabel dj33 = null;
JLabel dj34 = null;
JLabel dj35 = null;
//姓名行
JTextField name = new JTextField();
JComboBox sex = new JComboBox();
JTextField email = new JTextField();
//4
JTextField phone = new JTextField();
JTextField qq = new JTextField();
JTextField telphone = new JTextField();
//5
JTextField adress = new JTextField();
JTextField youbian = new JTextField();
//6
JComboBox guoji = new JComboBox();
// String []guoji_in = null;
JTextField chushengdi = new JTextField();
JTextField shengri = new JTextField();
JComboBox minzu = new JComboBox();
// String []minzu_in = null;
//7
JComboBox zongjiao = new JComboBox();
JComboBox zhengzhimianmao = new JComboBox();
JTextField id_num = new JTextField();
JTextField shehui_num = new JTextField();
//8
JTextField old = new JTextField();
JComboBox xueli = new JComboBox();
JComboBox jiaoyunian = new JComboBox();
JComboBox zhuanye = new JComboBox();
//9
JComboBox xinchou = new JComboBox();
JTextField kaihuhang = new JTextField();
JTextField zhanghao = new JTextField();
JTextField dengjiren = new JTextField();
//10
JTextField jiandangshijian = new JTextField(); //建档时间
JComboBox techang = new JComboBox();
JComboBox hobby = new JComboBox();
//11
JTextArea gerenlvli = new JTextArea();
JTextArea jiating = new JTextArea();
JTextArea beizhu = new JTextArea();
JButton img =null;
JLabel img_in = new JLabel();
String []sex_in = {"男","女"};
String []guoji_in = {"中国","美国","英国"};
String []minzu_in = {"汉族","回族"};
String []zongjiao_in = {"无","佛教"};
String []zhengzhimianmao_in = {"群众","共产党员"};
String []xueli_in = {"本科","硕士"};
String []jiaoyunian_in = {"12","16","15"};
String []zhuanye_in = {"计算机","软件工程"};
String []xinchou_in = {"1","2"};
String []techang_in = {"数据库","软件开发","软件测试"};
String []hobby_in = {"篮球","足球"};
//机构
JComboBox<String> org1 = new JComboBox();
JComboBox<String> org2 = new JComboBox();
JComboBox<String> org3 = new JComboBox();
//职位
JComboBox<String> classify = new JComboBox();;
JComboBox<String> jobname = new JComboBox();
JComboBox<String> zhicheng = new JComboBox();;
Vector<String> org1_in = null;
Vector<String>org2_in = null;
Vector<String>org3_in = null;
Vector<String> classify_in =null;
Vector<String>jobname_in = null;
Vector<String>zhicheng_in = null;
String iString[] = new String[7];
String No=null;
public fselect_detail(ResultSet resultSet,String no,int qua,String o1,String o2,String o3,String fl,String jn
,String timeb,String timee) {
iString[0]=o1;
iString[1]=o2;
iString[2]=o3;
iString[3]=fl;
iString[4]=jn;
iString[5]=timeb;
iString[6]=timee;
quan = qua;
rs=resultSet;
No=no;
JLabel dangan = new JLabel("档案编号:"+No);
dj0= new JLabel("I级机构");
dj0.setBorder(BorderFactory.createLineBorder(null));
dj0.setOpaque(true);
dj0.setBackground(Color.CYAN);
dj0.setBounds(0, 0, 80, 20);
dj1 = new JLabel("II级机构");
dj1.setBorder(BorderFactory.createLineBorder(null));
dj1.setOpaque(true);
dj1.setBackground(Color.CYAN);
dj1.setBounds(200, 0, 80, 20);
dj2 = new JLabel("III级机构");
dj2.setBorder(BorderFactory.createLineBorder(null));
dj2.setOpaque(true);
dj2.setBackground(Color.CYAN);
dj2.setBounds(400, 0, 80, 20);
//职位
dj3 = new JLabel("职位分类");
dj3.setBorder(BorderFactory.createLineBorder(null));
dj3.setOpaque(true);
dj3.setBackground(Color.CYAN);
dj4 = new JLabel("职位名称");
dj4.setBorder(BorderFactory.createLineBorder(null));
dj4.setOpaque(true);
dj4.setBackground(Color.CYAN);
dj5 = new JLabel("职称");
dj5.setBorder(BorderFactory.createLineBorder(null));
dj5.setOpaque(true);
dj5.setBackground(Color.CYAN);
dj3.setBounds(0, 20, 80, 20);
dj4.setBounds(200, 20, 80, 20);
dj5.setBounds(400, 20, 80, 20);
dj6 = new JLabel("姓名");
dj6.setBorder(BorderFactory.createLineBorder(null));
dj6.setOpaque(true);
dj6.setBackground(Color.CYAN);
dj7 = new JLabel("性别");
dj7.setBorder(BorderFactory.createLineBorder(null));
dj7.setOpaque(true);
dj7.setBackground(Color.CYAN);
dj8 = new JLabel("EMAIL");
dj8.setBorder(BorderFactory.createLineBorder(null));
dj8.setOpaque(true);
dj8.setBackground(Color.CYAN);
dj6.setBounds(0, 40, 80, 20);
dj7.setBounds(200, 40, 80, 20);
dj8.setBounds(400, 40, 80, 20);
//姓名行
//电话
dj9 = new JLabel("电话");
dj9.setBorder(BorderFactory.createLineBorder(null));
dj9.setOpaque(true);
dj9.setBackground(Color.CYAN);
dj10 = new JLabel("QQ");
dj10.setBorder(BorderFactory.createLineBorder(null));
dj10.setOpaque(true);
dj10.setBackground(Color.CYAN);
dj11 = new JLabel("手机");
dj11.setBorder(BorderFactory.createLineBorder(null));
dj11.setOpaque(true);
dj11.setBackground(Color.CYAN);
dj9.setBounds(0, 60, 80, 20);
dj10.setBounds(200, 60, 80, 20);
dj11.setBounds(400, 60, 80, 20);
//4
dj12 = new JLabel("住址");
dj12.setBorder(BorderFactory.createLineBorder(null));
dj12.setOpaque(true);
dj12.setBackground(Color.CYAN);
dj13 = new JLabel("邮编");
dj13.setBorder(BorderFactory.createLineBorder(null));
dj13.setOpaque(true);
dj13.setBackground(Color.CYAN);
dj12.setBounds(0, 80, 80, 20);
dj13.setBounds(400, 80, 80, 20);
//插入图片
img = new JButton("图片");
img.setFont(new Font( "微软雅黑",Font.PLAIN,10));
img.setBounds(30, 35,60,30);
img_in = new JLabel();
img_in.add(img);
img_in.setBorder(BorderFactory.createLineBorder(null));
img_in.setBounds(660, 0,120,100);
//第6行
dj14 = new JLabel("国籍");
dj14.setBorder(BorderFactory.createLineBorder(null));
dj14.setOpaque(true);
dj14.setBackground(Color.CYAN);
dj15 = new JLabel("出生地");
dj15.setBorder(BorderFactory.createLineBorder(null));
dj15.setOpaque(true);
dj15.setBackground(Color.CYAN);
dj16 = new JLabel("生日");
dj16.setBorder(BorderFactory.createLineBorder(null));
dj16.setOpaque(true);
dj16.setBackground(Color.CYAN);
dj17 = new JLabel("民族");
dj17.setBorder(BorderFact