【二开插件】移动单据列表如何进行行格式化
```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...
点击下载文档
本文2024-09-23 04:15:10发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164106.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章