Ejemplo n.º 1
0
        public void PrintJobStatList(int deptID, bool isPreview, int sortCode)
        {
            FPreviewAR   pv;
            rprtJobStat1 rprt = new rprtJobStat1();
            DataSet      ds;

            ds = CBDrawingLog.GetJobStatListByDeptID(deptID, sortCode);

            rprt.DataSource = ds;
            rprt.DataMember = "Table";


            pv = new FPreviewAR(); //************** Done 6/29/15
            pv.ViewReport(rprt);

            if (isPreview == true)
            {
                //pv = new FPreviewAR();
                //pv.ViewReport(rprt);
                pv.ShowDialog();
            }
            else
            {
                rprt.Run();
                rprt.Document.Print(true, false);
            }
        }
Ejemplo n.º 2
0
        public void PrintJobStat(int deptID, int projID)
        {
            //FPreview pv;
            //rprtJobStat rprt = new rprtJobStat();
            //DataSet ds;

            //ds = CBDrawingLog.GetJobStatForRprt(deptID, projID);
            //rprt = new rprtJobStat();
            //rprt.SetDataSource(ds);

            //pv = new FPreview();
            //pv.ShowReport(rprt);
            //pv.ShowDialog();

            ////rprt.PrintToPrinter(1, false, 0, 0);

            FPreviewAR   pv;
            rprtJobStat1 rprt = new rprtJobStat1();
            DataSet      ds;

            ds = CBDrawingLog.GetJobStatForRprt(deptID, projID);

            rprt.DataSource = ds;
            rprt.DataMember = "Table";

            pv = new FPreviewAR();
            pv.ViewReport(rprt);
            pv.ShowDialog();
        }
Ejemplo n.º 3
0
        public void PrintJobStatList(int deptID, bool isPreview, int sortCode)
        {
            FPreviewAR   pv;
            rprtJobStat1 rprt = new rprtJobStat1();
            DataSet      ds;

            ds = CBDrawingLog.GetJobStatListByDeptID(deptID, sortCode);

            rprt.DataSource = ds;
            rprt.DataMember = "Table";
            pv = new FPreviewAR();
            pv.ViewReport(rprt);
            if (isPreview == true)
            {
                //pv = new FPreviewAR(); //****Took these out of If Block, so that, ViewReport() is called, and reportType is available for Save file name
                //pv.ViewReport(rprt);  //************** Done 6/29/15

                pv.ShowDialog();
            }
            else
            {
                rprt.Run();
                rprt.Document.Print(true, false);
            }
        }
Ejemplo n.º 4
0
        public void PrintJobStatList(string deptXml, string leadXml, bool isLead, bool isPreview, int sortCode)
        {
            FPreviewAR   pv;
            rprtJobStat1 rprt = new rprtJobStat1();
            DataSet      ds;

            ds = CBDrawingLog.GetJobStatListByLeadList(deptXml, leadXml, sortCode);

            rprt.DataSource = ds;
            rprt.DataMember = "Table";


            pv       = new FPreviewAR();   //************** Done 6/29/15
            pv.Title = "DRAWING/SPEC LOG"; //********************************12/01
            pv.ViewReport(rprt);

            if (isPreview == true)
            {
                //pv = new FPreviewAR();
                //pv.ViewReport(rprt);
                pv.ShowDialog();
            }
            else
            {
                rprt.Run();
                rprt.Document.Print(true, false);
            }
        }
Ejemplo n.º 5
0
        public void PrintJobStat(int deptID, int projID)
        {
            FPreviewAR   pv;
            rprtJobStat1 rprt = new rprtJobStat1();
            DataSet      ds;

            ds = CBDrawingLog.GetJobStatForRprt(deptID, projID);

            rprt.DataSource = ds;
            rprt.DataMember = "Table";

            pv = new FPreviewAR();
            pv.ViewReport(rprt);
            pv.ShowDialog();
        }