Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            R_lanabase_Summary rpt = new R_lanabase_Summary();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        public void Load_Summary()
        {
            wizard1.SelectedTab = tabPage1;
            IniFile ini = new IniFile(ClassSql.MMS_Path);
            DataClasses1DataContext db            = new DataClasses1DataContext(Properties.Settings.Default.MyConString);
            DataTable          dt                 = new ds_report2.sp_Landbase_SummuryDataTable();
            R_lanabase_Summary R_lanabase_summary = new R_lanabase_Summary();

            var list = db.sp_Landbase_Summury(this.Tag.ToString());

            foreach (var i in list)
            {
                dt.Rows.Add(i.lastname, i.firstname, i.middlename, i.address_1, i.position, i.marital_status, i.gender, i.birthdate, i.place_of_birth, i.employer, i.passport_no, i.nationality, i.religion, i.country_destination, i.picture.ToArray(), i.result_date, i.pathologist, i.fitness_date, i.valid_until, i.recommendation, i.medtech, i.ISHIHARA_C, i.SATISFACTORY_HEARING, i.SATISFACTORY_SIGHT_UNAID, i.VISUAL_AIDS, i.FIT_FOR_LOOKOUT);
            }

            R_lanabase_summary.SetDataSource(dt);


            TextObject FormNo = (TextObject)R_lanabase_summary.ReportDefinition.ReportObjects["txt_formNo"];
            TextObject RevNo  = (TextObject)R_lanabase_summary.ReportDefinition.ReportObjects["txt_RevNo"];
            TextObject Iso    = (TextObject)R_lanabase_summary.ReportDefinition.ReportObjects["txt_iso"];

            FormNo.Text = ini.IniReadValue("FORM", "Landbase_Summary");
            RevNo.Text  = ini.IniReadValue("REVISION", "Landbase_Summary");
            Iso.Text    = ini.IniReadValue("ISO", "Landbase_Summary");



            Viewer1.ReportSource = R_lanabase_summary;
            RemoveTab(Viewer1);
            Cursor.Current = Cursors.Default;
        }