void CReportConditionDlg::InitializeReport() { Report_.ShowHeader(FALSE); Report_.AllowEdit(TRUE);
Report_.SelectionEnable(FALSE); Report_.FocusSubItems(TRUE); Report_.GetToolTipContext()->SetStyle(xtpToolTipResource);
Report_.GetPaintManager()->m_bUseAlternativeBackground=TRUE; Report_.GetPaintManager()->m_clrAlternativeBackground=RGB(236,239,244); Report_.GetPaintManager()->SetGridStyle(TRUE, xtpReportGridNoLines); Report_.GetPaintManager()->SetColumnStyle(xtpReportColumnResource);
CXTPReportColumn* Column=Report_.AddColumn(new CXTPReportColumn(0, L"", L"Feld", 150)); Column->GetEditOptions()->AddConstraint(L"Analysetyp", 0); Column->GetEditOptions()->AddConstraint(L"Artikel", 1); Column->GetEditOptions()->AddConstraint(L"Produktionslinie", 2); Column->GetEditOptions()->AddConstraint(L"Silo", 3); Column->GetEditOptions()->AddComboButton(TRUE); Column->GetEditOptions()->m_bConstraintEdit=TRUE;
Column=Report_.AddColumn(new CXTPReportColumn(1, L"", L"Operator", 80)); Column->GetEditOptions()->m_bAllowEdit=FALSE;
Column=Report_.AddColumn(new CXTPReportColumn(2, L"", L"Wert", 200)); Column->GetEditOptions()->m_bConstraintEdit=TRUE;
Column=Report_.AddColumn(new CXTPReportColumn(3, L"", L"Verknüpfung", 200)); Column->GetEditOptions()->AddConstraint(L"<keine weitere Bedingung>", 0); Column->GetEditOptions()->AddConstraint(L"UND", 1); Column->GetEditOptions()->AddConstraint(L"ODER", 2); Column->GetEditOptions()->AddComboButton(TRUE); Column->GetEditOptions()->m_bConstraintEdit=TRUE;
Report_.AddRecord(new CCompoundReportRecord()); Report_.AddRecord(new CCompoundReportRecord()); Report_.AddRecord(new CCompoundReportRecord()); Report_.AddRecord(new CCompoundReportRecord()); Report_.AddRecord(new CCompoundReportRecord());
Report_.Populate(); } |