插件调用列表选择界面ListSelBillShowParameter问题
金蝶云社区-Hope_wp
Hope_wp
1人赞赏了该文章 3,001次浏览 未经作者许可,禁止转载编辑于2014年10月28日 11:49:37

问题:如何在ListSelBillShowParameter调用的列表选择界面中自定义要显示的字段啊,需要BOS配置,还是插件里定义参数呢,求指教啊插件代码如下:
[code]ListSelBillShowParameter lsbsp = new ListSelBillShowParameter()
{
FormId = "YLD_EAM_MaintainPlan",
ParentPageId = this.View.PageId,
IsLookUp = true,
MultiSelect = true,
IsShowApproved = true
};
lsbsp.ListFilterParameter.SelectFields = new List()
{
"FBillNo",
"F_YL_PrenventTypeID",
"F_YL_PeriodicType",
"F_YL_EquipmentID",
"F_YLD_BaseProperty",
"F_YL_ScheduleStartDate",
"F_YL_LastRrpDate",
"F_YL_Source",
"F_YLD_SourceBillNo",
"F_YL_CalendarInterval",
"F_YL_DateUnit",
"F_YL_AverageRunTime"
};
if (!lsbsp.ListFilterParameter.Filter.IsNullOrEmptyOrWhiteSpace())
{
lsbsp.ListFilterParameter.Filter += " AND ";
}
lsbsp.ListFilterParameter.Filter +=
"F_YL_EXECUTED='1' AND F_YL_SYSCLOSESTATUS='B' AND F_YL_HUMANCLOSESTATUS='B'";
if (!plansourcebillno.IsNullOrEmptyOrWhiteSpace())
lsbsp.ListFilterParameter.Filter += string.Format(" AND F_YLD_SOURCEBILLNO<>'{0}'",
plansourcebillno);
this.View.ShowForm(lsbsp, (result =>
{[/code]