在会计凭证录入(ACTVoucherFrm)的主表列表中,根据凭证状态直观显示不同背景色:
BlueWhaleERPSources/ACT/BlueWhale_Std_ACT_Voucher/ACTVoucherFrm.pasViewMasterCustomDrawCell 事件处理过程。AfterCreate 中绑定主表 OnCustomDrawCell 事件: ViewMaster.OnCustomDrawCell := ViewMasterCustomDrawCell;
FormClose 中释放绑定: ViewMaster.OnCustomDrawCell := nil;
ViewMasterCustomDrawCell 实现:TA020(过账码)和 TA010(审核码)。TA020 = 'Y' 时设置 ACanvas.Brush.Color := clSilver。TA010 = 'Y' 时设置 ACanvas.Brush.Color := $00E0F0E0(淡绿色)。ViewDetailCustomDrawCell(金额列自定义绘制)逻辑。