?? 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 + -