📄 positon.cs
字号:
using System;
using System.Data;
using Socut.Data;
namespace BLL
{
/// <summary>
/// 产品信息分类
/// </summary>
public class positon
{
protected CData myData = new CData();
protected DataSet ds = new DataSet();
protected user us=new user();
/// <summary>
/// 读取分类匹配信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public string get_sort(string id)
{
string msg="";
string sql = "select top 1 text from THESORT where id="+Convert.ToInt32(id);
ds = myData.GetDataSet(sql, 0, 0, "THESORT");
if(ds!=null && ds.Tables["THESORT"].Rows.Count>0)
msg=ds.Tables["THESORT"].Rows[0][0].ToString();
return msg;
}
public string get_css(string a)
{
if(a=="1")
a="buttony";
else
a="buttonn";
return a;
}
public positon()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -