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();
        }
    }
Beispiel #2
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 #3
0
    static int iFlage = 0; //flag add for making diffrace between sort and search
    #endregion

    #region "Page Load"
    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());
        }
        UserId = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
        iFlage = 0;
        ddlDateValues.Attributes.Add("onChange", "javascript:SetDate();");
        try
        {
            txtCompanyID.Text = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY)
            {
                txtChartNO.Attributes.Add("onkeypress", "return clickButton1(event,'/')");
            }
            extddlReferringFacility.Flag_ID = txtCompanyID.Text.ToString();
            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;
                extddlDoctor.Flag_Key_Value = "GET_REFERRINGOFF_DOCTORLIST";
                extddlDoctor.Flag_ID        = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
            }
            else
            {
                extddlDoctor.Flag_Key_Value = "GETDOCTORLIST";
                extddlDoctor.Flag_ID        = txtCompanyID.Text;
            }
            extddlOffice.Flag_ID = txtCompanyID.Text.ToString();

            if ((((Bill_Sys_SystemObject)Session["SYSTEM_OBJECT"]).SZ_CHART_NO != "1"))
            {
                txtChartNO.Visible = false;
                lblChartNO.Visible = false;
            }
            else
            {
                txtChartNO.Visible = true;
                lblChartNO.Visible = true;
            }

            if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true)
            {
                if (sz_Off_Id != "")
                {
                    extddlDoctor.Flag_Key_Value = "GET_REFERRINGOFF_DOCTORLIST";
                    extddlDoctor.Flag_ID        = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_ID;
                }
                else
                {
                    extddlDoctor.Flag_Key_Value = "GET_DOCTOR_LIST_TXNCALENDAR";
                    extddlDoctor.Flag_ID        = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
                }
                extddlReferringFacility.Visible = false;
                lblTestFacility.Visible         = false;
            }
            else
            {
                extddlOffice.Visible        = false;
                lblOffice.Visible           = false;
                extddlDoctor.Flag_Key_Value = "GETDOCTORLIST";
                extddlDoctor.Flag_ID        = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID;
            }
            if (!Page.IsPostBack)
            {
                //  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_OutScheduleReport.aspx");
        }
        #endregion

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