Esempio n. 1
0
 public void RegistSQL(Dictionary <string, ISqlMaker> dict)
 {
     dict["DtGreaterEqual"] = new DefaultSqlMaker("datediff('{p0}',{c}) <=0");
     dict["DtLessEqual"]    = new DefaultSqlMaker("datediff('{p0}',{c}) >=0");
     dict["DateRange"]      = new DateRangeSqlMaker('到', "datediff('{p0}',{c}) <=0", "datediff('{p0}',{c}) >=0");
     dict["MapChild"]       = new DefaultSqlMaker("{c} in (select {c} from {p1} where FIND_IN_SET({p2}, GetChild('{p3}','{p0}')))");
 }
Esempio n. 2
0
        public void RegistSQL(Dictionary<string, ISqlMaker> dict)
        {
            dict["DtGreaterEqual"] = new DefaultSqlMaker("datediff('{p0}',{c}) <=0");
            dict["DtLessEqual"] = new DefaultSqlMaker("datediff('{p0}',{c}) >=0");
            dict["DateRange"] = new DateRangeSqlMaker('到', "datediff('{p0}',{c}) <=0", "datediff('{p0}',{c}) >=0");
            dict["MapChild"] = new DefaultSqlMaker("{c} in (select {c} from {p1} where FIND_IN_SET({p2}, GetChild('{p3}','{p0}')))");

        }
Esempio n. 3
0
 public void RegistSQL(Dictionary<string, ISqlMaker> dict)
 {
     dict["DtGreaterEqual"] = new DefaultSqlMaker("datediff(day,'{p0}',{c}) >=0");
     dict["DtLessEqual"] = new DefaultSqlMaker("datediff(day,'{p0}',{c}) <=0");
     dict["DateRange"] = new DateRangeSqlMaker('到', "datediff(day,'{p0}',{c}) >=0", "datediff(day,'{p0}',{c}) <=0");
     dict["Child"] = new DefaultSqlMaker("{c} in (select ID from [dbo].[GetChild]('{p0}','{p1}'))");
     dict["MapChild"] = new DefaultSqlMaker("{c} in (select {c} from {p1} where {p2} in (select ID from [dbo].[GetChild]('{p3}','{p0}')))");
     dict["StartWithPY"] = new DefaultSqlMaker("{c} like '{p0}%' or [dbo].[fun_getPY]({c}) like N'{p0}%'");
 }
Esempio n. 4
0
 public void RegistSQL(Dictionary <string, ISqlMaker> dict)
 {
     dict["DtGreaterEqual"] = new DefaultSqlMaker("datediff(day,'{p0}',{c}) >=0");
     dict["DtLessEqual"]    = new DefaultSqlMaker("datediff(day,'{p0}',{c}) <=0");
     dict["DateRange"]      = new DateRangeSqlMaker('到', "datediff(day,'{p0}',{c}) >=0", "datediff(day,'{p0}',{c}) <=0");
     dict["Child"]          = new DefaultSqlMaker("{c} in (select ID from [dbo].[GetChild]('{p0}','{p1}'))");
     dict["MapChild"]       = new DefaultSqlMaker("{c} in (select {c} from {p1} where {p2} in (select ID from [dbo].[GetChild]('{p3}','{p0}')))");
     dict["StartWithPY"]    = new DefaultSqlMaker("{c} like '{p0}%' or [dbo].[fun_getPY]({c}) like N'{p0}%'");
 }