Example #1
0
 public static void showreport(CliTestView TestView, ClinicalExeEventStatus ReportType, String Id)
 {
     if (ReportType.ToString().ToLower() == "lis")
     {
         var lab = new CiRptLabView();
         lab.setlabdto(Id, ReportType.ToString().ToLower(), TestView);
         TestView.DataView = lab;
         TestView.ShowReportButton.Text = "趋势图";
         TestView.Text = "检验报告";
         TestView.ShowReportButton.Enabled = false;
     }
     else if (ReportType.ToString().ToLower() == "ris")
     {
         var obs = new CIRptObsView();
         obs.setlabdto(Id, ReportType.ToString().ToLower());
         TestView.DataView = obs;
         TestView.ShowReportButton.Text = "影像";
         TestView.ReportStatus          = ClinicalExeEventStatus.RIS;
         //         TestView.ShowReportButton.Text = "趋势图";
         TestView.Text = "检查报告";
     }
     else if (ReportType == ClinicalExeEventStatus.Pathol)
     {
         var pathol = new OpippathgyCardView();
         pathol.setPatholdto(Id, ReportType.ToString().ToLower());
         TestView.DataView              = pathol;
         TestView.ReportStatus          = ClinicalExeEventStatus.Pathol;
         TestView.ShowReportButton.Text = "影像";
         TestView.Text = "病理报告";
     }
 }
Example #2
0
        /// <summary>
        /// 单元格点击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OnXapFromGrid_CellClick(object sender, EventArgs e)
        {
            var ciOrderDO = (sender as XOrderResultCell).DataSource as CiOrderDO;

            if (string.IsNullOrEmpty(((sender as XOrderResultCell).ActiveObject as XOrderResultRender).Value) || ((sender as XOrderResultCell).ActiveObject as XOrderResultRender).Value.Equals("0"))
            {
                return;
            }
            var type = Convert.ToInt32(((sender as XOrderResultCell).ActiveObject as XOrderResultRender).Type);

            if ((ciOrderDO.Sd_srvtp.Substring(0, 2).Equals("02") || ciOrderDO.Sd_srvtp.Substring(0, 2).Equals("03")) && 3 == type)
            {
                string      dia      = "";
                string      title    = "";
                CliTestView TestView = new CliTestView();
                TestView.TrendChartEvent += new CliTestView.TrendChartButtonClick(test);
                if (ciOrderDO.Sd_srvtp.Substring(0, 2).Equals("02"))
                {
                    if (ciOrderDO.Sd_srvtp.Substring(2, 2).Equals("07"))
                    {
                        var pathol = new OpippathgyCardView();
                        pathol.setPatholdto(ciOrderDO.Id_or, ClinicalExeEventStatus.Pathol.ToString());
                        TestView.DataView              = pathol;
                        TestView.Size                  = new Size(850, 740);
                        TestView.ReportStatus          = ClinicalExeEventStatus.Pathol;
                        TestView.ShowReportButton.Text = "影像";
                        TestView.Text                  = "病理报告";
                        TestView.cliTestControl.AddRender(TestView.DataView);
                        TestView.ShowDialog();
                    }
                    else
                    {
                        dia   = "ris";
                        title = "检查报告";
                        var lab = new CIRptObsView();
                        lab.setlabdto(ciOrderDO.Id_or, dia);
                        TestView.Size = new Size(850, 740);
                        TestView.ShowReportButton.Text = "影像";
                        TestView.DataView = lab;
                        TestView.Text     = title;
                        TestView.cliTestControl.AddRender(TestView.DataView);
                        TestView.ShowDialog();
                    }
                }
                else if (ciOrderDO.Sd_srvtp.Substring(0, 2).Equals("03"))
                {
                    dia   = "lis";
                    title = "检验报告";
                    var lab = new CiRptLabView();
                    lab.setlabdto(ciOrderDO.Id_or, dia, TestView);
                    TestView.DataView = lab;
                    TestView.Size     = new Size(940, 750);
                    TestView.ShowReportButton.Text    = "趋势图";
                    TestView.ShowReportButton.Enabled = false;
                    TestView.Text = title;
                    TestView.cliTestControl.AddRender(TestView.DataView);
                    TestView.ShowDialog();
                }
            }
            else
            {
                var          orReport = new OrReport(sender as XOrderResultCell, ciOrderDO, type);
                DialogResult result   = orReport.ShowDialog();
                if (result == DialogResult.OK)
                {
                    freshFeeBillDataSource();
                }
            }
        }