using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using QMFrameWork.WebUI.Attribute;
namespace QMAPP.Common.Web.Models
{
///
/// 查询模板信息
/// 创建者:李炳海
/// 创建日期:2014.8.18
///
[Serializable]
public class QueryTemplateModel
{
///
/// 模板主键
///
public string TEMPLATEID { get; set; }
///
/// Model名称
///
public string ModelName {get;set;}
///
/// 分页尺寸
///
public string PAGESIZE { get; set; }
///
/// 查询条件
///
public List Wheres { get; set; }
///
/// 表格列
///
public List GridColumns
{
get;
set;
}
///
/// 排序
///
public List Sorts { get; set; }
///
/// 获取排序表达式
///
///
public string GetSortExpression()
{
string expression = "";
foreach (TemplateSortModel sort in Sorts)
{
expression += "," + sort.COLUMNNAME + " " + sort.SORTMODE;
}
if (expression != "")
expression = expression.Substring(1);
return expression; ;
}
}
}