Example #1
0
        protected void getLinkedData(Object Sender, RepeaterItemEventArgs e)
        {
            HtmlContainerControl ORDetailsLink = (HtmlContainerControl)e.Item.FindControl("ORDetailsLink");


            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                int ORDetailId = 0;
                if (((DataRowView)e.Item.DataItem)[BOL.Procedure.OperatingRoomDetailId].ToString() != null && int.TryParse(((DataRowView)e.Item.DataItem)[BOL.Procedure.OperatingRoomDetailId].ToString(), out ORDetailId))
                {
                    ORDetailsLink.Visible = true;
                }
                else
                {
                    ORDetailsLink.Visible = false;
                }


                PathologyDa paDa = new PathologyDa();
                DataSet     paDs = paDa.FormGetRecords(this._patientId, this._eformName, "Dynamic");
                if (paDs.Tables.Count > 0 && paDs.Tables[0].Rows.Count > 0)
                {
                    DataView paDv = new DataView(paDs.Tables[0]);
                    paDv.RowFilter = BOL.Pathology.ProcedureId + " = " + ((DataRowView)e.Item.DataItem)[BOL.Procedure.ProcedureId].ToString();

                    if (paDv.Count > 0)
                    {
                        Repeater linkedPathologies = (Repeater)e.Item.FindControl("linkedPathologies");
                        linkedPathologies.DataSource = paDv;
                        linkedPathologies.DataBind();
                    }
                }
            }
        }
Example #2
0
        protected void GetGynPathology(int PatientID, string FormName, string FormType)
        {
            DataSet     PathDs, PathFindDs;
            PathologyDa PathDa = new PathologyDa();

            PathDs     = PathDa.FormGetPathAndORDetails(PatientID, FormName, FormType);
            PathFindDs = PathDa.FormGetPathFindingRecords(PatientID, FormName, FormType);

            if (PathDs.Tables.Count > 0 && PathDs.Tables[0].Rows.Count > 0)
            {
                NoGynPathologyMsgTr2.Visible = false;

                PathDs.Tables[0].TableName     = "Pathology";
                PathFindDs.Tables[0].TableName = "PathologyFinding";

                DataSet PathFindCoreDs = new DataSet();
                PathFindCoreDs.Tables.Add(PathDs.Tables[0].Copy());
                PathFindCoreDs.Tables.Add(PathFindDs.Tables[0].Copy());

                PathFindCoreDs.Relations.Add("myPathFindRelation", PathFindCoreDs.Tables["Pathology"].Columns[Pathology.PathologyId], PathFindCoreDs.Tables["PathologyFinding"].Columns[Pathology.PathologyId]);

                GynPathologyRpt2.DataSource = PathFindCoreDs.Tables["Pathology"].DefaultView;
                GynPathologyRpt2.DataBind();
            }
            else
            {
                NoGynPathologyMsgTr2.Style.Add("display", "block");
                PrevGynPathologyRptHdr2.Visible = false;
            }
        }
Example #3
0
        protected void GetPath(int PatientID, string FormName, string FormType)
        {
            DataSet     PathDS, PathTestDS, PathGradeDS;
            PathologyDa PathDa = new PathologyDa();

            PathDS      = PathDa.FormGetRecords(PatientID, FormName, FormType);
            PathTestDS  = PathDa.FormGetPathTestRecords(PatientID, FormName, FormType);
            PathGradeDS = PathDa.FormGetPathGradeRecords(PatientID, FormName, FormType);

            if (PathDS.Tables.Count > 0)
            {
                PathDS.Tables[0].TableName      = "Pathology";
                PathTestDS.Tables[0].TableName  = "PathTest";
                PathGradeDS.Tables[0].TableName = "PathologyStageGrade";

                DataSet PathologyCoreDs = new DataSet();
                PathologyCoreDs.Tables.Add(PathDS.Tables[0].Copy());
                PathologyCoreDs.Tables.Add(PathTestDS.Tables[0].Copy());
                PathologyCoreDs.Tables.Add(PathGradeDS.Tables[0].Copy());

                PathologyCoreDs.Relations.Add("myRelation", PathologyCoreDs.Tables["Pathology"].Columns[Pathology.PathologyId], PathologyCoreDs.Tables["PathTest"].Columns[PathologyTest.PathologyId]);

                PathologyCoreDs.Relations.Add("myPathGradeRelation", PathologyCoreDs.Tables["Pathology"].Columns[Pathology.PathologyId], PathologyCoreDs.Tables["PathologyStageGrade"].Columns[Pathology.PathologyId]);

                SpinePathRpt.DataSource = PathologyCoreDs.Tables["Pathology"].DefaultView;
                SpinePathRpt.DataBind();
            }
            else
            {
                NoSpinePathMsgTr.Style.Add("display", "block");
            }
        }
Example #4
0
        protected virtual void BuildCytolgy()
        {
            PathologyDa cytologyDa = new PathologyDa();
            DataSet     cytologyDs = cytologyDa.FormGetRecords(this._patientId, this._eformName.Replace(" ", ""), "Dynamic");

            if (cytologyDs.Tables.Count > 0 && cytologyDs.Tables[0].Rows.Count > 0)
            {
                DataView cytologyDv = new DataView(cytologyDs.Tables[0]);
                cytologyDv.RowFilter = "PathSpecimenType = 'Cytology'";

                if (cytologyDv.Count > 0)
                {
                    Cytolgy.DataSource = cytologyDv;
                    Cytolgy.DataBind();
                }
            }
        }