Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            DailyTimeRecord rpt = new DailyTimeRecord();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        void getReport()
        {
            DataClasses1DataContext db = new DataClasses1DataContext(Tool.ConnectionString);
            DataTable       dt         = new DataSet1.DailyTimeRecordSelectAllDataTable();
            DailyTimeRecord crDTR      = new DailyTimeRecord();
            var             list       = db.DailyTimeRecordSelectAll().ToList();

            foreach (var i in list)
            {
                dt.Rows.Add(i.RecID, i.AccountName, i.TimeIN, i.TimeOUT, i.DateCreated, i.Total, i.RowRemark);
            }
            crDTR.SetDataSource(dt);
            viewer1.ReportSource = crDTR;
            RemoveTab(viewer1);
            Cursor.Current = Cursors.Default;
        }