示例#1
0
        ///////////

        public void PrintReOut(int id)
        {
            RPT.RequstOut rt    = new RPT.RequstOut();
            DataTable     dtttt = new DataTable();

            dtttt = dbsql.PrintRequstOut(id, Contrl.UserId, user);

            rt.SetDataSource(dtttt);

            crystalReportViewer1.ReportSource = rt;

            crystalReportViewer1.Refresh();
            if (printexit == true)
            {
                DataTable         dtt1 = new DataTable();
                RPT.ExitStatement rt1  = new RPT.ExitStatement();
                dtt1 = dbsql.printrequstOutExit(id, Contrl.UserId, user);

                for (int i = 0; i < dtt1.Rows.Count; i++)
                {
                    dtt1.Rows[i][6] = "تصريح خروج مواد";
                }
                rt1.SetDataSource(dtt1);
                rt1.PrintToPrinter(1, false, 0, 0);   //print dicret
            }
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RequstOut rpt = new RequstOut();

            rpt.Site = this.Site;
            return(rpt);
        }