home *** CD-ROM | disk | FTP | other *** search
/ 61.19.244.139 / 61.19.244.139.zip / 61.19.244.139 / Compulsory.Reports / Distribution.cs < prev    next >
Text File  |  2013-06-07  |  6KB  |  178 lines

  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. //     This code was generated by a tool.
  4. //     Runtime Version:4.0.30319.488
  5. //
  6. //     Changes to this file may cause incorrect behavior and will be lost if
  7. //     the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10.  
  11. namespace Compulsory.Reports {
  12.     using System;
  13.     using System.ComponentModel;
  14.     using CrystalDecisions.Shared;
  15.     using CrystalDecisions.ReportSource;
  16.     using CrystalDecisions.CrystalReports.Engine;
  17.     
  18.     
  19.     public class Distribution : ReportClass {
  20.         
  21.         public Distribution() {
  22.         }
  23.         
  24.         public override string ResourceName {
  25.             get {
  26.                 return "Distribution.rpt";
  27.             }
  28.             set {
  29.                 // Do nothing
  30.             }
  31.         }
  32.         
  33.         public override bool NewGenerator {
  34.             get {
  35.                 return true;
  36.             }
  37.             set {
  38.                 // Do nothing
  39.             }
  40.         }
  41.         
  42.         public override string FullResourceName {
  43.             get {
  44.                 return "Compulsory.Reports.Distribution.rpt";
  45.             }
  46.             set {
  47.                 // Do nothing
  48.             }
  49.         }
  50.         
  51.         [Browsable(false)]
  52.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  53.         public CrystalDecisions.CrystalReports.Engine.Section Section1 {
  54.             get {
  55.                 return this.ReportDefinition.Sections[0];
  56.             }
  57.         }
  58.         
  59.         [Browsable(false)]
  60.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  61.         public CrystalDecisions.CrystalReports.Engine.Section Section2 {
  62.             get {
  63.                 return this.ReportDefinition.Sections[1];
  64.             }
  65.         }
  66.         
  67.         [Browsable(false)]
  68.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  69.         public CrystalDecisions.CrystalReports.Engine.Section GroupHeaderSection1 {
  70.             get {
  71.                 return this.ReportDefinition.Sections[2];
  72.             }
  73.         }
  74.         
  75.         [Browsable(false)]
  76.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  77.         public CrystalDecisions.CrystalReports.Engine.Section Section3 {
  78.             get {
  79.                 return this.ReportDefinition.Sections[3];
  80.             }
  81.         }
  82.         
  83.         [Browsable(false)]
  84.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  85.         public CrystalDecisions.CrystalReports.Engine.Section GroupFooterSection1 {
  86.             get {
  87.                 return this.ReportDefinition.Sections[4];
  88.             }
  89.         }
  90.         
  91.         [Browsable(false)]
  92.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  93.         public CrystalDecisions.CrystalReports.Engine.Section Section4 {
  94.             get {
  95.                 return this.ReportDefinition.Sections[5];
  96.             }
  97.         }
  98.         
  99.         [Browsable(false)]
  100.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  101.         public CrystalDecisions.CrystalReports.Engine.Section Section5 {
  102.             get {
  103.                 return this.ReportDefinition.Sections[6];
  104.             }
  105.         }
  106.         
  107.         [Browsable(false)]
  108.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  109.         public CrystalDecisions.Shared.IParameterField Parameter_DistributeId {
  110.             get {
  111.                 return this.DataDefinition.ParameterFields[0];
  112.             }
  113.         }
  114.     }
  115.     
  116.     [System.Drawing.ToolboxBitmapAttribute(typeof(CrystalDecisions.Shared.ExportOptions), "report.bmp")]
  117.     public class CachedDistribution : Component, ICachedReport {
  118.         
  119.         public CachedDistribution() {
  120.         }
  121.         
  122.         [Browsable(false)]
  123.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  124.         public virtual bool IsCacheable {
  125.             get {
  126.                 return true;
  127.             }
  128.             set {
  129.                 // 
  130.             }
  131.         }
  132.         
  133.         [Browsable(false)]
  134.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  135.         public virtual bool ShareDBLogonInfo {
  136.             get {
  137.                 return false;
  138.             }
  139.             set {
  140.                 // 
  141.             }
  142.         }
  143.         
  144.         [Browsable(false)]
  145.         [DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  146.         public virtual System.TimeSpan CacheTimeOut {
  147.             get {
  148.                 return CachedReportConstants.DEFAULT_TIMEOUT;
  149.             }
  150.             set {
  151.                 // 
  152.             }
  153.         }
  154.         
  155.         public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
  156.             Distribution rpt = new Distribution();
  157.             rpt.Site = this.Site;
  158.             return rpt;
  159.         }
  160.         
  161.         public virtual string GetCustomizedCacheKey(RequestContext request) {
  162.             String key = null;
  163.             // // The following is the code used to generate the default
  164.             // // cache key for caching report jobs in the ASP.NET Cache.
  165.             // // Feel free to modify this code to suit your needs.
  166.             // // Returning key == null causes the default cache key to
  167.             // // be generated.
  168.             // 
  169.             // key = RequestContext.BuildCompleteCacheKey(
  170.             //     request,
  171.             //     null,       // sReportFilename
  172.             //     this.GetType(),
  173.             //     this.ShareDBLogonInfo );
  174.             return key;
  175.         }
  176.     }
  177. }
  178.