ImageVerifierCode 换一换
格式:DOCX , 页数:40 ,大小:400.25KB ,
资源ID:16836881      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/16836881.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(员工出勤管理系统 java图形化界面设计Word下载.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

员工出勤管理系统 java图形化界面设计Word下载.docx

1、1登录窗口和注册窗口2.菜单部分 3.功能实现模块 查询所有人的出勤情况修改出勤情况增加新的员工信息删除不用的信息管理员密码修改(三)数据库设计员工出勤表管理员表五、设计总结经过将近一周的课程设计,对java有了更深一层次的认识,感觉java很强大。虽然系统的基本功能都已实现,但还是存在系统不稳定等多个问题尚待解决。这个系统主要是我自己开发的,但也得到了老师和同学的很大帮助。我正在做系统的过程中遇到了很多问题,有的是知识存储不足,有的是考虑不够周全,之所以能够顺利实现基本功功能,离不开老师和同学的大力相助。事实证明,只靠自己是不能顺利完成一套功能完整的系统的,必须充分利用团队的力量。开发一套系

2、统,最重要的是细心,并不是一定要做到面面俱到,但也要充分考虑到客户的需求和现实意义,不管什么系统,只用运用到实际应用中,才具有先现实意义。所以在准备工作中要正确分析社会需求了解现实应用,画出流程图,把大体框架做好,然后再逐一细化。我们不可能做到面面俱到,但一定要做到步步扎实,作为一个程序编程人员,要保持清醒的头脑,以现实为依据,让自己的每一行代码都能实现自己的意义。 通过这次课程设计,我收获的不仅仅是课程上的知识得到实际应用,还有编程的基本习惯和开发系统时应注意的流程。虽然课程设计结束了,但是java的学习却没有结束,以后更加努力的。六.部分主要程序清单1. RCP中需要修改的Applicat

3、ionWorkbenchAdvisor文件import org.eclipse.swt.SWT;import org.eclipse.swt.widgets.Display;import org.eclipse.ui.application.IWorkbenchWindowConfigurer;import org.eclipse.ui.application.WorkbenchAdvisor;import org.eclipse.ui.application.WorkbenchWindowAdvisor;import views.Loginshell;public class Applica

4、tionWorkbenchAdvisor extends WorkbenchAdvisor private static final String PERSPECTIVE_ID = rsgl.perspective; public static boolean tag = false; public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) try Display display = Display.getDefault(); Loginshell she

5、ll = new Loginshell(display, SWT.SHELL_TRIM); shell.open(); shell.layout(); while (!shell.isDisposed() if (!display.readAndDispatch() display.sleep(); catch (Exception e) e.printStackTrace(); if(tag) return new ApplicationWorkbenchWindowAdvisor(configurer); else return null; public String getInitial

6、WindowPerspectiveId() return PERSPECTIVE_ID;2.RCP中需要修改的Perspective文件import org.eclipse.ui.IPageLayout;import org.eclipse.ui.IPerspectiveFactory;import views.Menus;import views.MyInfo;public class Perspective implements IPerspectiveFactory public void createInitialLayout(IPageLayout layout) layout.ad

7、dView(Menus.ID, IPageLayout.LEFT, 0.45f, layout.getEditorArea(); layout.addView(MyInfo.ID, IPageLayout.BOTTOM, 0.6f, Menus.ID);3.功能部分程序3.1用户注册public class LoginShell extends Shell private Text text_2; private Text text_1; private Text text; public static void main(String args) try Display display =

8、Display.getDefault(); LoginShell shell = new LoginShell(display, SWT.SHELL_TRIM); shell.open(); shell.layout(); while (! if (! display.sleep(); catch (Exception e) e.printStackTrace(); public LoginShell(Display display, int style) super(display, style); createContents(); setBackgroundImage(ResourceM

9、anager.getPluginImage(Activator.getDefault(), image/4ddf962769045c6b8b82a188.jpg); setBackground(SWTResourceManager.getColor(255, 255, 255); setImage(ResourceManager.getPluginImage(Activator.getDefault(), setBackgroundMode(SWT.INHERIT_DEFAULT); setText(用户登陆); protected void createContents() setSize(

10、507, 400); final Label label = new Label(this, SWT.NONE); label.setBackground(SWTResourceManager.getColor(255, 255, 255); label.setText(登录名: label.setBounds(148, 195, 47, 17); text = new Text(this, SWT.BORDER); text.setBounds(220, 192, 116, 20); final Label label1 = new Label(this, SWT.NONE); label1

11、.setBackground(SWTResourceManager.getColor(255, 255, 255); label1.setText(密码: label1.setBounds(148, 235, 39, 17); text_1 = new Text(this, SWT.BORDER | SWT.PASSWORD); final Label label4 = new Label(this, SWT.NONE); text_1.addMouseListener(new MouseAdapter() public void mouseDown(final MouseEvent e) l

12、abel4.setBackground(SWTResourceManager.getColor(255, 255, 255); if(text.getText().trim() != ) label4.setImage(ResourceManager.getPluginImage(Activator.getDefault(), image/4.PNG elseimage/3.PNG label4.setBounds(342, 195, 23, 17); ); text_1.setBounds(220, 232, 116, 20); final Label label2 = new Label(

13、this, SWT.NONE); label2.setBackground(SWTResourceManager.getColor(255, 255, 255); label2.setText(验证码: label2.setBounds(148, 274, 47, 17); text_2 = new Text(this, SWT.BORDER); final Label label3 = new Label(this, SWT.NONE); label3.setForeground(SWTResourceManager.getColor(255, 0, 0); label3.setFont(S

14、WTResourceManager.getFont(方正舒体, 18, SWT.BOLD, true,false); final Label label4_1 = new Label(this, SWT.NONE); text_2.addMouseListener(new MouseAdapter() String a2 = 0, 12345678, 9abcdefghijklmnopqrstuvwxyz ; Random r = new Random(); String result = while (result.length() 4) int temp = r.nextInt(36);

15、result = result + a2temp; label3.setText(result); System.out.println(label3.getText(); label4_1.setBackground(SWTResourceManager.getColor(255, 255, 255);/获取label的背景色 if(text_1.getText().trim() ! label4_1.setImage(ResourceManager.getPluginImage(Activator.getDefault(), label4_1.setBounds(342, 235, 23,

16、 17); label3.setBackground(SWTResourceManager.getColor(255, 255, 255); label3.setBounds(386, 271, 72, 27); text_2.setBounds(220, 271, 116, 20); final Button button = new Button(this, SWT.NONE); final Label label4_2 = new Label(this, SWT.NONE); button.addSelectionListener(new SelectionAdapter() publi

17、c void widgetSelected(final SelectionEvent e) System.out.println(text_2.getText();&text_2.getText().equals(label3.getText() label4_2.setImage(ResourceManager.getPluginImage(Activator.getDefault(), label4_2.setBounds(342, 274, 23, 17); label4_2.setText( String name = text.getText(); String password =

18、 text_1.getText(); String sql = select * from users where name=+name+ DBHelper db = new DBHelper(); ResultSet rs = db.query(sql); try if(rs.next() String passwordQ = rs.getString(password if(passwordQ.equals(password)& ApplicationWorkbenchAdvisor.tag = true; Property.NAME = rs.getString(name Propert

19、y.PASSWORD = rs.getString( Property.ID = rs.getString(uid MessageDialog.openInformation(LoginShell.this, 登录成功 LoginShell.this.dispose(); else MessageDialog.openError(LoginShell.this, 登录失败登录失败,密码或者验证码错误! else MessageDialog.openError(LoginShell.this, 登录失败,不存在该用户! catch (SQLException e1) e1.printStackT

20、race(); db.close(); button.setBackground(SWTResourceManager.getColor(255, 255, 255); button.setText(登陆 button.setBounds(272, 325, 64, 27); Override protected void checkSubclass() / Disable the check that prevents subclassing of SWT components3.2用户注册public class Zhuce extends EditorPart public static

21、 final String ID = editors.Zhuce /$NON-NLS-1$ private Text text2; private Text text1; private Text text3; protected static final Shell Shell = null; public void createPartControl(Composite parent) Composite container = new Composite(parent, SWT.NONE); container.setBackgroundImage(ResourceManager.get

22、PluginImage(Activator.getDefault(), container.setBackground(SWTResourceManager.getColor(255, 255, 255); final Label label = new Label(container, SWT.WRAP);姓名: label.setBounds(350, 150, 64, 17); final Label label2 = new Label(container, SWT.NONE); label2.setBackground(SWTResourceManager.getColor(255,

23、 255, 255); label2.setBounds(350, 190, 50, 17); final Label label3 = new Label(container, SWT.NONE); label3.setBackground(SWTResourceManager.getColor(255, 255, 255); label3.setText(确认密码: label3.setBounds(350, 230, 50, 17); text1 = new Text(container, SWT.BORDER); text1.setBounds(450, 150, 155, 23); text2 = new Text(container, SWT.BORDER); text2.addMouseListener(new MouseAdapter() if(text1.getText().trim()= MessageDialog.openError(Shell, 提示!姓名不能为空! text2.setBounds(450, 190, 155, 23); text3 = new Text(container, SWT.BORDER); text3.addMouseListener(new MouseAdapter() if(text2.ge

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1