二开案例-自定义基础资料过滤案例
自定义基础资料请参考:https://vip.kingdee.com/article/44302
自定义基础资料根据前面单据输入的字段进行过滤,挂载示例插件:
using Kingdee.BOS.Mobile.Metadata.ControlDataEntity;using Kingdee.BOS.Mobile.PlugIn;using System;using System.Collections.Generic;using System.ComponentModel;using System.Linq;using System.Text;using System.Threading.Tasks;using Kingdee.BOS.Util;using Kingdee.BOS.Mobile.PlugIn.ControlModel;using Kingdee.BOS.Core.DynamicForm;using Kingdee.BOS.JSON;using Kingdee.BOS.Mobile.PlugIn.Args;using Kingdee.BOS.Core.List.PlugIn.Args;namespace Kingdee.BOS.Mobile.FormPlugIns{ [Description("移动单据列表插件测试插件")] public class DemoMobileList : AbstractMobileListPlugin { public override void PrepareFilterParameter(FilterArgs e) { string name = this.View.ParentFormView.Model.GetValue("F_MOB_Text").ToString(); e.AppendQueryFilter(" (FName like @Keyword ) ");//来源单据对应的字段标识 var sqlList = new List<SqlParam>(); sqlList.Add(new SqlParam("@Keyword", KDDbType.String, string.Format("%{0}%", name))); e.SqlParams.AddRange(sqlList); base.PrepareFilterParameter(e); } } }
测试效果图:
二开案例-自定义基础资料过滤案例
自定义基础资料请参考:https://vip.kingdee.com/article/44302自定义基础资料根据前面单据输入的字段进行过滤,挂载示例插件:using Kingd...
点击下载文档
本文2024-09-23 04:15:20发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164128.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章