通用选择记录窗体
源码位置:CSFrameworkV6.Library.frmChoiceDataRow
版本:CSFrameworkV6
支持单选记录、多选记录。

使用方法
1、配置表格显示的列
C# 全选
//表格列配置
List<ColumnConfig> cols = [
new ColumnConfig { FieldName = nameof(tb_PO.PONO), FieldCaption = "采购单号", Width = 110 },
new ColumnConfig { FieldName = nameof(tb_PO.DocDate), FieldCaption = "单据日期", Width = 90 },
new ColumnConfig { FieldName = nameof(tb_POs.ProductCode), FieldCaption = "物料编码", Width = 100 },
new ColumnConfig { FieldName = nameof(tb_POs.Quantity), FieldCaption = "数量", Width = 80 },
new ColumnConfig { FieldName = nameof(tb_POs.Price), FieldCaption = "单价", Width = 80 },
new ColumnConfig { FieldName = nameof(tb_POs.Amount), FieldCaption = "金额", Width = 80 },
new ColumnConfig { FieldName = nameof(tb_PO.Remark), FieldCaption = "备注", Width = 300 },
];
2、获取表格数据源
C# 全选
//获取供应商的采购备注
var listSource = _BLL.GetRemarkHistory(txtSupplierCode.EditValue.ToStringEx(), row.ProductCode);
3、弹窗选择记录
C# 全选
//打开选择记录界面
var result = frmChoiceDataRow.Execute<res_tb_PO>(listSource, cols, false);
if (result.Count > 0)
{
row.Remark = result[0].Remark;
gvDetail.UpdateCurrentRow();
}
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网





