[HotUpdate] /// <sumnary>/// 关联方往来对账表过源框插件 ///</summary> [Description("客户对账表过滤框插件")] public class InnerCheckFilter : AbstractCommonFilterPlugIn { public override void BeforeBindData(EventArgs e) { base.BeforeBindData(e); SQLReportFilterModel sqlModel = this.Model as SQLReportFilterModel; if (sqlModel==null) { return; } var sqlfilterFlds = sqlModel.SQLFilterObject.FilterFieldList.FirstOrDefault(x=>x.KeyWord== "@sdate@"); if (sqlfilterFlds!=null) { sqlfilterFlds.DefaultValue= DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"); } } }
标签:插件,超始,SQLReportFilterModel,sqlfilterFlds,SQL,账表,sqlModel From: https://www.cnblogs.com/superstar/p/17594356.html