Exemple #1
0
        public fmSaveAsTemplate(IReport report, bool designTime)
        {
            InitializeComponent();
            dbGateway = new DBGateway(report);

            if (!designTime)
            {
                btOK.Text = ERptMultiLanguage.GetLanValue("btOK");
                btCancel.Text = ERptMultiLanguage.GetLanValue("btCancel");
                this.Text = ERptMultiLanguage.GetLanValue("fmSaveAsTemplate");
                lbFileName.Text = ERptMultiLanguage.GetLanValue("lbTemplateName");
            }
        }
Exemple #2
0
 public fmLoadTemplate(IReport rpt, bool designTime)
 {
     InitializeComponent();
     //   this.report = rpt;
     //this.isDesignTime = designTime;
     dbGateway = new DBGateway(rpt);
     //  serializer = new BinarySerialize();
     // templateLoadMode = loadMode;
     designMode = designTime;
     if (!designTime)
     {
         this.Text = ERptMultiLanguage.GetLanValue("fmLoadTemplate");
         lbSelectTemplate.Text = ERptMultiLanguage.GetLanValue("lbSelectTemplate");
         btOK.Text = ERptMultiLanguage.GetLanValue("btOK");
         btCancel.Text = ERptMultiLanguage.GetLanValue("btClose");
         buttonDelete.Text = ERptMultiLanguage.GetLanValue("btDelete");
     }
 }
Exemple #3
0
        public WebEasilyReport()
        {
            headerItems = new ReportItemCollection(this);
            footerItems = new ReportItemCollection(this);

            fieldItems = new DataSourceItemCollection(this);
            dataSource = new WebDataSourceItemCollection(this);
            mailSetting = new MailConfig();
            format = new ReportFormat();
            parameters = new ParameterItemCollection();
            images = new ImageItemCollection();
            dbGateway = new DBGateway(this);
            serializer = new BinarySerialize();

            this.reportID = ComponentInfo.DefaultReportID + DateTime.Now.ToString("yyyyMMdd");
            this.reportName = "";

            fontConvert = new FontConverter();
            Visible = false;

            if (this.UIType == EasilyReportUIType.AspNet)
            {
                render = new AspNetRender(this);
            }
            else
            {
                render = new ExtJsRender(this);
            }
        }