校验器中的key值是表体标识,在下面Validate方法中可以获得表体想要的信息,如果同时想获得表头一个字段“FDOCUMENTSTATUS”的信息应该怎么办
public override void OnAddValidators(AddValidatorsEventArgs e)
{
base.OnAddValidators(e);
AddExpenseBudgetAuditValidator validator = new AddExpenseBudgetAuditValidator();
validator.AlwaysValidate = true;
validator.EntityKey = "FEntity";
e.Validators.Add(validator);
}
class AddExpenseBudgetAuditValidator : AbstractValidator
{
public override void Validate(Kingdee.BOS.Core.ExtendedDataEntity[] dataEntities, ValidateContext validateContext, Kingdee.BOS.Context ctx)
{
string strEntryID = string.Empty, strActQty = string.Empty;
Dictionary
推荐阅读