|
@@ -280,7 +280,9 @@ procedure TZJJLFrame.zgDetailInfoGetCellText(Sender: TObject;
|
|
|
Rec: TsdDataRecord;
|
|
|
begin
|
|
|
Rec := saZJJL.DataView.Current;
|
|
|
- if Rec.ValueByName('Type').AsInteger = Integer(ztFx) then
|
|
|
+ if not Assigned(Rec) then
|
|
|
+ Result := Format(RowFormats[riCurGatherMeasure], ['', ''])
|
|
|
+ else if Rec.ValueByName('Type').AsInteger = Integer(ztFx) then
|
|
|
Result := Format(RowFormats[riCurGatherMeasure], ['½ð¶î', GetFloatStr(FZJJLData.GetZJJLCalcData(Rec, 'GatherTotalPrice'))])
|
|
|
else
|
|
|
Result := Format(RowFormats[riCurGatherMeasure], ['ÊýÁ¿', GetFloatStr(FZJJLData.GetZJJLCalcData(Rec, 'GatherQuantity'))]);
|