Beispiel #1
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());
        }
        try
        {
            this.con.SourceGrid               = grdCaseMaster;
            this.txtSearchBox.SourceGrid      = grdCaseMaster;
            this.grdCaseMaster.Page           = this.Page;
            this.grdCaseMaster.PageNumberList = this.con;
            this.Title = "Patient Visit Summary Report";

            ajAutoName.ContextKey  = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlCaseType.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            btnViewReport.Attributes.Add("onClick", "return ShowConfirmation();");
            ddlDateValues.Attributes.Add("onChange", "javascript:SetDate();");
            ddlDateValues1.Attributes.Add("onChange", "javascript:SetDateOpen();");
            ddlDateValues2.Attributes.Add("onChange", "javascript:SetVisitDate();");
            btnViewReport.Attributes.Add("onclick", "return ValidationViewReport();");

            if (!IsPostBack)
            {
                txtCompanyID.Text             = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                this.extddlCaseStatus.Flag_ID = this.txtCompanyID.Text.ToString();
                string caseSatusId = new CaseDetailsBO().GetCaseSatusId(this.txtCompanyID.Text);
                this.extddlCaseStatus.Text = caseSatusId;

                SearchList();
            }
            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);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_TreatmentReport.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sz_UserID    = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
        sz_CompanyID = ((Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"])).SZ_COMPANY_ID.ToString();

        if (Request.QueryString["caseid"] != null)
        {
            sz_CaseID      = Request.QueryString["caseid"].ToString();
            sz_BillNo      = Request.QueryString["billnumber"].ToString();
            sz_speciality  = Request.QueryString["speciality"].ToString();
            sz_CaseNo      = Request.QueryString["caseno"].ToString();
            txtbillno.Text = sz_BillNo;

            CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
            PatientID = _caseDetailsBO.GetCasePatientID(Request.QueryString["caseid"].ToString(), "");
        }

        //ddlGuidline.Attributes.Add("onChange", "return SplitString();");
        if (!IsPostBack)
        {
            //ddlGuidline.Items.Add("--Select--");
            //ddlGuidline.Items.Add("K-E7E  ");
            //ddlGuidline.Items.Add("B-D9A  ");
            //ddlGuidline.Items.Add("N-D10D ");
            //ddlGuidline.Items.Add("S-D10EI");


            GetRecord();
            GetPatientDetails();
            getDoctorDefaultList();
        }
    }
Beispiel #3
0
    protected void extddlPatient_extendDropDown_SelectedIndexChanged(object sender, EventArgs e)
    {
        CaseDetailsBO caseDetailsBO = new CaseDetailsBO();

        if (extddlPatient.Text != "NA")
        {
            if (chkJmpCaseDetails.Checked == true)
            {
                string szCaseID = caseDetailsBO.GetCaseIdByPatientID(txtCompanyID.Text, extddlPatient.Text);
                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
                {
                    Response.Redirect("../Bill_Sys_ReCaseDetails.aspx?CaseID=" + szCaseID + "&cmp=" + txtCompanyID.Text + "", false);
                }
                else
                {
                    Response.Redirect("../Bill_Sys_CaseDetails.aspx?CaseID=" + szCaseID + "&cmp=" + txtCompanyID.Text + "", false);
                }
            }
            txtPatientName.Text = extddlPatient.Selected_Text;
        }
        else
        {
            txtPatientName.Text = "";
        }
    }
Beispiel #4
0
    protected void btnSoftDelete_Click(object sender, EventArgs e)
    {
        //Logging Start
        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());
        }

        CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
        string        sz_Case_id     = "";

        try
        {
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End

        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void extddlPatient_extendDropDown_SelectedIndexChanged(object sender, EventArgs e)
    {
        CaseDetailsBO caseDetailsBO = new CaseDetailsBO();

        if (!(this.extddlPatient.Text != "NA"))
        {
            this.txtPatientName.Text = "";
        }
        else
        {
            if (this.chkJmpCaseDetails.Checked)
            {
                string caseIdByPatientID = caseDetailsBO.GetCaseIdByPatientID(this.txtCompanyID.Text, this.extddlPatient.Text);
                if (!((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    base.Response.Redirect(string.Concat("../Bill_Sys_CaseDetails.aspx?CaseID=", caseIdByPatientID, "&cmp=", this.txtCompanyID.Text), false);
                }
                else
                {
                    base.Response.Redirect(string.Concat("../Bill_Sys_ReCaseDetails.aspx?CaseID=", caseIdByPatientID, "&cmp=", this.txtCompanyID.Text), false);
                }
            }
            this.txtPatientName.Text = this.extddlPatient.Selected_Text;
        }
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     //this.con.SourceGrid = grdPatientList;//
     //this.txtSearchBox.SourceGrid = grdPatientList;//
     this.grdPatientList.Page = this.Page;
     //this.grdPatientList.PageNumberList = this.con;//
     //txtOfficeID.Text = "OI000000000000000089";
     btnClearP.Attributes.Add("onclick", "return Clear()");
     Session["Office_ID"] = "";
     if (!IsPostBack)
     {
         Session["ReportFromDate"] = "1/1/2009 12:00:00 AM";
         Session["ReportToDate"]   = DateTime.Now.ToString();
         txtCompanyID.Text         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
         txtUserID.Text            = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
         extProvider.Flag_ID       = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
         mbs.provider.ProviderServices obj_provider = new ProviderServices();
         string  OfficeIDs = "";
         DataSet dsprov    = obj_provider.get_office_id(txtUserID.Text);
         if (dsprov != null)
         {
             if (dsprov.Tables.Count > 0 && dsprov.Tables[0].Rows.Count > 0)
             {
                 for (int i = 0; i < dsprov.Tables[0].Rows.Count; i++)
                 {
                     if (OfficeIDs == "")
                     {
                         OfficeIDs = dsprov.Tables[0].Rows[i]["SZ_USER_PROVIDER_NAME_ID"].ToString();
                     }
                     else
                     {
                         OfficeIDs = OfficeIDs + "," + dsprov.Tables[0].Rows[i]["SZ_USER_PROVIDER_NAME_ID"].ToString();
                     }
                 }
             }
         }
         txtOfficeID.Text = OfficeIDs;
         txtofcid.Value   = OfficeIDs;
         //if (Session["Office_ID"] != null)
         //{
         Session["Office_ID"] = txtOfficeID.Text;
         //}
         extddlCaseStatus.Flag_ID = txtCompanyID.Text.ToString();
         extddlCaseType.Flag_ID   = txtCompanyID.Text.ToString();
         //  extddlInsurance.Flag_ID = txtCompanyID.Text.ToString();
         ////extddlLocation.Flag_ID = txtCompanyID.Text.ToString();
         CaseDetailsBO _objCaseDetailsBO = new CaseDetailsBO();
         string        szCaseStatausID   = _objCaseDetailsBO.GetCaseSatusId(txtCompanyID.Text);
         extddlCaseStatus.Text = szCaseStatausID;
         //fillcontrol();
         //grdPatientList.XGridBindSearch();//
     }
     bindGrid();
 }
    protected void btnSoftDelete_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());
        }
        CaseDetailsBO caseDetailsBO = new CaseDetailsBO();
        string        str           = "";

        try
        {
            for (int i = 0; i < this.grdPatientList.Rows.Count; i++)
            {
                if (((CheckBox)this.grdPatientList.Rows[i].FindControl("chkDelete")).Checked)
                {
                    if (!((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                    {
                        LinkButton linkButton = (LinkButton)this.grdPatientList.Rows[i].Cells[2].FindControl("lnkSelectCase");
                        str = linkButton.Text.ToString();
                    }
                    else
                    {
                        LinkButton linkButton1 = (LinkButton)this.grdPatientList.Rows[i].Cells[3].FindControl("lnkSelectRCase");
                        str = linkButton1.Text.ToString();
                    }
                    caseDetailsBO.SoftDelete(str, this.txtCompanyID.Text, true);
                }
            }
            this.fillcontrol();
            this.grdPatientList.XGridBindSearch();
            Bill_Sys_PatientList.log.Debug("grdPatientList.XGridBindSearch() Completed.");
            this.clearcontrol();
            this.SoftDelete();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void extddlLocation_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());
        }
        try
        {
            this._caseDetailsBO = new CaseDetailsBO();
            DataSet dataSet = this._caseDetailsBO.DoctorName(extddlLocation.Text, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            this.ddlDoctor.DataSource     = dataSet;
            this.ddlDoctor.DataTextField  = "DESCRIPTION";
            this.ddlDoctor.DataValueField = "CODE";
            this.ddlDoctor.DataBind();
            this.ddlDoctor.Items.Insert(0, "---select---");
        }
        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.txtCaseNo.Text != "")
        {
            this.BindGrid();
            return;
        }
        if (this.txtPatientName.Text != "")
        {
            this.BindGrid();
            return;
        }
        this.grdCaseMaster.DataSource = null;
        this.grdCaseMaster.DataBind();
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #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());
        }
        if (!IsPostBack)
        {
            try
            {
                this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                this.ddlDateValues.Attributes.Add("onChange", "javascript:SetDate();");

                btnSearch.Attributes.Add("onclick", "return Vlidate();");
                this.ajAutoIns.ContextKey    = this.txtCompanyID.Text;
                this.ajAutoOffice.ContextKey = this.txtCompanyID.Text;
                extddlCaseType.Flag_ID       = txtCompanyID.Text;

                extddlCaseStatus.Flag_ID = txtCompanyID.Text;
                string caseSatusId = new CaseDetailsBO().GetCaseSatusId(this.txtCompanyID.Text);
                this.extddlCaseStatus.Text = caseSatusId;
                lblCnt.Text = "0";
                BindMissingSpecialty();
            }
            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());
            }
        }
        else
        {
            //BindMissingSpecialty();
        }
    }
Beispiel #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ajAutoIns.ContextKey           = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlInsuranceCompany.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlCaseType.Flag_ID         = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            // txtPatientId.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_ID;

            CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
            txtPatientId.Text = _caseDetailsBO.GetCasePatientID(txtCaseID.Text, "");

            Bill_Sys_PatientDeskList objGetVisitInfo = new Bill_Sys_PatientDeskList();
            DataSet dsVisitInfo = new DataSet();
            if (txtCaseID.Text.Trim() != "" && txtEventID.Text.Trim() != "")
            {
                dsVisitInfo = objGetVisitInfo.GetVisitInsInfo(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, txtEventID.Text, "EVENT");
            }
            else if (txtCaseID.Text != "" && txtEventID.Text.Trim() == "")
            {
                dsVisitInfo = objGetVisitInfo.GetVisitInsInfo(txtCaseID.Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, txtEventID.Text, "CASE");
            }
            if (dsVisitInfo.Tables.Count > 0)
            {
                if (dsVisitInfo.Tables[0].Rows.Count > 0)
                {
                    txtPolicyHolder.Text     = dsVisitInfo.Tables[0].Rows[0]["SZ_POLICY_HOLDER"].ToString();
                    txtPolicyNumber.Text     = dsVisitInfo.Tables[0].Rows[0]["SZ_POLICY_NO"].ToString();
                    txtClaimNumber.Text      = dsVisitInfo.Tables[0].Rows[0]["SZ_CLAIM_NUMBER"].ToString();
                    txtdateofaccident.Text   = dsVisitInfo.Tables[0].Rows[0]["SZ_DOA"].ToString();
                    extddlCaseType.Text      = dsVisitInfo.Tables[0].Rows[0]["SZ_CASE_TYPE_ID"].ToString();
                    hdninsurancecode.Value   = dsVisitInfo.Tables[0].Rows[0]["SZ_INS_ID"].ToString();
                    txtInsuranceCompany.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_INSURANCE_NAME"].ToString();

                    Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
                    //  lstInsuranceCompanyAddress.Items.Clear();
                    //notuse  lstInsuranceCompanyAddress.DataSource = _bill_Sys_PatientBO.GetInsuranceCompanyAddress(extddlInsuranceCompany.Text).Tables[0];
                    lstInsuranceCompanyAddress.DataSource     = _bill_Sys_PatientBO.GetInsuranceCompanyAddress(hdninsurancecode.Value).Tables[0];
                    lstInsuranceCompanyAddress.DataTextField  = "DESCRIPTION";
                    lstInsuranceCompanyAddress.DataValueField = "CODE";
                    lstInsuranceCompanyAddress.DataBind();
                    lstInsuranceCompanyAddress.Text = dsVisitInfo.Tables[0].Rows[0]["SZ_INS_ADD_ID"].ToString();
                    lstInsuranceCompanyAddress_SelectedIndexChanged(sender, e);
                }
            }
        }
    }
Beispiel #11
0
    protected void btnUnDelete_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());
        }
        _caseDetailsBO = new CaseDetailsBO();
        try
        {
            foreach (DataGridItem grdItem in grdCaseMaster.Items)
            {
                CheckBox chkDelete = (CheckBox)grdItem.FindControl("chkHardDelete");
                if (chkDelete.Checked)
                {
                    LinkButton lnk = (LinkButton)grdItem.FindControl("lnkSelectCase");
                    _caseDetailsBO.UnDeleteCase(lnk.Text, txtCompanyID.Text);
                }
            }

            BindGrid();
        }
        catch (Exception ex)
        {
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.StackTrace.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.StackTrace.ToString());
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //btnSave.Attributes.Add("onclick", "return formValidator('form1','ddldoctor,txtAppointmentDate,extddlVisitType,ddlHours');");
            dset           = new DataSet();
            objCaseDetails = new CaseDetailsBO();
            string sz_case_id     = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID.ToString();
            string sz_company_id  = (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID).ToString();
            string sz_location_Id = objCaseDetails.GetPatientLocationID(sz_case_id, sz_company_id);


            // txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            // extddlVisitType.Flag_ID = txtCompanyID.Text;


            //checkForReferringFacility();
        }
    }
    protected void grdUnsentNF_ItemCommand(object source, DataGridCommandEventArgs 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
        {
            if (e.CommandName.ToString() == "Select")
            {
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = e.Item.Cells[2].Text;
                _bill_Sys_CaseObject.SZ_CASE_NO      = ((LinkButton)e.Item.FindControl("lnkSelectCase2")).Text;
                Session["CASE_OBJECT"] = _bill_Sys_CaseObject;

                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;
                Response.Redirect("Bill_Sys_CaseDetails.aspx", false);
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {//Logging Start
        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.con.SourceGrid                = grdWorkDayList;
            this.txtSearchBox.SourceGrid       = grdWorkDayList;
            this.grdWorkDayList.Page           = this.Page;
            this.grdWorkDayList.PageNumberList = this.con;
            if (!IsPostBack)
            {
                fillControll();
                txtCompanyID.Text        = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID.ToString();
                extddlSpeciality.Flag_ID = txtCompanyID.Text;
                extddlCaseStatus.Flag_ID = txtCompanyID.Text;
                CaseDetailsBO _objCaseDetailsBO = new CaseDetailsBO();
                string        szCaseStatausID   = _objCaseDetailsBO.GetCaseSatusId(txtCompanyID.Text);
                extddlCaseStatus.Text = szCaseStatausID;

                grdWorkDayList.XGridBindSearch();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnExportToExcel_Click(object sender, EventArgs e)
    {
        string        str           = "";
        string        str1          = "";
        CaseDetailsBO caseDetailsBO = new CaseDetailsBO();

        for (int i = 0; i < this.grdPatientList.Rows.Count; i++)
        {
            if (((CheckBox)this.grdPatientList.Rows[i].FindControl("chkDelete")).Checked)
            {
                if (!((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
                {
                    LinkButton linkButton = (LinkButton)this.grdPatientList.Rows[i].Cells[2].FindControl("lnkSelectCase");
                    str  = linkButton.Text.ToString();
                    str1 = (!(str1 == "") ? string.Concat(str1, ",", str) : str);
                }
                else
                {
                    LinkButton linkButton1 = (LinkButton)this.grdPatientList.Rows[i].Cells[3].FindControl("lnkSelectRCase");
                    str  = linkButton1.Text.ToString();
                    str1 = (!(str1 == "") ? string.Concat(str1, ",", str) : str);
                }
            }
        }
        if (str1 != "")
        {
            DataSet dataSet = new DataSet();
            dataSet = caseDetailsBO.GetBillInfo(str1, this.txtCompanyID.Text);
            if (dataSet.Tables[0].Rows.Count == 0)
            {
                ScriptManager.RegisterStartupScript(this, base.GetType(), "ss", "alert('No Bills are available to Export to Excel sheet!');", true);
            }
            else
            {
                string str2 = ConfigurationManager.AppSettings["EXCEL_SHEET"].ToString();
                string str3 = string.Concat(this.lfnFileName(), ".xls");
                File.Copy(ConfigurationSettings.AppSettings["ExportToExcelPath"].ToString(), string.Concat(str2, str3).Trim());
                (new XGridViewControl()).GenerateXL(dataSet.Tables[0], string.Concat(str2, str3));
                ScriptManager.RegisterClientScriptBlock(this, base.GetType(), "mm", string.Concat(" window.location.href =' ", ConfigurationManager.AppSettings["FETCHEXCEL_SHEET"].ToString(), str3, "'"), true);
            }
        }
    }
 protected void grdBills_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Edit")
     {
         int num = Convert.ToInt32(e.CommandArgument.ToString());
         this._bill_Sys_Case            = new Bill_Sys_Case();
         this._bill_Sys_Case.SZ_CASE_ID = this.grdBills.DataKeys[num]["sz_case_id"].ToString();
         CaseDetailsBO       sbo  = new CaseDetailsBO();
         Bill_Sys_CaseObject obj2 = new Bill_Sys_CaseObject();
         obj2.SZ_PATIENT_ID             = sbo.GetCasePatientID(this._bill_Sys_Case.SZ_CASE_ID, "");
         obj2.SZ_CASE_ID                = this._bill_Sys_Case.SZ_CASE_ID;
         obj2.SZ_COMAPNY_ID             = sbo.GetPatientCompanyID(obj2.SZ_PATIENT_ID);
         obj2.SZ_PATIENT_NAME           = sbo.GetPatientName(obj2.SZ_PATIENT_ID);
         obj2.SZ_CASE_NO                = this.grdBills.DataKeys[num]["sz_case_no"].ToString();
         this.Session["CASEINFO"]       = this._bill_Sys_Case;
         this.Session["CASE_OBJECT"]    = obj2;
         this.Session["PassedCaseID"]   = this._bill_Sys_Case.SZ_CASE_ID;
         this.Session["SZ_BILL_NUMBER"] = this.grdBills.DataKeys[num]["sz_bill_number"].ToString();
         base.Response.Redirect("Bill_Sys_BillTransaction.aspx?Type=Search", false);
     }
 }
    protected void Page_Load(object sender, EventArgs e)
    {
        sz_UserID    = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
        sz_CompanyID = ((Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"])).SZ_COMPANY_ID.ToString();

        if (Request.QueryString["caseid"] != null)
        {
            sz_CaseID           = Request.QueryString["caseid"].ToString();
            Session["HP1_Case"] = Request.QueryString["caseid"].ToString();
            sz_BillNo           = Request.QueryString["billnumber"].ToString();
            sz_speciality       = Request.QueryString["speciality"].ToString();
            sz_CaseNo           = Request.QueryString["caseno"].ToString();
            txtbillno.Text      = sz_BillNo;
            hfbillno.Value      = sz_BillNo;
            CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
            PatientID = _caseDetailsBO.GetCasePatientID(Request.QueryString["caseid"].ToString(), "");
        }
        if (!IsPostBack)
        {
            GetRecord();
        }
    }
Beispiel #18
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ddlDateValues.Attributes.Add("onChange", "javascript:SetDate();");
        ddlNoShowDate.Attributes.Add("onChange", "javascript:SetNoShowDate();");
        this.ddlInitialRevalDate.Attributes.Add("onChange", "javascript:SetInitialRevalDate();");
        string szvisitdate = Request.QueryString["visitdate"].ToString();

        btn_Unseensearch.Attributes.Add("onclick", "return ValidateSearch();");
        btnInitialRevalSearch.Attributes.Add("onclick", "return Vlidate();");
        txtCompanyId.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;

        this.con.SourceGrid                 = this.grdUnseenReport;
        this.txtSearchBox.SourceGrid        = this.grdUnseenReport;
        this.grdUnseenReport.Page           = this.Page;
        this.grdUnseenReport.PageNumberList = this.con;

        if (!IsPostBack)
        {
            txtFromDate.Text = szvisitdate;
            txtToDate.Text   = szvisitdate;
            //txtToDateRange.Text = szNoShowDate;
            //txtFromDateRange.Text = szNoShowDate;
            extddlDoctor.Flag_ID     = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlSpeciality.Flag_ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            carTabPage.Visible       = false;
            //   this.extddlNoShowspeciality.Flag_ID = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            this.extddlNoShowProvider.Flag_ID = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            this.extddlNoShowDoctor.Flag_ID   = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            this.ajAutoIns.ContextKey         = this.txtCompanyId.Text;
            this.ajAutoOffice.ContextKey      = this.txtCompanyId.Text;
            extddlCaseType.Flag_ID            = txtCompanyId.Text;

            extddlCaseStatus.Flag_ID = txtCompanyId.Text;
            string caseSatusId = new CaseDetailsBO().GetCaseSatusId(this.txtCompanyId.Text);
            this.extddlCaseStatus.Text = caseSatusId;
            lblCnt.Text = "0";
            BindMissingSpecialty();
        }
    }
Beispiel #19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //Logging Start
        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());
        }
        log.Debug("Search case page_load");
        String scriptFunc  = "";
        String scriptFunc2 = "";

        //Page.Title = (String)GetLocalResourceObject("page_title");
        utxtUserId.Text = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
        scriptFunc      = "<script language=JavaScript> " + "function autoComplete (field, select, property, forcematch) {" + "var found = false;" + "for (var i = 0; i < select.options.length; i++) {" + "if (select.options[i][property].toUpperCase().indexOf(field.value.toUpperCase()) == 0) {" + "		found=true; break;"+ "}" + "}" + "if (found) { " + "select.selectedIndex = i; " + "}else {" + "select.selectedIndex = -1;" + "}" + "if (field.createTextRange) {" + "if (forcematch && !found) {" + "field.value=field.value.substring(0,field.value.length-1); " + "return;" + "}" + "var cursorKeys ='8;46;37;38;39;40;33;34;35;36;45;';" + "if (cursorKeys.indexOf(event.keyCode+';') == -1) {" + "var r1 = field.createTextRange();" + "var oldValue = r1.text;" + "var newValue = found ? select.options[i][property] : oldValue;" + "if (newValue != field.value) {" + "field.value = newValue;" + "var rNew = field.createTextRange();" + "rNew.moveStart('character', oldValue.length) ;" + "rNew.select();" + "}" + "}" + "}" + "} </script>";
        RegisterClientScriptBlock("ClientScript", scriptFunc);
        ajAutoIns.ContextKey  = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        ajAutoName.ContextKey = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        btnSoftDelete.Attributes.Add("onclick", "return Validate()");
        //ValidateExportBill
        btnExportToExcel.Attributes.Add("onclick", "return ValidateExportBill()");
        // txtPatientName.Attributes.Add("onKeyUp", "autoComplete(this,this.form.ctl00_ContentPlaceHolder1_extddlPatient,'text',true);");
        // txtInsuranceCompany.Attributes.Add("onKeyUp", "autoComplete(this,this.form.ctl00_ContentPlaceHolder1_extddlInsurance,'text',true);");
        //if (Session["CASE_LIST_GO_BUTTON"] != null)
        //{
        //    utxtCaseNo.Text = Session["CASE_LIST_GO_BUTTON"].ToString();
        //    Session["CASE_LIST_GO_BUTTON"] = null;
        //}


        if (!IsPostBack)
        {
            try
            {
                DataSet dsBit41 = new System.Data.DataSet();
                Bill_Sys_ProcedureCode_BO objPBO_1 = new Bill_Sys_ProcedureCode_BO();
                dsBit41 = objPBO_1.Get_Sys_Key("SS00041", ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                if (dsBit41.Tables.Count > 0 && dsBit41.Tables[0].Rows.Count > 0)
                {
                    string szBitVal1 = dsBit41.Tables[0].Rows[0][0].ToString();
                    if (szBitVal1 == "0")
                    {
                        Session["SendPatientToDoctor"] = false;
                    }
                    else
                    {
                        Session["SendPatientToDoctor"] = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Session["SendPatientToDoctor"] = false;
                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);
            }
        }

        StringBuilder szExportoExcelColumname = new StringBuilder();
        StringBuilder szExportoExcelField     = new StringBuilder();

        szExportoExcelColumname.Append("Case #,");
        if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
        {
            szExportoExcelField.Append("SZ_RECASE_NO,");
            //grdPatientList.Columns[25].Visible = true;
        }
        else
        {
            szExportoExcelField.Append("SZ_CASE_NO,");
        }
        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO == "1")
        {
            szExportoExcelColumname.Append("Chart No,");
            szExportoExcelField.Append("SZ_CHART_NO,");
        }

        if ((((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_LOCATION) != "1")
        {
            extddlLocation.Visible = false;
            lblLocation.Visible    = false;
        }
        else
        {
            extddlLocation.Visible = true;
            lblLocation.Visible    = true;
        }
        szExportoExcelColumname.Append("Patient Name,Accident Date,Open Date,Insurance Name,Claim Number,Policy Number,Case Type,Case Status");
        szExportoExcelField.Append("SZ_PATIENT_NAME,DT_DATE_OF_ACCIDENT,DT_DATE_OPEN,SZ_INSURANCE_NAME,SZ_CLAIM_NUMBER,SZ_POLICY_NUMBER,SZ_CASE_TYPE,SZ_STATUS_NAME");
        if (((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE_NAME.ToLower().Equals("admin"))
        {
            szExportoExcelColumname.Append(",Total,Paid,Pending");
            szExportoExcelField.Append(",Total,Paid,Pending");
        }
        else
        {
            szExportoExcelColumname.Append(",Patient Phone");
            szExportoExcelField.Append(",SZ_PATIENT_PHONE");
        }



        Bill_Sys_LoginBO _bill_Sys_LoginBO = new Bill_Sys_LoginBO();
        string           str = _bill_Sys_LoginBO.getconfiguration(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

        if (str != "" && str != null)
        {
            //grdPatientList.Columns[27].Visible = true;//change 28 to 27
            //grdPatientList.Columns[28].Visible = true;//change 29 to 28

            szExportoExcelColumname.Append(",Case Type");
            szExportoExcelField.Append(",SZ_CASE_TYPE");
            szExportoExcelColumname.Append(",Case Status");
            szExportoExcelField.Append(",SZ_STATUS_NAME");
        }
        else
        {
            //grdPatientList.Columns[27].Visible = false;//change 28 to 27
            //grdPatientList.Columns[28].Visible = false;
        }



        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION == "1")
        {
            //grdPatientList.Columns[29].Visible = true;
            szExportoExcelColumname.Append(",Patient ID");
            szExportoExcelField.Append(",SZ_PATIENT_ID_LHR");
        }
        else
        {
            //grdPatientList.Columns[29].Visible = false;
        }
        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_SHOW_DATE_OF_FIRST_TREATMENT == "1")
        {
            //grdPatientList.Columns[30].Visible = true;
            szExportoExcelColumname.Append(",Date Of First Treatment");
            szExportoExcelField.Append(",DT_FIRST_TREATMENT");
        }
        else
        {
            //grdPatientList.Columns[30].Visible = false;
        }


        //grdPatientList.ExportToExcelColumnNames = szExportoExcelColumname.ToString();
        ////grdPatientList.Con = xcon;
        //grdPatientList.ExportToExcelFields = szExportoExcelField.ToString();
        //log.Debug("start Xgridbind.");
        //this.con.SourceGrid = grdPatientList;
        //this.txtSearchBox.SourceGrid = grdPatientList;
        //this.grdPatientList.Page = this.Page;
        //this.grdPatientList.PageNumberList = this.con;
        //log.Debug("End Xgridbind.");
        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO == "1")
        {
            //grdPatientList.Columns[4].Visible = true;//chart no col
            txtChartNo.Visible = true;
            lblChart.Visible   = true;
        }
        else
        {
            //grdPatientList.Columns[4].Visible = false;//chart no col
            txtChartNo.Visible = false;
            lblChart.Visible   = false;
        }
        if (!IsPostBack)
        { //Taking Login Company Id
            if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_SHOW_PROCEDURE_CODE_ON_INTEGRATION != "1")
            {
                lblpatientid.Visible = false;
                txtpatientid.Visible = false;
            }
            else
            {
                lblpatientid.Visible = true;
                txtpatientid.Visible = true;
            }
            txtCompanyID.Text       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            extddlInsurance.Visible = false;
            extddlPatient.Visible   = false;
            //  utxtCompanyID.Text = txtCompanyID.Text;
            fillcontrol();

            //  extddlPatient.Flag_ID = txtCompanyID.Text.ToString();
            extddlCaseStatus.Flag_ID = txtCompanyID.Text.ToString();
            extddlCaseType.Flag_ID   = txtCompanyID.Text.ToString();
            //  extddlInsurance.Flag_ID = txtCompanyID.Text.ToString();
            extddlLocation.Flag_ID = txtCompanyID.Text.ToString();
            CaseDetailsBO _objCaseDetailsBO = new CaseDetailsBO();
            string        szCaseStatausID   = _objCaseDetailsBO.GetCaseSatusId(txtCompanyID.Text);
            extddlCaseStatus.Text = szCaseStatausID;
            fillcontrol();
            if (Session["CASE_LIST_GO_BUTTON"] != null)
            {
                utxtPatientName.Text           = Session["CASE_LIST_GO_BUTTON"].ToString();
                Session["CASE_LIST_GO_BUTTON"] = null;
            }
            //string ConnectionString = ConfigurationSettings.AppSettings["Connection_String"].ToString();
            //SqlConnection con = new SqlConnection(ConnectionString);
            //SqlCommand cmd = new SqlCommand("sp_get_patientlist_agent", con);
            //cmd.CommandType = CommandType.StoredProcedure;
            //cmd.Parameters.AddWithValue("@SZ_COMPANY_ID", txtCompanyID.Text);
            //cmd.Parameters.AddWithValue("@sz_user_id", ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID);
            //SqlDataAdapter da = new SqlDataAdapter(cmd);
            //DataTable dt = new DataTable();
            //da.Fill(dt);
            //grdPatientList.DataSource = dt;
            //grdPatientList.DataBind();


            //grdPatientList.XGridBind();
            //grdPatientList.XGridBindSearch();
            log.Debug("Page_Load grdPatientList.XGridBindSearch() Completed");

            //int i = grdPatientList.Rows.Count;

            clearcontrol();

            //   ExportToExcelFields="SZ_CASE_NO,SZ_CHART_NO,SZ_PATIENT_NAME,DT_DATE_OF_ACCIDENT,DT_DATE_OPEN,SZ_INSURANCE_NAME,SZ_CLAIM_NUMBER,SZ_POLICY_NUMBER,Total,Paid,Pending" ;
            //ExportToExcelColumnNames="Case #,Chart No,Patient Name,Accident Date,Open Date,Insurance Name,Claim Number,Policy Number,Total,Paid,Pending"
        }
        // SoftDelete();

        if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
        {
            //grdPatientList.Columns[3].Visible = true;
            //grdPatientList.Columns[19].Visible = false;
            //grdPatientList.Columns[20].Visible = false;
            //grdPatientList.Columns[21].Visible = true;
            //grdPatientList.Columns[23].Visible = true;//doctor name column
            //grdPatientList.Columns[24].Visible = true;//office name column
            //Provider name column
        }
        else
        {
            //grdPatientList.Columns[23].Visible = false;//doctor name column
            //grdPatientList.Columns[24].Visible = false;//office name column
            //grdPatientList.Columns[2].Visible = true;
            //grdPatientList.Columns[21].Visible = false;
            //grdPatientList.Columns[22].Visible = true;//location column
        }
        string strlocation = _bill_Sys_LoginBO.getconfigurationlocation(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

        if (strlocation != "" && strlocation != null)
        {
            //grdPatientList.Columns[22].Visible = false;
        }
        ///Check for chart no seting
        //((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE
        //txtCompanyID.Text


        //check for Total ,Paid and Pending
        if (((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE_NAME.ToLower().Equals("admin"))
        {
            //grdPatientList.Columns[12].Visible = true;//total col
            //grdPatientList.Columns[13].Visible = true;//paid col
            //grdPatientList.Columns[14].Visible = true;//pending col
            //grdPatientList.Columns[6].Visible = false;//6
        }
        else
        {
            //grdPatientList.Columns[6].Visible = true;//6
            //grdPatientList.Columns[12].Visible = false;
            //grdPatientList.Columns[13].Visible = false;
            //grdPatientList.Columns[14].Visible = false;
        }
        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_SHOW_PATIENT_PHONE == "1")
        {
            //grdPatientList.Columns[6].Visible = true;//6
        }

        //Check for Check in  and Check out
        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHECKINVALUE == "1")
        {
            //grdPatientList.Columns[17].Visible = true;//check in col
            //grdPatientList.Columns[18].Visible = true;//check out col
        }


        DataSet dsBit = new System.Data.DataSet();
        Bill_Sys_ProcedureCode_BO objPBO = new Bill_Sys_ProcedureCode_BO();

        dsBit = objPBO.Get_Sys_Key("SS00040", txtCompanyID.Text);
        if (dsBit.Tables.Count > 0 && dsBit.Tables[0].Rows.Count > 0)
        {
            string szBitVal = dsBit.Tables[0].Rows[0][0].ToString();
            if (szBitVal == "0")
            {
                //grdPatientList.Columns[32].Visible = false;
            }
        }
        //Check For Soft Delete Button and delete checkbox

        if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_SOFT_DELETE == "True")
        {
            //grdPatientList.Columns[33].Visible = true;//delete checkbox//change 26 to 27 then 29// 30 to 31//32 to 33 --atul
            btnSoftDelete.Visible = true;
        }
        ///for Quick Bill Entry  link
        if (Request.QueryString["Type"] != null)
        {
            if (Request.QueryString["Type"].ToString() == "Quick" && (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_NEW_BILL == "True" || ((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_VIEW_BILL == "True"))
            {
                //grdPatientList.Columns[15].Visible = true;//Bills column

                //for (int i = 0; i < grdPatientList.Rows.Count; i++)
                //{
                //    HyperLink lnkN = (HyperLink)grdPatientList.Rows[i].Cells[15].FindControl("lnkNew");
                //    HyperLink lnkV = (HyperLink)grdPatientList.Rows[i].Cells[15].FindControl("lnkView");
                //    if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_NEW_BILL == "True")
                //    {
                //        lnkN.Visible = true;
                //    }
                //    if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_VIEW_BILL == "True")
                //    {
                //        lnkV.Visible = true;
                //    }

                //}
            }
        }

        // extddlCaseType.Selected_Text = "OPEN";
        // used for  export to excel open not refresh grid
        fillcontrol();
        //grdPatientList.Columns[28].Visible = false;
        //grdPatientList.Columns[29].Visible = false;

        //SetTitle(this.Page);



        if (!IsPostBack)
        {
            if (Session["REMINDER"] != null)
            {
                Session["REMINDER"] = null;
                ReminderBO objReminder = null;
                DataSet    dsReminder  = null;
                DataSet    addReminder = null;
                string     strUserId   = "";
                DateTime   dtCurrent_Date;
                objReminder    = new ReminderBO();
                dsReminder     = new DataSet();
                strUserId      = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
                dtCurrent_Date = Convert.ToDateTime(System.DateTime.Now.ToShortDateString());
                dsReminder     = objReminder.LoadReminderDetails(strUserId, dtCurrent_Date);
                addReminder    = objReminder.LoadReminderDetailsforAdd(strUserId, dtCurrent_Date, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                if (dsReminder.Tables[0].Rows.Count > 0 || dsReminder.Tables[1].Rows.Count > 0 || addReminder.Tables[0].Rows.Count > 0)
                {
                    Page.RegisterStartupScript("ss", "<script language='javascript'> ReminderPopup();</script>");
                }
            }

            //ReminderBO _ReminderBO = new ReminderBO();
            //DataSet dssetting = new DataSet();
            //dssetting = _ReminderBO.IMSetting("SS00015", txtCompanyID.Text);
            //if (dssetting.Tables[0].Rows.Count > 0)
            //{
            //    if (dssetting.Tables[0].Rows[0]["SZ_SYS_SETTING_VALUE"].ToString() == "1")
            //    {
            //        if (Session["IMDETAILS"] != null)
            //        {
            //            Session["IMDETAILS"] = null;
            //            ReminderBO objim = null;
            //            DataSet dsIM = null;
            //            objim = new ReminderBO();
            //            dsIM = new DataSet();
            //            dsIM = objim.LoadCheckimDetails(txtCompanyID.Text);
            //            if (dsIM.Tables[0].Rows.Count > 0)
            //            {
            //                Page.RegisterStartupScript("im", "<script language='javascript'> showimcheckPopup();</script>");
            //            }
            //        }
            //    }
            //}
        }



        //Method End

        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void grdAllReports_ItemCommand(object source, DataGridCommandEventArgs 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
        {
            if (e.CommandName.ToString() == "CaseSearch")
            {
                if (this.txtSearchOrder.Text != string.Concat(e.CommandArgument, " ASC"))
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " ASC");
                }
                else
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " DESC");
                }
                this.BindGrid();
            }
            if (e.CommandName.ToString() == "PatientNameSearch")
            {
                if (this.txtSearchOrder.Text != string.Concat(e.CommandArgument, " ASC"))
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " ASC");
                }
                else
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " DESC");
                }
                this.BindGrid();
            }
            if (e.CommandName.ToString() == "EventDateSearch")
            {
                if (this.txtSearchOrder.Text != string.Concat(e.CommandArgument, " DESC"))
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " DESC");
                }
                else
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " ASC");
                }
                this.BindGrid();
            }
            if (e.CommandName.ToString() == "DoctorNameSearch")
            {
                if (this.txtSearchOrder.Text != string.Concat(e.CommandArgument, " ASC"))
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " ASC");
                }
                else
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " DESC");
                }
                this.BindGrid();
            }
            if (e.CommandName.ToString() == "SpecialitySearch")
            {
                if (this.txtSearchOrder.Text != string.Concat(e.CommandArgument, " ASC"))
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " ASC");
                }
                else
                {
                    this.txtSearchOrder.Text = string.Concat(e.CommandArgument, " DESC");
                }
                this.BindGrid();
            }
            if (e.CommandName.ToString() == "CaseID")
            {
                this.Session["CASE_OBJECT"] = "";
                Bill_Sys_Case billSysCase = new Bill_Sys_Case()
                {
                    SZ_CASE_ID = e.Item.Cells[0].Text.ToString()
                };
                CaseDetailsBO caseDetailsBO = new CaseDetailsBO();
                //Bill_Sys_CaseObject billSysCaseObject = new Bill_Sys_CaseObject();
                // {
                Bill_Sys_CaseObject billSysCaseObject = new Bill_Sys_CaseObject();
                billSysCaseObject.SZ_PATIENT_ID   = e.Item.Cells[11].Text.ToString();
                billSysCaseObject.SZ_CASE_ID      = e.Item.Cells[0].Text.ToString();
                billSysCaseObject.SZ_COMAPNY_ID   = caseDetailsBO.GetPatientCompanyID(billSysCaseObject.SZ_PATIENT_ID);
                billSysCaseObject.SZ_PATIENT_NAME = caseDetailsBO.GetPatientName(billSysCaseObject.SZ_PATIENT_ID);
                billSysCaseObject.SZ_CASE_NO      = e.Item.Cells[10].Text.ToString();
                //};
                this.Session["CASE_OBJECT"]  = billSysCaseObject;
                this.Session["CASEINFO"]     = billSysCase;
                this.Session["PassedCaseID"] = e.Item.Cells[0].Text.ToString();
                string str = e.Item.Cells[0].Text.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"] = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                this.Session["User_Name"]    = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                this.Session["SN"]           = "0";
                this.Session["LastAction"]   = "vb_CaseInformation.aspx";
                base.Response.Redirect("AJAX%20Pages/Bill_Sys_CaseDetails.aspx", false);
            }
            if (e.CommandName == "Group Service")
            {
                Bill_Sys_Case billSysCase1 = new Bill_Sys_Case()
                {
                    SZ_CASE_ID = e.CommandArgument.ToString()
                };
                CaseDetailsBO       caseDetailsBO1     = new CaseDetailsBO();
                Bill_Sys_CaseObject billSysCaseObject1 = new Bill_Sys_CaseObject();
                // {
                billSysCaseObject1.SZ_PATIENT_ID   = e.Item.Cells[11].Text.ToString();
                billSysCaseObject1.SZ_CASE_ID      = e.CommandArgument.ToString();
                billSysCaseObject1.SZ_COMAPNY_ID   = caseDetailsBO1.GetPatientCompanyID(billSysCaseObject1.SZ_PATIENT_ID);
                billSysCaseObject1.SZ_PATIENT_NAME = caseDetailsBO1.GetPatientName(billSysCaseObject1.SZ_PATIENT_ID);
                billSysCaseObject1.SZ_CASE_NO      = e.Item.Cells[10].Text.ToString();
                // };
                this.Session["CASE_OBJECT"]  = billSysCaseObject1;
                this.Session["CASEINFO"]     = billSysCase1;
                this.Session["PassedCaseID"] = e.CommandArgument.ToString();
                string str1 = e.CommandArgument.ToString();
                this.Session["QStrCaseID"]   = str1;
                this.Session["Case_ID"]      = str1;
                this.Session["Archived"]     = "0";
                this.Session["QStrCID"]      = str1;
                this.Session["SelectedID"]   = str1;
                this.Session["DM_User_Name"] = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                this.Session["User_Name"]    = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                this.Session["SN"]           = "0";
                this.Session["LastAction"]   = "vb_CaseInformation.aspx";
                Type     type      = base.GetType();
                string[] strArrays = new string[] { "setDiv('", e.Item.Cells[1].Text.ToString(), "',EID='", e.Item.Cells[17].Text.ToString(), "');" };
                ScriptManager.RegisterStartupScript(this, type, "starScript", string.Concat(strArrays), true);
                this.BindGrid();
            }
            if (e.CommandName == "Document Manager")
            {
                Bill_Sys_Case billSysCase2 = new Bill_Sys_Case()
                {
                    SZ_CASE_ID = e.CommandArgument.ToString()
                };
                CaseDetailsBO       caseDetailsBO2     = new CaseDetailsBO();
                Bill_Sys_CaseObject billSysCaseObject2 = new Bill_Sys_CaseObject();
                //{
                billSysCaseObject2.SZ_PATIENT_ID   = e.Item.Cells[11].Text.ToString();
                billSysCaseObject2.SZ_CASE_ID      = e.CommandArgument.ToString();
                billSysCaseObject2.SZ_COMAPNY_ID   = caseDetailsBO2.GetPatientCompanyID(billSysCaseObject2.SZ_PATIENT_ID);
                billSysCaseObject2.SZ_PATIENT_NAME = caseDetailsBO2.GetPatientName(billSysCaseObject2.SZ_PATIENT_ID);
                billSysCaseObject2.SZ_CASE_NO      = e.Item.Cells[10].Text.ToString();
                //};
                this.Session["CASE_OBJECT"]  = billSysCaseObject2;
                this.Session["CASEINFO"]     = billSysCase2;
                this.Session["PassedCaseID"] = e.CommandArgument.ToString();
                string str2 = "";
                string str3 = e.CommandArgument.ToString();
                this.Session["QStrCaseID"]   = str3;
                this.Session["Case_ID"]      = str3;
                this.Session["Archived"]     = "0";
                this.Session["QStrCID"]      = str3;
                this.Session["SelectedID"]   = str3;
                this.Session["DM_User_Name"] = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                this.Session["User_Name"]    = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_NAME;
                this.Session["SN"]           = "0";
                this.Session["LastAction"]   = "vb_CaseInformation.aspx";
                str2 = "Document Manager/case/vb_CaseInformation.aspx";
                base.Response.Write(string.Concat("<script language='javascript'>window.open('", str2, "', 'AdditionalData');</script>"));
            }
            if (e.CommandName == "Display Diag Code")
            {
                this.objAL = new ArrayList();
                this.objAL.Add(e.Item.Cells[0].Text.ToString());
                this.objAL.Add(e.Item.Cells[1].Text.ToString());
                this.objAL.Add("");
                this.objAL.Add(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                this.BindGrid_DisplayDiagonosisCode(this.objAL);
                this.Session["DIAGINFO"] = this.objAL;
            }
        }
        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());
        }
    }
Beispiel #21
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());
        }
        try
        {
            //TUSHAR:- To Show Complaints Of Particular Speciality
            Bill_Sys_CheckoutBO _obj_CheckOutBO = new Bill_Sys_CheckoutBO();
            DataSet             DoctorName      = new DataSet();
            string UserId = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();
            DoctorName       = _obj_CheckOutBO.GetDoctorUserID(UserId, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            txtDoctorId.Text = DoctorName.Tables[0].Rows[0][0].ToString();
            if (txtDoctorId.Text != "" && txtDoctorId.Text != null)
            {
                extddlArea.Flag_ID = txtDoctorId.Text;
            }
            //End Of Code

            if (!IsPostBack)
            {
                Session["Patient_Sign"] = "";
                if (Request.QueryString["Flag"] != "SYN")
                {
                    Session["AC_SYNAPTIC_EVENT_ID"] = "";
                }
                else
                {
                    btnDiagnosysCodes.Enabled = true;
                }
                if ((Bill_Sys_CaseObject)Session["CASE_OBJECT"] != null)
                {
                    Session["company"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID;
                }
                else
                {
                    if (Request.QueryString["CaseID"] != null)
                    {
                        if (Request.QueryString["CaseID"].ToString() != "")
                        {
                            CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                            Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                            _bill_Sys_CaseObject.SZ_PATIENT_ID = _caseDetailsBO.GetCasePatientID(Request.QueryString["CaseID"].ToString(), "");
                            _bill_Sys_CaseObject.SZ_CASE_ID    = Request.QueryString["CaseID"].ToString();
                            if (Request.QueryString["cmp"] != null)
                            {
                                _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, Request.QueryString["cmp"].ToString());
                                Session["company"] = Request.QueryString["cmp"].ToString();
                            }
                            else
                            {
                                _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, Session["company"].ToString());
                            }
                            _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                            _bill_Sys_CaseObject.SZ_COMAPNY_ID   = Session["company"].ToString();
                            Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                        }
                    }
                }
                TXT_PATIENT_FIRST_NAME.Text = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_NAME;
            }


            this.con.SourceGrid              = grdProcedure;
            this.txtSearchBox.SourceGrid     = grdProcedure;
            this.grdProcedure.Page           = this.Page;
            this.grdProcedure.PageNumberList = this.con;
            //change by kunal
            this.con1.SourceGrid = gv_Complaints;
            //this.txtSearchBox.SourceGrid=gv_Complaints;
            this.gv_Complaints.Page           = this.Page;
            this.gv_Complaints.PageNumberList = this.con1;
            //-----
            sz_UserID = ((Bill_Sys_UserObject)(Session["USER_OBJECT"])).SZ_USER_ID.ToString();

            sz_CompanyID = ((Bill_Sys_BillingCompanyObject)(Session["BILLING_COMPANY_OBJECT"])).SZ_COMPANY_ID.ToString();

            txtDoctorId.Text      = GetDoctorUserID(sz_UserID, sz_CompanyID);
            TXT_CURRENT_DATE.Text = DateTime.Now.ToString("MM/dd/yyyy");
            txtCompanyID.Text     = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            sz_CompanyName        = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME;

            if (!IsPostBack)
            {
                grdProcedure.XGridBind();
                gv_Complaints.XGridBindSearch();

                if (TXT_DOA.Text != "")
                {
                    TXT_DOA.Text = Convert.ToDateTime(TXT_DOA.Text).ToString("MM/dd/yyyy");
                }
                TXT_CURRENT_DATE.Text = Convert.ToDateTime(TXT_CURRENT_DATE.Text).ToString("MM/dd/yyyy");

                grdProcedure.Columns[2].Visible = false;
            }
            #region "check version readonly or not"
            string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
            if (app_status.Equals("True"))
            {
                Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
                cv.MakeReadOnlyPage("Bill_Sys_AC_Acupuncture_Followup.aspx");
            }
            #endregion
        }
        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());
        }
    }
Beispiel #22
0
    protected void btnDelete_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());
        }
        _caseDetailsBO = new CaseDetailsBO();
        Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template();

        try
        {
            bool flagdelete = false;
            foreach (DataGridItem grdItem in grdCaseMaster.Items)
            {
                CheckBox chkDelete = (CheckBox)grdItem.FindControl("chkHardDelete");
                if (chkDelete.Checked)
                {
                    LinkButton lnk = (LinkButton)grdItem.FindControl("lnkSelectCase");
                    _caseDetailsBO.HardDelete(lnk.CommandArgument.ToString(), txtCompanyID.Text);

                    flagdelete = true;
                    String szDefaultPath    = objNF3Template.getPhysicalPath();
                    String szDestinationDir = "";

                    if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID == (((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID))
                    {
                        szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    }
                    else
                    {
                        szDestinationDir = objNF3Template.GetCompanyName(grdItem.Cells[31].Text);
                    }
                    szDestinationDir = szDestinationDir + "/" + lnk.CommandArgument.ToString();

                    if (Directory.Exists(szDefaultPath + szDestinationDir))
                    {
                        string[] files = Directory.GetFiles(szDefaultPath + szDestinationDir, "*.*", SearchOption.AllDirectories);
                        foreach (string file in files)
                        {
                            System.IO.File.Delete(file);
                        }

                        Directory.Delete(szDefaultPath + szDestinationDir, true);
                    }
                    this._DAO_NOTES_EO = new DAO_NOTES_EO();
                    this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "CASE_DELETED";
                    this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = "Case Id " + lnk.CommandArgument.ToString() + "deleted.";
                    this._DAO_NOTES_BO               = new DAO_NOTES_BO();
                    this._DAO_NOTES_EO.SZ_USER_ID    = (((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID);
                    this._DAO_NOTES_EO.SZ_CASE_ID    = (((Bill_Sys_CaseObject)this.Session["CASE_OBJECT"]).SZ_CASE_ID);
                    this._DAO_NOTES_EO.SZ_COMPANY_ID = this.txtCompanyID.Text;
                    this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO);
                }
            }

            if (flagdelete == true)
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "mm", "<script language='javascript'>alert('Case deleted successfully');</script>");
            }
            BindGrid();
        }
        catch (Exception ex)
        {
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.StackTrace.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.StackTrace.ToString());
            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());
        }
    }
Beispiel #23
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());
        }
        try
        {
            if (Request.QueryString["CaseID"] != null)
            {
                if (Request.QueryString["CaseID"].ToString() != "")
                {
                    CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                    Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                    _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(Request.QueryString["CaseID"].ToString(), "");
                    _bill_Sys_CaseObject.SZ_CASE_ID      = Request.QueryString["CaseID"].ToString();
                    _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                    Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                }
            }
            if (Session["CASE_OBJECT"] != null)
            {
            }
            else
            {
                Response.Redirect("Bill_Sys_SearchCase.aspx", false);
            }

            if (!IsPostBack)
            {
                GetPatientDetailList();
                GetTreatmentCountList();
                GetDoctorTreatment();
                GetDoctorTreatmentList();
                GetBillingInformation();
                GetVisitInformation();
                ConfigPatientDesk();
            }
        }
        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);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_UpgradePatient.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #24
0
    protected void grdAllReports_ItemCommand(object source, DataGridCommandEventArgs 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
        {
            #region "Document Manager"
            if (e.CommandName == "Document Manager")
            {
                // Create Session for document Manager
                Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = e.Item.Cells[2].Text.ToString();
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_COMAPNY_ID   = _caseDetailsBO.GetPatientCompanyID(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_CASE_NO      = e.Item.Cells[13].Text.ToString();//13
                Session["CASE_OBJECT"]  = _bill_Sys_CaseObject;
                Session["CASEINFO"]     = _bill_Sys_Case;
                Session["PassedCaseID"] = e.CommandArgument.ToString();
                String szURL    = "";
                String szCaseID = e.CommandArgument.ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";
                szURL = "Document Manager/case/vb_CaseInformation.aspx";
                //    Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
                Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");
            }
            #endregion

            #region "Display Diagnosis Code"
            if (e.CommandName == "Display Diag Code")
            {
                objAL = new ArrayList();
                objAL.Add(e.Item.Cells[0].Text.ToString());
                objAL.Add(e.Item.Cells[1].Text.ToString());
                objAL.Add("");
                objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                BindGrid_DisplayDiagonosisCode(objAL);
                Session["DIAGINFO"] = objAL;
            }
            #endregion

            #region "Add Diagnosis Code"
            if (e.CommandName == "Add Diagnosis Code")
            {
                objAL = new ArrayList();
                objAL.Add(e.Item.Cells[0].Text.ToString());
                objAL.Add(e.Item.Cells[1].Text.ToString());
                objAL.Add(e.Item.Cells[2].Text.ToString());
                objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                Session["DIAGINFO"] = objAL;
                ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "showDiagnosisCodePopup();", true);
            }
            #endregion

            #region "Open Case Details"
            if (e.CommandName == "Open Case")
            {
                Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = e.Item.Cells[2].Text.ToString();
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_COMAPNY_ID   = _caseDetailsBO.GetPatientCompanyID(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_CASE_NO      = e.Item.Cells[13].Text.ToString();//13
                Session["CASE_OBJECT"]  = _bill_Sys_CaseObject;
                Session["CASEINFO"]     = _bill_Sys_Case;
                Session["PassedCaseID"] = e.CommandArgument.ToString();
                String szURL    = "";
                String szCaseID = e.CommandArgument.ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";
                szURL = "Document Manager/case/vb_CaseInformation.aspx";
                Response.Redirect("Bill_Sys_CaseDetails.aspx", false);
            }
            #endregion


            #region "Add Group Service"

            if (e.CommandName == "Group Service")
            {
                Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = e.Item.Cells[2].Text.ToString();
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_COMAPNY_ID   = _caseDetailsBO.GetPatientCompanyID(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                _bill_Sys_CaseObject.SZ_CASE_NO      = e.Item.Cells[13].Text.ToString();//13
                Session["CASE_OBJECT"]  = _bill_Sys_CaseObject;
                Session["CASEINFO"]     = _bill_Sys_Case;
                Session["PassedCaseID"] = e.CommandArgument.ToString();
                String szURL    = "";
                String szCaseID = e.CommandArgument.ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";
                szURL = "Document Manager/case/vb_CaseInformation.aspx";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "setDiv('" + e.Item.Cells[1].Text.ToString() + "',EID='" + e.Item.Cells[15].Text.ToString() + "');", true); //15
            }

            #endregion
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        strConn = ConfigurationManager.AppSettings["Connection_String"].ToString();
        {
            mbs.lawfirm.Bill_Sys_Patient_Details obj          = new Bill_Sys_Patient_Details();
            mbs.provider.ProviderServices        obj_provider = new ProviderServices();
            try
            {
                if (!IsPostBack)
                {
                    Bill_Sys_PatientBO _bill_Sys_PatientBO = new Bill_Sys_PatientBO();

                    if (Session["Office_ID"] != null)
                    {
                        hdnOfficeId.Value = Session["Office_ID"].ToString();
                    }

                    if (Request.QueryString.Count > 0)
                    {
                        szCaseId       = Request.QueryString["caseid"].ToString();
                        txtcaseid.Text = szCaseId;
                        CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                        Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                        szBillingCmp      = Request.QueryString["cmpid"].ToString();
                        txtCompanyid.Text = szBillingCmp;
                        // string patientName = Request.QueryString["pname"].ToString();
                        caseno = Request.QueryString["caseno"].ToString();
                        _bill_Sys_CaseObject.SZ_CASE_ID    = szCaseId;
                        _bill_Sys_CaseObject.SZ_COMAPNY_ID = szBillingCmp;
                        //_bill_Sys_CaseObject.SZ_PATIENT_NAME = patientName;
                        _bill_Sys_CaseObject.SZ_CASE_NO = caseno;
                        Session["CASE_OBJECT"]          = _bill_Sys_CaseObject;
                        mbs.lawfirm.Bill_Sys_CollectDocAndZip _cNz = new mbs.lawfirm.Bill_Sys_CollectDocAndZip();
                        DataSet Batchds = new DataSet();
                        Batchds = _cNz.GetDowloadAs(szCaseId);
                        if (Batchds.Tables[0].Rows.Count > 0 && Batchds.Tables[0].Rows[0][0].ToString() == "SNGL")
                        {
                            //i=  DtlView.FindControl("abc");
                            //Table tb = (Table)DtlView.Items.FindControl("tblF");
                            //DtlView1.DataSource = Batchds;
                            //DtlView1.DataBind();
                            //DtlView1.Visible = true;
                        }
                        else
                        {
                        }
                    }
                    _bill_Sys_PatientBO = new Bill_Sys_PatientBO();
                    DataSet ds = obj_provider.GetPatientInfo_Provider(szCaseId, szBillingCmp);
                    //DataSet ds = _bill_Sys_PatientBO.GetPatientInfo_Provider(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, sz_CmpId);


                    //DataSet ds = obj.GetPatientInformation(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, sz_CmpId);

                    if (ds.Tables[0].Columns.Count == 1)
                    {
                        Session["Check"] = "Not Correct";
                        Response.Redirect("Bill_Sys_SearchCase.aspx");
                    }
                    else
                    {
                        DataTable dt = ds.Tables[0];
                        DtlView.DataSource = ds;
                        DtlView.DataBind();
                    }


                    //To Open Document Manager

                    hdnCaseId.Value    = szCaseId;
                    hdnCaseNo.Value    = caseno;
                    hdnCompanyId.Value = szBillingCmp.ToString();

                    //End Of Code
                }
            }
            catch (Exception exc)
            {
                usrMessage.PutMessage(exc.ToString());
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                usrMessage.Show();
            }
        }
    }
Beispiel #26
0
    //soft delete functionality

    protected void btnSoftDelete_Click(object sender, EventArgs e)
    {
        //Logging Start
        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());
        }

        CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();
        string        sz_Case_id     = "";

        try
        {
            //for (int i = 0; i < grdPatientList.Rows.Count; i++)
            //{
            //    CheckBox chkDelete = (CheckBox)grdPatientList.Rows[i].FindControl("chkDelete");
            //    if (chkDelete.Checked)
            //    {
            //        if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
            //        {
            //            LinkButton Rlnk = (LinkButton)grdPatientList.Rows[i].Cells[3].FindControl("lnkSelectRCase");
            //            sz_Case_id = (string)Rlnk.Text.ToString();


            //        }
            //        else
            //        {
            //            LinkButton lnk = (LinkButton)grdPatientList.Rows[i].Cells[2].FindControl("lnkSelectCase");
            //            sz_Case_id = (string)lnk.Text.ToString();



            //        }
            //        _caseDetailsBO.SoftDelete(sz_Case_id, txtCompanyID.Text, true);
            //    }
            //}

            //// SearchList();
            //fillcontrol();

            //grdPatientList.XGridBindSearch();
            //log.Debug("grdPatientList.XGridBindSearch() Completed.");
            //clearcontrol();
            //SoftDelete();
        }
        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());
        }
    }
Beispiel #27
0
    protected void btnExportToExcel_Click(object sender, EventArgs e)
    {
        string        sz_Case_id     = "";
        string        parameter      = "";
        CaseDetailsBO _caseDetailsBO = new CaseDetailsBO();

        //for (int i = 0; i < grdPatientList.Rows.Count; i++)
        //{
        //    CheckBox chkDelete = (CheckBox)grdPatientList.Rows[i].FindControl("chkDelete");
        //    if (chkDelete.Checked)
        //    {
        //        if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
        //        {
        //            LinkButton Rlnk = (LinkButton)grdPatientList.Rows[i].Cells[3].FindControl("lnkSelectRCase");
        //            sz_Case_id = (string)Rlnk.Text.ToString();
        //            if (parameter == "")
        //            {
        //                parameter = sz_Case_id;
        //            }
        //            else
        //            {
        //                parameter = parameter + "," + sz_Case_id;
        //            }
        //        }
        //        else
        //        {
        //            LinkButton lnk = (LinkButton)grdPatientList.Rows[i].Cells[2].FindControl("lnkSelectCase");
        //            sz_Case_id = (string)lnk.Text.ToString();
        //            if (parameter == "")
        //            {
        //                parameter = sz_Case_id;
        //            }
        //            else
        //            {
        //                parameter = parameter + "," + sz_Case_id;
        //            }
        //        }

        //    }
        //}
        //if (parameter != "")
        //{
        //    DataSet ds = new DataSet();
        //    ds = _caseDetailsBO.GetBillInfo(parameter, txtCompanyID.Text);

        //    if (ds.Tables[0].Rows.Count != 0)
        //    {
        //        string sz_FilePath = ConfigurationManager.AppSettings["EXCEL_SHEET"].ToString();
        //        string fileName = lfnFileName() + ".xls";
        //        string openpath = sz_FilePath + fileName;
        //        File.Copy(ConfigurationSettings.AppSettings["ExportToExcelPath"].ToString(), openpath.Trim());

        //        XGridView.XGridViewControl _obj = new XGridView.XGridViewControl();
        //        string sz_GeneratedFile = _obj.GenerateXL(ds.Tables[0], sz_FilePath + fileName);
        //        string fileshow = ConfigurationManager.AppSettings["FETCHEXCEL_SHEET"].ToString() + fileName;

        //        ScriptManager.RegisterClientScriptBlock(this, GetType(), "mm", " window.location.href =' " + fileshow + "'", true);
        //    }
        //    else
        //        ScriptManager.RegisterStartupScript(this, GetType(), "ss", "alert('No Bills are available to Export to Excel sheet!');", true);

        //}
    }
Beispiel #28
0
    private void BindGrid()
    {
        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());
        }
        _caseDetailsBO = new CaseDetailsBO();
        try
        {
            grdCaseMaster.DataSource = _caseDetailsBO.GetHardDeleteList(txtCompanyID.Text);
            grdCaseMaster.DataBind();

            foreach (DataGridItem grditem in grdCaseMaster.Items)
            {
                if (grditem.Cells[35].Text == "True")
                {
                    grditem.Cells[0].Style.Add("text-decoration", "line-through");
                    grditem.Cells[1].Style.Add("text-decoration", "line-through");
                    grditem.Cells[2].Style.Add("text-decoration", "line-through");
                    grditem.Cells[3].Style.Add("text-decoration", "line-through");
                    grditem.Cells[4].Style.Add("text-decoration", "line-through");
                    grditem.Cells[5].Style.Add("text-decoration", "line-through");
                    grditem.Cells[6].Style.Add("text-decoration", "line-through");
                    grditem.Cells[7].Style.Add("text-decoration", "line-through");
                    grditem.Cells[8].Style.Add("text-decoration", "line-through");
                    grditem.Cells[9].Style.Add("text-decoration", "line-through");
                    grditem.Cells[10].Style.Add("text-decoration", "line-through");
                    grditem.Cells[11].Style.Add("text-decoration", "line-through");
                    grditem.Cells[12].Style.Add("text-decoration", "line-through");
                    grditem.Cells[13].Style.Add("text-decoration", "line-through");
                    grditem.Cells[14].Style.Add("text-decoration", "line-through");
                    grditem.Cells[15].Style.Add("text-decoration", "line-through");
                    grditem.Cells[16].Style.Add("text-decoration", "line-through");
                    grditem.Cells[17].Style.Add("text-decoration", "line-through");
                    grditem.Cells[18].Style.Add("text-decoration", "line-through");
                    grditem.Cells[19].Style.Add("text-decoration", "line-through");
                    grditem.Cells[20].Style.Add("text-decoration", "line-through");
                    grditem.Cells[21].Style.Add("text-decoration", "line-through");
                    grditem.Cells[22].Style.Add("text-decoration", "line-through");
                    grditem.Cells[23].Style.Add("text-decoration", "line-through");
                    grditem.Cells[24].Style.Add("text-decoration", "line-through");
                    grditem.Cells[25].Style.Add("text-decoration", "line-through");
                    grditem.Cells[26].Style.Add("text-decoration", "line-through");
                    grditem.Cells[27].Style.Add("text-decoration", "line-through");
                    grditem.Cells[28].Style.Add("text-decoration", "line-through");
                    grditem.Cells[29].Style.Add("text-decoration", "line-through");
                    grditem.Cells[30].Style.Add("text-decoration", "line-through");
                    grditem.Cells[31].Style.Add("text-decoration", "line-through");
                    grditem.Cells[32].Style.Add("text-decoration", "line-through");
                    grditem.Cells[33].Style.Add("text-decoration", "line-through");
                    grditem.Cells[34].Style.Add("text-decoration", "line-through");
                    grditem.Cells[35].Style.Add("text-decoration", "line-through");
                }
            }

            if (((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_HARD_DELETE != "True")
            {
                grdCaseMaster.Columns[36].Visible = false;
                btnDelete.Visible   = false;
                btnUnDelete.Visible = false;
            }
        }
        catch (Exception ex)
        {
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.StackTrace.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.Message.ToString());
            log.Debug("Shared_MasterPage. Method - Page_Load : " + ex.InnerException.StackTrace.ToString());
            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());
        }
    }
Beispiel #29
0
    protected void grdCaseMaster_ItemCommand(object source, DataGridCommandEventArgs 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
        {
            if (e.CommandName.ToString() == "CaseSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "ChartNoSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "PatientSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "DOASearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "CASETYPESearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "DOOSearch")
            {
                if (txtSearchOrder.Text == e.CommandArgument + " ASC")
                {
                    txtSearchOrder.Text = e.CommandArgument + " DESC";
                }
                else
                {
                    txtSearchOrder.Text = e.CommandArgument + " ASC";
                }
                BindGrid();
            }
            if (e.CommandName.ToString() == "Select")
            {
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = e.Item.Cells[34].Text;
                _bill_Sys_CaseObject.SZ_COMAPNY_ID   = e.Item.Cells[31].Text;
                Session["CASE_OBJECT"] = _bill_Sys_CaseObject;

                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;
                if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true && ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID != e.Item.Cells[28].Text)
                {
                    Response.Redirect("Bill_Sys_ReCaseDetails.aspx", false);
                }
                else
                {
                    Response.Redirect("Bill_Sys_CaseDetails.aspx", false);
                }
            }

            else if (e.CommandName.ToString() == "Bill Transaction")
            {
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID   = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID      = e.CommandArgument.ToString();
                _bill_Sys_CaseObject.SZ_PATIENT_NAME = e.Item.Cells[34].Text;
                Session["CASE_OBJECT"]    = _bill_Sys_CaseObject;
                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;

                Response.Redirect("Bill_Sys_BillTransaction.aspx", false);
            }
            else if (e.CommandName.ToString() == "View Bills")
            {
                Session["SZ_CASE_ID"] = e.CommandArgument;

                _bill_Sys_Case            = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = e.CommandArgument.ToString();

                Session["CASEINFO"] = _bill_Sys_Case;

                Response.Redirect("Bill_Sys_BillSearch.aspx", false);
            }
            else if (e.CommandName.ToString() == "Document Manager")
            {
                // Create Session for document Manager
                Session["PassedCaseID"] = e.CommandArgument;
                String szURL    = "";
                String szCaseID = Session["PassedCaseID"].ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";
                szURL = "Document Manager/case/vb_CaseInformation.aspx";
                //    Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
                Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");
            }
            else if (e.CommandName.ToString() == "Calender Event")
            {
                LinkButton lnkPatient = (LinkButton)e.Item.Cells[0].FindControl("lnkSelectCase");
                Session["SZ_CASE_ID"]   = lnkPatient.CommandArgument;
                Session["PROVIDERNAME"] = e.CommandArgument;

                Response.Redirect("Bill_Sys_ScheduleEvent.aspx", false);
                //Response.Redirect("Bill_Sys_CalendarEvent.aspx", false);
                //    string szTemplateURL="Bill_Sys_TemplateManager.aspx";
                //string szTemplateURL = "TemplateManager/Bill_Sys_GeneratePDF.aspx";
                //Session["PassedCaseID"] = e.CommandArgument;
                //Response.Write("<script language='javascript'>window.open('" + szTemplateURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
            }
            else if (e.CommandName.ToString() == "Out Calender Event")
            {
                LinkButton lnkPatient = (LinkButton)e.Item.Cells[0].FindControl("lnkOutScheduleCalendarEvent");
                Session["SZ_CASE_ID"]   = lnkPatient.CommandArgument;
                Session["PROVIDERNAME"] = e.CommandArgument;
                CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                _bill_Sys_CaseObject.SZ_PATIENT_ID = _caseDetailsBO.GetCasePatientID(e.CommandArgument.ToString(), "");
                _bill_Sys_CaseObject.SZ_CASE_ID    = e.CommandArgument.ToString();
                Session["CASE_OBJECT"]             = _bill_Sys_CaseObject;
                Response.Redirect("Bill_Sys_AppointPatientEntry.aspx?Flag=true", false);
                //Response.Redirect("Bill_Sys_CalendarEvent.aspx", false);
                //    string szTemplateURL="Bill_Sys_TemplateManager.aspx";
                //string szTemplateURL = "TemplateManager/Bill_Sys_GeneratePDF.aspx";
                //Session["PassedCaseID"] = e.CommandArgument;
                //Response.Write("<script language='javascript'>window.open('" + szTemplateURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
            }

            else if (e.CommandName.ToString() == "Template Manager")
            {
                Session["TM_SZ_CASE_ID"] = e.CommandArgument;
                //       Session["PROVIDERNAME"] = e.Item.Cells[4].Text;
                //       Response.Redirect("TemplateManager/templates.aspx", false);

                String szURL = "";
                szURL = "TemplateManager/templates.aspx";


                //      Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");

                Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");

                //    string szTemplateURL="Bill_Sys_TemplateManager.aspx";
                //string szTemplateURL = "TemplateManager/Bill_Sys_GeneratePDF.aspx";
                //Session["PassedCaseID"] = e.CommandArgument;
                //Response.Write("<script language='javascript'>window.open('" + szTemplateURL + "', 'AdditionalData', 'width=1200,height=800,left=30,top=30');</script>");
            }
            //else if (e.CommandName.ToString() == "PatientHistory")
            //{
            //    String szURL = "";
            //    Session["PassedCaseID"] = e.CommandArgument;
            //    szURL = "PatientHistory.aspx";
            //    Response.Write("<script language='javascript'>window.open('" + szURL + "', 'AdditionalData');</script>");
            //}
        }
        catch (Exception ex)
        {
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.Message.ToString());
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.StackTrace.ToString());
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.InnerException.Message.ToString());
            log.Debug("Bill_Sys_SearchCase. Method - grdCaseMaster_ItemCommand : " + ex.InnerException.StackTrace.ToString());
            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());
        }
    }
Beispiel #30
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());
        }

        this.Page.LoadComplete += new EventHandler(Page_Load_Complete);
        log.Debug("Bill_Sys_Casedetails. Method - Page_Load_Start : " + DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString() + ":" + DateTime.Now.Millisecond.ToString());
        //ScriptManager.RegisterClientScriptBlock(this, GetType(), "ss", "plusvisibleimage();", true);

        //string urlleft = Request.Url.GetLeftPart(UriPartial.Path);
        //string url = Request.Url.ToString();

        string Param = Request.QueryString["dt"].ToString();

        string changeParam = WebUtils.DecodeUrlString(Param);

        String strPassPhrase         = "Pas5pr@se";        // can be any string
        String strSaltValue          = "s@1tValue";        // can be any string
        String strHashAlgorithm      = "SHA1";             // can be "MD5"
        int    intPasswordIterations = 2;                  // can be any number
        String strInitVector         = "@1B2c3D4e5F6g7H8"; // must be 16 bytes
        int    intKeySize            = 256;

        string decrupt = Bill_Sys_EncryDecry.Decrypt(changeParam, strPassPhrase, strSaltValue, strHashAlgorithm, intPasswordIterations, strInitVector, intKeySize);

        //string decryptUrl = urlleft+"?" + decrupt;

        string[] spl = decrupt.Split('&');

        string caseid = spl[0].Replace("CaseID=", "");
        string id_    = spl[1].Replace("cmp=", "");

        string compnyid = id_.Replace("'", "");

        try
        {
            if (!IsPostBack)
            {
                if (caseid != null)
                {
                    //caseID = caseid;
                    if (caseid.ToString() != "")
                    {
                        CaseDetailsBO       _caseDetailsBO       = new CaseDetailsBO();
                        Bill_Sys_CaseObject _bill_Sys_CaseObject = new Bill_Sys_CaseObject();
                        _bill_Sys_CaseObject.SZ_PATIENT_ID = _caseDetailsBO.GetCasePatientID(caseid.ToString(), "");
                        _bill_Sys_CaseObject.SZ_CASE_ID    = caseid.ToString();
                        if (compnyid != null)
                        {
                            _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, compnyid.ToString());
                            Session["company"] = compnyid.ToString();
                        }
                        else
                        {
                            _bill_Sys_CaseObject.SZ_CASE_NO = _caseDetailsBO.GetCaseNo(_bill_Sys_CaseObject.SZ_CASE_ID, Session["company"].ToString());
                        }

                        _bill_Sys_CaseObject.SZ_PATIENT_NAME = _caseDetailsBO.GetPatientName(_bill_Sys_CaseObject.SZ_PATIENT_ID);
                        _bill_Sys_CaseObject.SZ_COMAPNY_ID   = Session["company"].ToString();
                        Session["CASE_OBJECT"] = _bill_Sys_CaseObject;
                    }
                }
                if (Session["CASE_OBJECT"] != null)
                {
                    txtCaseID.Text     = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                    Session["company"] = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID;
                }
                else
                {
                    Response.Redirect("Bill_Sys_SearchCase.aspx", false);
                }

                LoadNoteGrid();
                caseID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID;
                ShowPopupNotes(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID);


                //hlnkAssociate.Visible = true;
                grdAssociatedDiagnosisCode.Visible = false;
                //divAssociatedCode.Visible = true;
                _bill_Sys_ProcedureCode_BO            = new Bill_Sys_ProcedureCode_BO();
                grdAssociatedDiagnosisCode.DataSource = _bill_Sys_ProcedureCode_BO.GetAssociatedDiagnosisCode_List(caseID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID).Tables[0];
                grdAssociatedDiagnosisCode.DataBind();
                //////////////////////
                //CREATE SESSION FOR DOC MANAGER,TEMPLATE MANAGER,Notes,Bills

                Bill_Sys_Case _bill_Sys_Case = new Bill_Sys_Case();
                _bill_Sys_Case.SZ_CASE_ID = txtCaseID.Text;

                Session["CASEINFO"] = _bill_Sys_Case;

                Session["PassedCaseID"] = txtCaseID.Text;
                String szURL    = "";
                String szCaseID = Session["PassedCaseID"].ToString();
                Session["QStrCaseID"]   = szCaseID;
                Session["Case_ID"]      = szCaseID;
                Session["Archived"]     = "0";
                Session["QStrCID"]      = szCaseID;
                Session["SelectedID"]   = szCaseID;
                Session["DM_User_Name"] = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["User_Name"]    = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME;
                Session["SN"]           = "0";
                Session["LastAction"]   = "vb_CaseInformation.aspx";


                Session["SZ_CASE_ID_NOTES"] = txtCaseID.Text;

                Session["TM_SZ_CASE_ID"] = txtCaseID.Text;

                LoadDataOnPage();
                UserPatientInfoControl.GetPatienDeskList(((Bill_Sys_CaseObject)(Session["CASE_OBJECT"])).SZ_CASE_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            }


            if (!IsPostBack)
            {
                ReminderBO objReminder = null;
                DataSet    dsReminder  = null;
                string     strUserId   = "";
                string     SzCaseID    = "";
                DateTime   dtCurrent_Date;
                objReminder    = new ReminderBO();
                dsReminder     = new DataSet();
                strUserId      = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
                SzCaseID       = txtCaseID.Text;
                dtCurrent_Date = Convert.ToDateTime(System.DateTime.Now.ToShortDateString());
                dsReminder     = objReminder.LoadReminderDetailsForCaseDeatils(strUserId, dtCurrent_Date, SzCaseID);
            }

            log.Debug("Bill_Sys_Casedetails. Method - Page_Load_End : " + DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString() + ":" + DateTime.Now.Millisecond.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);
        }
        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_CaseDetails.aspx");
        }
        #endregion

        //Method End

        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }