public void BindControl()
    {
        Bill_Sys_PatientDeskList obj = new Bill_Sys_PatientDeskList();
        DataSet Ds = obj.GetPatienDeskList(txtCaseID.Text, txtCompanyId.Text);

        DtlPatientDetails.DataSource = Ds;
        DtlPatientDetails.DataBind();
    }
Beispiel #2
0
    //SP_GET_PATIENT_DESK_DETAILS
    public void GetPatienDeskList(string caseID, string companyID)
    {
        try
        {
            if (!((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
            {
                ScriptManager.RegisterStartupScript(this, GetType(), "ss", "spanhide();", true);
            }

            PatientList = new Bill_Sys_PatientDeskList();

            // Tushar:- To Bind Repeater
            rptPatientDeskList.DataSource = PatientList.GetPatienDeskList(caseID, companyID);
            rptPatientDeskList.DataBind();
            if ((((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO == "1"))
            {
            }
            else
            {
                for (int i = 0; i < rptPatientDeskList.Items.Count; i++)
                {
                    HtmlTableCell tblcell      = (HtmlTableCell)rptPatientDeskList.Controls[0].FindControl("tblheader");
                    HtmlTableCell tblcellvalue = (HtmlTableCell)rptPatientDeskList.Items[i].FindControl("tblvalue");
                    tblcell.Visible      = false;
                    tblcellvalue.Visible = false;
                }
            }
            if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION == "1")
            {
            }
            else
            {
                for (int i = 0; i < rptPatientDeskList.Items.Count; i++)
                {
                    HtmlTableCell tblcell      = (HtmlTableCell)rptPatientDeskList.Controls[0].FindControl("tblRemoteCaseid");
                    HtmlTableCell tblcellvalue = (HtmlTableCell)rptPatientDeskList.Items[i].FindControl("tblRemoteValue");
                    tblcell.Visible      = false;
                    tblcellvalue.Visible = false;
                }
            }
        }
        catch (Exception ex)
        {
            ex.ToString();
        }
    }