Ejemplo n.º 1
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.º 2
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.º 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);
            }
        }