移动示例代码 -- 移动单据列表、移动单据体(移动列表)多选原创
18人赞赏了该文章
2664次浏览
编辑于2020年12月01日 19:53:17
一、移动单据列表
1、启用多选
1)移动单据列表中,点击某个底部菜单启用多选
public override void ButtonClick(ButtonClickEventArgs e) { if(e.Key == "FBatch") //点击批量处理按钮 { this.View.GetControl<MobileListViewControl>("FList").SetCustomPropertyValue("MobileListIsShowCheckBox", true); this.View.UpdateView("FList"); } }
2)弹出是启用多选
MobileListShowParameter paramDy = new MobileListShowParameter(); paramDy.FormId = "MOB_MyBillList"; //移动单据唯一标识 paramDy.CustomParams.Add("IsMultiSelect", "true"); //是否多选 this.View.ShowForm(paramDy);
2、移动列表选中行
var selectedRows = this.View.SelectedRowsInfo;
二、移动单据体(移动列表)
1、启用多选
2、获取勾选分录行
var selRows = this.View.GetControl<MobileListViewControl>("FMyEntity").GetSelectedRows();
FMyEntity 为单据体(移动列表)的唯一标识
3、设置勾选分录行
this.View.GetControl<MobileListViewControl>("FMyEntity").SetSelectRows(new int[] { selRow }); this.View.UpdateView("FHandlerEntity");
FMyEntity 为单据体(移动列表)的唯一标识
推荐阅读