Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         this.lblSaveDate.Text  = DateTime.Today.ToString("MM/dd/yyyy");
         this.txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
         this.txtCaseID.Text    = ((Bill_Sys_CaseObject)this.Session["CASE_OBJECT"]).SZ_CASE_ID;
         btnSavesent.Attributes.Add("onclick", "return CheckValid()");
         if (!base.IsPostBack)
         {
             hdnBillNumber.Value = Request.QueryString["billNo"].ToString();
             hdnSpecialty.Value  = Request.QueryString["SpecialtyId"].ToString();
             hdnCaseId.Value     = Request.QueryString["CaseId"].ToString();
             Bill_Sys_BillTransaction_BO n_bo = new Bill_Sys_BillTransaction_BO();
             DataSet ds = n_bo.FillEORReasons(((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
             ddlReasons.DataSource     = ds;
             ddlReasons.DataTextField  = ds.Tables[0].Columns[1].ToString();
             ddlReasons.DataValueField = ds.Tables[0].Columns[0].ToString();
             ddlReasons.DataBind();
             // Then add your first item
             ddlReasons.Items.Insert(0, new ListItem("-- Select --", "NA"));
             ddlReasons.SelectedIndex = 0;
             BindGrid();
         }
     }
     catch (Exception ex)
     {
         lblMessage.Visible      = false;
         lblScan.Visible         = false;
         lblErrorMessage.Text    = "";
         lblErrorMessage.Visible = true;
         lblErrorMessage.Text    = ex.Message.ToString();
     }
 }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            String      CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            DashBoardBO _obj      = new DashBoardBO();
            _billTransactionBO = new Bill_Sys_BillTransaction_BO();

            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblMissingInformation.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li> <a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=MissingInsuranceCompany' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), CompanyID, "MISSING_INSURANCE_COMPANY") + "</a> ";
            lblMissingInformation.Text += " insurance company missing </li>  <li> <a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=MissingAttorney' onclick=\"javascript:OpenPage('MissingAttorney');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), CompanyID, "MISSING_ATTORNEY") + "</a>";
            lblMissingInformation.Text += " attorney missing </li>  <li> <a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=MissingClaimNumber' onclick=\"javascript:OpenPage('MissingClaimNumber');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), CompanyID, "MISSING_CLAIM_NUMBER") + "</a> claim number missing </li></ul>";
        }
        catch (Exception ex)
        {
            string strError = ex.Message.ToString();
            strError = strError.Replace("\n", " ");
            Response.Redirect("~/Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
        }
    }
    private void GetProcedureCode(string doctorId)
    {
        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
        {
            _bill_Sys_BillTransaction = new Bill_Sys_BillTransaction_BO();
            DataTable dtProcCode = new DataTable();
            _bill_Sys_BillTransaction = new Bill_Sys_BillTransaction_BO();
            grdProcedure.DataSource   = _bill_Sys_BillTransaction.GetDoctorSpecialityProcedureCodeList(doctorId, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            grdProcedure.DataBind();
        }
        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());
        }
    }
    public void RedirectToScanApp(int iindex)
    {
        // Session["Billflag"] = "BillInvoiceReport";

        string szFlag = "BillInvoiceReport";
        string sz_InvoicePaymentID = Session["scan_invoice_payment_No"].ToString();

        string sz_file_path             = "";
        string sz_caseno                = sz_InvoicePaymentID;
        string sz_SoftwareInvoiceReport = "SoftwareInvoiceReport";

        iindex = (int)grdPaymentTransaction.SelectedIndex;
        string        szUrl          = ConfigurationManager.AppSettings["webscanurl"].ToString();
        PatientDataBO _obj_patientBo = new PatientDataBO();
        //   string sz_PatientName = _obj_patientBo.getPatientName(Session["CID"].ToString());
        Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO();

        //  string szSpecialityId = _obj.GetSpecId(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, lblBillNo.Text);
        string szProcess = "PAY";

        sz_file_path = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/Comman Folder/";

        szUrl = szUrl + "&Flag=" + szFlag + "&SzInvoicePaymentID=" + sz_InvoicePaymentID + "&SzCompanyID=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID + "&CompanyName=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "&UserId=" + ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID + "&UserName="******"USER_OBJECT"]).SZ_USER_NAME + "&SzFilePath=" + sz_file_path + "&CaseNo=" + sz_caseno + "&Process=" + szProcess + "&PName=" + sz_SoftwareInvoiceReport;

        ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "window.open('" + szUrl + "', 'Scan_Document','channelmode=no,location=no,toolbar=no,menubar=0,resizable=0,status=no,scrollbars=0, width=600,height=550'); ", true);
    }
Example #5
0
    protected void getVisitDate()
    {
        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
        {
            Bill_Sys_BillTransaction_BO _objBT = new Bill_Sys_BillTransaction_BO();
            lblVisitDate.Text = _objBT.GetBillVisitDate(txtBillNo.Text, txtCompanyID.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);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Example #6
0
    protected void lnkuplaod_Click(object sender, EventArgs e)
    {
        LinkButton btn = (LinkButton)sender;
        Bill_Sys_Verification_Desc _objDesc;
        ArrayList arr_node_type         = new ArrayList();
        ArrayList objAL                 = new ArrayList();
        Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO();
        TableCell    tc                 = (TableCell)btn.Parent;
        DataGridItem it                 = (DataGridItem)tc.Parent;
        int          index              = it.ItemIndex;

        Session["BillNo"]       = txtViewBillNumber.Text;
        Session["NODETYPESCAN"] = "";
        Session["NODETYPE"]     = "";
        Session["VERID"]        = it.Cells[5].Text;
        ArrayList arrBillNo = new ArrayList();
        ArrayList arrSpec   = new ArrayList();
        ArrayList arrCaseId = new ArrayList();

        if (it.Cells[1].Text.ToLower().Equals("verification received"))
        {
            _objDesc                      = new Bill_Sys_Verification_Desc();
            _objDesc.sz_bill_no           = txtViewBillNumber.Text;
            _objDesc.sz_description       = "";
            _objDesc.sz_verification_date = "";
            _objDesc.i_verification       = 0;
            _objDesc.sz_company_id        = txtCompanyID.Text;
            _objDesc.sz_user_id           = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString();
            _objDesc.sz_flag              = "VR";
            objAL.Add(_objDesc);
            arr_node_type = obj.Get_Node_Type(objAL);

            if (arr_node_type.Contains("NFVER"))
            {
                arr_node_type.Clear();
                arr_node_type.Add("NFVER");
                Session["NODETYPE"] = arr_node_type;
            }
            else
            {
                Session["NODETYPE"] = arr_node_type;
            }
            arrCaseId.Add(txtCaseID.Text);
            arrBillNo.Add(txtViewBillNumber.Text);
            arrSpec.Add(Session["Speciality"].ToString());
            Bill_Sys_UploadFile _objUploadFile = new Bill_Sys_UploadFile();
            _objUploadFile.sz_bill_no       = arrBillNo;
            _objUploadFile.sz_company_id    = txtCompanyID.Text;
            _objUploadFile.sz_flag          = "VR";
            _objUploadFile.sz_case_id       = arrCaseId;
            _objUploadFile.sz_speciality_id = arrSpec;
            _objUploadFile.sz_UserId        = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString();
            _objUploadFile.sz_UserName      = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString();
            ViewState["VSUpload"]           = _objUploadFile;
        }
        ScriptManager.RegisterClientScriptBlock(this, GetType(), "mm", "showUploadFilePopup();", true);
    }
Example #7
0
    public void BindGrid()
    {
        DataSet dset;

        try
        {
            string hdnBills = hdnBillNumber.Value.ToString();
            Bill_Sys_BillTransaction_BO n_bo     = new Bill_Sys_BillTransaction_BO();
            string[]                 sBillNumber = System.Text.RegularExpressions.Regex.Split(hdnBills, @"\,");
            gbmodel.bill.Bill        billNo      = new gbmodel.bill.Bill();
            List <gbmodel.bill.Bill> lstBills    = new List <gbmodel.bill.Bill>();
            for (int i = 0; i < sBillNumber.Length; i++)
            {
                billNo = new gbmodel.bill.Bill();
                if (sBillNumber.Length > 0)
                {
                    if (sBillNumber[i] != "")
                    {
                        billNo.Number = sBillNumber[i].ToString();
                        lstBills.Add(billNo);
                    }
                }
            }

            DataTable dtBillNumbers = new DataTable();
            dtBillNumbers.Columns.Add("sz_bill_id", typeof(string));
            dtBillNumbers.Columns.Add("sz_assigned_lawfirm_id", typeof(string));
            dtBillNumbers.Columns.Add("sz_company_id", typeof(string));

            foreach (gbmodel.bill.Bill sBill in lstBills)
            {
                DataRow row = dtBillNumbers.NewRow();
                row["sz_bill_id"] = sBill.Number;
                dtBillNumbers.Rows.Add(row);
            }

            gbmodel.account.Account oAccount = new gbmodel.account.Account();
            oAccount.ID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;

            SrvBill srvBill = new SrvBill();
            dset = new DataSet();
            //dset = srvBill.GetBilVerificationlDetails(dtBillNumbers, lstBills, oAccount);
            dset = n_bo.GetBilEORDetails(dtBillNumbers, oAccount.ID.ToString());
            grdEORReceived.DataSource = dset.Tables[0];
            grdEORReceived.DataBind();
        }
        catch (Exception ex)
        {
            lblScan.Visible         = false;
            lblMessage.Visible      = false;
            lblErrorMessage.Visible = true;
            lblErrorMessage.Text    = ex.Message.ToString();
        }
    }
    public void RedirectToScanApp(int iindex)
    {
        iindex = (int)grdVerificationDen.SelectedIndex;
        string szUrl = ConfigurationManager.AppSettings["webscanurl"].ToString();
        Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO();
        string NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, Session["NODETYPESCAN"].ToString());

        szUrl = szUrl + "&Flag=ReqVeri" + "&CompanyId=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID + "&CaseId=" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "&UserName="******"USER_OBJECT"]).SZ_USER_NAME + "&CompanyName=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME;
        szUrl = szUrl + "&CaseNo=" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_NO + "&PName=" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_PATIENT_NAME + "&NodeId=" + NodeId + "&BillNo=" + Session["ScanBillNo"].ToString() + "&UserId=" + ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID + "&StatusID=" + Session["SCANVERID"].ToString();
        ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "window.open('" + szUrl + "', 'Scan_Document','channelmode=no,location=no,toolbar=no,menubar=0,resizable=0,status=no,scrollbars=0, width=600,height=550'); ", true);
    }
Example #9
0
 protected void btnSelectAll_Click(object sender, EventArgs e)
 {
     if (this.btnSelectAll.Text == "Select All")
     {
         Bill_Sys_BillTransaction_BO n_bo = new Bill_Sys_BillTransaction_BO();
         double  num = 0.0;
         DataSet set = new DataSet();
         string  str = "";
         if (this.Session["OFF_ID"] != null)
         {
             str = this.Session["OFF_ID"].ToString();
         }
         set = n_bo.GetBills(this.txtCompanyId.Text, this.txtLoginCompanyId.Text, str, this.txtSearchBox.Text, this.txtFlag.Text);
         for (int i = 0; i < this.grdBillSearch.Rows.Count; i++)
         {
             CheckBox box = (CheckBox)this.grdBillSearch.Rows[i].FindControl("ChkDelete");
             box.Checked = true;
             box.Enabled = false;
         }
         for (int j = 0; j < set.Tables[0].Rows.Count; j++)
         {
             string str2 = set.Tables[0].Rows[j][5].ToString();
             switch (str2)
             {
             case "":
             case null:
             case "&nbsp;":
                 str2 = "0";
                 break;
             }
             num += Convert.ToDouble(str2);
         }
         this.txtSum.Text          = Convert.ToString(num);
         this.btnSelectAll.Text    = "Deselect All";
         this.hselectVlaue.Value   = "2";
         this.Session["SelectAll"] = "TRUE";
     }
     else if (this.btnSelectAll.Text == "Deselect All")
     {
         this.Session["SelectAll"] = null;
         this.hselectVlaue.Value   = "1";
         this.txtSum.Text          = "";
         this.btnSelectAll.Text    = "Select All";
         for (int k = 0; k < this.grdBillSearch.Rows.Count; k++)
         {
             CheckBox box2 = (CheckBox)this.grdBillSearch.Rows[k].FindControl("ChkDelete");
             box2.Enabled = true;
             box2.Checked = false;
         }
     }
 }
Example #10
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        Bill_Sys_BillTransaction_BO obj;
        Bill_Sys_Verification_Desc  _objDesc;
        Boolean updateFlag = false;

        string stre = txtViewBillNumber.Text;
        char   ch   = ',';

        string[] s1 = stre.Split(ch);


        ArrayList objSplit = new ArrayList();

        for (int i = 0; i < s1.Length; i++)
        {
            objSplit.Add(s1[i].ToString());
        }


        string sz_status_code = "";

        for (int k = 0; k < objSplit.Count; k++)
        {
            ArrayList objAL = new ArrayList();

            String szBillNo = objSplit[k].ToString();

            _objDesc                      = new Bill_Sys_Verification_Desc();
            _objDesc.sz_bill_no           = szBillNo;
            _objDesc.sz_description       = txtSaveDescription.Text;
            _objDesc.sz_verification_date = txtSaveDate.Text;
            _objDesc.i_verification       = 1;
            _objDesc.sz_company_id        = txtCompanyID.Text;
            _objDesc.sz_user_id           = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString();
            _objDesc.sz_flag              = "VR";
            objAL.Add(_objDesc);
            obj            = new Bill_Sys_BillTransaction_BO();
            sz_status_code = obj.InsertUpdateBillStatus(objAL);
            updateFlag     = true;
        }
        if (updateFlag)
        {
            Session["STATUS_CODE"] = sz_status_code;
            Session["NODETYPE"]    = "NFVER";
            BindGrid();
            usrMessage1.PutMessage("Saved successfully.");
            usrMessage1.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage1.Show();
        }
    }
Example #11
0
    protected void setLabels()
    {
        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());
        }
        DashBoardBO _obj = new DashBoardBO();

        _billTransactionBO = new Bill_Sys_BillTransaction_BO();
        try
        {
            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblAppointmentToday.Text = _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "GET_APPOINTMENT");
            lblAppointmentWeek.Text  = _obj.getAppoinmentCount(start.ToString(), end.ToString(), txtCompanyID.Text, "GET_APPOINTMENT");

            lblBillStatus.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_PaidBills.aspx?Flag=Paid' onclick=\"javascript:OpenPage('Paid');\" > " + _billTransactionBO.GetCaseCount("SP_MST_CASE_MASTER", "GET_PAID_LIST_COUNT", txtCompanyID.Text) + "</a>";
            lblBillStatus.Text += " Paid Bills  </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=UnPaid' onclick=\"javascript:OpenPage('UnPaid');\" > " + _billTransactionBO.GetCaseCount("SP_MST_CASE_MASTER", "GET_UNPAID_LIST_COUNT", txtCompanyID.Text) + "</a> Un-Paid Bills </li></ul>";

            lblDesk.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_LitigationDesk.aspx?Type=Litigation' onclick=\"javascript:OpenPage('Litigation');\" > " + _billTransactionBO.GetCaseCount("SP_LITIGATION_WRITEOFF_DESK", "GET_LETIGATION_COUNT", txtCompanyID.Text) + "</a>" + " bills due for litigation";

            //lblMissingInformation.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_PaidBills.aspx?Flag=MissingProvider' onclick=\"javascript:OpenPage('MissingProvider');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_PROVIDER") + "</a>";
            //lblMissingInformation.Text += " provider information missing  </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingInsuranceCompany' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_INSURANCE_COMPANY") + "</a> ";
            //lblMissingInformation.Text += " insurance company missing </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingAttorney' onclick=\"javascript:OpenPage('MissingAttorney');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_ATTORNEY") + "</a>";
            //lblMissingInformation.Text += " attorney missing </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingClaimNumber' onclick=\"javascript:OpenPage('MissingClaimNumber');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_CLAIM_NUMBER") + "</a> claim number missing </li></ul>";
        }
        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 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());
        }
        ArrayList objarr;
        Bill_Sys_BillTransaction_BO obj;

        try
        {
            for (int i = 0; i < grdVerificationReq.Items.Count; i++)
            {
                if (((CheckBox)grdVerificationReq.Items[i].Cells[6].FindControl("chkDelete")).Checked == true)
                {
                    Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO();
                    string sz_status_code            = _obj.GetStatusCode(txtCompanyID.Text, grdVerificationReq.Items[i].Cells[5].Text.ToString());
                    objarr = new ArrayList();
                    objarr.Add(txtCompanyID.Text);
                    objarr.Add(txtViewBillNumber.Text);
                    objarr.Add(sz_status_code);

                    obj = new Bill_Sys_BillTransaction_BO();
                    obj.DeleteVerificationNotes(objarr);
                }
            }
            BindGrid();
        }
        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());
        }
    }
Example #13
0
    public void RedirectToScanApp(int iindex)
    {
        ArrayList arrSpeId = new ArrayList();

        iindex = (int)grdPomReport.SelectedIndex;
        string szUrl = ConfigurationManager.AppSettings["webscanurl"].ToString();

        _obj = new Bill_Sys_BillTransaction_BO();
        string pomstatus = "";

        if (Session["SCANPOMSTATUS"].ToString().Equals("1"))
        {
            pomstatus = "VPOMR";
        }
        else
        {
            pomstatus = "POM";
        }


        //   String NodeId = _obj.GetNodeID(txtCompanyID.Text, Session["SCANCASEID"].ToString(), "NFPRO");
        string NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "NFPRO");

        arrSpeId = _obj.GetSpecialityIdFromPOM(Session["SCANPOMID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
        string szSpecialityId = "";
        string szProcess      = "POM";

        for (int i = 0; i < arrSpeId.Count; i++)
        {
            if (szSpecialityId == "")
            {
                szSpecialityId = arrSpeId[i].ToString();
            }
            else
            {
                szSpecialityId = szSpecialityId + "," + arrSpeId[i].ToString();
            }
        }

        szUrl = szUrl + "&Flag=ReqPom" + "&CompanyId=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID + "&UserName="******"USER_OBJECT"]).SZ_USER_NAME + "&CompanyName=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME;
        szUrl = szUrl + "&PName=" + Session["SCANPOMID"].ToString() + "&CaseNo=POM" + "&NodeId=" + NodeId + "&PomID=" + Session["SCANPOMID"].ToString() + "&UserId=" + ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
        szUrl = szUrl + "&Pomstatus=" + pomstatus + "&Speciality=" + szSpecialityId + "&Process=" + szProcess;

        ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "window.open('" + szUrl + "', 'Scan_Document','channelmode=no,location=no,toolbar=no,menubar=0,resizable=0,status=no,scrollbars=0, width=600,height=550'); ", true);
    }
Example #14
0
    public void RedirectToScanApp(int iindex, string szCaseType, string szProcess, string szNodeType)
    {
        iindex = (int)grdVerificationReq.SelectedIndex;
        string szUrl = ConfigurationManager.AppSettings["webscanurl"].ToString();
        Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO();
        string NodeId   = "";
        string szDenial = "";

        //string NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, Session["NODETYPE"].ToString());
        //string szNodeType = "";
        ArrayList arrNodeType   = new ArrayList();
        ArrayList arrSpeciality = new ArrayList();
        string    szBasePath    = ConfigurationManager.AppSettings["BASEPATH"].ToString();
        string    szSpeciality  = "";

        arrSpeciality.Add(Session["Speciality"].ToString());

        if (szCaseType == "OLD")
        {
            NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szNodeType);
        }
        else
        {
            //arrSpeciality = (ArrayList)Session["Spec"];

            if (NodeId == "")
            {
                Bill_Sys_BillTransaction_BO _objBillTransaction = new Bill_Sys_BillTransaction_BO();
                string szSpecName = _objBillTransaction.GetSpecName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, arrSpeciality[0].ToString());
                //string arrSpe = arrNodeType[0].ToString();

                if (szProcess == "VR")
                {
                    NodeId = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "\\" + txtCaseID.Text + "\\" + "Nofault" + "\\" + "Medicals" + "\\" + szSpecName + "\\" + ConfigurationManager.AppSettings["VR"].ToString() + "\\";
                }
            }
            NodeId = Convert.ToBase64String(Encoding.Unicode.GetBytes(NodeId));
        }

        szUrl = szUrl + "&Flag=Verification" + "&CompanyId=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID + "&CaseId=" + txtCaseID.Text + "&UserName="******"USER_OBJECT"]).SZ_USER_NAME + "&CompanyName=" + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME;
        szUrl = szUrl + "&CaseNo=" + txtcaseno.Text + "&PName=" + txtpatientname.Text + "&NodeId=" + NodeId + "&BillNo=" + Session["ScanBillNo"].ToString() + "&UserId=" + ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID + "&StatusID=" + Session["SCANVERID"].ToString();
        szUrl = szUrl + "&CaseType=" + szCaseType + "&Speciality=" + arrSpeciality[0].ToString().Trim() + "&Process=" + szProcess;
        ScriptManager.RegisterStartupScript(this, this.GetType(), "starScript", "window.open('" + szUrl + "', 'Scan_Document','channelmode=no,location=no,toolbar=no,menubar=0,resizable=0,status=no,scrollbars=0, width=600,height=550'); ", true);
    }
Example #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            String      CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            DashBoardBO _obj      = new DashBoardBO();
            _billTransactionBO = new Bill_Sys_BillTransaction_BO();

            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblDesk.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_LitigationDesk.aspx?Type=Litigation' onclick=\"javascript:OpenPage('Litigation');\" > " + _billTransactionBO.GetCaseCount("SP_LITIGATION_WRITEOFF_DESK", "GET_LETIGATION_COUNT", CompanyID) + "</a>" + " bills due for litigation";
        }
        catch (Exception ex)
        {
            string strError = ex.Message.ToString();
            strError = strError.Replace("\n", " ");
            Response.Redirect("~/Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
        }
    }
Example #16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            String      CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            DashBoardBO _obj      = new DashBoardBO();
            _billTransactionBO = new Bill_Sys_BillTransaction_BO();

            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblAppointmentWeek.Text = _obj.getAppoinmentCount(start.ToString(), end.ToString(), CompanyID, "GET_APPOINTMENT");
        }
        catch (Exception ex)
        {
            string strError = ex.Message.ToString();
            strError = strError.Replace("\n", " ");
            Response.Redirect("~/Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
        }
    }
Example #17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            String      CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            DashBoardBO _obj      = new DashBoardBO();
            _billTransactionBO = new Bill_Sys_BillTransaction_BO();

            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblProcedureStatus.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li>" + _obj.getBilledUnbilledProcCode(CompanyID, "GET_BILLEDPROC") + " billed procedure codes";
            lblProcedureStatus.Text += "</li>  <li>" + _obj.getBilledUnbilledProcCode(CompanyID, "GET_UNBILLEDPROC") + " Un-billed procedure codes </li></ul>";
        }
        catch (Exception ex)
        {
            string strError = ex.Message.ToString();
            strError = strError.Replace("\n", " ");
            Response.Redirect("~/Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
        }
    }
Example #18
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            String      CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            DashBoardBO _obj      = new DashBoardBO();
            _billTransactionBO = new Bill_Sys_BillTransaction_BO();

            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblBillStatus.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=Paid' onclick=\"javascript:OpenPage('Paid');\" > " + _billTransactionBO.GetCaseCount("SP_MST_CASE_MASTER", "GET_PAID_LIST_COUNT", CompanyID) + "</a>";
            lblBillStatus.Text += " Paid Bills  </li>  <li> <a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=UnPaid' onclick=\"javascript:OpenPage('UnPaid');\" > " + _billTransactionBO.GetCaseCount("SP_MST_CASE_MASTER", "GET_UNPAID_LIST_COUNT", CompanyID) + "</a> Un-Paid Bills </li></ul>";
        }
        catch (Exception ex)
        {
            string strError = ex.Message.ToString();
            strError = strError.Replace("\n", " ");
            Response.Redirect("~/Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            String      CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            DashBoardBO _obj      = new DashBoardBO();
            _billTransactionBO = new Bill_Sys_BillTransaction_BO();

            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblReport.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=report&Type=R' onclick=\"javascript:OpenPage('Litigation');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), CompanyID, "DOCUMENT_RECEIVED_COUNT") + "</a>" + " Received Report";
            lblReport.Text += "</li>  <li> <a href='" + "http://" + Request.Url.Authority + Request.ApplicationPath + "/Bill_Sys_PaidBills.aspx?Flag=report&Type=P' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), CompanyID, "DOCUMENT_PENDING_COUNT") + "</a> Pending Report </li></ul>";
        }
        catch (Exception ex)
        {
            string strError = ex.Message.ToString();
            strError = strError.Replace("\n", " ");
            Response.Redirect("~/Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
        }
    }
Example #20
0
    protected void btnSaveDesc_Click(object sender, EventArgs e)
    {
        try
        {
            Bill_Sys_BillTransaction_BO n_bo;
            Bill_Sys_Verification_Desc  desc;
            bool      flag        = false;
            bool      flag2       = false;
            string    statusCode  = "";
            ArrayList list        = new ArrayList();
            ArrayList list2       = new ArrayList();
            ArrayList list3       = new ArrayList();
            ArrayList listReasons = new ArrayList();

            this.ViewState["Process"] = "";
            this.ViewState["Process"] = "EOR";
            ArrayList list4       = new ArrayList();
            ArrayList list5       = new ArrayList();
            string    specialty   = "";
            string[]  sBillNumber = System.Text.RegularExpressions.Regex.Split(hdnBillNumber.Value.ToString(), @"\,");
            for (int j = 0; j < sBillNumber.Length; j++)
            {
                if (!string.IsNullOrEmpty(hfEORReason.Value))
                {
                    listReasons.AddRange(hfEORReason.Value.TrimEnd(',').Split(','));
                }
                string sBillNo = sBillNumber[j].ToString(); // bill no
                specialty = hdnSpecialty.Value.ToString();  //Specialty
                list2.Add(txtCaseID.Text);
                list5.Add(sBillNo);
                list3.Add(specialty);
                desc = new Bill_Sys_Verification_Desc();
                desc._sz_verification_reasons = listReasons.ToString();
                desc.sz_bill_no           = sBillNo;
                desc.sz_description       = this.txtSaveDescription.Text;
                desc.sz_verification_date = this.txtSaveDate.Text;
                desc.i_verification       = 4;
                desc.sz_company_id        = this.txtCompanyID.Text;
                desc.sz_user_id           = ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID.ToString();
                desc.sz_flag = "EOR";
                list4.Add(desc);
                flag = true;
            }

            this._objUploadFile                  = new Bill_Sys_UploadFile();
            this._objUploadFile.sz_bill_no       = list5;
            this._objUploadFile.sz_company_id    = this.txtCompanyID.Text;
            this._objUploadFile.sz_flag          = "EOR";
            this._objUploadFile.sz_case_id       = list2;
            this._objUploadFile.sz_speciality_id = list3;

            if (flag)
            {
                n_bo       = new Bill_Sys_BillTransaction_BO();
                statusCode = n_bo.InsertUpdateBillStatus(list4);
                this._objUploadFile.sz_StatusCode = statusCode;
                this.ViewState["VSUpload"]        = this._objUploadFile;
                list  = n_bo.Get_Node_Type(list4);
                flag2 = true;
                if (statusCode != "")
                {
                    DataTable eorReasonsWithBill = new DataTable();
                    eorReasonsWithBill.Columns.Add("verificationReasonIds");
                    eorReasonsWithBill.Columns.Add("billNumber");
                    foreach (string billNo in sBillNumber)
                    {
                        foreach (string eorId in listReasons)
                        {
                            eorReasonsWithBill.Rows.Add(eorId, billNo);
                        }
                    }
                    n_bo.UpdateEORReason(statusCode, eorReasonsWithBill);
                }
                if (list.Contains("NFVER"))
                {
                    list.Clear();
                    list.Add("NFVER");
                    this.Session["NODETYPE"] = list;
                }
                else
                {
                    this.Session["NODETYPE"] = list;
                }
            }

            if (!statusCode.Equals("") && flag2)
            {
                lblMessage.Visible  = true;
                lblMessage.Text     = "Record saved successfully";
                hdnStatusCode.Value = statusCode;
            }
            HtmlAnchor anchorScan = (HtmlAnchor)this.FindControl("anchorScan");
            anchorScan.Visible = true;
            BindGrid();
            lblScan.Visible   = true;
            lblScan.InnerText = "[Scan/Upload here to add the same document against all selected bills]";
        }
        catch (Exception ex)
        {
            lblErrorMessage.Visible = true;
            lblErrorMessage.Text    = ex.Message.ToString();
        }
    }
Example #21
0
    protected void btnloaned_Click(object sender, EventArgs e)
    {
        Bill_Sys_BillTransaction_BO n_bo;
        string str = "";

        if (base.Request.QueryString["id"] != null)
        {
            str = base.Request.QueryString["id"].ToString();
        }
        else
        {
            str = "";
        }
        if (this.Session["SelectAll"] != null)
        {
            string str2 = this.Session["OFF_ID"].ToString();
            n_bo = new Bill_Sys_BillTransaction_BO();
            if (n_bo.UpdateStatusAll(this.txtCompanyId.Text, this.txtLoginCompanyId.Text, str2, this.txtSearchBox.Text, "LND", this.txtFlag.Text) >= 1)
            {
                if (str != "2")
                {
                    this.usrMessage.PutMessage("All bills in the current selection with 'Bill Downloaded' status updated successfully to Loaned.");
                }
                else
                {
                    this.usrMessage.PutMessage("Bill Status Updated Succesfully.");
                }
                this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                this.usrMessage.Show();
                this.BinGrid();
            }
            else
            {
                if (str != "2")
                {
                    this.usrMessage.PutMessage("Error in transaction, only bills with 'Bill Downloaded' status can be changed to Loaned.");
                }
                else
                {
                    this.usrMessage.PutMessage("Error in transaction.");
                }
                this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                this.usrMessage.Show();
            }
            this.btnSelectAll_Click(null, null);
        }
        else
        {
            ArrayList list = new ArrayList();
            for (int i = 0; i < this.grdBillSearch.Rows.Count; i++)
            {
                CheckBox box = (CheckBox)this.grdBillSearch.Rows[i].FindControl("ChkDelete");
                if (box.Checked)
                {
                    list.Add(this.grdBillSearch.DataKeys[i][1].ToString());
                }
            }
            n_bo = new Bill_Sys_BillTransaction_BO();
            if (n_bo.UpdateStatus(list, this.txtLoginCompanyId.Text, "LND") >= 1)
            {
                if (str != "2")
                {
                    this.usrMessage.PutMessage("All bills in the current selection with 'Bill Downloaded' status updated successfully to Loaned.");
                }
                else
                {
                    this.usrMessage.PutMessage("Bill Status Updated Succesfully.");
                }
                this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                this.usrMessage.Show();
                this.grdBillSearch.XGridBindSearch();
            }
            else
            {
                if (str != "2")
                {
                    this.usrMessage.PutMessage("Error in transaction, only bills with 'Bill Downloaded' status can be changed to Loaned.");
                }
                else
                {
                    this.usrMessage.PutMessage("Error in transaction.");
                }
                this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_ErrorMessage);
                this.usrMessage.Show();
            }
        }
    }
Example #22
0
    protected void setLabels()
    {
        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());
        }
        DashBoardBO _obj = new DashBoardBO();

        _billTransactionBO = new Bill_Sys_BillTransaction_BO();
        try
        {
            DayOfWeek day  = Convert.ToDateTime(System.DateTime.Today.ToString()).DayOfWeek;
            int       days = day - DayOfWeek.Sunday;

            DateTime start = Convert.ToDateTime(System.DateTime.Today.ToString()).AddDays(-days);
            DateTime end   = start.AddDays(6);

            lblAppointmentToday.Text = _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "GET_APPOINTMENT");
            lblAppointmentWeek.Text  = _obj.getAppoinmentCount(start.ToString(), end.ToString(), txtCompanyID.Text, "GET_APPOINTMENT");

            lblBillStatus.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_PaidBills.aspx?Flag=Paid' onclick=\"javascript:OpenPage('Paid');\" > " + _billTransactionBO.GetCaseCount("SP_MST_CASE_MASTER", "GET_PAID_LIST_COUNT", txtCompanyID.Text) + "</a>";
            lblBillStatus.Text += " Paid Bills  </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=UnPaid' onclick=\"javascript:OpenPage('UnPaid');\" > " + _billTransactionBO.GetCaseCount("SP_MST_CASE_MASTER", "GET_UNPAID_LIST_COUNT", txtCompanyID.Text) + "</a> Un-Paid Bills </li></ul>";

            lblDesk.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='AJAX Pages/Bill_Sys_LitigationDesk.aspx?Type=Litigation' onclick=\"javascript:OpenPage('Litigation');\" > " + _billTransactionBO.GetCaseCount("SP_LITIGATION_WRITEOFF_DESK", "GET_LETIGATION_COUNT", txtCompanyID.Text) + "</a>" + " bills due for litigation";

            //lblMissingInformation.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_PaidBills.aspx?Flag=MissingProvider' onclick=\"javascript:OpenPage('MissingProvider');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_PROVIDER") + "</a>";
            //lblMissingInformation.Text += " provider information missing  </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingInsuranceCompany' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_INSURANCE_COMPANY") + "</a> ";
            lblMissingInformation.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingInsuranceCompany' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_INSURANCE_COMPANY") + "</a> ";
            lblMissingInformation.Text += " insurance company missing </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingAttorney' onclick=\"javascript:OpenPage('MissingAttorney');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_ATTORNEY") + "</a>";
            lblMissingInformation.Text += " attorney missing </li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingClaimNumber' onclick=\"javascript:OpenPage('MissingClaimNumber');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_CLAIM_NUMBER") + "</a> claim number missing </li>";
            lblMissingInformation.Text += "<li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingReportNumber' onclick=\"javascript:OpenPage('MissingReportNumber');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_REPORT_NUMBER") + "</a> report number missing </li>";
            lblMissingInformation.Text += "<li> <a href='Bill_Sys_PaidBills.aspx?Flag=MissingPolicyHolder'> " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "MISSING_POLICY_HOLDER") + "</a> policy holder missing </li>";
            lblMissingInformation.Text += "<li> <a href='Bill_Sys_ShowUnSentNF2.aspx' > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "UNSENTNF2") + "</a> unsent NF2 </li></ul>";



            // lblReport.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_PaidBills.aspx?Flag=report&Type=R' onclick=\"javascript:OpenPage('Litigation');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "DOCUMENT_RECEIVED_COUNT") + "</a>" + " Received Report";
            lblReport.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a href='Bill_Sys_ReffPaidBills.aspx' onclick=\"javascript:OpenPage('Litigation');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "DOCUMENT_RECEIVED_COUNT") + "</a>" + " Received Report";
            lblReport.Text += "</li>  <li> <a href='Bill_Sys_PaidBills.aspx?Flag=report&Type=P' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + _obj.getAppoinmentCount(System.DateTime.Today.ToString(), System.DateTime.Today.ToString(), txtCompanyID.Text, "DOCUMENT_PENDING_COUNT") + "</a> Pending Report </li></ul>";

            lblProcedureStatus.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li>" + _obj.getBilledUnbilledProcCode(txtCompanyID.Text, "GET_BILLEDPROC") + " billed procedure codes";
            lblProcedureStatus.Text += "</li>  <li>" + _obj.getBilledUnbilledProcCode(txtCompanyID.Text, "GET_UNBILLEDPROC") + " Un-billed procedure codes </li></ul>";


            //lblVisits.Text = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li><a id='hlnkTotalVisit' href='#' onclick='javascript:OpenTotalVisitPopup();'>" + _obj.getTotalVisits(txtCompanyID.Text, "GET_VISIT_COUNT") + " </a> Visits</li>";
            //lblVisits.Text += "<li><a id='hlnkVisit' href='#' onclick='javascript:OpenVisitPopup();'>" + _obj.getTotalVisits(txtCompanyID.Text, "GET_BILLED_VISIT_COUNT") + " </a>Billed visits </li>";
            //lblVisits.Text += "<li><a id='hlnkUnVisit' href='#' onclick='javascript:OpenUnVisitPopup();'>" + _obj.getTotalVisits(txtCompanyID.Text, "GET_UNBILLED_VISIT_COUNT") + "</a> Un-billed visits </a></li></ul>";

            lblTotalVisit.Text    = _obj.getTotalVisits(txtCompanyID.Text, "GET_VISIT_COUNT");
            lblBilledVisit.Text   = _obj.getTotalVisits(txtCompanyID.Text, "GET_BILLED_VISIT_COUNT");
            lblUnBilledVisit.Text = _obj.getTotalVisits(txtCompanyID.Text, "GET_UNBILLED_VISIT_COUNT");

            // 8 April - add patient visit status block on page - sachin
            lblPatientVisitStatus.Text  = "<ul style=\"list-style-type:disc;padding-left:60px;\"> <li> <a href='Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientscheduled' onclick=\"javascript:OpenPage('PatientScheduled');\" > " + _obj.getPatientVisitStatusCount(txtCompanyID.Text, "GET_PATIENT_VISIT_SCHEDULED_COUNT") + "</a> ";
            lblPatientVisitStatus.Text += " Patient Scheduled </li>  <li> <a href='Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientnoshows' onclick=\"javascript:OpenPage('PatientNoShows');\" > " + _obj.getPatientVisitStatusCount(txtCompanyID.Text, "GET_PATIENT_VISIT_NO_SHOWS") + "</a>";
            lblPatientVisitStatus.Text += " Patient No Shows </li>  <li> <a href='Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientrescheduled' onclick=\"javascript:OpenPage('PatientRescheduled');\" > " + _obj.getPatientVisitStatusCount(txtCompanyID.Text, "GET_PATIENT_VISIT_RESCHEDULED") + "</a>";
            lblPatientVisitStatus.Text += " Patient Rescheduled </li>  <li> <a href='Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientvisitcompleted' onclick=\"javascript:OpenPage('PatientVisitcompleted');\" > " + _obj.getPatientVisitStatusCount(txtCompanyID.Text, "GET_PATIENT_VISIT_COMPLETED") + "</a>Patient Visit completed </li></ul>";

            ConfigDashBoard();
        }
        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());
        }
    }
Example #23
0
    protected void btnSaveDesc_Click(object sender, EventArgs e)
    {
        Bill_Sys_BillTransaction_BO obj;
        Bill_Sys_Verification_Desc  _objDesc;
        Boolean   updateFlag     = false;
        string    sz_status_code = "";
        ArrayList arr_node_type  = new ArrayList();
        string    Bill_number    = "";
        Boolean   uploadflag     = false;
        ArrayList arrCaseId      = new ArrayList();
        ArrayList arrSpeciality  = new ArrayList();
        string    szSpec         = "";

        ViewState["Process"] = "";
        ViewState["Process"] = "VR";
        ArrayList objAL     = new ArrayList();
        ArrayList arrBillNo = new ArrayList();

        String szBillNo = txtbillnumber.Text;

        szSpec = Session["Speciality"].ToString();
        arrCaseId.Add(txtCaseID.Text);
        arrBillNo.Add(szBillNo);
        arrSpeciality.Add(szSpec);
        Bill_number                   = Bill_number + szBillNo + ",";
        _objDesc                      = new Bill_Sys_Verification_Desc();
        _objDesc.sz_bill_no           = szBillNo;
        _objDesc.sz_description       = txtSaveDescription.Text;
        _objDesc.sz_verification_date = txtSaveDate.Text;
        _objDesc.i_verification       = 1;
        _objDesc.sz_company_id        = txtCompanyID.Text;
        _objDesc.sz_user_id           = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString();
        _objDesc.sz_flag              = "VR";
        objAL.Add(_objDesc);
        updateFlag = true;



        _objUploadFile                  = new Bill_Sys_UploadFile();
        _objUploadFile.sz_bill_no       = arrBillNo;
        _objUploadFile.sz_company_id    = txtCompanyID.Text;
        _objUploadFile.sz_flag          = "VR";
        _objUploadFile.sz_case_id       = arrCaseId;
        _objUploadFile.sz_speciality_id = arrSpeciality;


        if (updateFlag)
        {
            obj            = new Bill_Sys_BillTransaction_BO();
            sz_status_code = obj.InsertUpdateBillStatus(objAL);

            _objUploadFile.sz_StatusCode = sz_status_code;
            ViewState["VSUpload"]        = _objUploadFile;

            arr_node_type = obj.Get_Node_Type(objAL);
            uploadflag    = true;
            if (arr_node_type.Contains("NFVER"))
            {
                arr_node_type.Clear();
                arr_node_type.Add("NFVER");
                Session["NODETYPE"] = arr_node_type;
            }
            else
            {
                //Session["NODETYPE"] = "NFVER";
                Session["NODETYPE"] = arr_node_type;
            }
            BindGridforVerification();
            ClearControls();
            usrMessage.PutMessage("Verification Save Successfully ...!");
            usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage.Show();
        }
    }
Example #24
0
    protected void btnDelete_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());
        }
        ArrayList objarr = new ArrayList();
        Bill_Sys_BillTransaction_BO obj = new Bill_Sys_BillTransaction_BO();
        Bill_Sys_Verification_Desc  _obj1;
        ArrayList _objAL = new ArrayList();

        try
        {
            for (int i = 0; i < grdVerificationReq.Items.Count; i++)
            {
                if (((CheckBox)grdVerificationReq.Items[i].Cells[7].FindControl("chkDelete")).Checked == true)
                {
                    string sz_status_code = grdVerificationReq.Items[i].Cells[8].Text.ToString();
                    if (hfconfirm.Value == "delete" || hfconfirm.Value == "no")
                    {
                        Bill_sys_Verification_Pop objpopup = new Bill_sys_Verification_Pop();
                        objpopup.sz_bill_no = txtViewBillNumber.Text;

                        objpopup.i_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString();
                        objpopup.sz_company_id     = txtCompanyID.Text;
                        objpopup.sz_bill_Status    = sz_status_code;
                        objpopup.sz_flag           = "DEL";
                        objarr.Add(objpopup);
                        _obj1                    = new Bill_Sys_Verification_Desc();
                        _obj1.sz_bill_no         = txtViewBillNumber.Text;
                        _obj1.sz_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString();
                        _obj1.sz_company_id      = txtCompanyID.Text;
                        _objAL.Add(_obj1);
                    }

                    else if (hfconfirm.Value == "yes")
                    {
                        Bill_sys_Verification_Pop objpopup = new Bill_sys_Verification_Pop();
                        objpopup.sz_bill_no        = txtViewBillNumber.Text;
                        objpopup.i_verification_id = grdVerificationReq.Items[i].Cells[5].Text.ToString();
                        objpopup.sz_company_id     = txtCompanyID.Text;
                        objpopup.sz_bill_Status    = sz_status_code;
                        if (hfverificationId.Value != grdVerificationReq.Items[i].Cells[5].Text.ToString())
                        {
                            objpopup.sz_flag = "DEL";
                        }
                        else
                        {
                            objpopup.sz_flag = "CONFIRM";
                        }

                        objarr.Add(objpopup);
                    }
                }
            }

            //if (_objAL != null && _objAL.Count > 0)
            //{

            //    try
            //    {
            //        Bill_Sys_BillTransaction_BO obj2 = new Bill_Sys_BillTransaction_BO();
            //        obj2.DeleteVerificationAns(_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);

            //    }
            //}
            ArrayList             FilePath = obj.DeleteVerificationNotes(objarr);
            Bill_Sys_NF3_Template objpath  = new Bill_Sys_NF3_Template();
            string PhysicalPath            = objpath.getPhysicalPath();
            {
                for (int i = 0; i < FilePath.Count; i++)
                {
                    string file_path = FilePath[i].ToString();
                    if (File.Exists(PhysicalPath + file_path))
                    {
                        if (!File.Exists(PhysicalPath + file_path + ".delete"))
                        {
                            File.Move(PhysicalPath + file_path, PhysicalPath + file_path + ".delete");
                        }
                    }
                }
            }
            BindGridforVerification();
            ClearControls();
            usrMessage.PutMessage("Delete Successfully ...!");
            usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage.Show();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnUploadFile_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());
        }
        Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template();

        try
        {
            if (!fuUploadReport.HasFile)
            {
                Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>");

                return;
            }

            String szDefaultPath    = objNF3Template.getPhysicalPath();
            int    ImageId          = 0;
            String szDestinationDir = "";

            szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

            Bill_Sys_BillTransaction_BO _obj = new Bill_Sys_BillTransaction_BO();

            string NodeId = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, Session["NODETYPE"].ToString());

            RequiredDocuments.Bill_Sys_RequiredDocumentBO bo = new RequiredDocuments.Bill_Sys_RequiredDocumentBO();
            string szNodePath = bo.GetNodePath(NodeId, ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            szDestinationDir = szNodePath + "\\";
            szDestinationDir = szDestinationDir.Replace("\\", "/");
            strLinkPath      = szDestinationDir + fuUploadReport.FileName;
            if (!Directory.Exists(szDefaultPath + szDestinationDir))
            {
                Directory.CreateDirectory(szDefaultPath + szDestinationDir);
            }

            fuUploadReport.SaveAs(szDefaultPath + szDestinationDir + fuUploadReport.FileName);


            ArrayList objAL = new ArrayList();

            objAL.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID);
            objAL.Add("");
            objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

            objAL.Add(fuUploadReport.FileName);
            objAL.Add(szDestinationDir);
            objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString());
            objAL.Add(NodeId);


            string ImgId = objNF3Template.SaveDocumentData(objAL);

            if (!ImgId.Equals(""))
            {
                objNF3Template.InsertPaymentImage(Session["BillNo"].ToString(), txtCompanyID.Text, ImgId, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["VERID"].ToString(), "VERIFICATIONPOPUP");
            }

            usrMessage1.PutMessage("File Upload Successfully!");
            usrMessage1.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage1.Show();

            BindGrid();
        }
        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());
            }
        }
    }
Example #26
0
    protected void lnkscan_Click(object sender, EventArgs e)
    {
        Bill_Sys_NotesBO _Bill_Sys_NotesBO = new Bill_Sys_NotesBO();
        DataSet          dsdetails         = new DataSet();

        dsdetails           = _Bill_Sys_NotesBO.GetPatientDenial(txtCompanyID.Text, txtCaseID.Text);
        txtcaseno.Text      = dsdetails.Tables[0].Rows[0]["SZ_CASE_NO"].ToString();
        txtpatientname.Text = dsdetails.Tables[0].Rows[0]["SZ_PATIENT_NAME"].ToString();
        int          iindex = grdVerificationReq.SelectedIndex;
        LinkButton   btn    = (LinkButton)sender;
        TableCell    tc     = (TableCell)btn.Parent;
        DataGridItem it     = (DataGridItem)tc.Parent;

        Bill_Sys_Verification_Desc  _objDesc = new Bill_Sys_Verification_Desc();
        Bill_Sys_BillTransaction_BO _obj     = new Bill_Sys_BillTransaction_BO();
        ArrayList objAL       = new ArrayList();
        ArrayList arrNodeType = new ArrayList();
        string    szCaesType  = "";
        string    szProcess   = "";


        int index = it.ItemIndex;

        Session["NODETYPESCAN"] = "";
        Session["NODETYPE"]     = "";
        //atul
        Session["SCANVERID"] = it.Cells[5].Text;

        _objDesc.sz_bill_no    = txtViewBillNumber.Text;
        _objDesc.sz_company_id = txtCompanyID.Text;
        _objDesc.sz_flag       = "VR";

        objAL.Add(_objDesc);

        arrNodeType = _obj.Get_Node_Type(objAL);

        if (it.Cells[1].Text.ToLower().Equals("verification received"))
        {
            szProcess = "VR";

            if (arrNodeType.Contains("NFVER"))
            {
                szCaesType = "OLD";
                arrNodeType.Clear();
                arrNodeType.Add("NFDEN");
                Session["NODETYPE"] = arrNodeType;
            }
            else
            {
                szCaesType          = "NEW";
                Session["NODETYPE"] = arrNodeType;
            }

            //Session["NODETYPESCAN"] = "NFDEN";
        }


        Session["ScanBillNo"] = txtViewBillNumber.Text;

        RedirectToScanApp(iindex, szCaesType, szProcess, arrNodeType[0].ToString());
    }
Example #27
0
    protected void grdpaidbills_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();

        if (e.CommandName.ToString() == "Edit")
        {
            int     i      = Convert.ToInt32(e.CommandArgument.ToString());
            DataSet dsRoom = new DataSet();
            //string szCaseType = grdpaidbills.Rows[i].Cells[24].Text;

            Bill_Sys_BillTransaction_BO objTransaction = new Bill_Sys_BillTransaction_BO();
            if ((grdpaidbills.DataKeys[i]["sz_procedure_group"].ToString().ToUpper() != "OT" && grdpaidbills.DataKeys[i]["sz_procedure_group"].ToString().ToUpper() != ""))
            {
                dsRoom = objTransaction.GetRoomId(grdpaidbills.DataKeys[i]["SZ_PROCEDURE_GROUP_ID"].ToString(), txtCompanyid.Text);
                string szRoomId = dsRoom.Tables[0].Rows[0][0].ToString();
                string ProcId1  = grdpaidbills.DataKeys[i]["I_EVENT_PROC_ID"].ToString();
                Session["GETROOMID"]   = szRoomId;
                Session["EVENTPROCID"] = ProcId1;
            }
            else
            {
                string ProcId1 = grdpaidbills.DataKeys[i]["I_EVENT_PROC_ID"].ToString();
                Session["GETROOMID"]   = "All";
                Session["EVENTPROCID"] = ProcId1;
            }


            string ProcId   = grdpaidbills.DataKeys[i]["I_EVENT_PROC_ID"].ToString();
            string szCaseID = grdpaidbills.DataKeys[i]["SZ_CASE_ID"].ToString();
            //string szEventProcID = grdpaidbills.DataKeys[i]["I_EVENT_PROC_ID"].ToString();
            string procGId      = grdpaidbills.DataKeys[i]["SZ_PROCEDURE_GROUP_ID"].ToString();
            string Patientid    = grdpaidbills.DataKeys[i]["SZ_PATIENT_ID"].ToString();
            string EventID      = grdpaidbills.DataKeys[i]["I_EVENT_ID"].ToString();
            string szSpeciality = grdpaidbills.DataKeys[i]["sz_procedure_group"].ToString();
            string patientname  = grdpaidbills.DataKeys[i]["PATIENT_NAME"].ToString();
            //string dateofservice = grdpaidbills.Rows[i].Cells[8].Text;
            string dateofservice = grdpaidbills.DataKeys[i]["DT_DATE_OF_SERVICE"].ToString();
            string lhrcode       = grdpaidbills.Rows[i].Cells[21].Text;
            //string caseno = grdpaidbills.Rows[i].Cells[2].Text;
            string caseno     = grdpaidbills.DataKeys[i]["CASE_NO"].ToString();
            string szCaseType = grdpaidbills.Rows[i].Cells[24].Text;


            bool      _ischeck           = false;
            string    _caseID            = "";
            int       _isSameCaseID      = 0;
            string    ProcGroupId        = "";
            string    PatientID          = "";
            int       _isSameProcGroupID = 0;
            ArrayList objArrOneD         = new ArrayList();
            ArrayList arrEventID         = new ArrayList();
            arrEventID.Add(grdpaidbills.DataKeys[i]["I_EVENT_ID"].ToString());


            Bil_Sys_Associate_Diagnosis _dianosis_Association = new Bil_Sys_Associate_Diagnosis();

            _dianosis_Association.EventProcID        = grdpaidbills.DataKeys[i]["I_EVENT_PROC_ID"].ToString();
            _dianosis_Association.DoctorID           = grdpaidbills.DataKeys[i]["SZ_DOCTOR_ID"].ToString();
            _dianosis_Association.CaseID             = grdpaidbills.DataKeys[i]["SZ_CASE_ID"].ToString();
            _dianosis_Association.ProceuderGroupId   = grdpaidbills.DataKeys[i]["SZ_PROCEDURE_GROUP_ID"].ToString();
            _dianosis_Association.ProceuderGroupName = grdpaidbills.DataKeys[i]["sz_procedure_group"].ToString();
            _dianosis_Association.PatientId          = grdpaidbills.DataKeys[i]["SZ_PATIENT_ID"].ToString();
            _dianosis_Association.DateOfService      = grdpaidbills.DataKeys[i]["DT_DATE_OF_SERVICE"].ToString();
            _dianosis_Association.ProcedureCode      = grdpaidbills.DataKeys[i]["SZ_PROC_CODE"].ToString();
            _dianosis_Association.CompanyId          = txtCompanyid.Text;
            objArrOneD.Add(_dianosis_Association);

            Session["DIAGNOS_ASSOCIATION_PAID"] = objArrOneD;

            DataSet dscode = new DataSet();
            dscode = objTransaction.GetRoomId(procGId, txtCompanyid.Text);
            string sz_proc_code           = grdpaidbills.Rows[i].Cells[9].Text;
            string sz_proc_desc           = grdpaidbills.Rows[i].Cells[10].Text;
            Bill_Sys_ProcedureCode_BO obj = new Bill_Sys_ProcedureCode_BO();
            DataSet dsSys = obj.Get_Sys_Key("SS00014", txtCompanyid.Text);
            if (dsSys.Tables[0].Rows[0][0].ToString() == "1")
            {
                Session["EVENT_ID"] = arrEventID;
            }
            ArrayList arrPgeValue = new ArrayList();
            arrPgeValue.Add(txtVisitDate.Text);
            arrPgeValue.Add(txtToVisitDate.Text);
            arrPgeValue.Add(extddlCaseType.Text);
            arrPgeValue.Add(txtNumberOfDays.Text);
            //arrPgeValue.Add(drpdown_Documents.SelectedValue);
            //if (chkAOb.Checked)
            //{
            //    arrPgeValue.Add("1");
            //}
            //else
            //{
            //    arrPgeValue.Add("0");
            //}

            //if (chkReport.Checked)
            //{
            //    arrPgeValue.Add("1");
            //}
            //else
            //{
            //    arrPgeValue.Add("0");
            //}

            //if (chkReferral.Checked)
            //{
            //    arrPgeValue.Add("1");
            //}
            //else
            //{
            //    arrPgeValue.Add("0");
            //}
            arrPgeValue.Add(con1.SelectedValue);
            Session["PAGE_VALUES"] = arrPgeValue;
            img2.Visible           = true;
            ScriptManager.RegisterClientScriptBlock(this, GetType(), "mmupdateproc", "showEditPopup('" + szCaseID + "','" + ProcId + "','" + procGId + "','" + Patientid + "','" + EventID + "','" + szSpeciality + "','" + sz_proc_desc + "','" + sz_proc_code + "','" + szCaseType + "','" + patientname + "','" + dateofservice + "','" + lhrcode + "','" + caseno + "');", true);
        }
    }
Example #28
0
    protected void btnUploadFile_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());
        }

        Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template();
        Boolean flag       = false;
        Boolean updateflag = false;
        string  ImgId      = "";

        try
        {
            if (rdbpombills.SelectedValue == "0")
            {
                if (!fuUploadReport.HasFile)
                {
                    Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>");
                    return;
                }
                String szDefaultPath    = objNF3Template.getPhysicalPath();
                int    ImageId          = 0;
                String szDestinationDir = "";

                //  szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                DataSet ds = objNF3Template.GetPomCaseId(Session["UPLOADPOMID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    String sz_Case_Id = ds.Tables[0].Rows[i]["SZ_CASE_ID"].ToString();
                    string szSpecID   = ds.Tables[0].Rows[i]["sz_speciality_id"].ToString();

                    _obj = new Bill_Sys_BillTransaction_BO();
                    string szNodeType = _obj.GetNodeType(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szSpecID, sz_Case_Id);
                    string NodeId     = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szNodeType);
                    RequiredDocuments.Bill_Sys_RequiredDocumentBO bo = new RequiredDocuments.Bill_Sys_RequiredDocumentBO();
                    //   string szNodePath = bo.GetNodePath(NodeId, sz_Case_Id, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    szDestinationDir = "";
                    szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    szDestinationDir = szDestinationDir + "\\POM receive\\" + Session["UPLOADPOMID"].ToString() + "\\";
                    szDestinationDir = szDestinationDir.Replace("\\", "/");
                    strLinkPath      = szDestinationDir + fuUploadReport.FileName;
                    if (!updateflag)
                    {
                        if (!Directory.Exists(szDefaultPath + szDestinationDir))
                        {
                            Directory.CreateDirectory(szDefaultPath + szDestinationDir);
                        }
                        fuUploadReport.SaveAs(szDefaultPath + szDestinationDir + fuUploadReport.FileName);
                        updateflag = true;
                    }

                    // Start : Save report under document manager.

                    ArrayList objAL = new ArrayList();

                    objAL.Add(sz_Case_Id);
                    objAL.Add("");
                    objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

                    objAL.Add(fuUploadReport.FileName);
                    objAL.Add(szDestinationDir);
                    objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString());
                    objAL.Add(NodeId);

                    ImgId = objNF3Template.SaveDocumentData(objAL);


                    // End :   Save report under document manager.
                    if (!flag)
                    {
                        if (Session["POMSTATUS"].ToString().Equals("1"))
                        {
                            objNF3Template.UpdateReportPomPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "VPOMR");
                        }
                        else
                        {
                            objNF3Template.UpdateReportPomPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "POM");
                        }
                        flag = true;
                    }
                }

                // End :   Save report under document manager.


                usrMessage.PutMessage("File Upload Successfully");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();

                //fillControl();

                fillControl();
                this.con.SourceGrid              = grdPomReport;
                this.txtSearchBox.SourceGrid     = grdPomReport;
                this.grdPomReport.Page           = this.Page;
                this.grdPomReport.PageNumberList = this.con;
                grdPomReport.XGridKey            = "Report_pom";
                grdPomReport.XGridBindSearch();
            }
            else
            {
                _objReport = new Bill_Sys_ReportBO();
                if (!fuUploadReport.HasFile)
                {
                    Page.RegisterStartupScript("ss", "<script language='javascript'> alert('please select file from upload Report !');showUploadFilePopup();</script>");
                    return;
                }
                String  szDefaultPath    = objNF3Template.getPhysicalPath();
                int     ImageId          = 0;
                String  szDestinationDir = "";
                DataSet dspomother       = new DataSet();
                //  szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                dspomother = _objReport.GetPomotherCaseId(Session["UPLOADPOMID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

                for (int i = 0; i < dspomother.Tables[0].Rows.Count; i++)
                {
                    String sz_Case_Id = dspomother.Tables[0].Rows[i]["SZ_CASE_ID"].ToString();
                    string szSpecID   = dspomother.Tables[0].Rows[i]["sz_speciality_id"].ToString();

                    _obj = new Bill_Sys_BillTransaction_BO();
                    string szNodeType = _obj.GetNodeType(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szSpecID, sz_Case_Id);
                    string NodeId     = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, szNodeType);
                    RequiredDocuments.Bill_Sys_RequiredDocumentBO bo = new RequiredDocuments.Bill_Sys_RequiredDocumentBO();
                    //   string szNodePath = bo.GetNodePath(NodeId, sz_Case_Id, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    szDestinationDir = "";
                    szDestinationDir = objNF3Template.GetCompanyName(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    szDestinationDir = szDestinationDir + "\\POM receive\\" + Session["UPLOADPOMID"].ToString() + "\\";
                    szDestinationDir = szDestinationDir.Replace("\\", "/");
                    strLinkPath      = szDestinationDir + fuUploadReport.FileName;
                    if (!updateflag)
                    {
                        if (!Directory.Exists(szDefaultPath + szDestinationDir))
                        {
                            Directory.CreateDirectory(szDefaultPath + szDestinationDir);
                        }
                        fuUploadReport.SaveAs(szDefaultPath + szDestinationDir + fuUploadReport.FileName);
                        updateflag = true;
                    }

                    // Start : Save report under document manager.

                    ArrayList objAL = new ArrayList();

                    objAL.Add(sz_Case_Id);
                    objAL.Add("");
                    objAL.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);

                    objAL.Add(fuUploadReport.FileName);
                    objAL.Add(szDestinationDir);
                    objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString());
                    objAL.Add(NodeId);

                    ImgId = objNF3Template.SaveDocumentData(objAL);


                    // End :   Save report under document manager.
                    if (!flag)
                    {
                        if (Session["POMSTATUS"].ToString().Equals("1"))
                        {
                            _objReport.UpdateReportPomOtherPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "VPOMR");
                        }
                        else
                        {
                            _objReport.UpdateReportPomOtherPath(fuUploadReport.FileName, szDestinationDir, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID, Session["UPLOADPOMID"].ToString(), ImgId, "POM");
                        }
                        flag = true;
                    }
                }

                // End :   Save report under document manager.


                usrMessage.PutMessage("File Upload Successfully");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();

                fillControl();
                this.con.SourceGrid              = grdPomReport;
                this.txtSearchBox.SourceGrid     = grdPomReport;
                this.grdPomReport.Page           = this.Page;
                this.grdPomReport.PageNumberList = this.con;
                grdPomReport.XGridKey            = "Report_Pom_Other";
                grdPomReport.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 btnSaveDesc_Click(object sender, EventArgs e)
    {
        Boolean   saveflag      = false;
        ArrayList _denialReason = new ArrayList();
        Bill_Sys_BillTransaction_BO obj;
        Bill_Sys_Verification_Desc  _objDesc;
        Boolean updateFlag = false;
        string  stre       = txtViewBillNumber.Text;
        char    ch         = ',';

        string[] s1  = stre.Split(ch);
        char     ch1 = ',';

        String[]  DenialReason = hfdenialReason.Value.Split(ch1);
        Boolean   flag         = false;
        ArrayList objSplit     = new ArrayList();

        for (int i = 0; i < s1.Length; i++)
        {
            objSplit.Add(s1[i].ToString());
        }
        ArrayList sz_status_code = new ArrayList();

        for (int k = 0; k < objSplit.Count; k++)
        {
            ArrayList objAL    = new ArrayList();
            String    szBillNo = objSplit[k].ToString();

            _objDesc                      = new Bill_Sys_Verification_Desc();
            _objDesc.sz_bill_no           = szBillNo;
            _objDesc.sz_description       = txtSaveDescription.Text;
            _objDesc.sz_verification_date = txtSaveDate.Text;
            _objDesc.i_verification       = 3;
            _objDesc.sz_company_id        = txtCompanyID.Text;
            _objDesc.sz_user_id           = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString();
            _objDesc.sz_flag              = "DEN";
            objAL.Add(_objDesc);
            obj = new Bill_Sys_BillTransaction_BO();
            sz_status_code.Add(obj.InsertUpdateBillStatus(objAL));
            updateFlag = true;
        }

        if (sz_status_code.Count > 0)
        {
            obj = new Bill_Sys_BillTransaction_BO();
            String[]  removedeial = hfremovedenialreason.Value.Split(',');
            ArrayList objRemove   = new ArrayList();
            for (int i = 0; i < removedeial.Length - 1; i++)
            {
                objRemove.Add(removedeial[i].ToString());
            }
            for (int j = 0; j < DenialReason.Length - 1; j++)
            {
                flag = false;
                for (int k = 0; k < objRemove.Count; k++)
                {
                    if (DenialReason[j].ToString() == objRemove[k].ToString())
                    {
                        flag = true;
                        break;
                    }
                }

                if (!flag)
                {
                    _denialReason.Add(DenialReason[j].ToString());
                }
            }

            if (sz_status_code.Count > 0)
            {
                for (int l = 0; l < objSplit.Count; l++)
                {
                    obj.UpdateDenialReason(sz_status_code[l].ToString(), _denialReason, objSplit[l].ToString());
                }
                lbSelectedDenial.Items.Clear();
                extddenial.Text = "--- Select ---";
            }
            BindGrid();
            saveflag = true;
        }
        else
        {
            usrMessage1.PutMessage("Please Add Denial reason");
            usrMessage1.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_SystemMessage);
            usrMessage1.Show();
        }

        if (updateFlag)
        {
            Session["NODETYPE"] = "NFDEN";
            BindGrid();
            usrMessage1.PutMessage("Saved successfully.");
            usrMessage1.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage1.Show();
        }
    }
    protected void btnSaveDesc_Click(object sender, EventArgs e)
    {
        Bill_Sys_BillTransaction_BO obj;
        Bill_Sys_Verification_Desc  _objDesc;
        Boolean   updateFlag     = false;
        string    sz_status_code = "";
        ArrayList arr_node_type  = new ArrayList();
        string    Bill_number    = "";
        Boolean   uploadflag     = false;
        ArrayList arrCaseId      = new ArrayList();
        ArrayList arrSpeciality  = new ArrayList();
        string    szSpec         = "";

        ViewState["Process"] = "";
        ViewState["Process"] = "DEN";
        if (!hfdenialReason.Value.Equals(""))
        {
            char      ch           = ',';
            String[]  DenialReason = hfdenialReason.Value.Split(ch);
            ArrayList objAL        = new ArrayList();
            ArrayList objBillNo    = new ArrayList();
            //ArrayList arrSpeciality=new ArrayList();
            ArrayList _denialReason = new ArrayList();
            Boolean   flag          = false;

            string szBillNo = txtbillnumber.Text;
            arrSpeciality.Add(Session["Speciality"].ToString());
            arrCaseId.Add(txtCaseID.Text);
            _objDesc                      = new Bill_Sys_Verification_Desc();
            _objDesc.sz_bill_no           = szBillNo;
            _objDesc.sz_description       = txtSaveDescription.Text;
            _objDesc.sz_verification_date = txtSaveDate.Text;
            _objDesc.i_verification       = 3;
            _objDesc.sz_company_id        = txtCompanyID.Text;
            _objDesc.sz_user_id           = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString();
            _objDesc.sz_flag              = "DEN";
            objAL.Add(_objDesc);
            updateFlag = true;
            objBillNo.Add(szBillNo);

            _objUploadFile                  = new Bill_Sys_UploadFile();
            _objUploadFile.sz_bill_no       = objBillNo;
            _objUploadFile.sz_company_id    = txtCompanyID.Text;
            _objUploadFile.sz_flag          = "DEN";
            _objUploadFile.sz_case_id       = arrCaseId;
            _objUploadFile.sz_speciality_id = arrSpeciality;
            if (updateFlag)
            {
                obj            = new Bill_Sys_BillTransaction_BO();
                sz_status_code = obj.InsertUpdateBillStatus(objAL);
                _objUploadFile.sz_StatusCode = sz_status_code;
                Session["VSUpload"]          = _objUploadFile;

                uploadflag = true;

                arr_node_type = obj.Get_Node_Type(objAL);
                uploadflag    = true;

                if (hfremovedenialreason.Value != "")
                {
                    String[]  removedeial = hfremovedenialreason.Value.Split(',');
                    ArrayList objRemove   = new ArrayList();
                    for (int i = 0; i < removedeial.Length - 1; i++)
                    {
                        objRemove.Add(removedeial[i].ToString());
                    }
                    for (int j = 0; j < DenialReason.Length - 1; j++)
                    {
                        flag = false;
                        for (int k = 0; k < objRemove.Count; k++)
                        {
                            if (DenialReason[j].ToString() == objRemove[k].ToString())
                            {
                                flag = true;
                                break;
                            }
                        }

                        if (!flag)
                        {
                            _denialReason.Add(DenialReason[j].ToString());
                        }
                    }
                }
                else
                {
                    for (int j = 0; j < DenialReason.Length - 1; j++)
                    {
                        _denialReason.Add(DenialReason[j].ToString());
                    }
                }
                if (sz_status_code != "")
                {
                    for (int i = 0; i < objBillNo.Count; i++)
                    {
                        obj.UpdateDenialReason(sz_status_code, _denialReason, objBillNo[i].ToString());
                    }
                    if (arr_node_type.Contains("NFVER"))
                    {
                        arr_node_type.Clear();
                        arr_node_type.Add("NFDEN");
                        Session["NODETYPE"] = arr_node_type;
                    }
                    else
                    {
                        //Session["NODETYPE"] = "NFVER";
                        Session["NODETYPE"] = arr_node_type;
                    }

                    BindGridforDenial();
                    ClearControls();
                    #region Activity_Log
                    this._DAO_NOTES_EO = new DAO_NOTES_EO();
                    this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "DENIAL_ADDED";
                    this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = "Bill Id : " + szBillNo + ", Reason : " + String.Join(",", _denialReason.ToArray());
                    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    = new Bill_Sys_BillingCompanyDetails_BO().GetCaseID(szBillNo, ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    this._DAO_NOTES_EO.SZ_COMPANY_ID = ((Bill_Sys_BillingCompanyObject)this.Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                    this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO);
                    #endregion
                    usrMessage.PutMessage("Denial Save Successfully ...!");
                    usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                    usrMessage.Show();
                }
            }
        }
    }