📄 stu.cs
字号:
using System;
using System.Data;
using System.Data.SqlClient;
namespace SbElect.Dal
{
/// <summary>
/// Stu 的摘要说明。
/// </summary>
public class Stu
{
public Stu()
{}
#region 信息显示
public DataSet StuView(int State,int UserID,int Type)
{
SqlHelp.SqlHelp Help=new SbElect.SqlHelp.SqlHelp("sp_Stu_View");
Help.Add("@Type",SqlDbType.Int,Type);
Help.Add("@State",SqlDbType.Int,State);
Help.Add("@UserID",SqlDbType.Int,UserID);
DataSet ds=Help.RunProcForDataSet();
return ds;
}
#endregion
#region 学生信息添加
public void AddView(int StuNumble,string StuName ,string StuSex,string StuYx,string StuZy,string StuJb)
{
SqlHelp.SqlHelp Help=new SbElect.SqlHelp.SqlHelp("sp_Stu_Add");
Help.Add("@StuNumble",SqlDbType.Int,StuNumble);
Help.Add("@StuName",SqlDbType.VarChar,StuName);
Help.Add("@StuSex",SqlDbType.VarChar,StuSex);
Help.Add("@StuYx",SqlDbType.VarChar,StuYx);
Help.Add("@StuZy",SqlDbType.VarChar,StuZy);
Help.Add("@StuJb",SqlDbType.VarChar,StuJb);
Help.RunProcForNone();
}
#endregion
#region 密码修改
public void Stu_XG(int UserID,string UserPwd_New,int Type)
{
SqlHelp.SqlHelp Help=new SbElect.SqlHelp.SqlHelp("sp_Stu_XGPwd");
Help.Add("@UserID",SqlDbType.Int,UserID);
Help.Add("@Type",SqlDbType.Int,Type);
Help.Add("@UserPwd_New",SqlDbType.VarChar,UserPwd_New);
Help.RunProcForNone();
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -