Serg Posted February 11, 2020 Share Posted February 11, 2020 Добрый день! После второго вызова едут все ширины строки Summary procedure TMainForm.UniDBGrid5ColumnSummaryResult(Column: TUniDBGridColumn; GroupFieldValue: Variant; Attribs: TUniCellAttribs; var Result: string); var I : Integer; F : Real; begin if SameText(Column.FieldName, 'REGION') then begin Result:='Всего:'; Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'PANELS') then begin I:=Column.AuxValue; Result:=Format('%d', ); Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'NETWORK') then begin Result:=''; Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'COUNT_OBJ') then begin I:=Column.AuxValue; Result:=Format('%d', ); Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'U1') then begin F:=Column.AuxValue; Result:=FormatCurr('0,0.00 ', F) + FmtSettings.CurrencyString; Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'U6') then begin F:=Column.AuxValue; Result:=FormatCurr('0,0.00 ', F) + FmtSettings.CurrencyString; Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'U7') then begin F:=Column.AuxValue; Result:=FormatCurr('0,0.00 ', F) + FmtSettings.CurrencyString; Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'U8') then begin F:=Column.AuxValue; Result:=FormatCurr('0,0.00 ', F) + FmtSettings.CurrencyString; Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'AUD_DAY') then begin F:=Column.AuxValue; Result:=FormatCurr('0,0.00 ', F); Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end else if SameText(Column.FieldName, 'SUM_CPT') then begin F:=Column.AuxValue; if UniMainModule.CUBE.RecordCount>0 then Result:=FormatCurr('0,0.00 ', F) else Result:=FormatCurr('0,0.00 ', 0); Attribs.Font.Style:=[fsBold]; Attribs.Font.Color:=clRed; end; Column.AuxValue:=NULL; end; В чем моя ошибка? Спасибо! Quote Link to comment Share on other sites More sharing options...
Serg Posted February 11, 2020 Author Share Posted February 11, 2020 Если комментирую этот код - все в порядке Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2020 Share Posted February 11, 2020 3 minutes ago, Serg said: После второго вызова едут все ширины строки Summary Здравствуйте, Можете уточнить? Скрины? Quote Link to comment Share on other sites More sharing options...
Serg Posted February 11, 2020 Author Share Posted February 11, 2020 Вот Quote Link to comment Share on other sites More sharing options...
Serg Posted February 11, 2020 Author Share Posted February 11, 2020 Второй скрин после второго построения таблицы Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 11, 2020 Share Posted February 11, 2020 Извините, что возможно каждый раз спрашиваю про тестовый случай. Было бы лучше, если Вы прикрепите тестовый случай. Quote Link to comment Share on other sites More sharing options...
Serg Posted February 11, 2020 Author Share Posted February 11, 2020 постараюсь Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.