




已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Web 开发与应用技术 设计文档 项目名称 办公自动化系统项目名称 办公自动化系统 完成日期 完成日期 2012 01 052012 01 05 目目 录录 3 3 3 8 第第五五章章 系统模块划 分 8 一 系统设计背景一 系统设计背景 办公自动化 Office Automation System OAS 系统 是利用先进的计算机信息技术 和现代办公设备构成的人机信息处理系统 辅助管理人员进行各种办公活动 办公自动化 系统由办公机构 办公人员 办公设备 网络环境 办公信息等几个基本要素构成 本系统开发的目的是紧密结合目前政府机关和企事业单位的办公业务流程和管理特点 开发一套先进的 综合的 完整的 并且能有效的在局域网和广域网运行的办公自动化系 统 通过该系统的使用 可有效地提高政府机关和企事业单位的工作效率 提升应用单位 信息化管理的水平 减少工作人员的工作量 降低政府机关和企事业单位的成本 二 系统需求分析二 系统需求分析 1 数据层上 实现对员工部门信息的修改 删除 更新等操作 同时记录考勤状况 2 业务层上 实现各种与数据层的交互工作 3 视觉上 尽可能的做到人机交互 简明 易懂 4 主界面上显示当前日期 展示经理风采 三 系统功能介绍三 系统功能介绍 登录功能登录功能 系统管理员 查看公告 考勤管理 设置上下班时间 管理员工的签到 签退等 系统设置 设置个人密码 为系统设置新的管理员等 部门管理 编辑新增加的部门以及部门信息的维护工作 普通用户 个人操作 包括查看系统公告 修改个人登录密码 考勤签到 完成个人考勤 即签到和签退功能的实现 查看系统公告查看系统公告 上下班签到时间设置上下班签到时间设置 上下班签到功能上下班签到功能 密码重置功能密码重置功能 添加新管理员设置添加新管理员设置 新建部门功能新建部门功能 更新部门信息更新部门信息 四 系统流程图四 系统流程图 登录 系统管理员 普通职员 修 改 个 人 信 息 修 改 密 码 信 息 修 改 部 门 信 息 修 改 考 勤 信 息 修改 个人 密码 查看 公告 考勤签 到 签退 五 系统模块划分五 系统模块划分 模块划分 登录模块 员工管理模块 管理员和普通员工模块 数据维护模块 上班签到的查询 部门增删信息更新模块 六 数据库设计六 数据库设计 数据库中存在 8 个表单分别如下 七 详细设计及实现七 详细设计及实现 1 连接数据库 Web configue BaseClass 这个实现连接的类 using System using System Data using System 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 Page public BaseClass TODO 在此处添加构造函数逻辑 region 显 示 客 户 端 对 话 框 WebMessageBox 用 来 在 客 户 端 弹獭 出 对 话 框 对 话 框 显 示 内 容 public string MessageBox string TxtMessage string str str alert TxtMessage return str endregion region 执 行 DSQL 语 句 用 来 执 行 DSQL 语 句 sQueryString SQL 字 符 串 操 作痢 是 否 成 功 True False public Boolean ExecSQL string sQueryString SqlConnection con new SqlConnection ConfigurationManager AppSettings conStr con Open SqlCommand dbCommand new SqlCommand sQueryString con if dbCommand ExecuteNonQuery 0 con Close return true else con Close return false 公 告 信 息 添 加 标括 题琣 公 告 内 容 发 布 公 告 人 public Boolean ExecProcNotice string title string content string person 执 行 D 公 告 程 序 SqlConnection con new SqlConnection ConfigurationManager AppSettings conStr con Open SqlCommand cmd new SqlCommand insert tb notice con cmd CommandType 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 默 认 存 储洹 的 最 大洙 值 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 endregion region 查 询 SQL 语 句 执 行 D 查 询 戗 戗 语 句 sQueryString SQL 字 符 串 TableName 数簓据 Y 表括 名 称 public System Data DataSet GetDataSet string sQueryString string TableName SqlConnection con new SqlConnection ConfigurationManager AppSettings conStr string s1 ConfigurationManager ConnectionStrings conStr 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 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 Load object sender EventArgs e if Session loginName 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 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 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 BaseDepartmentManager System Web UI Page BaseClass bc new BaseClass protected void Page Load object sender EventArgs e if Session loginName 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 GridView1 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 DataKeys e RowIndex Value ToString 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 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 Session loginName null Response Write this parent location href Default aspx return if IsPostBack DataSet ds bc GetDataSet select from department where deptid Request QueryString id ToString department txtName Text ds Tables 0 Rows 0 1 ToString txtContent Text ds Tables 0 Rows 0 2 ToString protected void imgBtnSave Click object sender ImageClickEventArgs e B
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中考数学总复习《概率初步》基础强化附参考答案详解(达标题)
- 重难点解析北师大版8年级数学上册期中试卷及参考答案详解【完整版】
- 养牛牧场运营管理方案
- 电竞公司赛事抽签管理规定
- 重难点解析华东师大版7年级下册期末试题含完整答案详解(必刷)
- 开盘价与风险溢价估值关联-洞察及研究
- 电竞公司社交互动管理细则
- 中医执业医师测试卷含完整答案详解(有一套)
- 自考专业(计算机应用)通关考试题库及参考答案详解(完整版)
- 企业管理-升职加薪申请书
- 2025年药品知识科普试题(附答案)
- 2025年高压电工作业复审考试试题库与答案
- 应收款考核管理办法
- 心内科护理进修报告
- 引流管管口渗液的护理
- 食堂工人培训课件
- 部编版三年级语文上册说课标说教材
- 医德医风课件培训宣传
- 【艾瑞咨询】2024年中国健康管理行业研究报告494mb
- 2025java中高级面试题及答案
- 偷盗自愿赔偿协议书
评论
0/150
提交评论