📄 tabs.cs
字号:
using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace qminoa.DA
{
/// <summary>
/// Class1 的摘要说明。
/// </summary>
public class Tabs
{
private SqlDataAdapter Command;
public Tabs()
{
String strCon=ConfigurationSettings.AppSettings["ConnectionString"];
Command = new SqlDataAdapter();
Command.SelectCommand = new SqlCommand();
Command.SelectCommand.Connection = new SqlConnection(strCon);
}
public DataTable GetTab(string tabid)
{
DataSet ds_Tabs = new DataSet();
SqlCommand gettab = Command.SelectCommand;
gettab.CommandText ="GetsysTab";
gettab.CommandType = CommandType.StoredProcedure;
SqlParameter para_tabid = new SqlParameter("@tabid",SqlDbType.VarChar,20);
para_tabid.Value = tabid;
gettab.Parameters.Add(para_tabid);
Command.Fill(ds_Tabs,"thisTab");
return ds_Tabs.Tables["thisTab"];
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -