/// <summary> /// 生成查询语句的数据库 /// </summary> public void BulidHOperControl() { Sys_HOperControl = new SoftProjectAreaEntity { DBTSql = ProjectCache.GetQuerySql(TabViewName), DBOperType = 8, SelectSubType = 6, DBSelectResultType = 2, EqualQueryParam = "" }; }
public MyResponseBase QueryIndex() { var resp = new MyResponseBase(); if (PageQueryBase.RankInfo == null || PageQueryBase.RankInfo.Length == 0) { if (string.IsNullOrEmpty(Design_ModularOrFun.TSqlDefaultSort)) { PageQueryBase.RankInfo = "UpdateDate|0"; } else { var sorts = Design_ModularOrFun.TSqlDefaultSort.Split('|'); if (sorts.Length == 2) { PageQueryBase.RankInfo = sorts[0] + "|" + sorts[1]; } else { PageQueryBase.RankInfo = sorts[0] + "|1"; } } } SoftProjectAreaEntityDomain_Domain(); Sys_HOperControl = new SoftProjectAreaEntity { DBTSql = ProjectCache.GetQuerySql(TabViewName), DBOperType = 8, SelectSubType = 6, DBSelectResultType = 2, EqualQueryParam = "" }; if (Design_ModularOrFun.BCalCol == 1) { bCal = 1; ModularOrFunCode = Design_ModularOrFun.ModularOrFunCode; //bCal,ModularOrFunCode } //BulidPageQueryBase(); //BulidHOperControl(); resp = Execute(); resp.Querys = Querys; resp.Item = Item; return(resp); }