61 lines
1.2 KiB
C#
61 lines
1.2 KiB
C#
|
|
|||
|
/// <summary>
|
|||
|
///INTERFACE CLASS FOR TABLE t_PublicNews
|
|||
|
///By wm with codesmith.
|
|||
|
///on 04/18/2017
|
|||
|
/// </summary>
|
|||
|
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Data;
|
|||
|
|
|||
|
namespace DeiNiu.wms.Data.Model
|
|||
|
{
|
|||
|
[Serializable]
|
|||
|
public class PublicNews : PublicNews_base
|
|||
|
{
|
|||
|
public PublicNews()
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
public PublicNews(int id): base(id)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
protected override void getImp()
|
|||
|
{
|
|||
|
model_imp = new PublicNews_Imp();
|
|||
|
|
|||
|
}
|
|||
|
//begin cust db operation, query, excute sql etc.
|
|||
|
public DataTable QueryByAuth(int auth)
|
|||
|
{
|
|||
|
cmdParameters[0] = auth;
|
|||
|
return CustQuery(100).Tables[0];
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
/// 返回顶级信息分类
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public DataTable QueryTopCatagory()
|
|||
|
{
|
|||
|
|
|||
|
return CustQuery(200).Tables[0];
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
/// 跑马灯
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public DataTable QueryMarqueen()
|
|||
|
{
|
|||
|
|
|||
|
return CustQuery(300).Tables[0];
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|