【二开插件】移动单据列表如何进行行格式化

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

【二开插件】移动单据列表如何进行行格式化

```csharp [Description("销售业务圈改变单据状态颜色插件")] public class TestSaleBusiness:AbstractMobileListPlugin { public override void OnFormatRowConditions(Core.List.PlugIn.Args.ListFormatConditionArgs args) { base.OnFormatRowConditions(args); DynamicObject obj = ((DynamicObjectDataRow)args.DataRow).DynamicObject; if (obj["FDOCUMENTSTATUS"].ToString() == "C") { //设置单据状态颜色,以及布局背景图片 args.FormatConditions.Add(new MobileFormatCondition() { Key = "FMobileBillStatus", ForeColor = "255,255,0,0" }); args.FormatConditions.Add(new MobileFormatCondition() { Key = "FFlowLayout111", ImageKey = "YesBtn.webp" }); } else { //设置单据状态颜色,以及布局背景图片 args.FormatConditions.Add(new MobileFormatCondition() { Key = "FMobileBillStatus", ForeColor = "255,32,167,0" }); args.FormatConditions.Add(new MobileFormatCondition() { Key = "FFlowLayout111", ImageKey = "NoBtn.webp" }); } } } ```

【二开插件】移动单据列表如何进行行格式化

```csharp[Description("销售业务圈改变单据状态颜色插件")]public class TestSaleBusiness:AbstractMobileListPlugin{ public o...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息