办公自动化系统设计文件_第1页
办公自动化系统设计文件_第2页
办公自动化系统设计文件_第3页
办公自动化系统设计文件_第4页
办公自动化系统设计文件_第5页
已阅读5页,还剩37页未读, 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Web开发与应用技术设计文档项目名称:办公自动化系统 完成日期:2012-01-05 目 录 TOC o 1-3 h z 3338第五章 系统模块划分8 一、系统设计背景办公自动化(Office Automation System,OAS)系统,是利用先进的计算机信息技术和现代办公设备构成的人机信息处理系统,辅助治理人员进行各种办公活动。办公自动化系统由办公机构、办公人员、办公设备、网络环境、办公信息等几个差不多要素构成。本系统开发的目的是紧密结合目前政府机关和企事业单位的办公业务流程和治理特点,开发一套先进的、综合的、完整的、同时能有效的在局域网和广域网运行的办公自动化系统。通过该系统的使用

2、,可有效地提高政府机关和企事业单位的工作效率,提升应用单位信息化治理的水平,减少工作人员的工作量,降低政府机关和企事业单位的成本。二、系统需求分析数据层上,实现对职员部门信息的修改、删除、更新等操作,同时记录考勤状况。2.业务层上,实现各种与数据层的交互工作。3.视觉上,尽可能的做到人机交互,简明、易明白。4.主界面上显示当前日期,展示经理风采。三、系统功能介绍登录功能【系统治理员】查看公告考勤治理(设置上下班时刻,治理职员的签到、签退等)系统设置(设置个人密码,为系统设置新的治理员等)部门治理(编辑新增加的部门以及部门信息的维护工作)【一般用户】个人操作(包括查看系统公告,修改个人登录密码)

3、考勤签到(完成个人考勤,即签到和签退功能的实现)查看系统公告上下班签到时刻设置上下班签到功能密码重置功能添加新治理员设置新建部门功能更新部门信息四、系统流程图 登录 登录 系统治理员 一般职员修改个人信息修改密码信息修改部门信息修改考勤信息修改个人密码查看公告考勤签到签退五、系统模块划分【模块划分】登录模块职员治理模块治理员和一般职员模块数据维护模块上班签到的查询部门增删信息更新模块六、数据库设计数据库中存在8个表单分不如下:七、详细设计及实现连接数据库:Web.configue:BaseClass那个实现连接的类:using System;using System.Data;using Sy

4、stem.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;using System.Collections;/ / BaseClass 的摘要讲明/ public class BaseClass : System.Web.UI

5、.Page public BaseClass() / / TODO: 在此处添加构造函数逻辑 / #region 显?示?客户端?对?话框 / / WebMessageBox用?来?在客户端?弹獭?出?对?话框。 / / 对?话框显?示?内容 / public string MessageBox(string TxtMessage) string str; str = alert( + TxtMessage + ); return str; #endregion #region 执行DSQL语?句? / / 用?来?执行DSQL语?句? / / sQueryString SQL字?符?串? /

6、 操作痢?是?否?成功|(TrueFalse) public Boolean ExecSQL(string sQueryString) SqlConnection con = new SqlConnection(ConfigurationManager.AppSettingsconStr); con.Open(); SqlCommand dbCommand = new SqlCommand(sQueryString, con); if (dbCommand.ExecuteNonQuery() 0) con.Close(); return true; else con.Close(); retu

7、rn false; / / 公?告?信?息添?加 / / 标括?题琣 / 公?告?内容 / 发?布?公?告?人? / public Boolean ExecProcNotice(string title, string content, string person)/执行D公?告?程序 SqlConnection con = new SqlConnection(ConfigurationManager.AppSettingsconStr); con.Open(); SqlCommand cmd = new SqlCommand(insert_tb_notice, con); cmd.Comma

8、ndType = CommandType.StoredProcedure; /公?告?标括?题琣 SqlParameter pTitle = new SqlParameter(noticeTitle, SqlDbType.VarChar, 80);/设?置?数簓据Y库a参?数簓 pTitle.Value = title; cmd.Parameters.Add(pTitle); /公?告?详细?内容 SqlParameter pContent = new SqlParameter(noticeContent, SqlDbType.Text, 0); /0为aText默?认?存?储洹?的?最?大洙

9、?值 pContent.Value = content; cmd.Parameters.Add(pContent); /公?告?发?布?人? SqlParameter pPerson = new SqlParameter(noticePerson, SqlDbType.VarChar, 20); pPerson.Value=person; cmd.Parameters.Add(pPerson); /判D断?运?行D结果? if (cmd.ExecuteNonQuery() 0) con.Close(); return true; else con.Close(); return false;

10、#endregion #region 查询SQL语?句? / /?执行D查询戗?戗?语?句? / / sQueryString SQL字?符?串? / TableName 数簓据Y表括?名?称? / public System.Data.DataSet GetDataSet(string sQueryString, string TableName) SqlConnection con = new SqlConnection(ConfigurationManager.AppSettingsconStr); /string s1 = ConfigurationManager.Connection

11、StringsconStr.ConnectionString; / SqlConnection con = new SqlConnection(s1); SqlDataAdapter dbAdapter = new SqlDataAdapter(sQueryString, con); DataSet dataset = new DataSet(); dbAdapter.Fill(dataset, TableName); return dataset; #endregion以部门信息修改为例写出各项数据绑定操作using System;using System.Data;using System

12、.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class BaseInfo_BaseDepartmentAdd : System.Web.UI.Page protected void Page_Lo

13、ad(object sender, EventArgs e) if (SessionloginName = null) Response.Write(this.parent.location.href=./Default.aspx); protected void imgBtnSave_Click(object sender, ImageClickEventArgs e) BaseClass bc = new BaseClass(); Boolean bl; bl = bc.ExecSQL(insert into department values( + txtName.Text + , +

14、txtContent.Text+ , +txtid.Text +); if (bl) Response.Write(bc.MessageBox(新建部门成功!); else Response.Write(bc.MessageBox(新建部门失败!); protected void imgBtnClear_Click(object sender, ImageClickEventArgs e) txtName.Text = ; txtContent.Text = ; using System;using System.Data;using System.Configuration;using Sy

15、stem.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class BaseInfo_BaseDepartmentManager : System.Web.UI.Page BaseClass bc = new BaseClass(); protected

16、 void Page_Load(object sender, EventArgs e) if (SessionloginName = null) Response.Write(this.parent.location.href=./Default.aspx); return; GridView1.DataSource = bc.GetDataSet(select * from department, department); GridView1.DataKeyNames = new String deptid ; GridView1.DataBind(); protected void Gri

17、dView1_PageIndexChanging(object sender, GridViewPageEventArgs e) GridView1.PageIndex = e.NewPageIndex; GridView1.DataBind(); protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) try bc.ExecSQL(delete from department where deptid= + this.GridView1.DataKeyse.RowIndex.Value.To

18、String() + ); GridView1.DataSource = bc.GetDataSet(select * from department, department); GridView1.DataBind(); catch (Exception ex) Response.Write(bc.MessageBox(ex.Message); using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security

19、;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;public partial class BaseInfo_BaseDepartmentUpdate : System.Web.UI.Page BaseClass bc = new BaseClass(); protected void Page_Load(object sender, EventArgs e) if (Sessionlogin

20、Name = null) Response.Write(this.parent.location.href=./Default.aspx); return; if (!IsPostBack) DataSet ds = bc.GetDataSet(select * from department where deptid= + Request.QueryStringid.ToString() + , department); txtName.Text = ds.Tables0.Rows01.ToString(); txtContent.Text = ds.Tables0.Rows02.ToString(); protected void imgBtnSave_Click(object sender, ImageClickEventArgs e) Bool

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论