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

📄 memberdatadialog.java

📁 一个专家资料的管理系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
		
		Group baseDataGroup = new Group(topComp,SWT.NONE);
		baseDataGroup.setLayout(new GridLayout(8,false));
		baseDataGroup.setText("基本信息");
		baseDataGroup.setLayoutData(new RowData(600,185));
        //姓名
		new Label(baseDataGroup,SWT.NONE).setText("姓    名");
		nameText = new Text(baseDataGroup,SWT.BORDER);
		//性别
		new Label(baseDataGroup,SWT.NONE).setText("性别");
		sexCombo = new Combo(baseDataGroup,SWT.BORDER);
		sexCombo.add("男 ");
		sexCombo.add("女 ");
		sexCombo.select(0);
		//籍贯
		new Label(baseDataGroup,SWT.NONE).setText("籍    贯");
		provinceText = new Text(baseDataGroup,SWT.BORDER);
		provinceText.setLayoutData(createGridData(150));
		//出生年月
		new Label(baseDataGroup,SWT.NONE).setText("出生年月");
		birthdayText = new Text(baseDataGroup,SWT.BORDER);
		//民族
		new Label(baseDataGroup,SWT.NONE).setText("民    族");
		peopleText = new Text(baseDataGroup,SWT.BORDER);
		//党派
		new Label(baseDataGroup,SWT.NONE).setText("党派");
		partyText = new Text(baseDataGroup,SWT.BORDER);
		//职称
		new Label(baseDataGroup,SWT.NONE).setText("职    称");
		professionalTitleText = new Text(baseDataGroup,SWT.BORDER);
		professionalTitleText.setLayoutData(createGridData(100));
		//委员会
		new Label(baseDataGroup,SWT.NONE).setText("委员会");
		committeeText = new Text(baseDataGroup,SWT.BORDER);
		//学位
		new Label(baseDataGroup,SWT.NONE).setText("学    位");
		degreeText = new Text(baseDataGroup,SWT.BORDER);
		//学历
		new Label(baseDataGroup,SWT.NONE).setText("学历");
		educationText = new Text(baseDataGroup,SWT.BORDER);
		//职务
		new Label(baseDataGroup,SWT.NONE).setText("职    务");
		dutyText = new Text(baseDataGroup,SWT.BORDER);
		dutyText.setLayoutData(createGridData(150));
		//设置两个占位的标签
		createOccupation(baseDataGroup,2);
		//通信地址
		new Label(baseDataGroup,SWT.NONE).setText("通信地址");
		adressText = new Text(baseDataGroup,SWT.BORDER);
		adressText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,5));
		//邮编
		new Label(baseDataGroup,SWT.NONE).setText("邮编");
		zipText = new Text(baseDataGroup,SWT.BORDER);
		//工作单位
		new Label(baseDataGroup,SWT.NONE).setText("工作单位");
		workPlaceText = new Text(baseDataGroup,SWT.BORDER);
		workPlaceText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,5));
		//两个占位标签
		createOccupation(baseDataGroup,2);
		//办公电话
		new Label(baseDataGroup,SWT.NONE).setText("办公电话");
		workPhoneText = new Text(baseDataGroup,SWT.BORDER);
		workPhoneText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,3));
		//住宅电话
		new Label(baseDataGroup,SWT.NONE).setText("住宅电话");
		homePhoneText = new Text(baseDataGroup,SWT.BORDER);
		homePhoneText.setLayoutData(createGridData(150));
		//两个占位标签
		createOccupation(baseDataGroup,2);
		//电子邮件
		new Label(baseDataGroup,SWT.NONE).setText("电子邮件");
		emailText = new Text(baseDataGroup,SWT.BORDER);
		emailText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,3));
		//手机
		new Label(baseDataGroup,SWT.NONE).setText("手    机");
		mobilePhoneText = new Text(baseDataGroup,SWT.BORDER);
		mobilePhoneText.setLayoutData(createGridData(150));
		//两个占位标签
		createOccupation(baseDataGroup,2);
		//所学专业
		new Label(baseDataGroup,SWT.NONE).setText("所学专业");
		learnSpecialtyText = new Text(baseDataGroup,SWT.BORDER);
		learnSpecialtyText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,3));
		//现从事专业
		new Label(baseDataGroup,SWT.NONE).setText("从事专业");
		workSpecialtyText = new Text(baseDataGroup,SWT.BORDER);
		workSpecialtyText.setLayoutData(createGridData(150));
		//从事专业时间
		new Label(baseDataGroup,SWT.NONE).setText("从事时间");
		workTimeText = new Text(baseDataGroup,SWT.BORDER);
		//毕业学校
		new Label(baseDataGroup,SWT.NONE).setText("毕业院校");
		schoolText = new Text(baseDataGroup,SWT.BORDER);
		schoolText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,3));
		//参加工作时间
		new Label(baseDataGroup,SWT.NONE).setText("工作时间");
		workStartText = new Text(baseDataGroup,SWT.BORDER);
		workStartText.setLayoutData(createGridData(150));
        //两个占位标签
		createOccupation(baseDataGroup,2);
		
		//第二个分组
		Group otherDataGroup = new Group(topComp,SWT.NONE);
		otherDataGroup.setText("其它基本信息");
		otherDataGroup.setLayout(new GridLayout(8,false));
		otherDataGroup.setLayoutData(new RowData(600,140));
		//是否中科院士
		new Label(otherDataGroup,SWT.NONE).setText("是否中科院院士");
		isZkyAcademicianCombo = new Combo(otherDataGroup,SWT.NONE);
		isZkyAcademicianCombo.add("是");
		isZkyAcademicianCombo.add("否");
		isZkyAcademicianCombo.select(0);
		//是否工程院院士
		new Label(otherDataGroup,SWT.NONE).setText("是否工程院院士");
		isGcyAcademicianCombo = new Combo(otherDataGroup,SWT.NONE);
		isGcyAcademicianCombo.add("是");
		isGcyAcademicianCombo.add("否");
		isGcyAcademicianCombo.select(0);
		//是否享受政府特殊津贴
		new Label(otherDataGroup,SWT.NONE).setText("是否享受政府特殊津贴");
		isAllowanceCombo = new Combo(otherDataGroup,SWT.NONE);
		isAllowanceCombo.add("是");
		isAllowanceCombo.add("否");
		isAllowanceCombo.select(0);
		//是否国家(省)级突出贡献专家
		new Label(otherDataGroup,SWT.NONE).setText("是否突出贡献专家");
		isContributeCombo = new Combo(otherDataGroup,SWT.NONE);
		isContributeCombo.add("是");
		isContributeCombo.add("否");
		isContributeCombo.select(0);
		//获得专业资格证书
		new Label(otherDataGroup,SWT.NONE).setText("获得专业资格证书");
		certificateText = new Text(otherDataGroup,SWT.BORDER);
		certificateText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,5));
        //两个占位标签
		createOccupation(otherDataGroup,2);
		//担任学会组织的职务
		new Label(otherDataGroup,SWT.NONE).setText("担任社团组织、\n学会组织的职务");
		academyDutyText = new Text(otherDataGroup,SWT.BORDER);
		academyDutyText.setLayoutData(createGridData(GridData.HORIZONTAL_ALIGN_FILL,5));
		return topComp;
	}
	/**
	 * "熟悉专业及其代表作"的面板生成方法
	 */
	private Composite createMagnumOpusComp(Composite rightComp){
		Composite topComp = new Composite(rightComp,SWT.NONE);
        topComp.setLayout(new RowLayout());
        Group magnumOpusGroup = new Group(topComp,SWT.NONE);
        magnumOpusGroup.setText("熟悉专业及其代表作");
        magnumOpusGroup.setLayoutData(new RowData(600,350));
        magnumOpusText = new Text(magnumOpusGroup,SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL|SWT.MULTI);
        magnumOpusText.setBounds(10, 50, 570, 300);
        return topComp; 
	}
	/**
	 * "近五年从事的主要研究项目"面板的生成方法
	 */
	private Composite createProjectsComp(Composite rightComp){
		Composite topComp = new Composite(rightComp,SWT.NONE);
		topComp.setLayout(new RowLayout());
		Group projectsGroup = new Group(topComp,SWT.NONE);
		projectsGroup.setText("近五年从事的主要研究项目");
		projectsGroup.setLayoutData(new RowData(600,350));
		projectsText = new Text(projectsGroup,SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL|SWT.MULTI);
		projectsText.setBounds(10, 50, 570, 300);
		return topComp;
	}
	/**
	 * "主要获奖情况"面板的生成方法
	 */
	private Composite createEncouragementComp(Composite rightComp){
		Composite topComp = new Composite(rightComp,SWT.NONE);
		topComp.setLayout(new RowLayout());
		Group encouragementGroup = new Group(topComp,SWT.NONE);
		encouragementGroup.setText("主要获奖情况");
		encouragementGroup.setLayoutData(new RowData(600,350));
		encouragementText = new Text(encouragementGroup,SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL|SWT.MULTI);
		encouragementText.setBounds(10, 50, 570, 300);
		return topComp;
	}
	/**
	 * "评定"面板的生成方法
	 */
	private Composite createCommentComp(Composite rightComp){
		Composite topComp = new Composite(rightComp,SWT.NONE);
		topComp.setLayout(new GridLayout(2,false));
		Group beCompetentForGroup = new Group(topComp,SWT.NONE);
		beCompetentForGroup.setText("能胜任哪些方面的工作");
		beCompetentForGroup.setLayoutData(createGridData(GridData.FILL_BOTH,2));
		beCompetentForText = new Text(beCompetentForGroup,SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL|SWT.MULTI);
		beCompetentForText.setBounds(10, 20, 570, 150);
		Group workAttitudeGroup = new Group(topComp,SWT.NONE);
		workAttitudeGroup.setText("所在单位意见");
		workAttitudeGroup.setLayoutData(createGridData(GridData.FILL_BOTH,1));
		workAttitudeText = new Text(workAttitudeGroup,SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL|SWT.MULTI);
		workAttitudeText.setBounds(10, 20, 270, 150);
		Group gljAttitudeGroup = new Group(topComp,SWT.NONE);
		gljAttitudeGroup.setText("广东省通信管理局意见");
		gljAttitudeGroup.setLayoutData(createGridData(GridData.FILL_BOTH,1));
		gljAttitudeText = new Text(gljAttitudeGroup,SWT.BORDER|SWT.V_SCROLL|SWT.H_SCROLL|SWT.MULTI);
		gljAttitudeText.setBounds(10, 20, 270, 150);
		return topComp;
	}
}

⌨️ 快捷键说明

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