资源简介
通过不同身份用户(管理员、老师和学生)的登录,实现对信息的增删改查!
代码片段和文件信息
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 TeacherManageBLL;
using System.Text.Regularexpressions;
namespace TeacherManage
{
public partial class AddClassMessage : Form
{
public AddClassMessage()
{
InitializeComponent();
}
///
/// 无边框的窗体鼠标拖动移动位置
///
///
protected override void WndProc(ref Message m)
{
if (m.Msg == 163 && this.ClientRectangle.Contains(this.PointToClient(new Point(m.LParam.ToInt32()))) && m.WParam.ToInt32() == 2)
m.WParam = (IntPtr)1;
base.WndProc(ref m);
if (m.Msg == 132 && m.Result.ToInt32() == 1)
m.Result = (IntPtr)2;
}
///
/// 最小化按钮事件
///
///
///
private void MinBox_Click(object sender EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
///
/// 关闭按钮事件
///
///
///
private void MaxBox_Click(object sender EventArgs e)
{
this.Close();
}
///
/// 取消按钮事件
///
///
///
private void btoClose_Click(object sender EventArgs e)
{
this.Close();
}
///
/// 窗体的Load初始化加载事件
///
///
///
private void AddClassMessage_Load(object sender EventArgs e)
{
this.Opacity = 0.8;
}
///
/// 确定按纽事件
///
///
///
private void btoSure_Click(object sender EventArgs e)
{
if (CheckInput())
{
string cId = textcD.Text.Trim();
string tId = texttD.Text.Trim();
string sDate = textsDate.Text.Trim();
int sCount = Convert.ToInt32(textsCount.Text.Trim());
string eDate = texteDate.Text.Trim();
string memo = textMemo.Text.Trim();
try
{
if (classInfoManage.AddGetclassInfo(cId tId sDate sCount eDate memo) > 0)
{
DialogResult dr = MessageBox.Show(“添加成功!是否继续添加?“ “提示信息“ MessageBoxButtons.YesNo MessageBoxIcon.Warning);
if (dr == DialogResult.No)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3145728 2010-12-01 13:44 数据库\teacher.mdf
文件 1048576 2010-12-01 13:44 数据库\teacher_log.ldf
文件 6069 2011-10-16 22:56 TeacherManage\TeacherManage\AddClassMessage.cs
文件 11878 2011-10-16 22:56 TeacherManage\TeacherManage\AddClassMessage.Designer.cs
文件 12663 2011-10-16 22:56 TeacherManage\TeacherManage\AddClassMessage.resx
文件 4145 2011-10-16 17:34 TeacherManage\TeacherManage\AddCourseMessage.cs
文件 8934 2011-10-16 16:44 TeacherManage\TeacherManage\AddCourseMessage.Designer.cs
文件 57468 2011-10-16 16:44 TeacherManage\TeacherManage\AddCourseMessage.resx
文件 5130 2011-10-17 13:35 TeacherManage\TeacherManage\AddExamCourse.cs
文件 10032 2011-10-17 13:35 TeacherManage\TeacherManage\AddExamCourse.Designer.cs
文件 563434 2011-10-17 13:35 TeacherManage\TeacherManage\AddExamCourse.resx
文件 6347 2011-10-17 13:42 TeacherManage\TeacherManage\AddStuManage.cs
文件 19900 2011-10-16 20:03 TeacherManage\TeacherManage\AddStuManage.Designer.cs
文件 13432 2011-10-16 20:03 TeacherManage\TeacherManage\AddStuManage.resx
文件 4193 2011-10-13 19:22 TeacherManage\TeacherManage\AddTeacherMessage.cs
文件 10681 2011-10-13 19:22 TeacherManage\TeacherManage\AddTeacherMessage.Designer.cs
文件 11330 2011-10-13 19:22 TeacherManage\TeacherManage\AddTeacherMessage.resx
文件 9758 2011-10-14 23:36 TeacherManage\TeacherManage\AdminManage.cs
文件 12313 2011-10-14 21:09 TeacherManage\TeacherManage\AdminManage.Designer.cs
文件 159953 2011-10-14 21:09 TeacherManage\TeacherManage\AdminManage.resx
文件 50094 2011-10-17 13:52 TeacherManage\TeacherManage\bin\Debug\CHM帮助.chm
..A..H. 353836 2009-06-11 05:22 TeacherManage\TeacherManage\bin\Debug\ClickOpen.wav
..A..H. 178220 2009-06-11 05:22 TeacherManage\TeacherManage\bin\Debug\MouseOver.wav
文件 2331136 2011-10-17 13:47 TeacherManage\TeacherManage\bin\Debug\TeacherManage.exe
文件 235008 2011-10-17 13:47 TeacherManage\TeacherManage\bin\Debug\TeacherManage.pdb
文件 11600 2011-10-17 13:54 TeacherManage\TeacherManage\bin\Debug\TeacherManage.vshost.exe
文件 490 2010-03-17 22:39 TeacherManage\TeacherManage\bin\Debug\TeacherManage.vshost.exe.manifest
文件 7680 2011-10-17 13:47 TeacherManage\TeacherManage\bin\Debug\TeacherManageBLL.dll
文件 30208 2011-10-17 13:47 TeacherManage\TeacherManage\bin\Debug\TeacherManageBLL.pdb
文件 20480 2011-10-17 13:47 TeacherManage\TeacherManage\bin\Debug\TeacherManageDAL.dll
............此处省略182个文件信息
评论
共有 条评论