Example #1
0
        protected void BuildSocialHistory(int PatientID, string FormName, string FormType)
        {
            DataSet         socialHxDs;
            SocialHistoryDa shDa = new SocialHistoryDa();

            socialHxDs = shDa.FormGetRecords(PatientID, FormName, FormType);

            if (socialHxDs.Tables.Count > 0 && socialHxDs.Tables[0].Rows.Count > 0)
            {
                NoSocialHxMsgTr.Visible = false;
                SocialHxMsgTr.Visible   = true;
                SocialHxHeaderTr.Style.Add("display", "none");
                SocialHxDiv.Style.Remove("display");

                rowHasHx1.DataSource = socialHxDs.Tables[0].DefaultView;
                rowHasHx1.DataBind();
                rowHasHx2.DataSource = socialHxDs.Tables[0].DefaultView;
                rowHasHx2.DataBind();
                rowHasHx3.DataSource = socialHxDs.Tables[0].DefaultView;
                rowHasHx3.DataBind();
                rowHasHx4.DataSource = socialHxDs.Tables[0].DefaultView;
                rowHasHx4.DataBind();
            }
            else
            {
                NoSocialHxMsgTr.Visible = true;
                SocialHxMsgTr.Visible   = false;
                SocialHxHeaderTr.Style.Remove("display");
                SocialHxDiv.Style.Add("display", "none");
            }
        }
Example #2
0
        protected void BuildSocialHistory(int PatientID, string FormName, string FormType)
        {
            DataSet         socialHxDs;
            SocialHistoryDa shDa = new SocialHistoryDa();

            socialHxDs = shDa.FormGetRecords(PatientID, FormName, FormType);

            if (socialHxDs.Tables.Count > 0 && socialHxDs.Tables[0].Rows.Count > 0)
            {
                NewSocialHx.Visible     = false;
                PrevSocialHx.DataSource = socialHxDs.Tables[0].DefaultView;
                PrevSocialHx.DataBind();
                ComponentTitle.Visible = true;
            }
            else
            {
                NewSocialHx.Visible  = true;
                PrevSocialHx.Visible = false;
            }
        }