资源简介
宿舍管理系统(源码 数据库脚本)
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace DMY
{
public partial class bounsUpdate : Form
{
public bounsUpdate()
{
InitializeComponent();
}
public string bounsid;
public Fmreward fi;
private void btupdate_Click(object sender EventArgs e)
{
if (tbDormname.Text == ““)
{
MessageBox.Show(“宿舍不能为空!“);
return;
}
string sqldorm = string.Format(“select DormId from DormDetail where DormNo=‘{0}‘ and FloorID={1}“ tbDormname.Text Convert.ToInt32(((ComboxItem)cbDormname.SelectedItem).Value));
DataTable dt = DBHelper.query(sqldorm);
if (dt.Rows.Count < 1)
{
MessageBox.Show(“没有找到此宿舍!“);
return;
}
string sql = string.Format(“update Bonus set Fildid={0}Rewadwayid={1}DormID={2}BoDate=‘{3}‘ where BonusID={4}“ Convert.ToInt32(((ComboxItem)cbpunishside.SelectedItem).Value) Convert.ToInt32(((ComboxItem)cbpunishdway.SelectedItem).Value) Convert.ToInt32(dt.Rows[0][“dormid“]) dTPpun.Value.ToShortDateString()Convert.ToInt32(bounsid));
int countt = DBHelper.update(sql);
if (countt > 0)
{
MessageBox.Show(“修改成功!“);
fi.query();
this.Close();
}
else
{
MessageBox.Show(“失败!“);
fi.query();
this.Close();
}
}
private void bounsUpdate_Shown(object sender EventArgs e)
{
DBHelper.comboboxitem(cbpunishside “select Fieldid 编号Field 方面 from Field“ “方面“ “编号“);
DBHelper.comboboxitem(cbDormname “select FloorID 编号BuidingName 宿舍楼名 from Floors“ “宿舍楼名“ “编号“);
DBHelper.comboboxitem(cbpunishdway “select rewadid 编号way 方式 from RewadWay“ “方式“ “编号“);
string sql = string.Format(@“ select BonusID 编号ff.BuidingName 宿舍楼名 dt.DormNo 宿舍 Field 方面pw.way 方式p.BoDate 时间
from Bonus pRewadWay pwField fDormDetail dt Floors ff where
p.Fildid=f.Fieldid and p.Rewadwayid=pw.rewadid
and dt.DormID = p.DormID and ff.FloorID=dt.floorID and BonusID ={0} order by BoDate desc “ Convert.ToInt32(bounsid));
DataTable dt = DBHelper.query(sql);
for (int i = 0; i < cbDormname.Items.Count; i++)
{
if (cbDormname.Items[i].ToString() == dt.Rows[0][“宿舍楼名“].ToString())
{
cbDormname.SelectedIndex = i;
}
}
for (int j = 0; j < cbpunishdway.Items.Count; j++)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-07-01 11:35 .vs\
目录 0 2019-07-01 11:35 .vs\DMY\
目录 0 2019-07-01 11:35 .vs\DMY\v15\
文件 66560 2021-05-21 16:44 .vs\DMY\v15\.suo
目录 0 2019-07-01 11:35 .vs\DMY\v15\Server\
目录 0 2019-07-01 11:35 .vs\DMY\v15\Server\sqlite3\
文件 0 2019-05-09 10:30 .vs\DMY\v15\Server\sqlite3\db.lock
文件 4096 2019-05-09 10:30 .vs\DMY\v15\Server\sqlite3\storage.ide
文件 32768 2021-05-21 16:36 .vs\DMY\v15\Server\sqlite3\storage.ide-shm
文件 2509112 2021-05-21 16:43 .vs\DMY\v15\Server\sqlite3\storage.ide-wal
文件 939008 2016-08-31 22:47 DMY.exe
文件 899 2015-12-24 15:27 DMY.sln
文件 80896 2019-06-25 11:13 DMY.v11.suo
目录 0 2021-05-21 16:43 DMY\
文件 187 2015-12-24 15:27 DMY\App.config
目录 0 2019-07-01 11:35 DMY\bin\
目录 0 2019-07-01 11:35 DMY\bin\Debug\
文件 939520 2019-06-24 19:44 DMY\bin\Debug\DMY.exe
文件 187 2015-12-24 15:27 DMY\bin\Debug\DMY.exe.config
文件 962048 2019-06-24 19:44 DMY\bin\Debug\DMY.pdb
文件 41 2021-05-21 16:43 DMY\bin\Debug\login.txt
目录 0 2019-05-09 10:24 DMY\bin\Release\
文件 3859 2020-01-05 15:21 DMY\bounsUpdate.cs
文件 9820 2020-01-05 15:21 DMY\bounsUpdate.Designer.cs
文件 5817 2016-01-28 00:13 DMY\bounsUpdate.resx
文件 2438 2020-01-05 15:21 DMY\btdif.cs
文件 19494 2020-01-05 15:21 DMY\btdif.Designer.cs
文件 5817 2016-01-28 00:13 DMY\btdif.resx
文件 4878 2020-01-05 15:21 DMY\bunsAdd.cs
文件 13017 2020-01-05 15:21 DMY\bunsAdd.Designer.cs
文件 5817 2016-01-28 00:13 DMY\bunsAdd.resx
............此处省略233个文件信息
- 上一篇:萤石云摄像头自动截图以及FTP上传
- 下一篇:C#图书管理系统(源码+数据库)
相关资源
- C#图书管理系统(源码+数据库)
- 开源版C#商场超市收银商品管理财务管
- 企业OA管理系统
- 门禁管理系统源码(设备设置、机构
- VS2019图书管理系统-C#
- 学生宿舍管理系统(毕业设计 C#实现
- C# 网吧管理系统源码(附数据库脚本
- 网吧管理系统(包附数据库)
- 班级考勤管理系统(源码+数据库)
- 书店销售管理系统(源码+数据库)
- 基于easy-mvc的后台管理系统源码 v1.1
- 门诊收费管理系统的设计与实现(数
- 支票管理系统源码(附数据库)
- 资产管理系统源码(附数据库)毕业
- VIN固定资产管理系统源码
- C# 体验套餐管理系统源码
- 企业出差休假管理系统(有经费审核
- C# Access版资产管理系统源代码
- ASP.NET资产管理系统源码(附数据库)
- 酒店电子管理系统winform源代码(附数
- c#茶楼管理系统源码(ACCESS )
- C# 计算机配置管理系统
- C# 超市管理系统源码(附数据库)
- C# 影院电影售票系统
- C# 学生选课管理系统(源码+数据库)
- C#进销存管理系统(Access数据库)英文
- 研究生信息管理系统(附数据库)
- 学生管理系统(源码+access数据库)
- 小区物业管理系统源码 asp.net物业管理
- C#图书管理系统(源代码+数据库+系统
评论
共有 条评论