public void BindControl() { Bill_Sys_PatientDeskList obj = new Bill_Sys_PatientDeskList(); DataSet Ds = obj.GetPatienDeskList(txtCaseID.Text, txtCompanyId.Text); DtlPatientDetails.DataSource = Ds; DtlPatientDetails.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ajAutoIns.ContextKey = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; extddlInsuranceCompany.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; extddlCaseType.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; // txtPatientId.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_ID; CaseDetailsBO _caseDetailsBO = new CaseDetailsBO(); txtPatientId.Text = _caseDetailsBO.GetCasePatientID(txtCaseID.Text, ""); Bill_Sys_PatientDeskList objGetVisitInfo = new Bill_Sys_PatientDeskList(); DataSet dsVisitInfo = new DataSet(); if (txtCaseID.Text.Trim() != "" && txtEventID.Text.Trim() != "") { dsVisitInfo = objGetVisitInfo.GetVisitInsInfo(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, txtEventID.Text, "EVENT"); } else if (txtCaseID.Text != "" && txtEventID.Text.Trim() == "") { dsVisitInfo = objGetVisitInfo.GetVisitInsInfo(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, txtEventID.Text, "CASE"); } if (dsVisitInfo.Tables.Count > 0) { if (dsVisitInfo.Tables[0].Rows.Count > 0) { txtPolicyHolder.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_POLICY_HOLDER"].ToString(); txtPolicyNumber.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_POLICY_NO"].ToString(); txtClaimNumber.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_CLAIM_NUMBER"].ToString(); txtdateofaccident.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_DOA"].ToString(); extddlCaseType.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_CASE_TYPE_ID"].ToString(); hdninsurancecode.Value = dsVisitInfo.Tables[0].Rows[0]["SZ_INS_ID"].ToString(); txtInsuranceCompany.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_INSURANCE_NAME"].ToString(); Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO(); // lstInsuranceCompanyAddress.Items.Clear(); //notuse lstInsuranceCompanyAddress.DataSource = _bill_Sys_PatientBO.GetInsuranceCompanyAddress(extddlInsuranceCompany.Text).Tables[0]; lstInsuranceCompanyAddress.DataSource = _bill_Sys_PatientBO.GetInsuranceCompanyAddress(hdninsurancecode.Value).Tables[0]; lstInsuranceCompanyAddress.DataTextField = "DESCRIPTION"; lstInsuranceCompanyAddress.DataValueField = "CODE"; lstInsuranceCompanyAddress.DataBind(); lstInsuranceCompanyAddress.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_INS_ADD_ID"].ToString(); lstInsuranceCompanyAddress_SelectedIndexChanged(sender, e); } } } }
//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(); } }