23. Januar 2012 15:17
Job - OnPreDataItem()
RhePic.GET;
RhePic.CALCFIELDS(Picture);
Job.SETFILTER("Order Type Code",'Maschine');
Job.SETFILTER(Status,'Auftrag');
Job.SETFILTER(Blocked,'0');
IF Excel THEN BEGIN
ExcelBuffer.DELETEALL;
EnterCell(1, 1, FIELDCAPTION("Sell-to Customer Name"), '', TRUE, FALSE, FALSE);
EnterCell(1, 2, FIELDCAPTION("No."), '', TRUE, FALSE, FALSE);
EnterCell(1, 3, FIELDCAPTION(Description), '', TRUE, FALSE, FALSE);
EnterCell(1, 4, FIELDCAPTION("Description 2"), '', TRUE, FALSE, FALSE);
RowNo := 1;
END;
//Formatierung der Überschriften
Job - OnAfterGetRecord()
IF Excel THEN BEGIN
RowNo += 1;
//Nach jedem Datensatz "Springen in die nächste Zeile"
EnterCell(RowNo, 1, "Sell-to Customer Name", '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 2, "No.", '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 3, Description, '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 4, "Description 2", '', FALSE, FALSE, FALSE);
//Definition der Felder
END;
Job Structure Line - OnPreDataItem()
IF Excel THEN BEGIN
ExcelBuffer.DELETEALL;
EnterCell(1, 5, FIELDCAPTION(Description), '', TRUE, FALSE, FALSE);
EnterCell(1, 6, FIELDCAPTION(Status), '', TRUE, FALSE, FALSE);
EnterCell(1, 7, FIELDCAPTION("Expected Ending date"), '', TRUE, FALSE, FALSE);
EnterCell(1, 8, FIELDCAPTION(Quantity), '', TRUE, FALSE, FALSE);
EnterCell(1, 9, FIELDCAPTION("Qty. Job usage"), '', TRUE, FALSE, FALSE);
EnterCell(1, 10, FIELDCAPTION("Entry No."), '', TRUE, FALSE, FALSE);
RowNo := 1;
END;
//Formatierung der Überschriften
Job Structure Line - OnAfterGetRecord()
IF Excel THEN BEGIN
RowNo += 1;
//Nach jedem Datensatz "Springen in die nächste Zeile"
EnterCell(RowNo, 5, Description, '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 6, Status, '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 7, FORMAT("Expected Ending date"), '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 8, FORMAT(Quantity), '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 9, FORMAT("Qty. Job usage"), '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 10, FORMAT("Entry No."), '', FALSE, FALSE, FALSE);
//Definition der Felder
END;
23. Januar 2012 15:35
23. Januar 2012 15:46
23. Januar 2012 16:06
24. Januar 2012 12:40
IF Excel THEN BEGIN
ExcelBuffer.DELETEALL;
EnterCell(1, 1, V, '', TRUE, FALSE, FALSE);
EnterCell(1, 2, N, '', TRUE, FALSE, FALSE);
EnterCell(1, 3, B, '', TRUE, FALSE, FALSE);
EnterCell(1, 4, B2, '', TRUE, FALSE, FALSE);
EnterCell(1, 5, FIELDCAPTION(Description), '', TRUE, FALSE, FALSE);
EnterCell(1, 6, FIELDCAPTION(Status), '', TRUE, FALSE, FALSE);
EnterCell(1, 7, FIELDCAPTION("Expected Ending date"), '', TRUE, FALSE, FALSE);
EnterCell(1, 8, FIELDCAPTION(Quantity), '', TRUE, FALSE, FALSE);
EnterCell(1, 9, FIELDCAPTION("Qty. Job usage"), '', TRUE, FALSE, FALSE);
EnterCell(1, 10, FIELDCAPTION("Entry No."), '', TRUE, FALSE, FALSE);
RowNo := 1;
END;
//Formatierung der Überschriften
Job Structure Line - OnAfterGetRecord()
IF Excel THEN BEGIN
RowNo += 1;
//Nach jedem Datensatz "Springen in die nächste Zeile"
EnterCell(RowNo, 1, "Job"."Sell-to Customer Name", '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 2, "Job"."No.", '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 3, "Job".Description, '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 4, "Job"."Description 2", '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 5, Description, '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 6, Status, '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 7, FORMAT("Expected Ending date"), '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 8, FORMAT(Quantity), '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 9, FORMAT("Qty. Job usage"), '', FALSE, FALSE, FALSE);
EnterCell(RowNo, 10, FORMAT("Entry No."), '', FALSE, FALSE, FALSE);
//Definition der Felder
END;
24. Januar 2012 12:59
Job
Job Structure Header
Job Structure Line
24. Januar 2012 15:36