if($MAXD_T2>=$rq,$rq,
if(datedif($MAXD_T2,$rq,"D")=2,if(left(datedelta($rq,-2),7)=left($rq,7),datedelta($rq,-2),dateinmonth($rq,1)),
if(datedif($MAXD_T2,$rq,"D")=1,if(left(datedelta($rq,-1),7)=left($rq,7),datedelta($rq,-1),dateinmonth($rq,1))
))
)
没看懂呢
控件编辑后事件
_g().parameterCommit()