You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.6 KiB
70 lines
1.6 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using QMFrameWork.WebUI.Attribute;
|
|
|
|
namespace QMAPP.Common.Web.Models
|
|
{
|
|
/// <summary>
|
|
/// 查询模板信息
|
|
/// 创建者:李炳海
|
|
/// 创建日期:2014.8.18
|
|
/// </summary>
|
|
[Serializable]
|
|
public class QueryTemplateModel
|
|
{
|
|
/// <summary>
|
|
/// 模板主键
|
|
/// </summary>
|
|
public string TEMPLATEID { get; set; }
|
|
|
|
/// <summary>
|
|
/// Model名称
|
|
/// </summary>
|
|
public string ModelName {get;set;}
|
|
|
|
/// <summary>
|
|
/// 分页尺寸
|
|
/// </summary>
|
|
public string PAGESIZE { get; set; }
|
|
|
|
/// <summary>
|
|
/// 查询条件
|
|
/// </summary>
|
|
public List<TemplateWhereModel> Wheres { get; set; }
|
|
|
|
/// <summary>
|
|
/// 表格列
|
|
/// </summary>
|
|
public List<DGColumn> GridColumns
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
public List<TemplateSortModel> Sorts { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取排序表达式
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public string GetSortExpression()
|
|
{
|
|
string expression = "";
|
|
|
|
foreach (TemplateSortModel sort in Sorts)
|
|
{
|
|
expression += "," + sort.COLUMNNAME + " " + sort.SORTMODE;
|
|
}
|
|
|
|
if (expression != "")
|
|
expression = expression.Substring(1);
|
|
|
|
return expression; ;
|
|
}
|
|
}
|
|
}
|