银行业务管理系统设计说明书_第1页
银行业务管理系统设计说明书_第2页
银行业务管理系统设计说明书_第3页
银行业务管理系统设计说明书_第4页
银行业务管理系统设计说明书_第5页
已阅读5页,还剩26页未读 继续免费阅读

下载本文档

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

文档简介

银行业务管理系统设计说明书银行业务管理系统设计说明书 组长(学号姓名):组长(学号姓名): 组内成员:组内成员: 成员成员 1 1(学号姓名):(学号姓名): 成员成员 2 2(学号姓名):(学号姓名): 成员成员 3 3(学号姓名):(学号姓名): 完成日期: 目目 录录 1.引言引言.1 1.1编写目的.1 1.2背景 .1 1.3定义 .1 1.4参考资料.1 2.程序(子系统)系统的组织结构程序(子系统)系统的组织结构 .1 3.界面设计要求界面设计要求.1 4.本软件系统中各程序本软件系统中各程序(子系统子系统)的设计说明的设计说明.1 4.1程序(子系统)1 的设计说明 .1 4.2程序(子系统)2 的设计说明 .1 5.子系统相互关系表子系统相互关系表.2 1.引言引言 1.1 编写目的编写目的 本说明书确定系统的功能模块和数据结构,为下阶段开发工作提供依据。 本系统是专门用于银行基本业务办理的平台,经过我们小组的研究编制而成本系统可以实 现开户、存款、取款、保存信息、查询等多项功能。在一定程度上满足了银行的业务需求,基 本实现了预期目标。 1.2 背景背景 软件系统的名称: 银行业务管理系统 本项目的任务提出者: 本项目的任务开发者: 1.3 定义定义 1.4 参考资料参考资料 2.程序(子系统)系统的组织结构程序(子系统)系统的组织结构 提示:用层次图表列出系统内各层模块。着重标明一下每位小组成员完成了哪些模块。 否 登登 录录 银行业务管理系统银行业务管理系统 密码是否正确密码是否正确 主页面主页面 存款取款存款取款 汇总查询汇总查询职员管理职员管理其他功能其他功能利率设置利率设置 帮助文档帮助文档 开 户 存 款 取 款 当日汇总 存款查询 取款查询 基本信息 工资调整 更改操作密码 更改客户密码 活 期 定 期 零存整取 J 3 成员分工:成员分工: 在原有的程序基础上每个分别完成的操作是:在原有的程序基础上每个分别完成的操作是: *:(1)职员的基本信息处理:录入、显示、修改、查询等;)职员的基本信息处理:录入、显示、修改、查询等; (2)职员工资的调整)职员工资的调整 (3)负责整理汇总,即把大家各自实现的功能模块进行汇总)负责整理汇总,即把大家各自实现的功能模块进行汇总 *:(1)当日的汇总:时间、账号、类型、交易金额等)当日的汇总:时间、账号、类型、交易金额等 (2)存款查询)存款查询 (3)取款查询)取款查询 *:(1)活期的利率以及调整利率的功能)活期的利率以及调整利率的功能 (2)定期的利率以及修改调整的功能,还包含业务类别)定期的利率以及修改调整的功能,还包含业务类别 (3)零存整取的利率以及调整利率的功能,还包含业务类别)零存整取的利率以及调整利率的功能,还包含业务类别 *:(1)更改操作密码)更改操作密码 (2)更改客户密码)更改客户密码 (3)帮助文档中的文字描述)帮助文档中的文字描述 其中的存款取款中的开户、存款、取款大家一起完成。其中的存款取款中的开户、存款、取款大家一起完成。 3.界面设计要求界面设计要求 提示:登录界面和主窗体界面的设计。 1、登陆界面、登陆界面 2、主页面(包含了系统中的所有功能)主页面(包含了系统中的所有功能) 3、存款取款(包含了开户、存款和取款的功能)存款取款(包含了开户、存款和取款的功能) (1)开户)开户 (2)存款存款 J 5 (3)取款取款 4、汇总查询(包含有当日汇总、存款查询、取款查询)汇总查询(包含有当日汇总、存款查询、取款查询) (1)当日汇总(当日的交易金额)当日汇总(当日的交易金额) (2)存款查询存款查询 (3)取款查询取款查询 J 7 5,、职员管理(包含有银行职员的基本信息、职员的工资调整)、职员管理(包含有银行职员的基本信息、职员的工资调整) (1)银行职员的基本信息银行职员的基本信息 (2)职员的工资调整职员的工资调整 6、银行操作系统的其他功能(包括有更改操作密码、更改客户密码)银行操作系统的其他功能(包括有更改操作密码、更改客户密码) (1)更改操作密码更改操作密码 (2)更改客户密码更改客户密码 J 9 7、利率设置(包括活期、定期和零存整取利率的调整)利率设置(包括活期、定期和零存整取利率的调整) (1)活期利率的调整)活期利率的调整 (2)定期各个业务利率的调整)定期各个业务利率的调整 (3)零存整取各个业务利率的调整)零存整取各个业务利率的调整 8、帮助文档的设计帮助文档的设计 J 11 4.本软件系统中各程序本软件系统中各程序(子系统子系统)的设计说明的设计说明 提示:在本节中要求按模块依次说明在“2、程序(模块)系统的组织结构”中列出的每个模块的设计内 容,包括: 程序(子系统)功能描述 程序(子系统)性能描述 该程序(子系统)的输入项 该程序(子系统)的输出项 该程序(子系统)的算法 该程序(子系统) 设计思想 接口设计 功能的实现:功能的实现: (1)开户:提供了对新客户的注册开户功能,当开户成功会把数据存到系统中。 (2)存款:实现把客户的存款添加到主系统数据中。 (3)取款:实现客户取款功能并将数据田家达主系统数据中。 (4)汇总查询:实现对该业务员操作的所有客户信息的查询显示。 (5)职员管理:可以对业务员的一些基本信息进行操作,实现信息的导入、查找、修改、删除等 功能。 (6)其他功能:包括更改操作和客户密码,目的是确保信息的安全性。 (7)利率设置:实现了业务员可以及时校正国家利率因调整儿导致的系统利率不同意的漏洞。 3.1 程序程序(子系统子系统)1 的设计说明的设计说明 提示:简单描述子系统的功能、设计思想、界面以及每位小组成员完成的情况。 (1)存款取款存款取款 (1)开户操作(开户操作(*) namespace BankManage public partial class NewAccountForm : BasePanelForm public NewAccountForm() InitializeComponent(); string items = Enum.GetNames(typeof(MoneyAccountType); comboBoxAccountType.Items.AddRange(items); /只允许从选项中选择 comboBoxAccountType.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxAccountType.SelectedIndex = 0; /单击开户按钮 private void buttonOK_Click(object sender, EventArgs e) Custom custom = DataOperation.CreateCustom(comboBoxAccountType.SelectedItem.ToString(); custom.AccountInfo.帐号 = textBoxAccount.Text.Trim() ; custom.AccountInfo.身份证号 = textBoxIdCard.Text.Trim(); custom.AccountInfo.姓名 = textBoxName.Text.Trim(); custom.AccountInfo.密码 = textBoxPassword.Text.Trim(); custom.Create(textBoxAccount.Text.Trim(), double.Parse(textBoxMoney.Text.Trim(); this.Close(); private void buttonCancel_Click(object sender, EventArgs e) this.Close(); private void comboBoxAccountType_SelectedIndexChanged(object sender, EventArgs e) string s = comboBoxAccountType.SelectedItem.ToString(); BankDataContext c = new BankDataContext(); var q = from t in c.AccountInfo where t.存款类型 = s select t; if (q.Count() 0) textBoxAccount.Text = string.Format(0, int.Parse(q.Max(x = x.帐号) + 1); else textBoxAccount.Text = string.Format(000001, J 13 comboBoxAccountType.SelectedIndex + 1); (2)存款(存款(*) namespace BankManage public partial class DepositForm : BasePanelForm public DepositForm() InitializeComponent(); /单击存款按钮 private void buttonOK_Click(object sender, EventArgs e) Custom custom = DataOperation.GetCustom(textBoxAccount.Text.Trim(); if (custom = null) MessageBox.Show(帐号不存在,请重新输入!); return; custom.MoneyInfo.帐号? = textBoxAccount.Text.Trim(); custom.Diposit(存款, double.Parse(textBoxMoney.Text.Trim(); this.Close(); private void buttonCancel_Click(object sender, EventArgs e) this.Close(); (3)取款(取款(*) namespace BankManage public partial class WithdrawForm : BasePanelForm int n = 0; public WithdrawForm() InitializeComponent(); /单击取款按钮 private void buttonOK_Click(object sender, EventArgs e) Custom custom = DataOperation.GetCustom(textBoxAccount.Text.Trim(); if (custom = null) MessageBox.Show(账号不存在,请重新输入!); return; if (custom.AccountInfo.密码 = textBoxPassword.Text) MessageBox.Show(密码不正确?); n+; if (n = 3) MessageBox.Show(密码错洙误超过三次,禁止操作!); this.Close(); else n = 0; custom.Withdraw(double.Parse(textBoxMoney.Text); this.Close(); private void buttonCancel_Click(object sender, EventArgs e) this.Close(); (2)汇总查询(汇总查询(*完成代码)完成代码) (1)当日汇总当日汇总 namespace BankManage public partial class SumForm : BasePanelForm BankDataContext c; J 15 public SumForm() InitializeComponent(); c = new BankDataContext(); var q=from t1 in c.AccountInfo from t2 in c.MoneyInfo where t1.帐号=t2.帐号 c.SubmitChanges(); dataGridView1.DataSource = q; private void btnTotal_Click(object sender, EventArgs e) c=new BankDataContext(); var q = from t in c.MoneyInfo where t.发生时间.Day = DateTime.Now.Day select t.发生金额; if (q.Count() 0) txtTotal.Text = q.Sum().ToString(); else txtTotal.Text = 0; (2)存款查询存款查询 namespace BankManage public partial class DespoitQueryForm : Form BankDataContext c; public DespoitQueryForm() InitializeComponent(); c = new BankDataContext(); var q = from t1 in c.AccountInfo from t2 in c.MoneyInfo where t1.帐号 = t2.帐号 c.SubmitChanges(); dataGridView1.DataSource = q; private void btnTotal_Click(object sender, EventArgs e) c = new BankDataContext(); var q = from t in c.MoneyInfo where t.发生类别 = 存款 if (q.Count() 0) textBox1.Text = q.Sum().ToString(); else textBox1.Text = 0; (3)取款查询取款查询 namespace BankManage.query public partial class WithdrawQueryForm : Form J 17 BankDataContext c; public WithdrawQueryForm() InitializeComponent(); c = new BankDataContext(); var q = from t1 in c.AccountInfo from t2 in c.MoneyInfo where t1.帐号 = t2.帐号 c.SubmitChanges(); dataGridView1.DataSource = q; private void btnTotal_Click(object sender, EventArgs e) c = new BankDataContext(); var q = from t in c.MoneyInfo where t.发生类别 = 取款 select t.发?生?金e额?; if (q.Count() 0) textBox1.Text = q.Sum().ToString(); else textBox1.Text = 0; (3)职员管理(职员管理(*完成代码)完成代码) (1)职员基本信息职员基本信息 namespace BankManage public partial class BasicInfoForm : Form public BasicInfoForm() InitializeComponent(); /BankDataContext c = new BankDataContext(); /var q1 = from t in c.EmployeeInfo / select new / / 编号 = t.编号, / 姓名 = t.姓名, / 性别 = t.性别, / 参加工作日期 = t.参加工作日期, / 电话 = t.联系电话, / 身份证号 = t.身份证号 / ; /var q2 = from t in c.EmployeeInfo / select t.照片; /pictureBox1.DataBindings = q2; /dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; /dataGridView1.DataSource = q1; private void employeeInfoBindingNavigatorSaveItem_Click(object sender, EventArgs e) this.Validate(); this.employeeInfoBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.bank); MessageBox.Show(保存成功!); private void BasicInfoForm_Load(object sender, EventArgs e) / TODO: 这行代码将数据加载到表“bank.EmployeeInfo”中。您可以根据需要移动或移除它。 this.employeeInfoTableAdapter.Fill(this.bank.EmployeeInfo); this.employeeInfoDataGridView.DataError += new DataGridViewDataErrorEventHandler(employeeInfoDataGridView_DataError); J 19 private void employeeInfoBindingNavigatorSaveItem_Click_1(object sender, EventArgs e) this.Validate(); this.employeeInfoBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.bank); private void employeeInfoDataGridView_DataError(object sender, DataGridViewDataErrorEventArgs e) MessageBox.Show(操作失败!); /导入照片 private void buttonIn_Click(object sender, EventArgs e) OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() = DialogResult.OK) this.照片PictureBox.Image = Image.FromFile(ofd.FileName); /移除照片 private void buttonOut_Click(object sender, EventArgs e) this.照片PictureBox.Image =null; (2)职员工资调整职员工资调整 namespace BankManage public partial class PayForm : BasePanelForm public PayForm() InitializeComponent(); BankDataContext c = new BankDataContext(); private void PayForm_Load(object sender, EventArgs e) var q = from t in c.EmployeeInfo select t.编号; string items = q.ToArray(); boBox1.Items.AddRange(items); boBox1.SelectedIndex = -1; private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) string id = boBox1.SelectedItem.ToString(); var q = from t in c.EmployeeInfo where t.编号 = id select t; if (q.Count() 0) this.textBoxName.Text = q.Single().姓名.ToString(); this.textBoxOld.Text = q.Single().工资.ToString(); else this.textBoxOld.Text=; /提交 private void buttonSubmit_Click(object sender, EventArgs e) if (this.textBoxNew.Text.Trim() = ) MessageBox.Show(工资不能为空!); return; else string id = boBox1.SelectedItem.ToString(); try var q = from t in c.EmployeeInfo where t.编号 = id select t; q.Single().工资 = Convert.ToDecimal(this.textBoxNew.Text); c.SubmitChanges(); MessageBox.Show(提交成功!); this.textBoxOld.Text = this.textBoxNew.Text; this.textBoxNew.Text = ; J 21 catch (Exception err) MessageBox.Show(调整失败,err.Message); /取消 private void buttonCancle_Click(object sender, EventArgs e) this.Close(); (4)其他功能(其他功能(*完成代码)完成代码) (1)更改操作密码更改操作密码 private void buttonOperatorPassword_Click(object sender, EventArgs e) ChangeOperatorPassword cop = new ChangeOperatorPassword(); ShowFormInRightPanel(cop); (2)更改用户密码更改用户密码 private void buttonCustomPassword_Click(object sender, EventArgs e) ChangeCustomPassword ccp = new ChangeCustomPassword(); ShowFormInRightPanel(ccp); private void ShowFormInRightPanel(Form form) form.TopLevel = false; this.rightPanel.Controls.Clear(); this.rightPanel.Controls.Add(form); form.Dock = DockStyle.Fill; form.Show(); (5)利率设置(利率设置(*完成代码)完成代码) (1)活期利率调整活期利率调整 namespace BankManage public partial class FlexibleForm : Form BankDataContext c; public FlexibleForm() InitializeComponent(); c = new BankDataContext(); var q = (from t in c.RateInfo where t.类别 = 活期 select t).Single(); txtOldRate.Text = q.利率.ToString(); private void btnOK_Click(object sender, EventArgs e) try float rate = float.Parse(txtNewRate.Text.ToString(); c = new BankDataContext(); var q = (from t in c.RateInfo where t.类别 = 活期 select t).Single(); q.利率 = rate; c.SubmitChanges(); MessageBox.Show(修改成功); catch (Exception err) MessageBox.Show(err.Message); private void btnCancel_Click(object sender, EventArgs e) this.Close(); (2)定期利率调整定期利率调整 namespace BankManage public partial class FixedForm : Form J 23 BankDataContext c; string connString; public FixedForm() InitializeComponent(); connString = Properties.Settings.Default.BankConnectionString; private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) txtNewRate.Clear(); c = new BankDataContext(); var query = (from table in c.RateInfo where table.类别 = comboBox1.Text select table.利率).Single(); txtOldRate.Text = query.ToString(); private void FixedForm_Load(object sender, EventArgs e) using (SqlConnection conn = new SqlConnection(connString) SqlCommand cmd = new SqlCommand(Select * from RateInfo where 类别 like 定 期, conn); try conn.Open(); SqlDataReader r = cmd.ExecuteReader(); while (r.Read() comboBox1.Items.Add(string.Format(0, r0); r.Close(); catch (Exception err) MessageBox.Show(err.Message, 读取失败); private void btnOK_Click(object sender, EventArgs e) using (SqlConnection conn = new SqlConnection(connString) float NewRate = float.Parse(txtNewRate.Text); string type = comboBox1.Text; string sql = string.Format(update RateInfo set 利率=0 where 类别=1, NewRate, type); SqlCommand cmd = new SqlCommand(sql, conn); try conn.Open(); int number = cmd.ExecuteNonQuery(); if (number 0) MessageBox.Show(修改成功!); catch (Exception err) MessageBox.Show(err.Message, 修改失败); private void btnCancel_Click(object sender, EventArgs e) this.Close(); (3)零存整取利率调整零存整取利率调整 namespace BankManage public partial class LCZQForm : Form BankDataContext c; string connString; public LCZQForm() InitializeComponent(); connString = Properties.Settings.Default.BankConnectionString; J 25 private void btnOK_Click(object sender, EventArgs e) using (SqlConnection conn = new SqlConnection(connString) float NewRate = float.Parse(txtNewRate.Text); string type = comboBox1.Text; string sql = string.Format(update RateInfo set 利率=0 where 类别=1, NewRate, type); SqlCommand cmd = new SqlCommand(sql, conn); try conn.Open(); int number = cmd.ExecuteNonQuery(); if (number 0) MessageBox.Show(修改成功!); catch (Exception err) MessageBox.Show(err.Message, 修改失败); private void btnCancel_Click(object sender, EventArgs e) this.Close(); private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) txtNewRate.Clear(); c = new BankDataContext(); var query = (from table in c.RateInfo where table.类别 = comboBox1.Text select table.利率).Single(); txtOldRate.Text = query.ToString(); private void LCZQForm_Load(object sender, EventArgs e) using (SqlConnecti

温馨提示

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

最新文档

评论

0/150

提交评论