protected void Page_Load(object sender, EventArgs e)
 {
     objSessionBillingCompany = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"];
     objSessionUser = (Bill_Sys_UserObject)Session["USER_OBJECT"];
     extddlSpeciality.Flag_ID = objSessionBillingCompany.SZ_COMPANY_ID;
     txtUserId.Text = objSessionUser.SZ_USER_ID;
     txtCompanyId.Text = objSessionBillingCompany.SZ_COMPANY_ID;
 }
示例#2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Bill_Sys_BillingCompanyObject obj = new Bill_Sys_BillingCompanyObject();

        obj.SZ_COMPANY_ID = "CO00023";
        Session["BILLING_COMPANY_OBJECT"] = obj;

        Bill_Sys_UserObject objUser = new Bill_Sys_UserObject();

        objUser.SZ_REFF_PROVIDER_ID = "OI000000000000000525";
        objUser.SZ_USER_ID          = "US000000000000000662";
        objUser.SZ_USER_NAME        = "testpro";
        Session["USER_OBJECT"]      = objUser;
    }
示例#3
0
 private bool validateOnPageLoad()
 {
     this.objCompany = (Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"];
     if (this.objCompany == null)
     {
         this.lblErrorMessage.Text    = "Your session has expired. You must re-login to access this page.";
         this.lblErrorMessage.Visible = true;
         return(false);
     }
     this.objUser = (Bill_Sys_UserObject)this.Session["USER_OBJECT"];
     if (this.objUser != null)
     {
         return(true);
     }
     this.lblErrorMessage.Text    = "Your session has expired. You must re-login to access this page.";
     this.lblErrorMessage.Visible = true;
     return(false);
 }
示例#4
0
    private bool validateOnPageLoad()
    {
        objCompany = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"];
        if (objCompany == null)
        {
            lblErrorMessage.Text    = (string)GetLocalResourceObject("session.expired");
            lblErrorMessage.Visible = true;
            return(false);
        }

        objUser = (Bill_Sys_UserObject)Session["USER_OBJECT"];
        if (objUser == null)
        {
            lblErrorMessage.Text    = (string)GetLocalResourceObject("session.expired");
            lblErrorMessage.Visible = true;
            return(false);
        }
        return(true);
    }
示例#5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        objSessionSystem           = (Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"];
        objSessionBillingCompany   = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"];
        objSessionCompanyAppStatus = (Bill_Sys_BillingCompanyObject)Session["APPSTATUS"];
        objSessionUser             = (Bill_Sys_UserObject)Session["USER_OBJECT"];
        txtireortreceive.Text      = "false";
        //txtVisit.Text = drpdown_Documents.SelectedValue.ToString();
        txtCompanyid.Text                = objSessionBillingCompany.SZ_COMPANY_ID;
        extddlCaseType.Flag_ID           = txtCompanyid.Text;
        this.con1.SourceGrid             = grdpaidbills;
        this.txtSearchBox1.SourceGrid    = grdpaidbills;
        this.grdpaidbills.Page           = this.Page;
        this.grdpaidbills.PageNumberList = this.con1;
        ddlDateValues.Attributes.Add("onChange", "javascript:SetVisitDate();");
        btnAddReason.Attributes.Add("onclick", "return CheckSelect();");
        btnChangeCaseType.Attributes.Add("onclick", "return CheckSelect();");

        if (!IsPostBack)
        {
            grdpaidbills.XGridBindSearch();
        }
    }
示例#6
0
    protected void Page_Load(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());
        }

        objSessionSystem           = (Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"];
        objSessionBillingCompany   = (Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"];
        objSessionCompanyAppStatus = (Bill_Sys_BillingCompanyObject)Session["APPSTATUS"];
        objSessionUser             = (Bill_Sys_UserObject)Session["USER_OBJECT"];
        btnOpenDocument.Attributes.Add("onClick", "return CheckDocument();");
        if (!IsPostBack)
        {
            txtCompanyID.Text           = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlSpecialty.Flag_ID     = txtCompanyID.Text;
            Session["Refresh"]          = "1";
            chkrefreshpaidbills.Checked = true;
            if (Request.QueryString["CaseID"] != null && Request.QueryString["EProcid"] != null)
            {
                txtCaseID.Text      = Request.QueryString["CaseID"].ToString();
                txtEventProcID.Text = Request.QueryString["EProcid"].ToString();
                txtProcGroup.Text   = Request.QueryString["ProcGroup"].ToString();
                txtProcGroupID.Text = Request.QueryString["ProcGroupID"].ToString();
            }

            if (txtProcGroup.Text == "OT" || txtProcGroup.Text == "")
            {
                extddlSpecialty.Visible = true;
            }
            else
            {
                extddlSpecialty.Visible  = false;
                extddlSpecialty.Text     = txtProcGroupID.Text;
                hdnmdltxtSpeciality.Text = extddlSpecialty.Selected_Text;
            }

            try
            {
                Bill_Sys_ProcedureCode_BO _bill_Sys_ProcedureCode_BO = new Bill_Sys_ProcedureCode_BO();
                grdViewDocuments.DataSource = _bill_Sys_ProcedureCode_BO.GetDocsNew(txtCaseID.Text, txtCompanyID.Text, txtEventProcID.Text);
                grdViewDocuments.DataBind();



                DataSet sdFiles = new DataSet();
                sdFiles = GetFiledDocTypeByProcID(txtEventProcID.Text);
                if (sdFiles.Tables.Count > 0)
                {
                    if (sdFiles.Tables[0].Rows.Count > 0)
                    {
                        for (int i1 = 0; i1 < grdViewDocuments.Items.Count; i1++)
                        {
                            for (int j = 0; j < sdFiles.Tables[0].Rows.Count; j++)
                            {
                                if (grdViewDocuments.Items[i1].Cells[3].Text.Trim() == sdFiles.Tables[0].Rows[j][0].ToString().Trim())
                                {
                                    DropDownList drp = (DropDownList)grdViewDocuments.Items[i1].FindControl("ddlreport");
                                    CheckBox     chk = (CheckBox)grdViewDocuments.Items[i1].FindControl("chkView");
                                    drp.Text    = sdFiles.Tables[0].Rows[j][1].ToString().Trim();
                                    chk.Checked = true;
                                }
                            }
                        }
                    }
                }
            }
            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());
        }
    }
示例#7
0
    //protected bool detectIdentificationCookie(string cookieCode, string cookieEncryptionKey)
    //{
    //    try
    //    {
    //        if (String.IsNullOrEmpty(cookieCode))
    //            return false;
    //        else if (Request.Cookies["GREENBILLS_DETECTION"] == null)
    //            return false;
    //        else
    //        {
    //            HttpCookie cookie = Request.Cookies["GREENBILLS_DETECTION"];
    //            int i = 0;
    //            foreach (string val in cookie.Values)
    //            {
    //                if (cookie[val].Equals(Bill_Sys_Utility.ComputeHMACSHA1(cookieCode, cookieEncryptionKey)))
    //                {
    //                    return createIdentificationCookie(i);
    //                }
    //                i++;
    //            }
    //            return false;
    //        }
    //    }
    //    catch (Exception ex)
    //    {
    //        return false;
    //    }
    //}


    protected void btnActivate_Click(object sender, EventArgs e)
    {
        string str  = "";
        string roll = "";

        roll = ValidateUserAndToken(txtToken.Text, txtUserName.Text, EncryptPassword());
        if (roll != "")
        {
            if (ActivateUser(txtToken.Text, txtUserName.Text, EncryptPassword()))
            {
                createLoginCookies(txtUserName.Text,
                                   true,
                                   roll);

                //detectIdentificationCookie(Convert.ToString(Session["CookieCode"]), System.Configuration.ConfigurationManager.AppSettings.Get("COOKIE_ENCRYPT_KEY"));

                _bill_Sys_LoginBO = new Bill_Sys_LoginBO();
                DataSet set = new DataSet();
                set = _bill_Sys_LoginBO.getLoginDetails(txtUserName.Text, "", HttpContext.Current.Request.UserHostAddress);
                if ((set.Tables.Count > 0) && (set.Tables[0].Rows.Count > 0))
                {
                    this.objAppSettings = (ApplicationSettings_BO)base.Application["OBJECT_APP_SETTINGS"];
                    if (this.objAppSettings == null)
                    {
                        this.objAppSettings = new ApplicationSettings_BO();
                        base.Application["OBJECT_APP_SETTINGS"] = this.objAppSettings;
                    }
                    if ((set.Tables[0].Rows.Count == 1) && (set.Tables[0].Rows[0][0].ToString() == "False"))
                    {
                        string str3 = HttpContext.Current.Request.UserHostAddress.ToString();
                        FormsAuthentication.SignOut();
                        FormsAuthentication.RedirectToLoginPage("IPValidationCheck=false&InvalidIP=" + str3);
                        return;
                    }
                    this._bill_Sys_UserObject                           = new Bill_Sys_UserObject();
                    this._bill_Sys_UserObject.SZ_USER_ID                = set.Tables[0].Rows[0][0].ToString();
                    this._bill_Sys_UserObject.SZ_USER_NAME              = set.Tables[0].Rows[0][1].ToString();
                    this._bill_Sys_UserObject.SZ_USER_ROLE              = set.Tables[0].Rows[0][4].ToString();
                    this._bill_Sys_UserObject.SZ_PROVIDER_ID            = set.Tables[0].Rows[0][5].ToString();
                    this._bill_Sys_UserObject.SZ_USER_ROLE_NAME         = set.Tables[0].Rows[0][8].ToString();
                    this._bill_Sys_UserObject.SZ_USER_EMAIL             = set.Tables[0].Rows[0]["USER_EMAIL_ID"].ToString();
                    this._bill_Sys_UserObject.DomainName                = set.Tables[0].Rows[0]["DomainName"].ToString();
                    this.Session["USER_OBJECT"]                         = this._bill_Sys_UserObject;
                    this._bill_Sys_BillingCompanyObject                 = new Bill_Sys_BillingCompanyObject();
                    this._bill_Sys_BillingCompanyObject.SZ_COMPANY_ID   = set.Tables[0].Rows[0][2].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_COMPANY_NAME = set.Tables[0].Rows[0][3].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_PREFIX       = set.Tables[0].Rows[0][6].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_ADDRESS      = set.Tables[0].Rows[0][9].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_EMAIL        = set.Tables[0].Rows[0][10].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_PHONE        = set.Tables[0].Rows[0][11].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_FAX          = set.Tables[0].Rows[0][12].ToString();
                    if (set.Tables[0].Rows[0][7].ToString() != "")
                    {
                        this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = Convert.ToBoolean(set.Tables[0].Rows[0][7].ToString());
                    }
                    else
                    {
                        this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = false;
                    }
                    if (set.Tables[0].Rows[0][13].ToString() != "")
                    {
                        this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = Convert.ToBoolean(set.Tables[0].Rows[0][13].ToString());
                    }
                    else
                    {
                        this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = false;
                    }
                    if (set.Tables[0].Rows[0]["BT_ATTORNY"].ToString() != "")
                    {
                        this._bill_Sys_BillingCompanyObject.BT_ATTORNY = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_ATTORNY"].ToString());
                    }
                    else
                    {
                        this._bill_Sys_BillingCompanyObject.BT_ATTORNY = false;
                    }
                    if (set.Tables[0].Rows[0]["BT_PROVIDER"].ToString() != "")
                    {
                        this._bill_Sys_BillingCompanyObject.BT_PROVIDER = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_PROVIDER"].ToString());
                    }
                    else
                    {
                        this._bill_Sys_BillingCompanyObject.BT_PROVIDER = false;
                    }
                    this.Session["BILLING_COMPANY_OBJECT"] = this._bill_Sys_BillingCompanyObject;
                    this._bill_Sys_CaseInfo            = new Bill_Sys_Case();
                    this._bill_Sys_CaseInfo.SZ_CASE_ID = "";
                    this.Session["CASE_INFO"]          = this._bill_Sys_CaseInfo;
                    this._bill_Sys_SystemObject        = new Bill_Sys_SystemObject();
                    DataView view = new DataView(set.Tables[1]);
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00003'";
                    this._bill_Sys_SystemObject.SZ_DEFAULT_LAW_FIRM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00004'";
                    this._bill_Sys_SystemObject.SZ_CHART_NO = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00007'";
                    this._bill_Sys_SystemObject.SZ_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00008'";
                    this._bill_Sys_SystemObject.SZ_CHECKINVALUE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00009'";
                    this._bill_Sys_SystemObject.AddVisits_SearchByChartNumber = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00014'";
                    this._bill_Sys_SystemObject.SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00017'";
                    this._bill_Sys_SystemObject.SZ_SHOW_PROVIDER_DISPLAY_NAME = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00018'";
                    this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00019'";
                    this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00020'";
                    this._bill_Sys_SystemObject.SZ_SHOW_DOCTOR_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    this._bill_Sys_SystemObject.SZ_SHOW_DATE_OF_FIRST_TREATMENT  = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00022'";
                    this._bill_Sys_SystemObject.SZ_SHOW_NEW_POM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00023'";
                    this._bill_Sys_SystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00025'";
                    this._bill_Sys_SystemObject.ASSOCIATE_CASE_TYPE_WITH_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00026'";
                    this._bill_Sys_SystemObject.ADD_LOCATION_TO_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00024'";
                    this._bill_Sys_SystemObject.SZ_SHOW_INSURANCE_WITH_BILL = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00029'";
                    this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_NF2_PDF = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00028'";
                    this._bill_Sys_SystemObject.SZ_SHOW_NF3_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00030'";
                    this._bill_Sys_SystemObject.ALLOW_TO_ADD_VISIT_FOR_FUTURE_DATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00031'";
                    this._bill_Sys_SystemObject.PHONE_FORMATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00032'";
                    this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00033'";
                    this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00034'";
                    this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00037'";
                    this._bill_Sys_SystemObject.SZ_ADD_SECONDARY_INSURANCE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00038'";
                    this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST_FOR_DIAGNOSIS_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00049'";
                    this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_WALK_IN_ON_WORKAREA = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00050'";
                    this._bill_Sys_SystemObject.SZ_COPY_PATIENT_TO_TEST_FACILITY = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00054'";
                    this._bill_Sys_SystemObject.SZ_HP1_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00051'";
                    this._bill_Sys_SystemObject.SZ_MG2_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00062'";
                    this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_CODE_AMOUNT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00059'";
                    this._bill_Sys_SystemObject.SZ_ALLOW_HP1_SIGN = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00057'";
                    this._bill_Sys_SystemObject.SZ_ALLOW_MODIFIER_TO_UPDATE_FOR_PROCEDURE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00080'";
                    this._bill_Sys_SystemObject.SZ_ADD_APPOINTMENT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00082'";
                    this._bill_Sys_SystemObject.SZ_ENABLE_CYCLIC_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00084'";
                    this._bill_Sys_SystemObject.IS_EMPLOYER = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";


                    view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00012'";
                    if (view.ToTable().Rows.Count > 0)
                    {
                        if (view.ToTable().Rows[0][1].ToString() == this._bill_Sys_UserObject.SZ_USER_ID)
                        {
                            this.Session["IPAdmin"] = "True";
                        }
                        else
                        {
                            this.Session["IPAdmin"] = "False";
                        }
                    }
                    else
                    {
                        this.Session["IPAdmin"] = "False";
                    }
                    DataTable table = set.Tables[2];
                    foreach (DataRow row in table.Rows)
                    {
                        if (row["SZ_CONFIGURATION"].ToString() == "SOFT DELETE")
                        {
                            this._bill_Sys_SystemObject.SZ_SOFT_DELETE = "True";
                        }
                        else
                        {
                            if (row["SZ_CONFIGURATION"].ToString() == "HARD DELETE")
                            {
                                this._bill_Sys_SystemObject.SZ_HARD_DELETE = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "NEW BILLS")
                            {
                                this._bill_Sys_SystemObject.SZ_NEW_BILL = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "VIEW BILLS")
                            {
                                this._bill_Sys_SystemObject.SZ_VIEW_BILL = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "DELETE BILLS")
                            {
                                this._bill_Sys_SystemObject.SZ_DELETE_BILLS = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "DELETE VISIT")
                            {
                                this._bill_Sys_SystemObject.SZ_DELETE_VIEWS = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "EMG BILL")
                            {
                                this._bill_Sys_SystemObject.SZ_EMG_BILL = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "NOTE DELETE")
                            {
                                this._bill_Sys_SystemObject.SZ_NOTE_DELETE = "True";
                                continue;
                            }
                            if (row["SZ_CONFIGURATION"].ToString() == "NOTE SOFT DELETE")
                            {
                                this._bill_Sys_SystemObject.SZ_NOTE_SOFT_DELETE = "True";
                            }
                        }
                    }
                    this.Session["SYSTEM_OBJECT"] = this._bill_Sys_SystemObject;
                    this._bill_Sys_LoginBO.ChangeLoginDate(((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID);
                    this.Session["REMINDER"]  = "TRUE";
                    this.Session["IMDETAILS"] = "TRUE";
                    string str4 = set.Tables[0].Rows[0][8].ToString();
                    this._bill_Sys_BillingCompanyObject.SZ_READ_ONLY = this._bill_Sys_LoginBO.Readonly();
                    this.Session["APPSTATUS"] = this._bill_Sys_BillingCompanyObject;
                    if (str4.ToLower() == "doctor")
                    {
                        if ((set.Tables.Count > 3) && (set.Tables[3].Rows.Count > 0))
                        {
                            str = set.Tables[3].Rows[0][0].ToString();
                        }
                        if (str.ToString().Equals("IM"))
                        {
                            this.Session["PageRedirect"] = "~/Bill_Sys_IM_CheckOut.aspx";
                        }
                        else
                        {
                            this.Session["PageRedirect"] = @"~/AJAX Pages\Bill_Sys_PatientSearch.aspx";
                        }
                    }
                    else if (str4.ToLower() == "agent")
                    {
                        this.Session["PageRedirect"] = "~/Agent/Bill_Sys_Agent_SearchCase.aspx";
                    }
                    else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                    {
                        if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null))
                        {
                            string s = this.Session["urlintegration"].ToString();
                            s = base.Server.UrlEncode(s);
                            this.Session["PageRedirect"] = "~/ATT/Bill_Sys_AttorneySearch.aspx?dt=" + s;
                        }
                        if (this.Session["IntDocUrl"] != null)
                        {
                            Bill_Sys_DocumentManagerObject obj2 = new Bill_Sys_DocumentManagerObject();
                            string str6 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                            obj2 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"];
                            string str7  = obj2.SZ_CASE_ID;
                            string str8  = obj2.SZ_CASE_NO;
                            string str9  = obj2.SZ_COMAPNY_ID;
                            string str10 = obj2.SZ_LAWFIRM_ID;
                            if (str6 == str10)
                            {
                                this.Session["PageRedirect"] = "~/Document Manager/case/vb_CaseInformation.aspx?caseid=" + str7 + "&caseno=" + str8 + "&cmpid=" + str9;
                            }
                            else
                            {
                                this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx";
                            }
                        }
                        else
                        {
                            this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx";
                        }
                    }
                    else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True"))
                    {
                        if (str4.ToLower() == "provider")
                        {
                            this.Session["PageRedirect"] = @"~/Provider\Bill_Sys_SearchCase.aspx";
                        }
                    }
                    else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                    {
                        this.Session["PageRedirect"] = @"~/ATT\Bill_Sys_AttorneySearch.aspx";
                    }
                    else if (set.Tables[0].Rows[0][6].ToString() != "")
                    {
                        this.Session["PageRedirect"] = "~/AJAX Pages/Bill_Sys_SearchCase.aspx";
                    }
                    else
                    {
                        this.Session["PageRedirect"] = "~/Bill_Sys_BillingCompany.aspx";
                    }
                    if (set.Tables[0].Rows[0]["Force_PasswordChange"].ToString() == "True")
                    {
                        base.Response.Redirect(@"AJAX Pages\Bill_Sys_ChangePassword.aspx", false);
                        return;
                    }
                    if (str4.ToLower() == "doctor")
                    {
                        if (str.ToString().Equals("IM"))
                        {
                            base.Response.Redirect("Bill_Sys_IM_CheckOut.aspx", false);
                        }
                        else
                        {
                            base.Response.Redirect(@"AJAX Pages\Bill_Sys_PatientSearch.aspx", false);
                        }
                    }
                    else if (str4.ToLower() == "agent")
                    {
                        base.Response.Redirect(@"Agent\Bill_Sys_Agent_SearchCase.aspx", false);
                    }
                    else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                    {
                        if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null))
                        {
                            string str11 = this.Session["urlintegration"].ToString();
                            str11 = base.Server.UrlEncode(str11);
                            str11 = "ATT/Bill_Sys_AttorneySearch.aspx?dt=" + str11;
                            base.Response.Redirect(str11, false);
                        }
                        if (this.Session["IntDocUrl"] != null)
                        {
                            Bill_Sys_DocumentManagerObject obj3 = new Bill_Sys_DocumentManagerObject();
                            obj3 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"];
                            string str12 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                            string str13 = obj3.SZ_CASE_ID;
                            string str14 = obj3.SZ_CASE_NO;
                            string str15 = obj3.SZ_COMAPNY_ID;
                            string str16 = obj3.SZ_LAWFIRM_ID;
                            if (str12 == str16)
                            {
                                string url = "Document Manager/case/vb_CaseInformation.aspx?caseid=" + str13 + "&caseno=" + str14 + "&cmpid=" + str15;
                                base.Response.Redirect(url, false);
                            }
                            else
                            {
                                base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false);
                            }
                        }
                        else
                        {
                            base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false);
                        }
                    }
                    else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True"))
                    {
                        if (str4.ToLower() == "provider")
                        {
                            base.Response.Redirect(@"Provider\Bill_Sys_SearchCase.aspx", false);
                        }
                    }
                    else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                    {
                        base.Response.Redirect(@"ATT\Bill_Sys_AttorneySearch.aspx", false);
                    }
                    else if (set.Tables[0].Rows[0][6].ToString() != "")
                    {
                        base.Response.Redirect("AJAX Pages/Bill_Sys_SearchCase.aspx", false);
                    }
                    else
                    {
                        base.Response.Redirect("Bill_Sys_BillingCompany.aspx", false);
                    }
                }
                else
                {
                    FormsAuthentication.SignOut();
                    FormsAuthentication.RedirectToLoginPage();
                }
            }
            else
            {
                lblErrorMsg.Text = "Activation failed";
            }
        }
        else
        {
            lblErrorMsg.Text = "Activation failed";
        }
    }
    protected void Page_Load(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.objSessionSystem            = (Bill_Sys_SystemObject)this.Session["SYSTEM_OBJECT"];
        this.objSessionBillingCompany    = (Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"];
        this.objSessionCompanyAppStatus  = (Bill_Sys_BillingCompanyObject)this.Session["APPSTATUS"];
        this.objSessionUser              = (Bill_Sys_UserObject)this.Session["USER_OBJECT"];
        this.con1.SourceGrid             = this.grdpaidbills;
        this.txtSearchBox1.SourceGrid    = this.grdpaidbills;
        this.grdpaidbills.Page           = this.Page;
        this.grdpaidbills.PageNumberList = this.con1;
        this.XGridPaginationDropDownUnPaid.SourceGrid = this.grdBills;
        this.XGridSearchTextBoxUnPaid.SourceGrid      = this.grdBills;
        this.grdBills.Page           = this.Page;
        this.grdBills.PageNumberList = this.XGridPaginationDropDownUnPaid;
        this.txtUpdate1.Attributes.Add("onclick", "javascript:CloseEditProcPopup();");
        this.txtUpdate2.Attributes.Add("onclick", "javascript:CloseDocumentPopup();");
        this.txtUpdate3.Attributes.Add("onclick", "javascript:CloseDocPopup();");
        this.txtUpdate4.Attributes.Add("onclick", "javascript:CloseDocPopup();");
        this.ddlDateValues.Attributes.Add("onChange", "javascript:SetVisitDate();");
        try
        {
            if (base.Request.QueryString["popup"] != null)
            {
                if (base.Request.QueryString["popup"].ToString().Equals("done"))
                {
                    this.lblMsg.Text    = "Report received successfully.";
                    this.lblMsg.Visible = true;
                }
                if (base.Request.QueryString["popup"].ToString().Equals("done1"))
                {
                    this.lblMsg.Visible = false;
                }
            }
            if (!base.IsPostBack)
            {
                this.txtCompanyid.Text = this.objSessionBillingCompany.SZ_COMPANY_ID;
                if (this.lblMsg.Text.Equals(""))
                {
                    this.lblMsg.Visible = false;
                }
                if (base.Request.QueryString["Flag"] != null)
                {
                    if (base.Request.QueryString["Flag"].ToString().ToLower() == "paid")
                    {
                        this.lblHeader.Text  = "Paid Bills";
                        this.txtHeading.Text = "Paid Bills";
                        this.BindBillsGrid("paid");
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "unpaid")
                    {
                        this.lblHeader.Text  = "Un-Paid Bills";
                        this.txtHeading.Text = "Un-Paid Bills";
                        this.BindBillsGrid("unpaid");
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingattorney")
                    {
                        this.lblHeader.Text = "Missing Attorney";
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missinginsurancecompany")
                    {
                        this.lblHeader.Text = "Missing Insurance Company";
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingprovider")
                    {
                        this.lblHeader.Text = "Missing Provider";
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingclaimnumber")
                    {
                        this.lblHeader.Text = "Missing Claim Number";
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingreportnumber")
                    {
                        this.lblHeader.Text = "Missing Report Number";
                    }
                    else if (base.Request.QueryString["Flag"].ToString().ToLower() == "missingpolicyholder")
                    {
                        this.lblHeader.Text = "Missing Policy Holder";
                    }
                    else if ((base.Request.QueryString["Flag"].ToString().ToLower() == "report") && (base.Request.QueryString["Type"] != null))
                    {
                        if (base.Request.QueryString["Type"].ToString() == "R")
                        {
                            this.lblHeader.Text = "Received Report";
                            this.BindGridQueryString("True");
                        }
                        else
                        {
                            this.lblHeader.Text  = "Pending Report";
                            this.txtHeading.Text = "Pending Report";
                            this.BindGridQueryString("False");
                        }
                    }
                }
                if (this.objSessionSystem.SZ_CHART_NO == "0")
                {
                    this.grdpaidbills.Columns[1].Visible = false;
                    this.grdBills.Columns[4].Visible     = false;
                }
                else
                {
                    this.grdBills.Columns[4].Visible = true;
                }
                if (this.objSessionSystem.SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION != "1")
                {
                    this.ddlDateValues.Visible  = false;
                    this.lblvisitdate.Visible   = false;
                    this.lblfrom.Visible        = false;
                    this.lblto.Visible          = false;
                    this.txtVisitDate.Visible   = false;
                    this.imgVisit.Visible       = false;
                    this.btnSearch.Visible      = false;
                    this.txtToVisitDate.Visible = false;
                    this.imgVisite1.Visible     = false;
                }
                else
                {
                    this.ddlDateValues.Visible  = true;
                    this.lblvisitdate.Visible   = true;
                    this.lblfrom.Visible        = true;
                    this.lblto.Visible          = true;
                    this.txtVisitDate.Visible   = true;
                    this.imgVisit.Visible       = true;
                    this.btnSearch.Visible      = true;
                    this.txtToVisitDate.Visible = true;
                    this.imgVisite1.Visible     = true;
                }
            }
            this.txtVisit.Text = this.drpdown_Documents.SelectedValue.ToString();
        }
        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);
        }
        if (this.objSessionCompanyAppStatus.SZ_READ_ONLY.ToString().Equals("True"))
        {
            new Bill_Sys_ChangeVersion(this.Page).MakeReadOnlyPage("Bill_Sys_paid_bills.aspx");
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
示例#9
0
    protected void Page_Load(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());
        }
        btnSendMail.Attributes.Add("onclick", "return Confirm_Send_Mail();");
        try
        {
            oC_UserObject   = (Bill_Sys_UserObject)(Session["USER_OBJECT"]);
            oC_Account      = (Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"]);
            oC_SystemObject = (Bill_Sys_SystemObject)(Session["SYSTEM_OBJECT"]);

            if (oC_Account == null || oC_UserObject == null || oC_SystemObject == null)
            {
                DisableInput();
                lblMessage.Text      = "Oops! Your session has expired. You must re-login to proceed !";
                lblMessage.ForeColor = Color.Red;
                return;
            }

            if (!IsPostBack)
            {
                txtCompanyID.Text = oC_Account.SZ_COMPANY_ID;
                //setLabels();
                if ((oC_SystemObject.SZ_LOCATION == "1"))
                {
                    extddlLocation.Visible  = true;
                    lblLocationName.Visible = true;

                    extddlLocation.Flag_ID = txtCompanyID.Text.ToString();
                }
                extddlCaseType.Flag_ID = txtCompanyID.Text.ToString();
                //call to procedure
                /// extddlCaseType.Text=
                _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();

                extddlCaseType.Text = _bill_Sys_BillingCompanyDetails_BO.getNF2CaseType(txtCompanyID.Text);

                BindGrid();
            }
        }
        catch (Exception ex)
        {
            //string strError = ex.Message.ToString();
            //strError = strError.Replace("\n", " ");
            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);
        }

        #region "check version readonly or not"
        string app_status = oC_Account.SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_ShowUnSentNF2.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
示例#10
0
    //protected void extddlBillCompany_extendDropDown_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    BindPatients();
    //}

    protected void btnCpy_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
        {
            mbs.bl.connections.MyConnectionDAO obj = new mbs.bl.connections.MyConnectionDAO();
            obj.CompanyConnectionFrom = szCompanyID;
            obj.CompanyConnectionTo   = extddlBillCompany.Text;

            // get the userid from the session
            obj.UserID = "";
            Bill_Sys_UserObject objUser = (Bill_Sys_UserObject)Session["USER_OBJECT"];

            mbs.bl.connections.MyConnections objService = new mbs.bl.connections.MyConnections();

            ArrayList objList = new ArrayList();
            mbs.bl.connections.MyConnectionDAO objL = null;

            System.Web.UI.WebControls.CheckBox chk = null;

            for (int i = 0; i < grid.Rows.Count; i++)
            {
                chk = (System.Web.UI.WebControls.CheckBox)grid.Rows[i].FindControl("ChkCpy");
                if (chk.Checked == true)
                {
                    objL           = new mbs.bl.connections.MyConnectionDAO();
                    objL.PatientID = grid.DataKeys[i][DATAKEY_GRID_PATIENT_ID].ToString(); // get patient id

                    objL.CompanyConnectionFrom = szCompanyID;                              // this company is allowed to copy from CompanyConnectionTo
                    objL.CompanyConnectionTo   = extddlBillCompany.Text;                   // patient from this company will be copied to CompanyConnectionFrom
                    objL.UserID = objUser.SZ_USER_ID;                                      // get user id
                    objList.Add(objL);
                }
            }

            string status = objService.CopyPatientToConnection(objList);
            BindPatients();
            if (status == "0")
            {
                usrMessage.PutMessage(" Selected patient(s) have been copied to your account");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            }
            else
            {
                usrMessage.PutMessage(" Selected patient(s) already exists in your account");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
            }
            usrMessage.Show();
        }
        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());
        }
    }
示例#11
0
    private void UserLogin()
    {
        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());
        }
        if (this.Session["UserName"] == null)
        {
        }
        try
        {
            string str  = "";
            string str2 = "";
            if (base.Request.QueryString["name"] != null)
            {
                str2 = base.Request.QueryString["name"].ToString();
            }
            new ArrayList();
            this._bill_Sys_LoginBO = new Bill_Sys_LoginBO();
            DataSet set = new DataSet();
            set = this._bill_Sys_LoginBO.getLoginDetails(this.Session["UserName"].ToString(), str2, HttpContext.Current.Request.UserHostAddress);
            if ((set.Tables.Count > 0) && (set.Tables[0].Rows.Count > 0))
            {
                this.objAppSettings = (ApplicationSettings_BO)base.Application["OBJECT_APP_SETTINGS"];
                if (this.objAppSettings == null)
                {
                    this.objAppSettings = new ApplicationSettings_BO();
                    base.Application["OBJECT_APP_SETTINGS"] = this.objAppSettings;
                }
                if ((set.Tables[0].Rows.Count == 1) && (set.Tables[0].Rows[0][0].ToString() == "False"))
                {
                    string str3 = HttpContext.Current.Request.UserHostAddress.ToString();
                    FormsAuthentication.SignOut();
                    FormsAuthentication.RedirectToLoginPage("IPValidationCheck=false&InvalidIP=" + str3);
                    return;
                }
                this._bill_Sys_UserObject                           = new Bill_Sys_UserObject();
                this._bill_Sys_UserObject.SZ_USER_ID                = set.Tables[0].Rows[0][0].ToString();
                this._bill_Sys_UserObject.SZ_USER_NAME              = set.Tables[0].Rows[0][1].ToString();
                this._bill_Sys_UserObject.SZ_USER_ROLE              = set.Tables[0].Rows[0][4].ToString();
                this._bill_Sys_UserObject.SZ_PROVIDER_ID            = set.Tables[0].Rows[0][5].ToString();
                this._bill_Sys_UserObject.SZ_USER_ROLE_NAME         = set.Tables[0].Rows[0][8].ToString();
                this._bill_Sys_UserObject.SZ_USER_EMAIL             = set.Tables[0].Rows[0]["USER_EMAIL_ID"].ToString();
                this._bill_Sys_UserObject.DomainName                = set.Tables[0].Rows[0]["DomainName"].ToString();
                this.Session["USER_OBJECT"]                         = this._bill_Sys_UserObject;
                this._bill_Sys_BillingCompanyObject                 = new Bill_Sys_BillingCompanyObject();
                this._bill_Sys_BillingCompanyObject.SZ_COMPANY_ID   = set.Tables[0].Rows[0][2].ToString();
                this._bill_Sys_BillingCompanyObject.SZ_COMPANY_NAME = set.Tables[0].Rows[0][3].ToString();
                this._bill_Sys_BillingCompanyObject.SZ_PREFIX       = set.Tables[0].Rows[0][6].ToString();
                this._bill_Sys_BillingCompanyObject.SZ_ADDRESS      = set.Tables[0].Rows[0][9].ToString();
                this._bill_Sys_BillingCompanyObject.SZ_EMAIL        = set.Tables[0].Rows[0][10].ToString();
                this._bill_Sys_BillingCompanyObject.SZ_PHONE        = set.Tables[0].Rows[0][11].ToString();
                this._bill_Sys_BillingCompanyObject.SZ_FAX          = set.Tables[0].Rows[0][12].ToString();
                if (set.Tables[0].Rows[0][7].ToString() != "")
                {
                    this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = Convert.ToBoolean(set.Tables[0].Rows[0][7].ToString());
                }
                else
                {
                    this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY = false;
                }
                if (set.Tables[0].Rows[0][13].ToString() != "")
                {
                    this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = Convert.ToBoolean(set.Tables[0].Rows[0][13].ToString());
                }
                else
                {
                    this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM = false;
                }
                if (set.Tables[0].Rows[0]["BT_ATTORNY"].ToString() != "")
                {
                    this._bill_Sys_BillingCompanyObject.BT_ATTORNY = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_ATTORNY"].ToString());
                }
                else
                {
                    this._bill_Sys_BillingCompanyObject.BT_ATTORNY = false;
                }
                if (set.Tables[0].Rows[0]["BT_PROVIDER"].ToString() != "")
                {
                    this._bill_Sys_BillingCompanyObject.BT_PROVIDER = Convert.ToBoolean(set.Tables[0].Rows[0]["BT_PROVIDER"].ToString());
                }
                else
                {
                    this._bill_Sys_BillingCompanyObject.BT_PROVIDER = false;
                }
                this.Session["BILLING_COMPANY_OBJECT"] = this._bill_Sys_BillingCompanyObject;
                //Custom schedular
                Session["Billing_Company_ID"]      = _bill_Sys_BillingCompanyObject.SZ_COMPANY_ID;
                this._bill_Sys_CaseInfo            = new Bill_Sys_Case();
                this._bill_Sys_CaseInfo.SZ_CASE_ID = "";
                this.Session["CASE_INFO"]          = this._bill_Sys_CaseInfo;
                this._bill_Sys_SystemObject        = new Bill_Sys_SystemObject();
                DataView view = new DataView(set.Tables[1]);
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00003'";
                this._bill_Sys_SystemObject.SZ_DEFAULT_LAW_FIRM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00004'";
                this._bill_Sys_SystemObject.SZ_CHART_NO = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00007'";
                this._bill_Sys_SystemObject.SZ_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00008'";
                this._bill_Sys_SystemObject.SZ_CHECKINVALUE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00009'";
                this._bill_Sys_SystemObject.AddVisits_SearchByChartNumber = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00014'";
                this._bill_Sys_SystemObject.SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00017'";
                this._bill_Sys_SystemObject.SZ_SHOW_PROVIDER_DISPLAY_NAME = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00018'";
                this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00019'";
                this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00020'";
                this._bill_Sys_SystemObject.SZ_SHOW_DOCTOR_SIGNATURE_FOR_NF3 = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                this._bill_Sys_SystemObject.SZ_SHOW_DATE_OF_FIRST_TREATMENT  = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00022'";
                this._bill_Sys_SystemObject.SZ_SHOW_NEW_POM = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00023'";
                this._bill_Sys_SystemObject.SZ_ASSIGN_DIAGNOSIS_CODE_TO_VISIT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00025'";
                this._bill_Sys_SystemObject.ASSOCIATE_CASE_TYPE_WITH_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00026'";
                this._bill_Sys_SystemObject.ADD_LOCATION_TO_VISITS = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00024'";
                this._bill_Sys_SystemObject.SZ_SHOW_INSURANCE_WITH_BILL = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00029'";
                this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_NF2_PDF = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00028'";
                this._bill_Sys_SystemObject.SZ_SHOW_NF3_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00030'";
                this._bill_Sys_SystemObject.ALLOW_TO_ADD_VISIT_FOR_FUTURE_DATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00031'";
                this._bill_Sys_SystemObject.PHONE_FORMATE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00032'";
                this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_PATIENT_PHONE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00033'";
                this._bill_Sys_SystemObject.DONOT_ALLOW_TO_CREATE_BILL_WITHOUT_LOCATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00034'";
                this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00037'";
                this._bill_Sys_SystemObject.SZ_ADD_SECONDARY_INSURANCE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00038'";
                this._bill_Sys_SystemObject.SZ_SHOW_ADD_TO_PREFERED_LIST_FOR_DIAGNOSIS_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00049'";
                this._bill_Sys_SystemObject.SZ_SHOW_PATIENT_WALK_IN_ON_WORKAREA = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00050'";
                this._bill_Sys_SystemObject.SZ_COPY_PATIENT_TO_TEST_FACILITY = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00054'";
                this._bill_Sys_SystemObject.SZ_HP1_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00051'";
                this._bill_Sys_SystemObject.SZ_MG2_Display = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00062'";
                this._bill_Sys_SystemObject.SZ_ALLOW_TO_EDIT_CODE_AMOUNT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00059'";
                this._bill_Sys_SystemObject.SZ_ALLOW_HP1_SIGN = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00057'";
                this._bill_Sys_SystemObject.SZ_ALLOW_MODIFIER_TO_UPDATE_FOR_PROCEDURE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00080'";
                this._bill_Sys_SystemObject.SZ_ADD_APPOINTMENT = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00082'";
                this._bill_Sys_SystemObject.SZ_ENABLE_CYCLIC_PROCEDURE_CODE = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00084'";
                this._bill_Sys_SystemObject.IS_EMPLOYER = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";
                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00086'";
                this._bill_Sys_SystemObject.SZ_ENABLE_CONTRACT_PDF_GENERATION = (view.ToTable().Rows.Count > 0) ? view.ToTable().Rows[0][1].ToString() : "0";


                view.RowFilter = "SZ_SYS_SETTING_KEY_ID='SS00012'";
                if (view.ToTable().Rows.Count > 0)
                {
                    if (view.ToTable().Rows[0][1].ToString() == this._bill_Sys_UserObject.SZ_USER_ID)
                    {
                        this.Session["IPAdmin"] = "True";
                    }
                    else
                    {
                        this.Session["IPAdmin"] = "False";
                    }
                }
                else
                {
                    this.Session["IPAdmin"] = "False";
                }
                DataTable table = set.Tables[2];
                foreach (DataRow row in table.Rows)
                {
                    if (row["SZ_CONFIGURATION"].ToString() == "SOFT DELETE")
                    {
                        this._bill_Sys_SystemObject.SZ_SOFT_DELETE = "True";
                    }
                    else
                    {
                        if (row["SZ_CONFIGURATION"].ToString() == "HARD DELETE")
                        {
                            this._bill_Sys_SystemObject.SZ_HARD_DELETE = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "NEW BILLS")
                        {
                            this._bill_Sys_SystemObject.SZ_NEW_BILL = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "VIEW BILLS")
                        {
                            this._bill_Sys_SystemObject.SZ_VIEW_BILL = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "DELETE BILLS")
                        {
                            this._bill_Sys_SystemObject.SZ_DELETE_BILLS = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "DELETE VISIT")
                        {
                            this._bill_Sys_SystemObject.SZ_DELETE_VIEWS = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "EMG BILL")
                        {
                            this._bill_Sys_SystemObject.SZ_EMG_BILL = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "NOTE DELETE")
                        {
                            this._bill_Sys_SystemObject.SZ_NOTE_DELETE = "True";
                            continue;
                        }
                        if (row["SZ_CONFIGURATION"].ToString() == "NOTE SOFT DELETE")
                        {
                            this._bill_Sys_SystemObject.SZ_NOTE_SOFT_DELETE = "True";
                        }
                    }
                }
                this.Session["SYSTEM_OBJECT"] = this._bill_Sys_SystemObject;
                this._bill_Sys_LoginBO.ChangeLoginDate(((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID);
                this.Session["REMINDER"]  = "TRUE";
                this.Session["IMDETAILS"] = "TRUE";
                string str4 = set.Tables[0].Rows[0][8].ToString();
                if (str4.ToLower() == "doctor")
                {
                    if ((set.Tables.Count > 3) && (set.Tables[3].Rows.Count > 0))
                    {
                        str = set.Tables[3].Rows[0][0].ToString();
                    }
                    if (str.ToString().Equals("IM"))
                    {
                        this.Session["PageRedirect"] = "~/Bill_Sys_IM_CheckOut.aspx";
                    }
                    else
                    {
                        this.Session["PageRedirect"] = @"~/AJAX Pages\Bill_Sys_PatientSearch.aspx";
                    }
                }
                else if (str4.ToLower() == "agent")
                {
                    this.Session["PageRedirect"] = "~/Agent/Bill_Sys_Agent_SearchCase.aspx";
                }
                else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                {
                    if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null))
                    {
                        string s = this.Session["urlintegration"].ToString();
                        s = base.Server.UrlEncode(s);
                        this.Session["PageRedirect"] = "~/ATT/Bill_Sys_AttorneySearch.aspx?dt=" + s;
                    }
                    if (this.Session["IntDocUrl"] != null)
                    {
                        Bill_Sys_DocumentManagerObject obj2 = new Bill_Sys_DocumentManagerObject();
                        string str6 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                        obj2 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"];
                        string str7  = obj2.SZ_CASE_ID;
                        string str8  = obj2.SZ_CASE_NO;
                        string str9  = obj2.SZ_COMAPNY_ID;
                        string str10 = obj2.SZ_LAWFIRM_ID;
                        if (str6 == str10)
                        {
                            this.Session["PageRedirect"] = "~/Document Manager/case/vb_CaseInformation.aspx?caseid=" + str7 + "&caseno=" + str8 + "&cmpid=" + str9;
                        }
                        else
                        {
                            this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx";
                        }
                    }
                    else
                    {
                        this.Session["PageRedirect"] = @"~/LF\Bill_Sys_SearchCase.aspx";
                    }
                }
                else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True"))
                {
                    if (str4.ToLower() == "provider")
                    {
                        this.Session["PageRedirect"] = @"~/Provider\Bill_Sys_SearchCase.aspx";
                    }
                }
                else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                {
                    this.Session["PageRedirect"] = @"~/ATT\Bill_Sys_AttorneySearch.aspx";
                }
                else if (set.Tables[0].Rows[0][6].ToString() != "")
                {
                    this.Session["PageRedirect"] = "~/AJAX Pages/Bill_Sys_SearchCase.aspx";
                }
                else
                {
                    this.Session["PageRedirect"] = "~/Bill_Sys_BillingCompany.aspx";
                }
                if (set.Tables[0].Rows[0]["Force_PasswordChange"].ToString() == "True")
                {
                    base.Response.Redirect(@"AJAX Pages\Bill_Sys_ChangePassword.aspx", false);
                    return;
                }
                if (str4.ToLower() == "doctor")
                {
                    if (str.ToString().Equals("IM"))
                    {
                        base.Response.Redirect("Bill_Sys_IM_CheckOut.aspx", false);
                    }
                    else
                    {
                        base.Response.Redirect(@"AJAX Pages\Bill_Sys_PatientSearch.aspx", false);
                    }
                }
                else if (str4.ToLower() == "agent")
                {
                    base.Response.Redirect(@"Agent\Bill_Sys_Agent_SearchCase.aspx", false);
                }
                else if (this._bill_Sys_BillingCompanyObject.BT_LAW_FIRM.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                {
                    if ((str4.ToLower() == "lawfirm attorney") && (this.Session["urlintegration"] != null))
                    {
                        string str11 = this.Session["urlintegration"].ToString();
                        str11 = base.Server.UrlEncode(str11);
                        str11 = "ATT/Bill_Sys_AttorneySearch.aspx?dt=" + str11;
                        base.Response.Redirect(str11, false);
                    }
                    if (this.Session["IntDocUrl"] != null)
                    {
                        Bill_Sys_DocumentManagerObject obj3 = new Bill_Sys_DocumentManagerObject();
                        obj3 = (Bill_Sys_DocumentManagerObject)this.Session["IntDocUrl"];
                        string str12 = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                        string str13 = obj3.SZ_CASE_ID;
                        string str14 = obj3.SZ_CASE_NO;
                        string str15 = obj3.SZ_COMAPNY_ID;
                        string str16 = obj3.SZ_LAWFIRM_ID;
                        if (str12 == str16)
                        {
                            string url = "Document Manager/case/vb_CaseInformation.aspx?caseid=" + str13 + "&caseno=" + str14 + "&cmpid=" + str15;
                            base.Response.Redirect(url, false);
                        }
                        else
                        {
                            base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false);
                        }
                    }
                    else
                    {
                        base.Response.Redirect(@"LF\Bill_Sys_SearchCase.aspx", false);
                    }
                }
                else if (this._bill_Sys_BillingCompanyObject.BT_PROVIDER.ToString().Equals("True"))
                {
                    if (str4.ToLower() == "provider")
                    {
                        base.Response.Redirect(@"Provider\Bill_Sys_SearchCase.aspx", false);
                    }
                }
                else if (this._bill_Sys_BillingCompanyObject.BT_ATTORNY.ToString().Equals("True") && this._bill_Sys_BillingCompanyObject.BT_REFERRING_FACILITY.ToString().Equals("False"))
                {
                    base.Response.Redirect(@"ATT\Bill_Sys_AttorneySearch.aspx", false);
                }
                else if (set.Tables[0].Rows[0][6].ToString() != "")
                {
                    base.Response.Redirect("AJAX Pages/Bill_Sys_SearchCase.aspx", false);
                }
                else
                {
                    base.Response.Redirect("Bill_Sys_BillingCompany.aspx", false);
                }
            }
            else
            {
                FormsAuthentication.SignOut();
                FormsAuthentication.RedirectToLoginPage();
            }
            this._bill_Sys_BillingCompanyObject.SZ_READ_ONLY = this._bill_Sys_LoginBO.Readonly();
            this.Session["APPSTATUS"] = this._bill_Sys_BillingCompanyObject;
        }
        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());
        }
    }
示例#12
0
    protected void Page_Load(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());
        }
        oC_UserObject = (Bill_Sys_UserObject)(Session["USER_OBJECT"]);
        oC_Account    = (Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"]);
        oC_CaseObject = (Bill_Sys_CaseObject)Session["CASE_OBJECT"];

        this._associateDiagnosisCodeBO = new Bill_Sys_AssociateDiagnosisCodeBO();
        try
        {
            strContextKey = oC_Account.SZ_COMPANY_ID + "," + rbl_SZ_TYPE_ID.SelectedValue;
            this.ajDignosisCode.ContextKey = strContextKey;
            //this.btnAssign.Attributes.Add("onclick", "return validate();");
            this.txtCompanyID.Text = oC_Account.SZ_COMPANY_ID;
            this.txtDiagonosisCode.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('_ctl0_ContentPlaceHolder1_tabcontainerDiagnosisCode_tabpnlAssociate_btnSeacrh').click(); return false;}} else {alert('Other');return true;}; ");
            if (!base.IsPostBack)
            {
                this.extddlDiagnosisType.Flag_ID = oC_Account.SZ_COMPANY_ID;
                this.extddlSpeciality.Flag_ID    = oC_Account.SZ_COMPANY_ID;
                if (base.Request.QueryString["CaseId"] != null)
                {
                    this.Session["CASE_OBJECT"] = null;
                    this.txtCaseID.Text         = base.Request.QueryString["CaseId"].ToString();
                    this.GetPatientDeskList();
                }
                else if (this.Session["CASE_OBJECT"] != null)
                {
                    this.txtCaseID.Text = oC_CaseObject.SZ_CASE_ID;
                    Bill_Sys_Case @case = new Bill_Sys_Case();
                    @case.SZ_CASE_ID             = this.txtCaseID.Text;
                    this.Session["CASEINFO"]     = @case;
                    this.Session["PassedCaseID"] = this.txtCaseID.Text;
                    string str = this.Session["PassedCaseID"].ToString();
                    this.Session["QStrCaseID"]       = str;
                    this.Session["Case_ID"]          = str;
                    this.Session["Archived"]         = "0";
                    this.Session["QStrCID"]          = str;
                    this.Session["SelectedID"]       = str;
                    this.Session["DM_User_Name"]     = oC_UserObject.SZ_USER_NAME;
                    this.Session["User_Name"]        = oC_UserObject.SZ_USER_NAME;
                    this.Session["SN"]               = "0";
                    this.Session["LastAction"]       = "vb_CaseInformation.aspx";
                    this.Session["SZ_CASE_ID_NOTES"] = this.txtCaseID.Text;
                    this.Session["TM_SZ_CASE_ID"]    = this.txtCaseID.Text;
                    this.GetPatientDeskList();
                }
                else
                {
                    base.Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }
                this.strCaseType = this._associateDiagnosisCodeBO.GetCaseType(this.txtCaseID.Text);
                string text1 = base.Request.QueryString["DoctorID"];
                if (base.Request.QueryString["SetId"] != null)
                {
                    this.txtDiagnosisSetID.Text = base.Request.QueryString["SetId"].ToString();
                    this._ds = this._associateDiagnosisCodeBO.GetCaseAssociateDiagnosisDetails(this.txtDiagnosisSetID.Text);
                    this.GetDiagnosisCode(this.txtCaseID.Text, this.txtCompanyID.Text, "", "GET_DIAGNOSIS_CODE");
                    this.Visiblecontrol();
                }
                else
                {
                    this.txtDiagnosisSetID.Text = this._associateDiagnosisCodeBO.GetDiagnosisSetID();
                }
                this.GetDiagnosisCode(this.txtCaseID.Text, oC_Account.SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                this.GetAssignedDiagnosisCode(this.txtCaseID.Text, oC_Account.SZ_COMPANY_ID, "", "GET_DIAGNOSIS_CODE");
                this.grdNormalDgCode.DataSource = null;
                this.grdNormalDgCode.DataBind();
                this.extddlSpeciality.Visible = false;
                this.lblSpeciality.Visible    = false;
                if (oC_Account.BT_REFERRING_FACILITY)
                {
                    this.tabcontainerDiagnosisCode.ActiveTabIndex = 1;
                }
                else
                {
                    this.tabcontainerDiagnosisCode.ActiveTabIndex = 0;
                }

                BindGridSpecialty();
            }
            this.lblMsg.Text = "";
        }
        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);
        }
        if (((Bill_Sys_BillingCompanyObject)this.Session["APPSTATUS"]).SZ_READ_ONLY.ToString().Equals("True"))
        {
            new Bill_Sys_ChangeVersion(this.Page).MakeReadOnlyPage("Bill_Sys_AssociateDignosisCodeCase.aspx");
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }