应用场景:
预付款单中 只有供应商编号,没有供应商全称。想序列化时带出供应商全称字段。
procedure TAcptk.OnAfterLoad; var ASupplier: TSupplier; //定义实体类 begin ASupplier := TMVCActiveRecord.GetOneByWhere<TSupplier>('MA001 = ?', [Tk004]); try fSupplierName:= ASupplier.Ma003; finally ASupplier.Free; end; end;
标签:end,带出,实体,ASupplier,全称,某个,供应商 From: https://www.cnblogs.com/redhat588/p/16951946.html