/Reports/InvoicePrintForm.cs

http://github.com/khaneh/Orders · C# · 151 lines · 108 code · 19 blank · 24 comment · 0 complexity · c22ad84ad3674fa0d3a1ce1c3c3c0335 MD5 · raw file

  1. //------------------------------------------------------------------------------
  2. // <autogenerated>
  3. // This code was generated by a tool.
  4. // Runtime Version: 1.0.3705.0
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </autogenerated>
  9. //------------------------------------------------------------------------------
  10. namespace Reports {
  11. using System;
  12. using System.ComponentModel;
  13. using CrystalDecisions.Shared;
  14. using CrystalDecisions.ReportSource;
  15. using CrystalDecisions.CrystalReports.Engine;
  16. public class InvoicePrintForm : ReportClass {
  17. public InvoicePrintForm() {
  18. }
  19. public override string ResourceName {
  20. get {
  21. return "InvoicePrintForm.rpt";
  22. }
  23. set {
  24. // Do nothing
  25. }
  26. }
  27. [Browsable(false)]
  28. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  29. public CrystalDecisions.CrystalReports.Engine.Section ReportHeaderSection1 {
  30. get {
  31. return this.ReportDefinition.Sections[0];
  32. }
  33. }
  34. [Browsable(false)]
  35. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  36. public CrystalDecisions.CrystalReports.Engine.Section PageHeaderSection1 {
  37. get {
  38. return this.ReportDefinition.Sections[1];
  39. }
  40. }
  41. [Browsable(false)]
  42. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  43. public CrystalDecisions.CrystalReports.Engine.Section DetailSection1 {
  44. get {
  45. return this.ReportDefinition.Sections[2];
  46. }
  47. }
  48. [Browsable(false)]
  49. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  50. public CrystalDecisions.CrystalReports.Engine.Section ReportFooterSection1 {
  51. get {
  52. return this.ReportDefinition.Sections[3];
  53. }
  54. }
  55. [Browsable(false)]
  56. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  57. public CrystalDecisions.CrystalReports.Engine.Section PageFooterSection1 {
  58. get {
  59. return this.ReportDefinition.Sections[4];
  60. }
  61. }
  62. [Browsable(false)]
  63. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  64. public CrystalDecisions.CrystalReports.Engine.Section PageFooterSection3 {
  65. get {
  66. return this.ReportDefinition.Sections[5];
  67. }
  68. }
  69. [Browsable(false)]
  70. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  71. public CrystalDecisions.Shared.IParameterField Parameter_InvoiceID {
  72. get {
  73. return this.DataDefinition.ParameterFields[0];
  74. }
  75. }
  76. }
  77. [System.Drawing.ToolboxBitmapAttribute(typeof(CrystalDecisions.Shared.ExportOptions), "report.bmp")]
  78. public class CachedInvoicePrintForm : Component, ICachedReport {
  79. public CachedInvoicePrintForm() {
  80. }
  81. [Browsable(false)]
  82. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  83. public virtual bool IsCacheable {
  84. get {
  85. return true;
  86. }
  87. set {
  88. //
  89. }
  90. }
  91. [Browsable(false)]
  92. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  93. public virtual bool ShareDBLogonInfo {
  94. get {
  95. return false;
  96. }
  97. set {
  98. //
  99. }
  100. }
  101. [Browsable(false)]
  102. [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  103. public virtual System.TimeSpan CacheTimeOut {
  104. get {
  105. return CachedReportConstants.DEFAULT_TIMEOUT;
  106. }
  107. set {
  108. //
  109. }
  110. }
  111. public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
  112. InvoicePrintForm rpt = new InvoicePrintForm();
  113. rpt.Site = this.Site;
  114. return rpt;
  115. }
  116. public virtual string GetCustomizedCacheKey(RequestContext request) {
  117. String key = null;
  118. // // The following is the code used to generate the default
  119. // // cache key for caching report jobs in the ASP.NET Cache.
  120. // // Feel free to modify this code to suit your needs.
  121. // // Returning key == null causes the default cache key to
  122. // // be generated.
  123. //
  124. // key = RequestContext.BuildCompleteCacheKey(
  125. // request,
  126. // null, // sReportFilename
  127. // this.GetType(),
  128. // this.ShareDBLogonInfo );
  129. return key;
  130. }
  131. }
  132. }