sourceSql {select sourceid,sourcename from orgrpt_source where flg = 1 and channelid in ('24','25','26')}
channelSql {select channelid,channelname from orgrpt_channel where flg = 1 and channelid in ('24','25','26')}
infocntSql {select count(*) from orgrpt_reportinfo rep where rep.channelid in ( '24','25','26') and to_char(rep.s_date,'YYYYMMDDHH24MISS') <= to_char(sysdate,'YYYYMMDDHH24MISS') and (rep.e_date is null or to_char(rep.e_date,'YYYYMMDDHH24MISS') > to_char(sysdate,'YYYYMMDDHH24MISS')) and rep.flg = 1}
infolistSql {select rep.channelid,rep.reportid,rep.sourceid,rep.title,to_char(rep.s_date,'YYYYMMDDHH24MI') s_date,to_char(rep.e_date,'YYYYMMDDHH24MI') e_date,rep.info,rep.top_imgfile,rep.memo from orgrpt_reportinfo rep where rep.channelid in ('24','25','26') and to_char(rep.s_date,'YYYYMMDDHH24MISS') <= to_char(sysdate,'YYYYMMDDHH24MISS') and (rep.e_date is null or to_char(rep.e_date,'YYYYMMDDHH24MISS') > to_char(sysdate,'YYYYMMDDHH24MISS')) and rep.flg = 1 order by s_date desc,reportid desc}
setfirst {1}
setlast {2}
tSql {select tag from orgrpt_reporttag where reportid = '1155' order by sort}