Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //Logging Start
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

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

        chkPatientReturnToWorkWithoutLimitation.Attributes.Add("onclick", "checkvalidate_b();");
        chkPatientcannotReturn.Attributes.Add("onclick", "checkvalidate_a();");
        chkPatientReturnToWorkWithlimitation.Attributes.Add("onclick", "checkvalidate_c();");
        chklstPatientLimitationAllReason.Attributes.Add("onclick", "checkvalidate_b();");

        try
        {
            if (Session["TEMPLATE_BILL_NO"] != null)
            {
                txtBillNumber.Text = Session["TEMPLATE_BILL_NO"].ToString(); //"sas0000001";
            }
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE;


            if (!IsPostBack)
            {
                _workerstemplate         = new workers_templateC4_2();
                _billingCompanyDetailsBO = new Bill_Sys_BillingCompanyDetails_BO();
                txtPatientID.Text        = _billingCompanyDetailsBO.GetInsuranceCompanyID(txtBillNumber.Text, "SP_MST_PATIENT_INFORMATION", "GETPATIENTID");
                txtWorkStatusID.Text     = _workerstemplate.GetWorkStatusLatestID(txtBillNumber.Text);
                LoadData();
                LoadOtherInformation();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("ReturnToWorkC4_2.aspx");
        }
        #endregion
        //Method End

        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #2
0
    public void BindgrdLitigationdesk()
    {
        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
        {
            _obj = new Bill_Sys_BillingCompanyDetails_BO();
            grdWriteOffDesk.DataSource = _obj.Litigation_WriteOff_Desk(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, 2, txtltID.Text);
            grdWriteOffDesk.DataBind();


            grdForReport.DataSource = _obj.Litigation_WriteOff_Desk(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, 2, txtltID.Text);
            grdForReport.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());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE;
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            //txtBillNumber.Text = Session["TEMPLATE_BILL_NO"].ToString();// "sas0000001";
            if (Request.QueryString["billnumber"] != null)
            {
                Session["BILL_NO"] = Request.QueryString["billnumber"];
            }
            if (Request.QueryString["caseid"] != null)
            {
                Session["CASE_ID"] = Request.QueryString["caseid"];
            }
            txtBillNo.Text = Session["BILL_NO"].ToString();// "sas0000001";
            txtCaseID.Text = Session["CASE_ID"].ToString();

            if (!IsPostBack)
            {
                _billingCompanyDetailsBO = new Bill_Sys_BillingCompanyDetails_BO();

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

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_DoctorsInformationC4_2.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            if (!IsPostBack)
            {
                _BillingCompany = new Bill_Sys_BillingCompanyDetails_BO();
                DataSet ds = new DataSet();

                txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                ds = _BillingCompany.GetBillingCompanyInfo(txtCompanyID.Text);
                lbl_MRIFacilityName.Text = ds.Tables[0].Rows[0][1].ToString();
                lbl_State.Text           = ds.Tables[0].Rows[0][5].ToString();
                lbl_City.Text            = ds.Tables[0].Rows[0][3].ToString();
                lbl_Zip.Text             = ds.Tables[0].Rows[0][4].ToString();
                lbl_Phone.Text           = ds.Tables[0].Rows[0][6].ToString();
                //lbl_Fax.Text  = ds.Tables[0].Columns[3].ToString();
                StartDate = Request.QueryString["StartDate"].ToString();
                EndDate   = Request.QueryString["EndDate"].ToString();
                OfficeId  = Request.QueryString["OfficeId"].ToString();
                DocorId   = Request.QueryString["DocorId"].ToString();
                Status    = Request.QueryString["Status"].ToString();
                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);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_ProcedureReport.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #5
0
    public void BindgrdLitigationdesk()
    {
        _obj = new Bill_Sys_BillingCompanyDetails_BO();
        grdLitigationDesk.DataSource = _obj.getBillingDesk(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
        grdLitigationDesk.DataBind();


        grdForReport.DataSource = _obj.getBillingDesk(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
        grdForReport.DataBind();
    }
    private void  GetData()
    {
        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());
        }
        _dataSet = new DataSet();
        _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
        string strID = "";

        try
        {
            for (int i = 0; i < _arraylist.Count; i++)
            {
                if (strID == "")
                {
                    strID = "'" + _arraylist[i].ToString() + "'";
                }
                else
                {
                    strID = strID + ",'" + _arraylist[i].ToString() + "'";
                }
            }
            _dataSet = _bill_Sys_BillingCompanyDetails_BO.GetPaymentList(strID);

            grvBulkPaymentTransaction.DataSource = _dataSet;
            grvBulkPaymentTransaction.DataBind();

            foreach (GridViewRow objItem in grvBulkPaymentTransaction.Rows)
            {
                if (((TextBox)objItem.Cells[3].Controls[1]).Text != "")
                {
                    objItem.Enabled = false;
                }
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    //protected void btnSave_Click(object sender, EventArgs e)
    //{
    //    try
    //    {
    //        for (int i = 0; i < _arraylist.Count; i++)
    //        {
    //            int getdiff = GetDifference(_arraylist[i].ToString());
    //            if (getdiff > 0 && getdiff != 1 )
    //            {
    //                ArrayList arrParam = new ArrayList();
    //                arrParam.Add(_arraylist[i].ToString());
    //                arrParam.Add(txtChequeNumber.Text.ToString());
    //                arrParam.Add(txtChequeDate.Text.ToString());
    //                if (getdiff < Convert.ToInt32(txtChequeAmount.Text.ToString()))
    //                {
    //                    arrParam.Add(getdiff);
    //                }
    //                else
    //                {
    //                    arrParam.Add(Convert.ToInt32(txtChequeAmount.Text));
    //                }

    //                arrParam.Add(txtPaymentType.Text.ToString());
    //                arrParam.Add(txtCompanyID.Text.ToString());
    //                _bill_Sys_BillingCompanyDetails_BO.SaveData(arrParam);
    //                txtChequeAmount.Text =Convert.ToString(Convert.ToInt32(txtChequeAmount.Text.ToString()) - getdiff);
    //            }
    //        }

    //    }
    //    catch (Exception ex)
    //    {
    //        string strError = ex.Message.ToString();
    //        strError = strError.Replace("\n", " ");
    //        Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + strError);
    //    }
    //}

    private Int32 GetDifference(string billid)
    {
        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 arrayDiff;

        _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
        Int32 idiff = 0;

        try
        {
            arrayDiff = new ArrayList();
            arrayDiff = _bill_Sys_BillingCompanyDetails_BO.GetDifference(billid);
            if (arrayDiff.Count > 0)
            {
                if (Convert.ToInt32(arrayDiff[1]) > Convert.ToInt32(arrayDiff[2]))
                {
                    idiff = Convert.ToInt32(arrayDiff[1]) - Convert.ToInt32(arrayDiff[2]);
                }
                else
                {
                    idiff = 0;
                }
            }
            else
            {
                idiff = 1;
            }
        }
        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);
        }

        return(idiff);

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #8
0
    public void BindGrid()
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();


            if (extddlLocation.Visible == true && extddlLocation.Text != "" && extddlLocation.Text != "NA")
            {
                grdUnsentNF2.DataSource = _bill_Sys_BillingCompanyDetails_BO.getUnsentNF2(txtCompanyID.Text, ddlStatus.SelectedValue, extddlLocation.Text, extddlCaseType.Text);
            }
            else
            {
                grdUnsentNF2.DataSource = _bill_Sys_BillingCompanyDetails_BO.getUnsentNF2(txtCompanyID.Text, ddlStatus.SelectedValue, null, extddlCaseType.Text);
            }

            grdUnsentNF2.DataBind();
            grdUnsentNF2.VirtualItemCount = _bill_Sys_BillingCompanyDetails_BO.iSearchRecordCount;
            lblCount.Text = "Total Records: " + _bill_Sys_BillingCompanyDetails_BO.iSearchRecordCount.ToString();
            if (ddlStatus.SelectedValue == "0")
            {
                grdUnsentNF2.Columns[0].Visible = false;
            }
            else
            {
                grdUnsentNF2.Columns[0].Visible = true;
            }
        }
        catch (Exception ex)
        {
            //string strError = ex.Message.ToString();
            //strError = strError.Replace("\n", " ");
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #9
0
    protected void btnUpdate_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());
        }
        try
        {
            objBillingCompanyDetails = new Bill_Sys_BillingCompanyDetails_BO();
            ArrayList arrSelect = new ArrayList();
            arrSelect.Add(txtName.Text);
            arrSelect.Add(txtAddress.Text);
            arrSelect.Add(txtCity.Text);
            arrSelect.Add(extddlOfficeState.Selected_Text);
            arrSelect.Add(extddlOfficeState.Text);
            arrSelect.Add(txtZip.Text);
            arrSelect.Add(txtPhone.Text);
            arrSelect.Add(txtFax.Text);
            arrSelect.Add(txtCompanyID.Text);
            arrSelect.Add(txtID.Text);
            arrSelect.Add("UPDATE");

            int icnt = objBillingCompanyDetails.SaveUpdateJFKBilligCompany(arrSelect);
            btnUpdate.Enabled = false;
            if (icnt > 0)
            {
                usrMessage.PutMessage("record updated successfully");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();
            }
            BindData();
            clear();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        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());
        }
        btnSaveAndGoToNext.Attributes.Add("onclick", "return ConfirmUpdate();");
        try
        {
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            if (Request.QueryString["BillNumber"] != null)
            {
                Session["TEMPLATE_BILL_NO"] = Request.QueryString["BillNumber"];
            }
            txtBillNumber.Text = Session["TEMPLATE_BILL_NO"].ToString();// "sas0000001";

            if (!IsPostBack)
            {
                _billingCompanyDetailsBO = new Bill_Sys_BillingCompanyDetails_BO();
                txtPatientID.Text        = _billingCompanyDetailsBO.GetInsuranceCompanyID(txtBillNumber.Text, "SP_MST_PATIENT_INFORMATION", "GETPATIENTID");
                //Session["C4_2_PATIENT_ID"] = txtPatientID.Text;
                LoadData();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_PatientInformationC4_2.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void btnUpdateGridRecord_Click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            foreach (GridViewRow objItem in grvBulkPaymentTransaction.Rows)
            {
                if (objItem.Enabled != false)
                {
                    _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                    if (((DropDownList)objItem.Cells[6].Controls[1]).SelectedValue != "3")
                    {
                        _bill_Sys_BillingCompanyDetails_BO.UpdatePaymentList(((Label)objItem.Cells[0].Controls[1]).Text, ((Label)objItem.Cells[1].Controls[1]).Text, ((TextBox)objItem.Cells[3].Controls[1]).Text, Convert.ToDateTime(((TextBox)objItem.Cells[4].Controls[1]).Text), Convert.ToDecimal(((TextBox)objItem.Cells[5].Controls[1]).Text), Convert.ToInt32(((DropDownList)objItem.Cells[6].Controls[1]).SelectedValue), ((TextBox)objItem.Cells[7].Controls[1]).Text, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
                    }
                }
            }
            _arraylist = new ArrayList();
            _arraylist = (ArrayList)Session["BulkData"];

            GetData();
            lblMsg.Visible = true;
            lblMsg.Text    = "Payment Saved Successfully ...!";
            //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Payment successfully done!'); ", true);
            //Response.Redirect("Bill_Sys_BillSearch.aspx", false);
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #12
0
    protected void Page_Load(object sender, EventArgs e)
    {//Logging Start
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            txtCompanyID.Text  = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            txtBillNumber.Text = Session["PatientID"].ToString();
            //TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE;
            if (!IsPostBack)
            {
                _billingCompanyDetailsBO = new Bill_Sys_BillingCompanyDetails_BO();
                txtInsuranceID.Text      = _billingCompanyDetailsBO.GetInsuranceCompanyID(txtBillNumber.Text, "SP_TXN_BILLING_INFORMATION_MASTERBILLING", "GETINSURANCEID");
                BindData();
                LoadData();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_BillingInformation.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #13
0
    private void BindData()
    {//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());
        }
        _billingCompanyDetailsBO = new Bill_Sys_BillingCompanyDetails_BO();
        try
        {
            DataSet _ds = _billingCompanyDetailsBO.GetDignosisCodeList(txtBillNumber.Text, "LIST");
            grdBillingInformation.DataSource = _billingCompanyDetailsBO.GetDignosisCodeList(txtBillNumber.Text, "LIST");
            grdBillingInformation.DataBind();

            grdDignosisCode.DataSource = _billingCompanyDetailsBO.GetDignosisCodeList(txtBillNumber.Text, "GETDIGNOSISCODELIST");
            grdDignosisCode.DataBind();

            lblTotalCharges.Text = "Total Charges";
            lblAmountPaid.Text   = "Amount Paid (Carrier Use only)";
            lblBalanceDue.Text   = "Balance Due (Carrier Use only)";
            if (_ds.Tables[0].Rows.Count > 0)
            {
                lblTotalChargeAmt.Text  = "$" + _ds.Tables[0].Rows[0].ItemArray.GetValue(7).ToString();
                lblTotalPaidAmt.Text    = "$" + _ds.Tables[0].Rows[0].ItemArray.GetValue(8).ToString();
                lblTotalBalanceAmt.Text = "$" + _ds.Tables[0].Rows[0].ItemArray.GetValue(9).ToString();
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #14
0
    public void BindData()
    {//Logging Start
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            objBillingCompanyDetails = new Bill_Sys_BillingCompanyDetails_BO();
            DataSet   dsVlaues  = new DataSet();
            ArrayList arrSelect = new ArrayList();
            arrSelect.Add(txtCompanyID.Text);
            arrSelect.Add("LIST");
            dsVlaues = objBillingCompanyDetails.SelectJFKBilligCompany(arrSelect);
            grdCompany.DataSource = dsVlaues;
            grdCompany.DataBind();
            if (grdCompany.Items.Count > 0)
            {
                btnSave.Enabled = false;
            }
            else
            {
                btnSave.Enabled = true;
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            //  TreeMenuControl1.ROLE_ID = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ROLE;
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            Bill_Sys_BillingCompanyDetails_BO _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
            txtltID.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "WOF");
            BindgrdLitigationdesk();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        #region "check version readonly or not"
        string app_status = ((Bill_Sys_BillingCompanyObject)Session["APPSTATUS"]).SZ_READ_ONLY.ToString();
        if (app_status.Equals("True"))
        {
            Bill_Sys_ChangeVersion cv = new Bill_Sys_ChangeVersion(this.Page);
            cv.MakeReadOnlyPage("Bill_Sys_WriteOffDesk.aspx");
        }
        #endregion
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #16
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());
        }
        try
        {
            string Id = grdCompany.Items[0].Cells[1].Text;
            objBillingCompanyDetails = new Bill_Sys_BillingCompanyDetails_BO();
            ArrayList arrSelect = new ArrayList();
            arrSelect.Add(Id);
            arrSelect.Add(txtCompanyID.Text);
            arrSelect.Add("DELETE");
            int icnt = objBillingCompanyDetails.DeleteJFKBilligCompany(arrSelect);
            if (icnt > 0)
            {
                usrMessage.PutMessage("record deleted successfully");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();
            }
            BindData();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        txtUserId.Text = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
        btnSave.Attributes.Add("onclick", "return validate();");
        btnUpdate.Attributes.Add("onclick", "return validate();");
        //  btnClear.Attributes.Add("onclick", "return clear();");
        btnDelete.Attributes.Add("onclick", "return ConfirmDelete();");
        txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        //btnDelete.Attributes.Add("onclick", "return ConfirmDelete();");
        Bill_Sys_BillingCompanyDetails_BO objOffID = new Bill_Sys_BillingCompanyDetails_BO();
        string sz_Off_Id = objOffID.GetRefDocID(txtCompanyID.Text, ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID.ToString());

        if (sz_Off_Id != "")
        {
            extddlOffice.Text    = sz_Off_Id;
            extddlOffice.Enabled = false;
        }
        extddlOffice.Flag_ID = txtCompanyID.Text;

        extddlDoctorType.Flag_ID = txtCompanyID.Text;
        extddlProvider.Flag_ID   = txtCompanyID.Text;


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

        if (!IsPostBack)
        {
            hdCheck.Value = "0";
            if (Request.QueryString["ProviderId"] != null)
            {
                extddlProvider.Text    = Request.QueryString["ProviderId"].ToString().Trim();
                extddlProvider.Enabled = false;
            }

            btnUpdate.Enabled = false;
            grdRffDoc.XGridBindSearch();
        }
    }
    protected void getCompanyDetails()
    {
        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
        {
            _obj = new Bill_Sys_BillingCompanyDetails_BO();
            ArrayList objArrayList = new ArrayList();
            objArrayList          = _obj.getCompanyDetails(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            lblNumberOfBill.Text  = objArrayList[4].ToString();
            lblNumberOfUsers.Text = objArrayList[2].ToString();
            lblOpenCases.Text     = objArrayList[3].ToString();
            lblOpenDate.Text      = objArrayList[1].ToString();
            //lblTotalRevenue.Text = objArrayList[4].ToString();
            lblTotalBill.Text    = objArrayList[9].ToString();
            lblUserCost.Text     = objArrayList[10].ToString();
            lblOpenCaseCost.Text = objArrayList[11].ToString();
            lblBillCost.Text     = objArrayList[12].ToString();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #19
0
    protected void txtChequeAmount_TextChanged1(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
            decimal _balance = _bill_Sys_BillingCompanyDetails_BO.GetBalance(txtBillNo.Text);
            if (_balance > Convert.ToDecimal(txtChequeAmount.Text))
            {
                tdLitti_Write.Visible = true;
                tdAddUpdate.Visible   = false;
            }
            else if (_balance < Convert.ToDecimal(txtChequeAmount.Text))
            {
                txtBalance.Text = _balance.ToString();
                //ErrorDivServer.InnerText = "Please enter amount less than or equal to balance";
            }
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #20
0
    protected void Page_Load(object sender, EventArgs e)
    {
        btnLitigantion.Attributes.Add("onclick", "return Validate()");

        txtCompanyID.Text                       = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
        extddlInsurance.Flag_ID                 = txtCompanyID.Text;
        extddlOffice.Flag_ID                    = txtCompanyID.Text;
        extddlSpeciality.Flag_ID                = txtCompanyID.Text;
        this.con.SourceGrid                     = grdInsuranceCompany;
        this.txtSearchBox.SourceGrid            = grdInsuranceCompany;
        this.grdInsuranceCompany.Page           = this.Page;
        this.grdInsuranceCompany.PageNumberList = this.con;
        if (!Page.IsPostBack)
        {
            //rdrecvd.Items[1].Selected = true;
            BillTransactionDAO status = new BillTransactionDAO();
            DataSet            ds     = new DataSet();
            ds = status.GetBillStaus(txtCompanyID.Text);
            lbStatus.DataSource     = ds;
            lbStatus.DataTextField  = "DESCRIPTION";
            lbStatus.DataValueField = "CODE";
            lbStatus.DataBind();
            Bill_Sys_BillingCompanyDetails_BO _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();

            string Status = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "POM");
            for (int i = 0; i < lbStatus.Items.Count; i++)
            {
                if (lbStatus.Items[i].Value.ToString().Equals(Status))
                {
                    lbStatus.Items[i].Selected = true;
                }
            }
            txtReceived.Text = "'" + Status + "'";
            grdInsuranceCompany.XGridBindSearch();
        }
        btnClear1.Visible = true;
    }
Beispiel #21
0
    protected void btnUpdate_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());
        }
        _editOperation = new EditOperation();
        _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
        lblMsg.Visible = false;
        try
        {
            decimal _balance    = Convert.ToDecimal(_bill_Sys_BillingCompanyDetails_BO.GetBalance(txtBillNo.Text));
            decimal _newBalance = _balance + Convert.ToDecimal(lblPrevAmount.Text);
            // if (_newBalance >= Convert.ToDecimal(txtChequeAmount.Text))



            //  {


            if (rdbList.SelectedValue.ToString() == "1")//Litigation
            {
                _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "LT");
            }
            if (rdbList.SelectedValue.ToString() == "2")//Write-Off
            {
                _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "WOF");
            }
            if (rdbList.SelectedValue.ToString() == "0")//save
            {
                if (_newBalance > Convert.ToDecimal(txtChequeAmount.Text))
                {
                }
                else
                {
                    _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                    txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "FBP");
                }
            }



            _editOperation.Primary_Value = Session["PaymentID"].ToString();
            txtPaymentType.Text          = rdbList.SelectedValue.ToString();
            _editOperation.WebPage       = this.Page;
            _editOperation.Xml_File      = "PaymentTransaction.xml";
            _editOperation.UpdateMethod();
            BindGrid();

            if (txtPaymentType.Text == "1")
            {
                //    Response.Redirect("Bill_Sys_LitigationDesk.aspx", false);
            }

            if (txtPaymentType.Text == "2")
            {
                //    Response.Redirect("Bill_Sys_WriteOffDesk.aspx", false);
            }
            Bill_Sys_BillTransaction_BO _objBT = new Bill_Sys_BillTransaction_BO();
            txtPostBalance.Text    = _bill_Sys_BillingCompanyDetails_BO.GetBalance(txtBillNo.Text).ToString();
            txtPostBalance.Visible = true;
            txtBalance.Visible     = false;
            ClearControl();
            //ErrorDivServer.InnerText = "Payment updated successfully.";
            usrMessage.PutMessage("Payment updated successfully.");
            usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage.Show();
            //  }
            // else
            // {
            //      ErrorDivServer.InnerText = " Please enter amount less than or equal to balance";
            //  }
        }

        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #22
0
    protected void 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);
        }
    }
    public void BindGrid()
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        try
        {
            _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
            DataSet objDatasetResult = new DataSet();
            txtPatientName.Text = txtPatientName.Text.Replace("'", "");
            txtPatientName.Text = txtPatientName.Text.Replace("\"", "");
            if (objSystem.SZ_LOCATION == "1")
            {
                //DataTable objDTLocationWise = new DataTable();
                //objDatasetResult = _bill_Sys_BillingCompanyDetails_BO.getPrintPOM(txtCompanyID.Text, "NotNull");
                //objDTLocationWise = DisplayLocationInGrid(objDatasetResult);
                //grdUnsentNF2.DataSource = objDTLocationWise;
                //grdUnsentNF2.DataBind();

                string szCaseList = "";
                if (txtCaseNo.Text.Length != 0)
                {
                    szCaseList = getCaseList();
                }
                String szConnection                = System.Configuration.ConfigurationManager.AppSettings["Connection_String"];
                XMLDMLComponent.SQLToDAO objDao    = new XMLDMLComponent.SQLToDAO(szConnection);
                mbs.dao.PrintPOM         oPrintPOM = new mbs.dao.PrintPOM();

                oPrintPOM.sz_company_id   = txtCompanyID.Text;
                oPrintPOM.sz_case_no      = szCaseList;
                oPrintPOM.sz_patient_name = txtPatientName.Text;
                oPrintPOM.sz_location_id  = "1";

                grdUnsentNF2.DataSource = objDao.LoadDataSet("SP_PRINT_POM", "mbs.dao.PrintPOM", oPrintPOM, "mbs.dao");
                grdUnsentNF2.DataBind();

                for (int i = 0; i < grdUnsentNF2.Items.Count; i++)
                {
                    string str = grdUnsentNF2.Items[i].Cells[10].Text.ToString();
                    str = str.ToString().Trim();
                    if (str.ToString().Trim() == "&nbsp;")
                    {
                        ((Label)grdUnsentNF2.Items[i].Cells[0].FindControl("lbl_Location_Id")).Visible     = true;
                        ((LinkButton)grdUnsentNF2.Items[i].Cells[0].FindControl("lnkSelectCase2")).Visible = false;
                        ((CheckBox)grdUnsentNF2.Items[i].Cells[0].FindControl("ChkSent")).Visible          = false;
                    }
                }
            }
            else
            {
                string szCaseList = "";
                if (txtCaseNo.Text.Length != 0)
                {
                    szCaseList = getCaseList();
                }

                //_reportBO = new Bill_Sys_ReportBO();
                //grdPayment.DataSource = _reportBO.Get_Referral_Schedule_Report(objAL);
                //grdPayment.DataBind();

                String szConnection             = System.Configuration.ConfigurationManager.AppSettings["Connection_String"];
                XMLDMLComponent.SQLToDAO objDao = new XMLDMLComponent.SQLToDAO(szConnection);

                mbs.dao.PrintPOM oPrintPOM = new mbs.dao.PrintPOM();
                oPrintPOM.sz_company_id   = txtCompanyID.Text;
                oPrintPOM.sz_case_no      = szCaseList;
                oPrintPOM.sz_patient_name = txtPatientName.Text;
                oPrintPOM.sz_location_id  = "";

                grdUnsentNF2.DataSource = objDao.LoadDataSet("SP_PRINT_POM", "mbs.dao.PrintPOM", oPrintPOM, "mbs.dao");
                grdUnsentNF2.DataBind();

                //objDatasetResult= _bill_Sys_BillingCompanyDetails_BO.getPrintPOM(txtCompanyID.Text);
                //grdUnsentNF2.DataSource = objDatasetResult;
                //grdUnsentNF2.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 string GetMonthCalender(int p_intMonth, int p_intYear)
    {
        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());
        }
        //   Session["CaseID"] = Session["SZ_CASE_ID"];
        String szHtmlString = "<table width='98%' bgcolor='gray' border=1><tr>";
        Bill_Sys_BillingCompanyDetails_BO _obj = new Bill_Sys_BillingCompanyDetails_BO();

        try
        {
            int iDaysInMonths = 0;

            for (int k = 1; k <= 7; k++)
            {
                szHtmlString = szHtmlString + "<td width='14%' height='60px' bgcolor='blue' align='center' class='css-calendar-grid-td'><b>" + getDay(k) + "</b></td>";
            }
            szHtmlString = szHtmlString + "</tr><tr>";

            DateTime objDate = new DateTime(p_intYear, p_intMonth, 1);
            iDaysInMonths = System.DateTime.DaysInMonth(p_intYear, p_intMonth);
            int iStartNumber = getDayNumber(objDate.DayOfWeek.ToString());
            int j            = 1;
            while (j < iStartNumber)
            {
                szHtmlString = szHtmlString + "<td width='14%' height='60px'>&nbsp</td>";
                j++;
            }
            for (int i = 1; i <= iDaysInMonths; i++)
            {
                szHtmlString = szHtmlString + "<td width='14%' height='60px' style='color:WhiteSmoke;'><table width='100%'><tr><td style='text-align:left;vertical-align:top;height:100%' width='100%'> " + i + "</td></tr><tr><td width='100%'>" + _obj.GetPerDayEventForCompany(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ddlMonth.SelectedValue + "/" + i + "/" + ddlYear.SelectedValue) + "</td></tr></table></td>";

                if ((i + iStartNumber) % 7 == 1)
                {
                    szHtmlString = szHtmlString + "</tr><tr>";
                }
            }
        }
        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);
        }

        tdMonthCalender.InnerHtml = szHtmlString;
        return(null);

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #25
0
    public string GetMonthCalender(int p_intMonth, int p_intYear)
    {
        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());
        }
        Session["CaseID"] = Session["SZ_CASE_ID"];
        String szHtmlString = "<table width='98%' bgcolor='gray' border=1><tr>";
        Bill_Sys_BillingCompanyDetails_BO _obj = new Bill_Sys_BillingCompanyDetails_BO();

        try
        {
            int iDaysInMonths = 0;

            for (int k = 1; k <= 7; k++)
            {
                szHtmlString = szHtmlString + "<td width='14%' height='60px' bgcolor='blue' align='center' class='css-calendar-grid-td'><b>" + getDay(k) + "</b></td>";
            }
            szHtmlString = szHtmlString + "</tr><tr>";

            DateTime objDate = new DateTime(p_intYear, p_intMonth, 1);
            iDaysInMonths = System.DateTime.DaysInMonth(p_intYear, p_intMonth);
            int iStartNumber = getDayNumber(objDate.DayOfWeek.ToString());
            int j            = 1;
            while (j < iStartNumber)
            {
                szHtmlString = szHtmlString + "<td width='14%' height='60px'>&nbsp</td>";
                j++;
            }
            int count = 0;
            for (int i = 1; i <= iDaysInMonths; i++)
            {
                if (Convert.ToInt32(System.DateTime.Today.Day) == i)
                {
                    count = i;
                    int daysDiff = 0;
                    int totDays  = Convert.ToInt32(System.DateTime.Today.Day) + 7;
                    if (totDays > iDaysInMonths)
                    {
                        daysDiff = totDays - iDaysInMonths;
                    }
                    while (iDaysInMonths >= count && totDays >= count)
                    {
                        if (Convert.ToInt32(System.DateTime.Today.Day) == count)
                        {
                            szHtmlString = szHtmlString + "<td width='14%' height='60px' style='color:WhiteSmoke;'><table width='100%'><tr><td style='text-align:left;vertical-align:top;height:100%;font-weight:bold;font-size:18px;' width='100%'> " + count + "</td></tr><tr><td width='100%' style='font-weight:bold;font-size:18px;'>" + _obj.GetPerDayWithTimeEvent(Session["CaseID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, System.DateTime.Today.Month + "/" + count + "/" + System.DateTime.Today.Year, Convert.ToInt32(Session["CALENDER_TIME"].ToString())) + "</td></tr></table></td>";
                        }
                        else
                        {
                            szHtmlString = szHtmlString + "<td width='14%' height='60px' style='color:WhiteSmoke;'><table width='100%'><tr><td style='text-align:left;vertical-align:top;height:100%;font-weight:bold;font-size:18px;' width='100%'> " + count + "</td></tr><tr><td width='100%' style='font-weight:bold;font-size:18px;'>" + _obj.GetPerDayUpcomingEvent(Session["CaseID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, System.DateTime.Today.Month + "/" + count + "/" + System.DateTime.Today.Year) + "</td></tr></table></td>";
                        }
                        if ((count + iStartNumber) % 7 == 1)
                        {
                            szHtmlString = szHtmlString + "</tr><tr>";
                        }
                        count++;
                    }
                    i     = count;
                    count = 1;
                    if (daysDiff > count)
                    {
                        int iStartNumberDay = Convert.ToInt32(getDayNumber(System.DateTime.Today.Date.AddMonths(1).Day.ToString())) + 1;
                        while (daysDiff > count)
                        {
                            if (Convert.ToInt32(System.DateTime.Today.Day) == count)
                            {
                                szHtmlString = szHtmlString + "<td width='14%' height='60px' style='color:WhiteSmoke;'><table width='100%'><tr><td style='text-align:left;vertical-align:top;height:100%;font-weight:bold;font-size:18px;' width='100%'> " + count + "</td></tr><tr><td width='100%' style='font-weight:bold;font-size:18px;'>" + _obj.GetPerDayUpcomingEvent(Session["CaseID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, Convert.ToInt32(System.DateTime.Today.Month) + 1 + "/" + count + "/" + System.DateTime.Today.Year) + "</td></tr></table></td>";
                            }
                            else
                            {
                                szHtmlString = szHtmlString + "<td width='14%' height='60px' style='color:WhiteSmoke;'><table width='100%'><tr><td style='text-align:left;vertical-align:top;height:100%;font-weight:bold;font-size:18px;' width='100%'> " + count + "</td></tr><tr><td width='100%' style='font-weight:bold;font-size:18px;'>" + _obj.GetPerDayUpcomingEvent(Session["CaseID"].ToString(), ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, Convert.ToInt32(System.DateTime.Today.Month) + 1 + "/" + count + "/" + System.DateTime.Today.Year) + "</td></tr></table></td>";
                            }
                            if ((count + iStartNumberDay) % 7 == 1)
                            {
                                szHtmlString = szHtmlString + "</tr><tr>";
                            }
                            count++;
                        }
                    }
                }
                else
                {
                    szHtmlString = szHtmlString + "<td width='14%' height='60px' style='color:WhiteSmoke;'><table width='100%'><tr><td style='text-align:left;vertical-align:top;height:100%;' width='100%'> " + i + "</td></tr><tr><td width='100%' ></td></tr></table></td>";
                }
                if ((i + iStartNumber) % 7 == 1)
                {
                    szHtmlString = szHtmlString + "</tr><tr>";
                }
            }
        }
        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);
        }

        tdMonthCalender.InnerHtml = szHtmlString;
        return(null);

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #26
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 dbo = new DashBoardBO();

        this._billTransactionBO = new Bill_Sys_BillTransaction_BO();
        try
        {
            int      dayOfWeek = (int)Convert.ToDateTime(DateTime.Today.ToString()).DayOfWeek;
            DateTime time      = Convert.ToDateTime(DateTime.Today.ToString()).AddDays((double)-dayOfWeek);
            DateTime time2     = time.AddDays(6.0);
            DataSet  set       = new DataSet();
            set = dbo.AllDashBoardData(DateTime.Today.ToString(), DateTime.Today.ToString(), time.ToString(), time2.ToString(), this.txtCompanyID.Text, ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ROLE, "ALL", this.UserId);
            this.LblNoshow_Today2.Text    = set.Tables[0].Rows[0][0].ToString();
            this.LblScheduled_Today2.Text = set.Tables[0].Rows[0][1].ToString();
            this.LblComplete_Today2.Text  = set.Tables[0].Rows[0][2].ToString();
            try
            {
                this.LblNewReferral_Today2.Text = set.Tables[0].Rows[0][3].ToString();
                this.Referral_today.InnerHtml   = "New Referal Appointment";
            }
            catch
            {
                this.Referral_today.InnerHtml = "-";
            }
            this.Lblshow_missingdoc.Text        = "<a href='Bill_Sys_Notification_Report.aspx'>Show</a>";
            this.LblNoshow_Weekly2.Text         = set.Tables[0x19].Rows[0][0].ToString();
            this.LblScheduled_Weekly2.Text      = set.Tables[0x19].Rows[0][1].ToString();
            this.LblComplete_Weekly2.Text       = set.Tables[0x19].Rows[0][2].ToString();
            this.LblCompany_MissingInf2.Text    = "<a href='Bill_Sys_MissingInformation.aspx?Flag=MissingInsuranceCompany' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + set.Tables[1].Rows[0][0].ToString() + "</a>";
            this.LblAttorney_MissingInf2.Text   = "<a href='Bill_Sys_MissingInformation.aspx?Flag=MissingAttorney' onclick=\"javascript:OpenPage('MissingAttorney');\" > " + set.Tables[2].Rows[0][0].ToString() + "</a>";
            this.LblClaim_MissingInf2.Text      = "<a href='Bill_Sys_MissingInformation.aspx?Flag=MissingClaimNumber' onclick=\"javascript:OpenPage('MissingClaimNumber');\" > " + set.Tables[3].Rows[0][0].ToString() + "</a>";
            this.LblReport_MissingInf2.Text     = "<a href='Bill_Sys_MissingInformation.aspx?Flag=MissingReportNumber' onclick=\"javascript:OpenPage('MissingReportNumber');\" > " + set.Tables[4].Rows[0][0].ToString() + "</a>";
            this.LblPolicyHldr_MissingInf2.Text = "<a href='Bill_Sys_MissingInformation.aspx?Flag=MissingPolicyHolder'> " + set.Tables[5].Rows[0][0].ToString() + "</a>";
            Bill_Sys_BillingCompanyDetails_BO s_bo = new Bill_Sys_BillingCompanyDetails_BO();
            if (s_bo.GetRefDocID(this.txtCompanyID.Text, ((Bill_Sys_UserObject)this.Session["USER_OBJECT"]).SZ_USER_ID.ToString()) != "")
            {
                this.Missing_Inflbl.Text           = "-";
                this.LblUNSENTNF2_MissingInf2.Text = "";
            }
            else
            {
                this.Missing_Inflbl.Text           = "Unsent&nbsp;NF2";
                this.LblUNSENTNF2_MissingInf2.Text = "<a href='Bill_Sys_MissingInformation.aspx?Flag=UnSentNF2'> " + set.Tables[14].Rows[0][0].ToString() + "</a>";
            }
            this.LblReceived_Report2.Text            = "<a href='Bill_Sys_ReffPaidBills.aspx' title='View Details' onclick=\"javascript:OpenPage('Litigation');\" > " + set.Tables[6].Rows[0][0].ToString() + "</a>";
            this.LblPending_Report2.Text             = "<a href='Bill_Sys_paid_bills.aspx?Flag=report&Type=P' title='View Details' onclick=\"javascript:OpenPage('MissingInsuranceCompany');\" > " + set.Tables[7].Rows[0][0].ToString() + "</a>";
            this.LblBilled_Procedure2.Text           = set.Tables[9].Rows[0][0].ToString();
            this.LblUnBilled_Procedure2.Text         = set.Tables[10].Rows[0][0].ToString();
            this.LblTotal_Visits2.Text               = "<a href='#' title='View Details'> " + set.Tables[11].Rows[0][0].ToString() + "</a>";
            this.LblBilled_Visits2.Text              = "<a href='#' title='View Details'> " + set.Tables[12].Rows[0][0].ToString() + "</a>";
            this.LblUnBilled_Visits2.Text            = "<a href='#' title='View Details'> " + set.Tables[13].Rows[0][0].ToString() + "</a>";
            this.LblScheduled_PateintsVisits2.Text   = "<a href='../Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientscheduled' title='View Details' onclick=\"javascript:OpenPage('PatientScheduled');\" > " + set.Tables[15].Rows[0][0].ToString() + "</a>";
            this.LblNoshow_PateintsVisits2.Text      = "<a href='../Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientnoshows' title='View Details' onclick=\"javascript:OpenPage('PatientNoShows');\" > " + set.Tables[0x10].Rows[0][0].ToString() + "</a>";
            this.LblRescheduled_PateintsVisits2.Text = "<a href='../Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientrescheduled' title='View Details' onclick=\"javascript:OpenPage('PatientRescheduled');\" > " + set.Tables[0x11].Rows[0][0].ToString() + "</a>";
            this.LblComplete_PateintsVisits2.Text    = "<a href='../Bill_Sys_ShowPatientVisitStatus.aspx?Flag=patientvisitcompleted' title='View Details' onclick=\"javascript:OpenPage('PatientVisitcompleted');\" > " + set.Tables[0x12].Rows[0][0].ToString() + "</a>";
            this.LblPaid_Status2.Text   = "<a href='Bill_Sys_paid_bills.aspx?Flag=Paid' title='View Details' onclick=\"javascript:OpenPage('Paid');\" > " + set.Tables[0x13].Rows[0][0].ToString() + "</a>";
            this.LblUnPaid_Status2.Text = "<a href='Bill_Sys_paid_bills.aspx?Flag=UnPaid' title='View Details' onclick=\"javascript:OpenPage('UnPaid');\" > " + set.Tables[20].Rows[0][0].ToString() + "</a>";
            this.LblBillsDue_Desk2.Text = "<a href='Bill_Sys_LitigationDesk.aspx?Type=Litigation' title='View Details' onclick=\"javascript:OpenPage('Litigation');\" > " + set.Tables[0x15].Rows[0][0].ToString() + "</a>";
            this.ConfigDashBoard(set.Tables[8], set.Tables[0x16], set.Tables[0x17], set.Tables[0x18]);
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }

        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #27
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string billNo    = Request.QueryString["billNo"];
        string companyId = Request.QueryString["companyId"];
        string caseType  = Request.QueryString["caseType"];
        string caseId    = Request.QueryString["caseId"];
        string caseNo    = Request.QueryString["caseNo"];
        string userId    = Request.QueryString["userId"];
        string userName  = Request.QueryString["userName"];
        string pdfType   = Request.QueryString["pdfType"];
        string compName  = "";

        this._bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
        try
        {
            DataSet ds = this._bill_Sys_BillingCompanyDetails_BO.GetBillingCompanyInfo(companyId);
            compName = ds.Tables[0].Rows[0]["SZ_COMPANY_NAME"].ToString();
        }
        catch { }
        this._bill_Sys_BillTransaction = new Bill_Sys_BillTransaction_BO();
        ServerConnection currentConnection = BeginBillTranaction();

        if (caseType == "WC000000000000000002")
        {
            this.GenerateAddedBillPDF(billNo, caseId, caseNo, companyId, compName, userId, userName, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId, currentConnection), currentConnection);
        }
        if (caseType == "WC000000000000000003")
        {
            this.GenerateAddedBillPDF(billNo, caseId, caseNo, companyId, compName, userId, userName, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId, currentConnection), currentConnection);
        }
        else if (caseType == "WC000000000000000001")
        {
            WC_Bill_Generation generation = new WC_Bill_Generation();
            this._bill_Sys_BillTransaction = new Bill_Sys_BillTransaction_BO();

            generation.GeneratePDFForWorkerComp(billNo, caseId, pdfType, companyId, compName, userId, userName, caseNo, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId), 0);
        }
        if (caseType == "WC000000000000000004")
        {
            string str5;
            this.objNF3Template = new Bill_Sys_NF3_Template();
            Lien lien = new Lien();
            this._MUVGenerateFunction = new MUVGenerateFunction();
            string doctorSpeciality = this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId, currentConnection);
            string str7             = companyId;
            billNo = billNo;
            this.objVerification_Desc               = new Bill_Sys_Verification_Desc();
            this.objVerification_Desc.sz_bill_no    = billNo;
            this.objVerification_Desc.sz_company_id = companyId;
            this.objVerification_Desc.sz_flag       = "BILL";
            ArrayList list5 = new ArrayList();
            ArrayList list6 = new ArrayList();
            string    str8  = "";
            string    str9  = "";
            list5.Add(this.objVerification_Desc);
            list6 = this._bill_Sys_BillTransaction.Get_Node_Type(list5, currentConnection);
            if (list6.Contains("NFVER"))
            {
                str8 = "OLD";
                str9 = compName + "/" + caseId + "/No Fault File/Bills/" + doctorSpeciality + "/";
            }
            else
            {
                str8 = "NEW";
                str9 = compName + "/" + caseId + "/No Fault File/Medicals/" + doctorSpeciality + "/Bills/";
            }
            string str10 = compName + "/" + caseId + "/Packet Document/";
            this.objCaseDetailsBO = new CaseDetailsBO();
            DataSet set   = new DataSet();
            string  str11 = "";
            set = this.objCaseDetailsBO.Get1500FormBitForInsurance(companyId, billNo, currentConnection);
            if (set.Tables[0].Rows.Count > 0)
            {
                for (int k = 0; k < set.Tables[0].Rows.Count; k++)
                {
                    str11 = set.Tables[0].Rows[k]["BT_1500_FORM"].ToString();
                }
            }
            if (str11 == "1")
            {
                string szOriginalTemplatePDFFileName        = ConfigurationManager.AppSettings["PVT_PDF_FILE"].ToString();
                Bill_Sys_PVT_Bill_PDF_Replace objPVTReplace = new Bill_Sys_PVT_Bill_PDF_Replace();
                this.str_1500 = objPVTReplace.ReplacePDFvalues(szOriginalTemplatePDFFileName, billNo, compName, caseId, companyId, currentConnection);
                if (File.Exists(this.objNF3Template.getPhysicalPath() + str10 + this.str_1500))
                {
                    if (!Directory.Exists(this.objNF3Template.getPhysicalPath() + str9))
                    {
                        Directory.CreateDirectory(this.objNF3Template.getPhysicalPath() + str9);
                    }
                    File.Copy(this.objNF3Template.getPhysicalPath() + str10 + this.str_1500, this.objNF3Template.getPhysicalPath() + str9 + this.str_1500);
                }
                str5 = ApplicationSettings.GetParameterValue("DocumentManagerURL") + str9 + this.str_1500;
                ArrayList list7 = new ArrayList();
                if (str8 == "OLD")
                {
                    list7.Add(billNo);
                    list7.Add(str9 + this.str_1500);
                    list7.Add(companyId);
                    list7.Add(caseId);
                    list7.Add(this.str_1500);
                    list7.Add(str9);
                    list7.Add(userName);
                    list7.Add(doctorSpeciality);
                    list7.Add("LN");
                    list7.Add(caseNo);
                    this.objNF3Template.saveGeneratedBillPath(list7, currentConnection);
                }
                else
                {
                    list7.Add(billNo);
                    list7.Add(str9 + this.str_1500);
                    list7.Add(companyId);
                    list7.Add(caseId);
                    list7.Add(this.str_1500);
                    list7.Add(str9);
                    list7.Add(userName);
                    list7.Add(doctorSpeciality);
                    list7.Add("LN");
                    list7.Add(caseNo);
                    list7.Add(list6[0].ToString());
                    this.objNF3Template.saveGeneratedBillPath_New(list7, currentConnection);
                }
                this._DAO_NOTES_EO = new DAO_NOTES_EO();
                this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "BILL_GENERATED";
                this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = this.str_1500;
                this._DAO_NOTES_BO               = new DAO_NOTES_BO();
                this._DAO_NOTES_EO.SZ_USER_ID    = userId;
                this._DAO_NOTES_EO.SZ_CASE_ID    = caseId;
                this._DAO_NOTES_EO.SZ_COMPANY_ID = companyId;
                this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO);
            }
            else
            {
                string str12 = this._MUVGenerateFunction.get_bt_include(str7, doctorSpeciality, "", "Speciality");
                string str13 = this._MUVGenerateFunction.get_bt_include(str7, "", "WC000000000000000004", "CaseType");
                if ((str12 == "True") && (str13 == "True"))
                {
                    string str14 = compName + "/" + caseId + "/Packet Document/";
                    string str15 = userId;
                    string str16 = userName;
                    this.str_1500 = this._MUVGenerateFunction.FillPdf(billNo, currentConnection);
                    MergePDF.MergePDFFiles(this.objNF3Template.getPhysicalPath() + str9 + lien.GenratePdfForLienWithMuv(str7, billNo, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId), caseId, str16, caseNo, str15, currentConnection), this.objNF3Template.getPhysicalPath() + str14 + this.str_1500, this.objNF3Template.getPhysicalPath() + str9 + this.str_1500.Replace(".pdf", "_MER.pdf"));
                    str5 = ApplicationSettings.GetParameterValue("DocumentManagerURL") + str9 + this.str_1500.Replace(".pdf", "_MER.pdf");
                    ArrayList list8 = new ArrayList();
                    if (str8 == "OLD")
                    {
                        list8.Add(billNo);
                        list8.Add(str9 + this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(companyId);
                        list8.Add(caseId);
                        list8.Add(this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(str9);
                        list8.Add(userName);
                        list8.Add(doctorSpeciality);
                        list8.Add("LN");
                        list8.Add(caseNo);
                        this.objNF3Template.saveGeneratedBillPath(list8, currentConnection);
                    }
                    else
                    {
                        list8.Add(billNo);
                        list8.Add(str9 + this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(companyId);
                        list8.Add(caseId);
                        list8.Add(this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(str9);
                        list8.Add(userName);
                        list8.Add(doctorSpeciality);
                        list8.Add("LN");
                        list8.Add(caseNo);
                        list8.Add(list6[0].ToString());
                        this.objNF3Template.saveGeneratedBillPath_New(list8, currentConnection);
                    }
                    this._DAO_NOTES_EO = new DAO_NOTES_EO();
                    this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "BILL_GENERATED";
                    this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = this.str_1500;
                    this._DAO_NOTES_BO               = new DAO_NOTES_BO();
                    this._DAO_NOTES_EO.SZ_USER_ID    = userId;
                    this._DAO_NOTES_EO.SZ_CASE_ID    = caseId;
                    this._DAO_NOTES_EO.SZ_COMPANY_ID = companyId;
                    this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO);
                }
                else
                {
                    str5 = lien.GenratePdfForLien(companyId, billNo, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId, currentConnection), caseId, userName, caseNo, userId, currentConnection);
                }
            }

            //this.Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Done", "window.open('" + str5 + "');", true);
            //ScriptManager.RegisterClientScriptBlock((Page)this, base.GetType(), "Done", "window.location='/AJAX%20Pages/Bill_Sys_BillTransaction.aspx?Message=" + message + "';", true);
        }
        else if (caseType == "WC000000000000000007")
        {
            string str5;
            this.objNF3Template = new Bill_Sys_NF3_Template();
            Employer lien = new Employer();
            this._MUVGenerateFunction = new MUVGenerateFunction();
            string doctorSpeciality = this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId, currentConnection);
            string str7             = companyId;

            this.objVerification_Desc               = new Bill_Sys_Verification_Desc();
            this.objVerification_Desc.sz_bill_no    = billNo;
            this.objVerification_Desc.sz_company_id = companyId;
            this.objVerification_Desc.sz_flag       = "BILL";
            ArrayList list5 = new ArrayList();
            ArrayList list6 = new ArrayList();
            string    str8  = "";
            string    str9  = "";
            list5.Add(this.objVerification_Desc);
            list6 = this._bill_Sys_BillTransaction.Get_Node_Type(list5, currentConnection);
            if (list6.Contains("NFVER"))
            {
                str8 = "OLD";
                str9 = compName + "/" + caseId + "/No Fault File/Bills/" + doctorSpeciality + "/";
            }
            else
            {
                str8 = "NEW";
                str9 = compName + "/" + caseId + "/No Fault File/Medicals/" + doctorSpeciality + "/Bills/";
            }
            string str10 = compName + "/" + caseId + "/Packet Document/";
            this.objCaseDetailsBO = new CaseDetailsBO();
            DataSet set   = new DataSet();
            string  str11 = "";
            set = this.objCaseDetailsBO.Get1500FormBitForInsurance(companyId, caseId, currentConnection);
            if (set.Tables[0].Rows.Count > 0)
            {
                for (int k = 0; k < set.Tables[0].Rows.Count; k++)
                {
                    str11 = set.Tables[0].Rows[k]["BT_1500_FORM"].ToString();
                }
            }
            if (str11 == "1")
            {
                string szOriginalTemplatePDFFileName        = ConfigurationManager.AppSettings["PVT_PDF_FILE"].ToString();
                Bill_Sys_PVT_Bill_PDF_Replace objPVTReplace = new Bill_Sys_PVT_Bill_PDF_Replace();
                this.str_1500 = objPVTReplace.ReplacePDFvalues(szOriginalTemplatePDFFileName, caseId, compName, caseId, companyId, currentConnection);

                if (File.Exists(this.objNF3Template.getPhysicalPath() + str10 + this.str_1500))
                {
                    if (!Directory.Exists(this.objNF3Template.getPhysicalPath() + str9))
                    {
                        Directory.CreateDirectory(this.objNF3Template.getPhysicalPath() + str9);
                    }
                    File.Copy(this.objNF3Template.getPhysicalPath() + str10 + this.str_1500, this.objNF3Template.getPhysicalPath() + str9 + this.str_1500);
                }
                str5 = ApplicationSettings.GetParameterValue("DocumentManagerURL") + str9 + this.str_1500;
                ArrayList list7 = new ArrayList();
                if (str8 == "OLD")
                {
                    list7.Add(caseId);
                    list7.Add(str9 + this.str_1500);
                    list7.Add(companyId);
                    list7.Add(caseId);
                    list7.Add(this.str_1500);
                    list7.Add(str9);
                    list7.Add(userName);
                    list7.Add(doctorSpeciality);
                    list7.Add("LN");
                    list7.Add(caseNo);
                    this.objNF3Template.saveGeneratedBillPath(list7, currentConnection);
                }
                else
                {
                    list7.Add(caseId);
                    list7.Add(str9 + this.str_1500);
                    list7.Add(companyId);
                    list7.Add(caseId);
                    list7.Add(this.str_1500);
                    list7.Add(str9);
                    list7.Add(userName);
                    list7.Add(doctorSpeciality);
                    list7.Add("LN");
                    list7.Add(caseNo);
                    list7.Add(list6[0].ToString());
                    this.objNF3Template.saveGeneratedBillPath_New(list7, currentConnection);
                }
                this._DAO_NOTES_EO = new DAO_NOTES_EO();
                this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "BILL_GENERATED";
                this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = this.str_1500;
                this._DAO_NOTES_BO               = new DAO_NOTES_BO();
                this._DAO_NOTES_EO.SZ_USER_ID    = userId;
                this._DAO_NOTES_EO.SZ_CASE_ID    = caseId;
                this._DAO_NOTES_EO.SZ_COMPANY_ID = companyId;
                this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO);
            }
            else
            {
                string str12 = this._MUVGenerateFunction.get_bt_include(str7, doctorSpeciality, "", "Speciality");
                string str13 = this._MUVGenerateFunction.get_bt_include(str7, "", "WC000000000000000007", "CaseType");
                if ((str12 == "True") && (str13 == "True"))
                {
                    string str14 = compName + "/" + caseId + "/Packet Document/";
                    string str15 = userId;
                    string str16 = userName;
                    this.str_1500 = this._MUVGenerateFunction.FillPdf(caseId, currentConnection);
                    MergePDF.MergePDFFiles(this.objNF3Template.getPhysicalPath() + str9 + lien.GenratePdfForEmployerWithMuv(str7, billNo, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId), caseId, str16, caseNo, str15), this.objNF3Template.getPhysicalPath() + str14 + this.str_1500, this.objNF3Template.getPhysicalPath() + str9 + this.str_1500.Replace(".pdf", "_MER.pdf"));
                    str5 = ApplicationSettings.GetParameterValue("DocumentManagerURL") + str9 + this.str_1500.Replace(".pdf", "_MER.pdf");
                    ArrayList list8 = new ArrayList();
                    if (str8 == "OLD")
                    {
                        list8.Add(caseId);
                        list8.Add(str9 + this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(companyId);
                        list8.Add(caseId);
                        list8.Add(this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(str9);
                        list8.Add(userName);
                        list8.Add(doctorSpeciality);
                        list8.Add("LN");
                        list8.Add(caseNo);
                        this.objNF3Template.saveGeneratedBillPath(list8, currentConnection);
                    }
                    else
                    {
                        list8.Add(caseId);
                        list8.Add(str9 + this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(companyId);
                        list8.Add(caseId);
                        list8.Add(this.str_1500.Replace(".pdf", "_MER.pdf"));
                        list8.Add(str9);
                        list8.Add(userName);
                        list8.Add(doctorSpeciality);
                        list8.Add("LN");
                        list8.Add(caseNo);
                        list8.Add(list6[0].ToString());
                        this.objNF3Template.saveGeneratedBillPath_New(list8, currentConnection);
                    }
                    this._DAO_NOTES_EO = new DAO_NOTES_EO();
                    this._DAO_NOTES_EO.SZ_MESSAGE_TITLE = "BILL_GENERATED";
                    this._DAO_NOTES_EO.SZ_ACTIVITY_DESC = this.str_1500;
                    this._DAO_NOTES_BO               = new DAO_NOTES_BO();
                    this._DAO_NOTES_EO.SZ_USER_ID    = userId;
                    this._DAO_NOTES_EO.SZ_CASE_ID    = caseId;
                    this._DAO_NOTES_EO.SZ_COMPANY_ID = companyId;
                    this._DAO_NOTES_BO.SaveActivityNotes(this._DAO_NOTES_EO);
                }
                else
                {
                    str5 = lien.GenratePdfForEmployer(companyId, billNo, this._bill_Sys_BillTransaction.GetDoctorSpeciality(billNo, companyId, currentConnection), caseId, userName, caseNo, userId, currentConnection);
                }
            }

            //ScriptManager.RegisterClientScriptBlock((Page)this, base.GetType(), "Done", "window.open('" + str5 + "');", true);
            //ScriptManager.RegisterClientScriptBlock((Page)this, base.GetType(), "Done", "window.location='/AJAX%20Pages/Bill_Sys_BillTransaction.aspx?Message=" + message + "';", true);
        }
    }
Beispiel #28
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        _saveOperation = new SaveOperation();
        _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();

        try
        {
            decimal _balance = Convert.ToDecimal(_bill_Sys_BillingCompanyDetails_BO.GetBalance(txtBillNo.Text));
            if (rdbList.SelectedValue.ToString() == "1")//Litigation
            {
                _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "LT");
            }
            if (rdbList.SelectedValue.ToString() == "2")//Write-Off
            {
                _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "WOF");
            }
            if (rdbList.SelectedValue.ToString() == "0")//save
            {
                if (_balance > Convert.ToDecimal(txtChequeAmount.Text))
                {
                    //_bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                    //txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "PBP");
                }
                else
                {
                    _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
                    txtBillStatusId.Text = _bill_Sys_BillingCompanyDetails_BO.GetBillStatusID(txtCompanyID.Text, "FBP");
                }
            }


            //if (_balance >= Convert.ToDecimal(txtChequeAmount.Text))
            //{
            txtBalance.Visible     = false;
            txtPostBalance.Text    = Convert.ToString((_balance - Convert.ToDecimal(txtChequeAmount.Text)));
            txtPostBalance.Visible = true;
            txthdcheckamount.Text  = "";
            // tdLitti_Write.Visible = true;
            // tdAddUpdate.Visible = false;
            txtPaymentType.Text     = rdbList.SelectedValue.ToString();// j00mla1209
            _saveOperation.WebPage  = this.Page;
            _saveOperation.Xml_File = "PaymentTransaction.xml";
            _saveOperation.SaveMethod();
            BindGrid();

            //ErrorDivServer.InnerText = "Payment saved successfully.";


            if (txtPaymentType.Text == "1")
            {
                // Response.Redirect("Bill_Sys_LitigationDesk.aspx", false);
            }

            if (txtPaymentType.Text == "2")
            {
                //Response.Redirect("Bill_Sys_WriteOffDesk.aspx", false);
            }
            ClearControl();
            usrMessage.PutMessage("Payment saved successfully.");
            usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage.Show();
            //}
            //else if (_balance < Convert.ToDecimal(txtChequeAmount.Text))
            //{
            //    txtBalance.Text = _balance.ToString();
            //    ErrorDivServer.InnerText = "Please enter amount less than or equal to balance";
            // }
            // else
            // {
            //    _saveOperation.WebPage = this.Page;
            //    _saveOperation.Xml_File = "PaymentTransaction.xml";
            //    _saveOperation.SaveMethod();
            //    //BindGrid();
            //   // if (Convert.ToInt32(Request.Form["hiddenconfirmBox"].ToString()) == 1)
            //   // {
            //      //  _bill_Sys_BillingCompanyDetails_BO.UpdateBillTransaction(txtBillNo.Text, Convert.ToInt32(Request.Form["hiddenconfirmBox"].ToString()), txtComment.Text.ToString());
            //    Response.Redirect("Bill_Sys_SearchCase.aspx", false);
            //   // }
            //}
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #29
0
    protected void btnUploadFile_Click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

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

        _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
        string strLinkPath = "";

        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);
            _obj             = new Bill_Sys_BillTransaction_BO();
            Bill_Sys_RequiredDocumentBO bo = new Bill_Sys_RequiredDocumentBO();
            String NodeId     = _obj.GetNodeIDMST_Nodes(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, "NFPAY");
            string szNodePath = bo.GetNodePath(NodeId, ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            szNodePath  = szNodePath.Replace("\\", "/");
            strLinkPath = szNodePath + "/" + fuUploadReport.FileName;
            if (!Directory.Exists(szDefaultPath + szNodePath + "/"))
            {
                Directory.CreateDirectory(szDefaultPath + szNodePath + "/");
            }
            //if (!File.Exists(szDefaultPath + szDestinationDir + fuUploadReport.FileName))
            //{
            fuUploadReport.SaveAs(szDefaultPath + szNodePath + "/" + fuUploadReport.FileName);
            // Start : Save report under document manager.

            //String NodeId = _obj.GetNodeID(txtCompanyID.Text, ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID.ToString(), "NFPAY");
            ArrayList objAL = new ArrayList();

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

            objAL.Add(fuUploadReport.FileName);
            objAL.Add(szNodePath + "/");
            objAL.Add(NodeId);
            objAL.Add("");
            objNF3Template.UpdateDocMgr(objAL);
            // End :   Save report under document manager.
            //}
            // Code To get Image Id Of Saved Record
            ArrayList objALImage = new ArrayList();
            objALImage.Add(((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID);
            objALImage.Add("");
            objALImage.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            objALImage.Add(fuUploadReport.FileName);
            objALImage.Add(szNodePath + "/");
            objALImage.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME.ToString());
            objALImage.Add(NodeId);
            string ImgId = objNF3Template.SaveDocumentData(objALImage);
            // End of Code

            //Function To Save Entry In Txn_Bil_Payment_Images Table
            ArrayList objarrtxnbill = new ArrayList();
            objarrtxnbill.Add(txtBillNo.Text);
            objarrtxnbill.Add(((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID);
            objarrtxnbill.Add(ImgId);
            objarrtxnbill.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID);
            objarrtxnbill.Add(Session["payment_No"].ToString());
            _bill_Sys_BillingCompanyDetails_BO.InsertBillPaymentImages(objarrtxnbill);
            //End Of  Function
            BindGrid();
            usrMessage.PutMessage("File Upload Successfully");
            usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            usrMessage.Show();
            //lblMsg.Text = "File Upload Successfully";
            //lblMsg.Visible = true;
        }
        //Page.RegisterStartupScript("ss", "<script language = 'javascript'>alert('Report received successfully.');</script>");


        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }
Beispiel #30
0
    protected void btnDelete_Click(object sender, EventArgs e)
    {
        string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url);

        using (Utils utility = new Utils())
        {
            utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
        _deleteOpeation = new Bill_Sys_DeleteBO();
        String szListOfPayment = "";

        try
        {
            for (int i = 0; i < grdPaymentTransaction.Items.Count; i++)
            {
                CheckBox chkDelete1 = (CheckBox)grdPaymentTransaction.Items[i].FindControl("chkDelete");
                if (chkDelete1.Checked)
                {
                    if (!_deleteOpeation.deleteRecord("SP_TXN_PAYMENT_TRANSACTIONS", "@SZ_PAYMENT_ID", grdPaymentTransaction.Items[i].Cells[1].Text))
                    {
                        if (szListOfPayment == "")
                        {
                            szListOfPayment = grdPaymentTransaction.Items[i].Cells[2].Text + " " + grdPaymentTransaction.Items[i].Cells[4].Text;
                        }
                        else
                        {
                            szListOfPayment = "," + grdPaymentTransaction.Items[i].Cells[2].Text + " " + grdPaymentTransaction.Items[i].Cells[4].Text;
                        }
                    }
                }
            }
            if (szListOfPayment != "")
            {
                Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "alert('Records for payment " + szListOfPayment + "  exists.'); ", true);
            }
            else
            {
                usrMessage.PutMessage("Payment deleted successfully ...");
                usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
                usrMessage.Show();
                //lblMsg.Visible = true;
                //lblMsg.Text = "Payment deleted successfully ...";
            }
            BindGrid();
            _bill_Sys_BillingCompanyDetails_BO = new Bill_Sys_BillingCompanyDetails_BO();
            decimal _balance = Convert.ToDecimal(_bill_Sys_BillingCompanyDetails_BO.GetBalance(txtBillNo.Text));
            txtBalance.Text     = _balance.ToString();
            txtPostBalance.Text = _balance.ToString();
        }
        catch (Exception ex)
        {
            Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            using (Utils utility = new Utils())
            {
                utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
            }
            string str2 = "Error Request=" + id + ".Please share with Technical support.";
            base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2);
        }
        //Method End
        using (Utils utility = new Utils())
        {
            utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod());
        }
    }