K3Cloud 选择基础资料允许显示未审核数据
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.ComponentModel; 6 using Kingdee.BOS; 7 using Kingdee.BOS.Util; 8 using Kingdee.BOS.Core; 9 using Kingdee.BOS.Core.DynamicForm; 10 using Kingdee.BOS.Core.DynamicForm.PlugIn; 11 using Kingdee.BOS.Core.DynamicForm.PlugIn.Args; 12 using Kingdee.BOS.Core.Bill.PlugIn; 13 using Kingdee.BOS.Core.List; 14 namespace JDSample.FormPlugIn.Bill 15 { 16 [Description("F8选择基础资料时,也显示出未审核的数据")] 17 public class S151229ShowAllBDEdit : AbstractBillPlugIn 18 { 19 public override void BeforeF7Select(BeforeF7SelectEventArgs e) 20 { 21 if (e.BaseDataField.Key.EqualsIgnoreCase("F_JD_BaseData1")) 22 {// 当前字段为需控制的xxx字段 23 // 修改F8列表显示参数:不仅仅显示已审核单据 24 ((ListShowParameter)e.DynamicFormShowParameter).IsShowApproved = false; 25 } 26 } 27 } 28 }