public void BindProcedureCodeList(object sender, EventArgs e) { Bill_Sys_ReferalEvent billSysReferalEvent = new Bill_Sys_ReferalEvent(); DataSet dataSet = new DataSet(); string text = this.txtCompanyID.Text; string str = this.extddlSpeciality.Text; dataSet = billSysReferalEvent.GetProcedureCodeAndDescription(this.extddlSpeciality.Text, text); this.lstProcedureCode.DataSource = dataSet.Tables[0]; this.lstProcedureCode.DataTextField = "DESCRIPTION"; this.lstProcedureCode.DataValueField = "CODE"; this.lstProcedureCode.DataBind(); }
protected void extddlSpeciality_extendDropDown_SelectedIndexChanged(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _objReferal = new Bill_Sys_ReferalEvent(); DataSet dset = new DataSet(); ListItem li; try { string speciality = extddlSpeciality.Text.ToString(); dset = _objReferal.GetProcedureCodeAndDescription(speciality, extddlBillCompany.Text); ddlProcedureCode.DataSource = dset; ddlProcedureCode.DataValueField = "Code"; ddlProcedureCode.DataTextField = "Description"; ddlProcedureCode.DataBind(); ListItem objTest = new ListItem(); objTest.Text = "--- Select ---"; objTest.Value = "NA"; ddlProcedureCode.Items.Insert(0, objTest); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void grdDoctorNameList_SelectedIndexChanged(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { this.Session["DoctorID"] = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[1].Text; this.txtDoctorID.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[1].Text; if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[2].Text != " ") { this.txtDoctorName.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[2].Text; } else { this.txtDoctorName.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[5].Text != " ") { this.txtLicenseNumber.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[5].Text; } else { this.txtLicenseNumber.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[6].Text != " ") { this.extddlProvider.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[6].Text; } else { this.extddlProvider.Text = "NA"; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[14].Text != " ") { this.txtWCBAuth.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[14].Text; } else { this.txtWCBAuth.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[15].Text != " ") { this.txtWCBRatingCode.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[15].Text; } else { this.txtWCBRatingCode.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x10].Text != " ") { this.txtOfficeAdd.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x10].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x11].Text != " ") { this.txtOfficeCity.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x11].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x12].Text != " ") { this.txtOfficeState.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x12].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x13].Text != " ") { this.txtOfficeZip.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x13].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[20].Text != " ") { this.txtOfficePhone.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[20].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x15].Text != " ") { this.txtBillingAdd.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x15].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x16].Text != " ") { this.txtBillingCity.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x16].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x17].Text != " ") { this.txtBillingState.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x17].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x18].Text != " ") { this.txtBillingZip.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x18].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x19].Text != " ") { this.txtBillingPhone.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x19].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1a].Text != " ") { this.txtNPI.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1a].Text; } else { this.txtNPI.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1b].Text != " ") { this.txtFederalTax.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1b].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1c].Text == "0") { this.chklstTaxType.Items[0].Selected = true; this.chklstTaxType.Items[1].Selected = false; } else if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1c].Text == "1") { this.chklstTaxType.Items[1].Selected = true; this.chklstTaxType.Items[0].Selected = false; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1d].Text != " ") { this.txtKOEL.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1d].Text; } else { this.txtKOEL.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[30].Text != " ") { this.extddlDoctorType.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[30].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1f].Text != " ") { this.extddlOffice.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1f].Text; } else { this.extddlOffice.Text = "NA"; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x21].Text != " ") { this.txtTitle.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x21].Text; } else { this.txtTitle.Text = ""; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x22].Text != " ") { this.rdlstWorkType.SelectedValue = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x22].Text; } else { this.rdlstWorkType.SelectedValue = null; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x23].Text == "False") { this.chkIsReferral.Checked = false; } else { this.chkIsReferral.Checked = true; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x24].Text != " ") { this.txtFollowUp.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x24].Text; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x26].Text == "False") { this.chkIsUnBilled.Checked = false; } else { this.chkIsUnBilled.Checked = true; } if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[40].Text == "True") { this.chkSuperVisingDoctor.Checked = true; } else { this.chkSuperVisingDoctor.Checked = false; } this.btnDeleteSpeciality.Visible = false; this.BindSpecialityGrid(); if (this.chkSuperVisingDoctor.Checked) { if (this.extddlSpeciality.Text != "NA") { Bill_Sys_ReferalEvent event2 = new Bill_Sys_ReferalEvent(); DataSet procedureCodeAndDescription = new DataSet(); string text = this.txtCompanyID.Text; string str2 = this.extddlSpeciality.Text; procedureCodeAndDescription = event2.GetProcedureCodeAndDescription(str2, text); this.lstProcedureCode.DataSource = procedureCodeAndDescription.Tables[0]; this.lstProcedureCode.DataTextField = "DESCRIPTION"; this.lstProcedureCode.DataValueField = "CODE"; this.lstProcedureCode.DataBind(); this.lstProcedureCode.Visible = true; this.lblProcedurecode.Visible = true; this._bill_Sys_DoctorBO = new Bill_Sys_DoctorBO(); DataSet procedureCodes = new DataSet(); procedureCodes = this._bill_Sys_DoctorBO.GetProcedureCodes(this.txtCompanyID.Text, this.txtDoctorID.Text); if (procedureCodes.Tables[0].Rows.Count != 0) { for (int i = 0; i < procedureCodes.Tables[0].Rows.Count; i++) { string str3 = procedureCodes.Tables[0].Rows[i][0].ToString(); foreach (ListItem item in this.lstProcedureCode.Items) { if (item.Value.ToString() == str3) { item.Selected = true; break; } } } } } } else { this.lblProcedurecode.Visible = false; this.lstProcedureCode.Items.Clear(); this.lstProcedureCode.Visible = false; } this.btnSave.Enabled = false; this.btnUpdate.Enabled = true; this.lblMsg.Visible = false; } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void chkSuperVisingDoctor_CheckedChanged(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } Bill_Sys_ReferalEvent event2 = new Bill_Sys_ReferalEvent(); try { this.lblMsg.Visible = false; if (this.extddlSpeciality.Text != "NA") { DataSet procedureCodeAndDescription = new DataSet(); if (this.chkSuperVisingDoctor.Checked) { if (this.extddlSpeciality.Text != "NA") { string text = this.txtCompanyID.Text; string str2 = this.extddlSpeciality.Text; procedureCodeAndDescription = event2.GetProcedureCodeAndDescription(str2, text); this.lstProcedureCode.DataSource = procedureCodeAndDescription.Tables[0]; this.lstProcedureCode.DataTextField = "DESCRIPTION"; this.lstProcedureCode.DataValueField = "CODE"; this.lstProcedureCode.DataBind(); this.lstProcedureCode.Visible = true; this.lblProcedurecode.Visible = true; } } else { this.lstProcedureCode.Items.Clear(); this.lstProcedureCode.Visible = false; this.lblProcedurecode.Visible = false; } } else { this.chkSuperVisingDoctor.Checked = false; this.lblMsg.Visible = true; this.lblMsg.Text = "Select the Speciality!!!"; this.lstProcedureCode.Items.Clear(); this.lstProcedureCode.Visible = false; this.lblProcedurecode.Visible = false; } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }