Beispiel #1
0
    private DataSet PatientSummary()
    {
        IPatientHome ReportDetails    = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome,BusinessProcess.Clinical");
        DataSet      dsPatientSummary = (DataSet)ReportDetails.GetPatientSummaryInformation(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["TechnicalAreaId"]));

        ReportDetails = null;
        dsPatientSummary.WriteXmlSchema(Server.MapPath("..\\XMLFiles\\PatientClinicalSummary.xml"));
        return(dsPatientSummary);
    }
Beispiel #2
0
    private void setReport()
    {
        rptDocument = new ReportDocument();
        IQCareUtils  theUtil       = new IQCareUtils();
        IPatientHome ReportDetails = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome,BusinessProcess.Clinical");
        DataSet      theDS         = (DataSet)ReportDetails.GetPatientSummaryInformation(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["TechnicalAreaId"]));

        Session["dsPatientClinicalsummary"] = theDS;
        theDS.WriteXmlSchema(Server.MapPath("..\\XMLFiles\\PatientClinicalSummary.xml"));
        ReportDetails = null;

        theReportSource = "rptPatientClinicalSummary.rpt";
        rptDocument.Load(Server.MapPath(theReportSource));
        rptDocument.SetDataSource(theDS);
        crViewer.ReportSource = rptDocument;
        crViewer.DataBind();
        crViewer.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
    }
Beispiel #3
0
        private void frmPatientClinicalSummary_Load(object sender, EventArgs e)
        {
            //rptDocument = new ReportDocument();
            //IQCareUtils theUtil = new IQCareUtils();
            //IPatientHome ReportDetails = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome,BusinessProcess.Clinical");
            //DataSet theDS = (DataSet)ReportDetails.GetPatientSummaryInformation(GblIQCare.patientID, GblIQCare.ModuleId);
            //string filename = GblIQCare.GetXMLPath() + "PatientClinicalSummary.xml";
            //System.IO.FileStream myFileStream = new System.IO.FileStream(filename, System.IO.FileMode.Create);
            //System.Xml.XmlTextWriter MyXmlTextWriter = new System.Xml.XmlTextWriter(myFileStream, System.Text.Encoding.Unicode);
            //theDS.WriteXmlSchema(MyXmlTextWriter);
            //MyXmlTextWriter.Close();
            //ReportDetails = null;

            //theReportSource = GblIQCare.GetReportPath() + "rptPatientClinicalSummary.rpt";
            //rptDocument.Load(theReportSource);
            //rptDocument.SetDataSource(theDS);
            //crViewer.ReportSource = rptDocument;
            //crViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;

            rptDocument = new ReportDocument();
            IQCareUtils  theUtil       = new IQCareUtils();
            IPatientHome ReportDetails = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome,BusinessProcess.Clinical");
            DataSet      theDS         = (DataSet)ReportDetails.GetPatientSummaryInformation(GblIQCare.patientID, GblIQCare.ModuleId);

            theDS.WriteXmlSchema(GblIQCare.GetXMLPath() + "\\PatientClinicalSummary.xml");

            rptPatientClinicalSummary rep = new rptPatientClinicalSummary();

            rep.SetDataSource(theDS);
            frmReportViewer theRepViewer = new frmReportViewer();

            theRepViewer.MdiParent              = this.MdiParent;
            theRepViewer.Location               = new Point(0, 0);
            theRepViewer.crViewer.ReportSource  = rep;
            theRepViewer.crViewer.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
            theRepViewer.Width             = 902;
            theRepViewer.Height            = 650;
            theRepViewer.crViewer.Width    = 880;
            theRepViewer.crViewer.Height   = 600;
            theRepViewer.crViewer.Location = new Point(11, 11);
            theRepViewer.btnExit_position(451, 615);
            theRepViewer.Show();
            this.Close();
        }
    private void setReport()
    {
        rptDocument = new ReportDocument();

        IPatientHome ReportDetails           = (IPatientHome)ObjectFactory.CreateInstance("BusinessProcess.Clinical.BPatientHome,BusinessProcess.Clinical");
        DataSet      dsReportsPatientProfile = (DataSet)ReportDetails.GetPatientSummaryInformation(Convert.ToInt32(Session["PatientId"]), Convert.ToInt32(Session["TechnicalAreaId"]));

        Session["dsPatientClinicalsummary"] = dsReportsPatientProfile;
        dsReportsPatientProfile.WriteXmlSchema(Server.MapPath("..\\XMLFiles\\PatientClinicalSummary.xml"));


        ReportDetails = null;

        //theReportSource = "rptPatientClinicalSummary.rpt";
        //theReportSource = "cr_PatientProfileSummary_New.rpt";
        theReportSource = "rptPatientProfile.rpt";
        rptDocument.Load(Server.MapPath(theReportSource));

        rptDocument.SetDataSource(dsReportsPatientProfile);
        rptDocument.SetParameterValue("SatelliteId", Session["AppSatelliteId"].ToString());
        crViewer.ReportSource  = rptDocument;
        crViewer.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
    }