表格的一些二开小技巧

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-23浏览:2

表格的一些二开小技巧

表格的一些二开小技巧


【前提知识】:

1、C# BOS平台二次开发指导 【https://vip.kingdee.com/article/30048】;

2、Python简单插件指引如下图:

Python插件.webp



# 【python】单据交错行颜色设置表单插件(由于启用了颜色,在渲染性能上会有些微损耗)

def EntityRowClick(e):

    this.View.GetControl('FPOOrderEntry').SetCustomPropertyValue('AlternateRowBackColor', '#FFF0D0AF') 


# 【python】列表交错行颜色设置列表插件(由于启用了颜色,在渲染性能上会有些微损耗)

def EntityRowClick(e):

    if(e.Row==1):

        this.View.GetControl('FLIST').SetCustomPropertyValue('AlternateRowBackColor', '#FFF0D0AF')


// 【C#】 强制多列为简单列,去掉列头漏斗过滤功能。

    this.View.GetControl<EntryGrid>("FEntity").SetSimplizationColumns(new List<string>() { "FNAME", "FMODEL" }); 


// 【C#】定制单据体行高。

    this.View.GetControl<EntryGrid>("FENITTY").SetRowHeight(60);


// 【C#】方法获得的当前行索引。

    this.View.Model.GetEntryCurrentRowIndex("FEntity")


// 【C#】(GUI桌面有效)设置最大分页行数,但不要超过1万行,避免引发数据量过大的性能问题。

    var listControl = this.View.GetControl<EntryGrid>("FLIST");

    listControl.SetMaxPageRow(3000);


//设置单据体单元格的显示隐藏,掩码,Tooltips与指定Tooltips内容

// https://vip.kingdee.com/article/10180 

// https://vip.kingdee.com/article/42148 


//单据体快速录入的功能

// https://vip.kingdee.com/article/10179 

// https://vip.kingdee.com/article/42615 


//单据体列分页的两种模式说明

// https://vip.kingdee.com/article/10173 


//单据体轻模式提升渲染效率(泉州文松前端平台支持方案备忘)

// https://vip.kingdee.com/article/10172 


//使用PY实现树形单据体全展开或收起(请权衡性能和功能)

// https://vip.kingdee.com/article/22033 


//列表的三种过滤方式:过滤条件行(列头过滤菜单)

// https://vip.kingdee.com/article/15107 


//列表多选选择操作指引

// https://vip.kingdee.com/article/39788 


//关于CheckBox列表头的批量处理的建议

// https://vip.kingdee.com/article/39786 


//质量AQL表格

// https://vip.kingdee.com/article/39737 


//显示列表首行过滤行。

// 设置参数ListShowFilterRow  参考:https://vip.kingdee.com/article/146280 

// 编程参考:https://vip.kingdee.com/article/1322 


。。。

表格的一些二开小技巧

表格的一些二开小技巧【前提知识】:1、C# BOS平台二次开发指导 【https://vip.kingdee.com/article/30048】;2、Python简单插件指引如下...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息