资源简介
7p-co-net宿舍管理信息系统最终版完整源码-可二次开发.rar

代码片段和文件信息
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 DormManageSystem
{
public partial class AddAccident : Form
{
private SqlConnection sqlConnection1 = null;
public AddAccident()
{
InitializeComponent();
this.sqlConnection1 = new SqlConnection(DormManageSystem.database.sqlConnection.connection);
}
private void btchongzhi_Click(object sender EventArgs e)
{
dormid.Text = ““;
person.Text = ““;
koufen.Text = ““;
shijian.Text = ““;
chuli.Text = ““;
}
private void btok_Click(object sender EventArgs e)
{
try
{
if (dormid.Text.Trim() == ““ || shijian.Text == ““||chuli.Text==““)
MessageBox.Show(“请输入完整信息!“ “提示“);
else
{
sqlConnection1.Open();
string sql = “select * from dorm where dormid =‘“ + dormid.Text.Trim() + “‘“;
SqlCommand cmd = new SqlCommand(sql sqlConnection1);
if (null == cmd.ExecuteScalar())
MessageBox.Show(“没有该宿舍号,请重新输入!“ “提示“);
else
{
sql = “insert into accident(dormidpersontimeaccidentkoufendeal) values(‘“ + dormid.Text.Trim() + “‘‘“ + person.Text.Trim()+ “‘‘“ + date.Value.Date.ToString() + “‘‘“ + shijian.Text+ “‘‘“ + koufen.Text.Trim()+ “‘‘“ + chuli.Text + “‘)“;
cmd.CommandText = sql;
cmd.ExecuteNonQuery();
MessageBox.Show(“添加信息成功!“ “提示“);
}
sqlConnection1.Close();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 0 2019-11-21 11:32 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\1.bmp
文件 2209 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddAccident.cs
文件 10800 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddAccident.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddAccident.resx
文件 2181 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddCharge.cs
文件 9805 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddCharge.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddCharge.resx
文件 2270 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddCheck.cs
文件 10480 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddCheck.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddCheck.resx
文件 2640 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddDorm.cs
文件 13035 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddDorm.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddDorm.resx
文件 3323 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddHolidayStudent.cs
文件 11120 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddHolidayStudent.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddHolidayStudent.resx
文件 2229 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddRegister.cs
文件 11071 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddRegister.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddRegister.resx
文件 2288 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddRepair.cs
文件 11316 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddRepair.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddRepair.resx
文件 3305 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddStudent.cs
文件 10980 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddStudent.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddStudent.resx
文件 2670 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddYongHu.cs
文件 9269 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddYongHu.Designer.cs
文件 12550 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AddYongHu.resx
文件 2042 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AlterAccident.cs
文件 10759 2019-10-17 10:14 7p-co-net宿舍管理信息系统最终版完整源码-可二次开发\AlterAccident.Designer.cs
............此处省略333个文件信息
相关资源
- PID_AutoTune_v0.rar
- vspd7.2.308.zip
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
评论
共有 条评论