资源简介
自己编写的实验室设备管理系统 完整的软件工程课程设计 包括论文和源程序 在vs2008和sql2005平台上编写 含有数据库 希望对大家有用 初学时写的 代码结构比较乱 效率低 呵呵

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace 实验室设备管理系统
{
public partial class addTypeForm : Form
{
public addTypeForm()
{
InitializeComponent();
}
///
/// 添加类型
///
///
///
private void btn_Ok_Click(object sender EventArgs e)
{
if (txt_Type.Text == ““ || txt_Type.Text == “请输入类型“)
{
MessageBox.Show(“请输入类型名!“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
}
else
{
string sql = string.Format(“select count(*) from Type where Type=‘{0}‘ “txt_Type.Text);
SqlCommand command = new SqlCommand(sql DBHelper.connection);
DBHelper.connection.Open();
int count =(int) command.ExecuteScalar();
DBHelper.connection.Close();
if (count >= 1)
{
MessageBox.Show(“该类型已存在!“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
}
else
{
try
{
string sql2 = string.Format(“insert into Type (Type) values(‘{0}‘) “ txt_Type.Text);
SqlCommand command2 = new SqlCommand(sql2 DBHelper.connection);
DBHelper.connection.Open();
int count2 = command2.ExecuteNonQuery();
if (count2 == 1)
{
MessageBox.Show(“添加成功。“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
}
else
{
MessageBox.Show(“添加失败。“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
DBHelper.connection.Close();
}
}
}
}
private void btn_close_Click(object sender EventArgs e)
{
this.Close();
}
private void addTypeForm_Load(object sender EventArgs e)
{
this.FormBorderstyle = FormBorderstyle.FixedDialog;
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2886 2010-05-24 22:06 实验室设备管理系统\实验室设备管理系统\addTypeForm.cs
文件 3930 2010-05-24 22:06 实验室设备管理系统\实验室设备管理系统\addTypeForm.Designer.cs
文件 5987 2010-05-24 22:06 实验室设备管理系统\实验室设备管理系统\addTypeForm.resx
文件 2224 2010-06-02 01:17 实验室设备管理系统\实验室设备管理系统\adminForm.cs
文件 10683 2010-06-01 01:20 实验室设备管理系统\实验室设备管理系统\adminForm.Designer.cs
文件 6011 2010-06-01 01:20 实验室设备管理系统\实验室设备管理系统\adminForm.resx
文件 6786 2010-06-03 01:24 实验室设备管理系统\实验室设备管理系统\appForm.cs
文件 13284 2010-06-03 01:24 实验室设备管理系统\实验室设备管理系统\appForm.Designer.cs
文件 5814 2010-06-03 01:24 实验室设备管理系统\实验室设备管理系统\appForm.resx
文件 8621 2010-06-03 01:22 实验室设备管理系统\实验室设备管理系统\auditForm.cs
文件 10765 2010-06-03 01:22 实验室设备管理系统\实验室设备管理系统\auditForm.Designer.cs
文件 6019 2010-06-03 01:22 实验室设备管理系统\实验室设备管理系统\auditForm.resx
文件 206336 2010-06-03 01:24 实验室设备管理系统\实验室设备管理系统\bin\Debug\实验室设备管理系统.exe
文件 155136 2010-06-03 01:24 实验室设备管理系统\实验室设备管理系统\bin\Debug\实验室设备管理系统.pdb
文件 14328 2010-06-03 15:54 实验室设备管理系统\实验室设备管理系统\bin\Debug\实验室设备管理系统.vshost.exe
文件 490 2009-06-11 05:14 实验室设备管理系统\实验室设备管理系统\bin\Debug\实验室设备管理系统.vshost.exe.manifest
文件 3676 2010-06-03 01:23 实验室设备管理系统\实验室设备管理系统\checkForm.cs
文件 7049 2010-06-03 01:23 实验室设备管理系统\实验室设备管理系统\checkForm.Designer.cs
文件 5814 2010-06-03 01:23 实验室设备管理系统\实验室设备管理系统\checkForm.resx
文件 435 2010-05-16 22:23 实验室设备管理系统\实验室设备管理系统\DBHelper.cs
文件 1772 2010-06-02 22:57 实验室设备管理系统\实验室设备管理系统\leadForm.cs
文件 8319 2010-06-02 22:57 实验室设备管理系统\实验室设备管理系统\leadForm.Designer.cs
文件 6012 2010-06-02 22:57 实验室设备管理系统\实验室设备管理系统\leadForm.resx
文件 3946 2010-06-03 01:20 实验室设备管理系统\实验室设备管理系统\LoginForm.cs
文件 7663 2010-06-03 01:20 实验室设备管理系统\实验室设备管理系统\LoginForm.Designer.cs
文件 213780 2010-06-03 01:20 实验室设备管理系统\实验室设备管理系统\LoginForm.resx
文件 2428 2010-06-03 00:34 实验室设备管理系统\实验室设备管理系统\moneyCountForm.cs
文件 5407 2010-06-03 00:34 实验室设备管理系统\实验室设备管理系统\moneyCountForm.Designer.cs
文件 5814 2010-06-03 00:34 实验室设备管理系统\实验室设备管理系统\moneyCountForm.resx
文件 180 2010-06-01 23:24 实验室设备管理系统\实验室设备管理系统\obj\Debug\实验室设备管理系统.addTypeForm.resources
............此处省略68个文件信息
- 上一篇:数据库课程设计之公安户籍管理系统(Access版)
- 下一篇:PB考勤系统源码
相关资源
- 企业人事管理系统【SQLServer数据库+课
- 软件工程设计排课系统
- 课程设计人事管理系统
- 餐厅管理信息系统课程设计
- Oracle课程设计管理系统
- oracle数据库课程设计学生成绩管理系
- Oracle数据库课程设计报告学生成绩管
- DBMS的设计与实现
- 数据库课程设计-学生信息管理系统
- 旅游管理系统 课程设计
- 数据库课程设计 学生成绩管理系统
- 学籍管理系统源码
- Oracle课程设计案例精编.rar
- 数据库课程设计 用delphi实现的
- 《Oracle课程设计案例精编》 源代码
- ORACLE课程设计案例
- 华南理工大学-数据库课程设计(全套
- 高校科研管理系统课程设计报告SQL
- 工资管理系统 SQL数据库课程设计
- Qt课程设计_小区车辆管理系统
- 基于webgis的北京地铁线路管理模拟
- 汽车销售管理系统pb+sql内含课程设计
- Oracle数据库课程设计报告学生成绩管
- 汽车销售系统数据库课程设计delphi+
- 数据库课程设计之服饰库存管理系统
- 数据库课程设计书刊租借信息管理系
- 停车场数据库管理系统课程设计
- web课程设计-网页阅读器源代码+数据库
- Delphi 课程设计 仓库商品管理系统
- sqlserver课程设计图书管理系统
评论
共有 条评论