📄 resivemodule.cs
字号:
using System;
using System.Data;
using System.Data.SqlClient;
namespace qminoa.DA
{
public class ResiveModule
{
private SqlDataAdapter csCommand;
private SqlConnection conn;
public ResiveModule()
{
csCommand = new SqlDataAdapter();
csCommand.SelectCommand =new SqlCommand();
conn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"]);
}
public DataSet FillPerson(int DepartID)
{
SqlCommand command = csCommand.SelectCommand;
command.CommandText = "Msg_GetEmpByDep";
command.CommandType = CommandType.StoredProcedure;
SqlParameter para = new SqlParameter("@DepartID",SqlDbType.Int);
para.Value = DepartID;
command.Parameters.Add(para);
command.Connection = conn;
DataSet data = new DataSet();
csCommand.Fill(data,"person");
return data;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -