コード例 #1
0
    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();
    }
コード例 #2
0
    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());
        }
    }
コード例 #3
0
ファイル: ViwScheduled.aspx.cs プロジェクト: jehan2898/root
    protected void btnSave_Click(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
        {
            Boolean _valid = true;
            if (ddlStatus.SelectedValue == "1")
            {
                if (txtReScheduleDate.Text == "" && ddlReSchHours.SelectedValue == "00")
                {
                    lblMessage.Text = "Please enter Res-Schedule Date and Time";
                    _valid          = false;
                }
            }
            else if (ddlStatus.SelectedValue == "2")
            {
                if (ddlTestNames.GetSelectedIndices().Length == 0)
                {
                    lblMessage.Text = "Please select procedure";
                    _valid          = false;
                }

                DateTime dtPassDate;
                dtPassDate = Convert.ToDateTime(lblDate.Text);
                if (dtPassDate > DateTime.Now)
                {
                    lblMessage.Text = "Cannot complete visit at future date.";
                    _valid          = false;
                }
            }
            else if (ddlStatus.SelectedValue == "3")
            {
                DateTime dtPassDate;
                dtPassDate = Convert.ToDateTime(lblDate.Text);
                if (dtPassDate > DateTime.Now)
                {
                    lblMessage.Text = "Cannot no show visit at future date.";
                    _valid          = false;
                }
            }
            if (_valid == true)
            {
                string            eventID            = Request.QueryString["id"].ToString();
                Bill_Sys_Calender _bill_Sys_Calender = new Bill_Sys_Calender();
                ArrayList         objAdd;
                if (ddlStatus.SelectedValue == "2")
                {
                    foreach (ListItem lst in ddlTestNames.Items)
                    {
                        if (lst.Selected == true)
                        {
                            objAdd = new ArrayList();
                            objAdd.Add(lst.Value);
                            objAdd.Add(eventID);
                            objAdd.Add(ddlStatus.SelectedValue);
                            _bill_Sys_Calender.Update_Event_RefferPrcedure(objAdd);

                            Bill_Sys_ReferalEvent _bill_Sys_ReferalEvent = new Bill_Sys_ReferalEvent();
                            ArrayList             arrOBJ = new ArrayList();
                            arrOBJ.Add(lblDoctorID.Text);
                            arrOBJ.Add(lst.Value);
                            arrOBJ.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                            arrOBJ.Add(lst.Value);
                            _bill_Sys_ReferalEvent.AddDoctorAmount(arrOBJ);

                            _bill_Sys_Calender.UpdateProcedure(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, lblDoctorID.Text, lst.Value, true, "");
                        }
                        else
                        {
                            _bill_Sys_Calender.UpdateProcedure(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, lblDoctorID.Text, lst.Value, false, eventID);
                        }
                    }
                }
                else if (ddlStatus.SelectedValue == "1")
                {
                    objAdd = new ArrayList();
                    objAdd.Add(txtCaseID.Text);
                    objAdd.Add(txtReScheduleDate.Text);
                    objAdd.Add(ddlReSchHours.SelectedValue.ToString() + "." + ddlReSchMinutes.SelectedValue.ToString());
                    objAdd.Add(txtNotes.Text);
                    objAdd.Add(lblDoctorID.Text);
                    objAdd.Add(lblTypeCode.Text);
                    objAdd.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    objAdd.Add(ddlReSchTime.SelectedValue);
                    ////////////////
                    int    endMin  = Convert.ToInt32(ddlReSchMinutes.SelectedValue) + Convert.ToInt32("30");
                    int    endHr   = Convert.ToInt32(ddlReSchHours.SelectedValue);
                    string endTime = ddlReSchTime.SelectedValue;
                    if (endMin >= 60)
                    {
                        endMin = endMin - 60;
                        endHr  = endHr + 1;
                        if (endHr > 12)
                        {
                            endHr = endHr - 12;
                            if (ddlReSchHours.SelectedValue != "12")
                            {
                                if (endTime == "AM")
                                {
                                    endTime = "PM";
                                }
                                else if (endTime == "PM")
                                {
                                    endTime = "AM";
                                }
                            }
                        }
                        else if (endHr == 12)
                        {
                            if (ddlReSchHours.SelectedValue != "12")
                            {
                                if (endTime == "AM")
                                {
                                    endTime = "PM";
                                }
                                else if (endTime == "PM")
                                {
                                    endTime = "AM";
                                }
                            }
                        }
                    }

                    //ddlEndHours.SelectedValue = endHr.ToString().PadLeft(2, '0');
                    //ddlEndMinutes.SelectedValue = endMin.ToString().PadLeft(2, '0');
                    //ddlEndTime.SelectedValue = endTime.ToString();
                    /////////////////
                    objAdd.Add(endHr.ToString().PadLeft(2, '0').ToString() + "." + endMin.ToString().PadLeft(2, '0').ToString());
                    objAdd.Add(endTime.ToString());
                    _bill_Sys_Calender.SaveEvent(objAdd, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString());
                    objAdd = new ArrayList();
                    objAdd.Add(txtCaseID.Text);
                    objAdd.Add(lblDoctorID.Text);
                    objAdd.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    int reScheventID = _bill_Sys_Calender.GetEventID(objAdd);
                    if (_bill_Sys_Calender.CheckReferralExists(lblDoctorID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID) == true)
                    {
                        foreach (ListItem lstItem in ddlTestNames.Items)
                        {
                            if (lstItem.Selected == true)
                            {
                                objAdd = new ArrayList();
                                objAdd.Add(lstItem.Value);
                                objAdd.Add(reScheventID);
                                objAdd.Add(0);
                                _bill_Sys_Calender.Update_Event_RefferPrcedure(objAdd, eventID);
                                //              _bill_Sys_Calender.Save_Event_RefferPrcedure(objAdd);


                                _bill_Sys_Calender.UpdateProcedure(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, lblDoctorID.Text, lstItem.Value, true, "");
                            }
                            else
                            {
                                _bill_Sys_Calender.UpdateProcedure(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, lblDoctorID.Text, lstItem.Value, false, reScheventID.ToString());
                            }
                        }
                    }
                }

                _bill_Sys_Calender = new Bill_Sys_Calender();
                objAdd             = new ArrayList();
                objAdd.Add(eventID);
                objAdd.Add(false);
                objAdd.Add(ddlStatus.SelectedValue);
                _bill_Sys_Calender.UPDATE_Event_Status(objAdd);
                // Start : Save appointment Notes.

                _DAO_NOTES_EO = new DAO_NOTES_EO();
                _DAO_NOTES_EO.SZ_MESSAGE_TITLE = "APPOINTMENT_UPDATED";
                //  _DAO_NOTES_EO.SZ_ACTIVITY_DESC = "Date : " + lblDate.Text;

                _DAO_NOTES_EO.SZ_ACTIVITY_DESC = "Date : " + lblDate.Text.Substring(0, lblDate.Text.IndexOf(" ")) + " " + lblHours.Text + ":" + lblMinutes.Text + " " + lblTime.Text;

                _DAO_NOTES_BO               = new DAO_NOTES_BO();
                _DAO_NOTES_EO.SZ_USER_ID    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
                _DAO_NOTES_EO.SZ_CASE_ID    = txtCaseID.Text;
                _DAO_NOTES_EO.SZ_COMPANY_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                _DAO_NOTES_BO.SaveActivityNotes(_DAO_NOTES_EO);


                // End
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ss", "<script language='javascript'>  parent.document.getElementById('divid').style.visibility = 'hidden';window.parent.document.location.href=window.parent.document.location.href;window.self.close();window.parent.document.location.reload(); parent.document.getElementById('lblMsg').value='Event added successfully.';</script>");
            }
        }
        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());
        }
    }
コード例 #4
0
    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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                this.txtOfficeAdd.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x10].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x11].Text != "&nbsp;")
            {
                this.txtOfficeCity.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x11].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x12].Text != "&nbsp;")
            {
                this.txtOfficeState.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x12].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x13].Text != "&nbsp;")
            {
                this.txtOfficeZip.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x13].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[20].Text != "&nbsp;")
            {
                this.txtOfficePhone.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[20].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x15].Text != "&nbsp;")
            {
                this.txtBillingAdd.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x15].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x16].Text != "&nbsp;")
            {
                this.txtBillingCity.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x16].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x17].Text != "&nbsp;")
            {
                this.txtBillingState.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x17].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x18].Text != "&nbsp;")
            {
                this.txtBillingZip.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x18].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x19].Text != "&nbsp;")
            {
                this.txtBillingPhone.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x19].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1a].Text != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                this.extddlDoctorType.Text = this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[30].Text;
            }
            if (this.grdDoctorNameList.Items[this.grdDoctorNameList.SelectedIndex].Cells[0x1f].Text != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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 != "&nbsp;")
            {
                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());
        }
    }
コード例 #5
0
    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());
        }
    }
コード例 #6
0
    //protected void btnSeacrh_Click(object sender, EventArgs e)
    //{
    //    try
    //    {
    //        //this.grdNormalDgCode.Visible = true;
    //        this.BindGrid(this.extddlDiagnosisType.Text, this.txtDiagonosisCode.Text, this.txtDescription.Text, rbl_SZ_TYPE_ID.SelectedValue);
    //    }
    //    catch
    //    {
    //    }
    //}

    protected void btnUploadFile_Click(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());
        }
        this.objNF3Template = new Bill_Sys_NF3_Template();
        try
        {
            string str = this.objNF3Template.getPhysicalPath();
            int    num = 0;
            if (this.extddlReadingDoctor.Text == "NA")
            {
                this.Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select Reading Doctor !');</script>");
            }
            else if (!this.fuUploadReport.HasFile)
            {
                this.Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');</script>");
            }
            else
            {
                ArrayList list      = (ArrayList)this.Session["DIAGNOS_ASSOCIATION_PAID"];
                string    extension = "";
                string    result    = "";
                extension = Path.GetExtension(fuUploadReport.FileName);
                result    = Path.GetFileNameWithoutExtension(fuUploadReport.FileName);
                string FileName = result + "_" + DateTime.Now.ToString("MMddyyyysstt") + extension;
                foreach (object obj2 in list)
                {
                    Bil_Sys_Associate_Diagnosis diagnosis = (Bil_Sys_Associate_Diagnosis)obj2;
                    string companyName = "";
                    if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY && (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == ((Bil_Sys_Associate_Diagnosis)((ArrayList)this.Session["DIAGNOS_ASSOCIATION_PAID"])[0]).CompanyId))
                    {
                        companyName = this.objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    }
                    else
                    {
                        companyName = this.objNF3Template.GetCompanyName(((Bil_Sys_Associate_Diagnosis)((ArrayList)this.Session["DIAGNOS_ASSOCIATION_PAID"])[0]).CompanyId);
                    }
                    companyName      = companyName + "/" + this.txtCaseID.Text + "/No Fault File/Medicals/" + diagnosis.ProceuderGroupName.ToString() + "/";
                    this.strLinkPath = companyName + FileName;
                    if (!Directory.Exists(str + companyName))
                    {
                        Directory.CreateDirectory(str + companyName);
                    }
                    this.fuUploadReport.SaveAs(str + companyName + FileName);
                    ArrayList list2 = new ArrayList();
                    if (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY && (((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == ((Bil_Sys_Associate_Diagnosis)((ArrayList)this.Session["DIAGNOS_ASSOCIATION_PAID"])[0]).CompanyId))
                    {
                        list2.Add(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    }
                    else
                    {
                        list2.Add(((Bil_Sys_Associate_Diagnosis)((ArrayList)this.Session["DIAGNOS_ASSOCIATION_PAID"])[0]).CompanyId);
                    }
                    list2.Add(this.txtCaseID.Text);
                    list2.Add(FileName);
                    list2.Add(companyName);
                    list2.Add(((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME);
                    list2.Add(diagnosis.ProceuderGroupName.ToString());
                    num = this.objNF3Template.saveReportInDocumentManager(list2);
                }
                bool flag  = false;
                bool flag2 = false;
                foreach (object obj3 in list)
                {
                    Bil_Sys_Associate_Diagnosis diagnosis2 = (Bil_Sys_Associate_Diagnosis)obj3;
                    this._bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO();
                    if (this._bill_Sys_ProcedureCode_BO.UpdateReportProcedureCodeListWithRefDoctor(Convert.ToInt32(diagnosis2.EventProcID.ToString()), this.strLinkPath, Convert.ToString(this.extddlReadingDoctor.Text), num) == 1)
                    {
                        flag = true;
                        Bill_Sys_ReferalEvent event2 = new Bill_Sys_ReferalEvent();
                        ArrayList             list3  = new ArrayList();
                        list3.Add(diagnosis2.PatientId.ToString());
                        list3.Add(diagnosis2.DoctorID.ToString());
                        list3.Add(diagnosis2.DateOfService.ToString());
                        list3.Add(diagnosis2.ProcedureCode.ToString());
                        list3.Add(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                        list3.Add("");
                        list3.Add(diagnosis2.EventProcID.ToString());
                        event2.AddPatientProc(list3);
                        this._bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO();
                        this._bill_Sys_ProcedureCode_BO.UpdateStatusProcedureCodeList(Convert.ToInt32(diagnosis2.EventProcID.ToString()));
                    }
                    else
                    {
                        flag2 = true;
                    }
                }
                if (flag && !flag2)
                {
                    this.Page.RegisterClientScriptBlock("ss", "<script language='javascript'>alert('Upload succesfully');</script>");
                }
            }
        }
        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());
        }
    }