示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            utility = new UtilityExceptionRates();

            if (testEnvironment)
            {
                Response.Redirect("http://bosweb3/bear/exceptionRates/" + VariablesExceptionRates.DATA_PAGE
                                  + "?billtk=" + Request["billtk"].ToString()
                                  + "&billspec=" + Request["billspec"].ToString()
                                  + "&client=" + Request["client"].ToString()
                                  + "&billtkofc=" + Request["billtkofc"].ToString()
                                  + "&tcb=" + Request["tcb"].ToString()
                                  + "&cmb=" + Request["cmb"].ToString()
                                  + "&year=" + Request["year"].ToString()
                                  + "&attorneyReview=" + Request["attorneyReview"].ToString()
                                  + "&billingReview=" + Request["billingReview"].ToString()
                                  + "&finalized=" + Request["finalized"].ToString()
                                  );
            }



            Page.MaintainScrollPositionOnPostBack = true;
            int totalRows = 0;

            try
            {
                totalRows = dataGridView.Rows.Count;
            }
            catch (SqlException sqle)
            {
                Logger.QuickLog(errorLogFileName, sqle.Message, "BEAR.exceptionRates.Page_Load()", "int totalRows = dataGridView.Rows.Count");
            }

            utility.SetRowChanged(totalRows);
            hasPagerRow.Value = "false";
            calendarYear      = int.Parse(Request["year"].ToString());

            //Set Tool Tips
            buttonSave.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SAVE_BUTTON + "')");
            buttonSave.Attributes.Add("onmouseout", "UnTip()");
            buttonPrint.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_PRINT_BUTTON + "')");
            buttonPrint.Attributes.Add("onmouseout", "UnTip()");
            buttonChangeParameters.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_RERUN_BUTTON + "')");
            buttonChangeParameters.Attributes.Add("onmouseout", "UnTip()");
            exitButton.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_EXIT_BUTTON + "')");
            exitButton.Attributes.Add("onmouseout", "UnTip()");

            if (!Page.IsPostBack)
            {
                LogUserAccess();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            utility = new UtilityExceptionRates();

            if (testEnvironment)
            {
                Response.Redirect("http://bosweb3/bear/exceptionRates/" + VariablesExceptionRates.DATA_PAGE
                    + "?billtk=" + Request["billtk"].ToString()
                    + "&billspec=" + Request["billspec"].ToString()
                    + "&client=" + Request["client"].ToString()
                    + "&billtkofc=" + Request["billtkofc"].ToString()
                    + "&tcb=" + Request["tcb"].ToString()
                    + "&cmb=" + Request["cmb"].ToString()
                    + "&year=" + Request["year"].ToString()
                    + "&attorneyReview=" + Request["attorneyReview"].ToString()
                    + "&billingReview=" + Request["billingReview"].ToString()
                    + "&finalized=" + Request["finalized"].ToString()
                    );
            }
            


            Page.MaintainScrollPositionOnPostBack = true;
            int totalRows = 0;
            try
            {
                totalRows = dataGridView.Rows.Count;
            }
            catch (SqlException sqle)
            {
                Logger.QuickLog(errorLogFileName, sqle.Message, "BEAR.exceptionRates.Page_Load()", "int totalRows = dataGridView.Rows.Count");
            }

            utility.SetRowChanged(totalRows);
            hasPagerRow.Value = "false";
            calendarYear = int.Parse(Request["year"].ToString());

            //Set Tool Tips
            buttonSave.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SAVE_BUTTON + "')");
            buttonSave.Attributes.Add("onmouseout", "UnTip()");
            buttonPrint.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_PRINT_BUTTON + "')");
            buttonPrint.Attributes.Add("onmouseout", "UnTip()");
            buttonChangeParameters.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_RERUN_BUTTON + "')");
            buttonChangeParameters.Attributes.Add("onmouseout", "UnTip()");
            exitButton.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_EXIT_BUTTON + "')");
            exitButton.Attributes.Add("onmouseout", "UnTip()");

            if (!Page.IsPostBack)
            {
                LogUserAccess();
            }
        }