Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5382 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
8 changed files with 147 additions and 180 deletions
@ -1,133 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="Peter Forstmeier" email="peter.forstmeier@t-online.de"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Collections.Generic; |
|
||||||
|
|
||||||
using ICSharpCode.Reports.Core; |
|
||||||
namespace ReportSamples |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Description of ContributorsList.
|
|
||||||
/// </summary>
|
|
||||||
public class ContributorsList:BaseSample |
|
||||||
{ |
|
||||||
ContributorCollection contributorCollection; |
|
||||||
|
|
||||||
public ContributorsList() |
|
||||||
{ |
|
||||||
} |
|
||||||
|
|
||||||
public override void Run() |
|
||||||
{ |
|
||||||
base.Run(); |
|
||||||
if (!String.IsNullOrEmpty(base.ReportName)) { |
|
||||||
this.contributorCollection = CreateContributorsList(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
private void PushPrinting (object sender,SectionRenderEventArgs e) { |
|
||||||
|
|
||||||
switch (e.CurrentSection) { |
|
||||||
case GlobalEnums.ReportSection.ReportHeader: |
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportPageHeader: |
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportDetail: |
|
||||||
BaseRowItem ri = e.Section.Items[0] as BaseRowItem; |
|
||||||
// if (ri != null) {
|
|
||||||
// BaseDataItem r = (BaseDataItem)ri.Items.Find("unbound1");
|
|
||||||
// if (r != null) {
|
|
||||||
// System.Console.WriteLine("ubound1");
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportPageFooter: |
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportFooter: |
|
||||||
break; |
|
||||||
|
|
||||||
default: |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public ContributorCollection ContributorCollection { |
|
||||||
get { return contributorCollection; } |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
private ContributorCollection CreateContributorsList () { |
|
||||||
ContributorCollection list = new ContributorCollection(); |
|
||||||
|
|
||||||
list.Add(new Contributor("Christoph","Wille","Senior Project Wrangler")); |
|
||||||
list.Add(new Contributor("Bernhard","Spuida","Senior Project Wrangler")); |
|
||||||
|
|
||||||
|
|
||||||
list.Add(new Contributor("Daniel","Grunwald","Technical Lead")); |
|
||||||
list.Add(new Contributor("Matt","Ward","NUnit")); |
|
||||||
list.Add(new Contributor("David","Srbecky","Debugger")); |
|
||||||
list.Add(new Contributor("Peter","Forstmeier","SharpDevelop.Reports")); |
|
||||||
list.Add(new Contributor("Alexander","Zeitler","SharpDevelop.Reports")); |
|
||||||
list.Add(new Contributor("Markus","Palme","Prg.")); |
|
||||||
list.Add(new Contributor("Georg","Brandl","Prg.")); |
|
||||||
list.Add(new Contributor("Roman","Taranchenko","")); |
|
||||||
list.Add(new Contributor("Denis","Erchoff","")); |
|
||||||
list.Add(new Contributor("Ifko","Kovacka","")); |
|
||||||
list.Add(new Contributor("Nathan","Allen","")); |
|
||||||
list.Add(new Contributor("Dickon","Field","DBTools")); |
|
||||||
list.Add(new Contributor("Troy","Simpson","Prg.")); |
|
||||||
list.Add(new Contributor("David","Alpert","Prg.")); |
|
||||||
return list; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
public class Contributor { |
|
||||||
string last; |
|
||||||
string first; |
|
||||||
string job; |
|
||||||
|
|
||||||
public Contributor(string last, string first,string job) |
|
||||||
{ |
|
||||||
this.last = last; |
|
||||||
this.first = first; |
|
||||||
this.job = job; |
|
||||||
} |
|
||||||
|
|
||||||
public string Last { |
|
||||||
get { |
|
||||||
return last; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
public string First { |
|
||||||
get { |
|
||||||
return first; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
public string Job { |
|
||||||
get { |
|
||||||
return job; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
public class ContributorCollection: List<Contributor>{ |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
@ -1,26 +0,0 @@ |
|||||||
/* |
|
||||||
* Erstellt mit SharpDevelop. |
|
||||||
* Benutzer: Forstmeier |
|
||||||
* Datum: 03.05.2007 |
|
||||||
* Zeit: 09:27 |
|
||||||
* |
|
||||||
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern. |
|
||||||
*/ |
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Windows.Forms; |
|
||||||
|
|
||||||
namespace ReportSamples |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Description of JointCopyright.
|
|
||||||
/// </summary>
|
|
||||||
public class JointCopyright:BaseSample |
|
||||||
{ |
|
||||||
public JointCopyright():base() |
|
||||||
{ |
|
||||||
base.Run(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
@ -0,0 +1,79 @@ |
|||||||
|
/* |
||||||
|
* Erstellt mit SharpDevelop. |
||||||
|
* Benutzer: Peter Forstmeier |
||||||
|
* Datum: 07.01.2010 |
||||||
|
* Zeit: 19:46 |
||||||
|
* |
||||||
|
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern. |
||||||
|
*/ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using ICSharpCode.Reports.Core; |
||||||
|
|
||||||
|
namespace SharpReportSamples |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Description of ContributorsList.
|
||||||
|
/// </summary>
|
||||||
|
public class ContributorsReportData |
||||||
|
{ |
||||||
|
|
||||||
|
public static ContributorCollection CreateContributorsList () { |
||||||
|
ContributorCollection list = new ContributorCollection(); |
||||||
|
|
||||||
|
list.Add(new Contributor("Christoph","Wille","Senior Project Wrangler")); |
||||||
|
list.Add(new Contributor("Bernhard","Spuida","Senior Project Wrangler")); |
||||||
|
|
||||||
|
list.Add(new Contributor("Daniel","Grunwald","Technical Lead")); |
||||||
|
list.Add(new Contributor("Matt","Ward","NUnit")); |
||||||
|
list.Add(new Contributor("David","Srbecky","Debugger")); |
||||||
|
list.Add(new Contributor("Peter","Forstmeier","SharpDevelop.Reports")); |
||||||
|
list.Add(new Contributor("Markus","Palme","Prg.")); |
||||||
|
list.Add(new Contributor("Georg","Brandl","Prg.")); |
||||||
|
list.Add(new Contributor("Roman","Taranchenko","")); |
||||||
|
list.Add(new Contributor("Denis","Erchoff","")); |
||||||
|
list.Add(new Contributor("Ifko","Kovacka","")); |
||||||
|
list.Add(new Contributor("Nathan","Allen","")); |
||||||
|
list.Add(new Contributor("Troy","Simpson","Prg.")); |
||||||
|
list.Add(new Contributor("David","Alpert","Prg.")); |
||||||
|
return list; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
public class Contributor { |
||||||
|
string last; |
||||||
|
string first; |
||||||
|
string job; |
||||||
|
|
||||||
|
public Contributor(string last, string first,string job) |
||||||
|
{ |
||||||
|
this.last = last; |
||||||
|
this.first = first; |
||||||
|
this.job = job; |
||||||
|
} |
||||||
|
|
||||||
|
public string Last { |
||||||
|
get { |
||||||
|
return last; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public string First { |
||||||
|
get { |
||||||
|
return first; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public string Job { |
||||||
|
get { |
||||||
|
return job; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public class ContributorCollection: List<Contributor>{ |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue