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

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

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

```csharp [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.Count; i++) { int rowIndex = this.Model.GetEntryRowCount("FMobileListViewEntity"); this.Model.CreateNewEntryRow("FMobileListViewEntity"); formatCondition.Add(new MobileFormatCondition() {Key = "FViewImage",Value = ascImageDict.Values.ElementAt(i).Get("Name").ToString(),Row = rowIndex + 1 }); if (i % 2 == 0) { formatCondition.Add(new MobileFormatCondition() { Key = "FStatus", ForeColor = "255,81,186,255", Row = rowIndex + 1 }); } else { formatCondition.Add(new MobileFormatCondition() { Key = "FStatus", ForeColor = "255,32,167,0", Row = i + 1 }); } } this.View.GetControl<MobileListViewControl>("FMobileListViewEntity").setFormat(formatCondition ); this.View.UpdateView("FMobileListViewEntity"); } } } ```

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

```csharp[System.ComponentModel.Description("查看影像操作列表-表单插件")]public class ASCImageOperationEdit : AbstractMobilePl...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息