移动列表行格式

行格式化可以设置指定行、指定控件的属性(如:字体颜色、背景色、背景图片、可见性、高、宽等),具体支持哪些属性的设置,请查看MobileFormatCondition类。
1、移动单据列表行格式
[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" });
}
}
}2、移动单据体(移动列表)行格式化
[System.ComponentModel.Description("查看影像操作列表-表单插件")]
public class ASCImageOperationEdit : AbstractMobilePlugin
{
public override void AfterBindData(EventArgs e)
{
base.AfterBindData(e);
var ascImageDict = this.View.ParentFormView.Session["ASCImageDict"] as Dictionary;
if (!ascImageDict.IsEmpty())
{
List formatCondition = new List();
for (int i = 0; i < ascImageDict.Co移动列表行格式
行格式化可以设置指定行、指定控件的属性(如:字体颜色、背景色、背景图片、可见性、高、宽等),具体支持哪些属性的设置,请查看MobileFo...
点击下载文档文档为doc格式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
上一篇
已经是第一篇



