protected void Page_Load(object sender, EventArgs e)
        {
            Page.MaintainScrollPositionOnPostBack = true;

            if (!Page.IsPostBack)
            {
                //populate the Billing Specialist and Office Control on the parameter page
                //accomplished with code behind to add database entries after the hardcoded "All" item
                bearCode.PopulateListBillingSpecialists(dropDownListBillingSpecialist, errorLogFileName);
                bearCode.PopulateListLocations(listboxBillingTimekeeperOffice, "timekeeper", errorLogFileName);
            }

            //resetCookie session variable is used to reset the scroll position
            Session["resetCookie"] = "true";


            /*
             * add onFocus to textbox controls on the parameter page.  The commands are in the aspx file.
             */
            textboxBillingTkid.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxBillingTkid')");
            textboxClient.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxClient')");
            RadioButtonListSearchResultsTKID.Attributes.Add("onClick", "RadioButtonToTextBox('RadioButtonListSearchResultsTKID', 'textboxBillingTkid')");
            RadioButtonListSearchResultsClient.Attributes.Add("onClick", "RadioButtonToTextBox('RadioButtonListSearchResultsClient', 'textboxClient')");


            //Set Tool Tips
            buttonSubmitTkid.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SUBMIT_BUTTON + "')");
            buttonSubmitTkid.Attributes.Add("onmouseout", "UnTip()");
            buttonReportOnly.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_PRINT_BUTTON + "')");
            buttonReportOnly.Attributes.Add("onmouseout", "UnTip()");
            ImageButtonClient.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SEARCH_CLIENT_BUTTON + "')");
            ImageButtonClient.Attributes.Add("onmouseout", "UnTip()");
            ImageButtonTKID.Attributes.Add("onmouseover", "Tip('" + VariablesExceptionRates.TOOLTIP_SEARCH_TKID_BUTTON + "')");
            ImageButtonTKID.Attributes.Add("onmouseout", "UnTip()");
        }
Exemple #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //populate the Billing Specialist and Office Control on the parameter page
                //accomplished with code behind to add database entries after the hardcoded "All" item
                bearCode.PopulateListBillingSpecialists(dropDownListBillingSpecialist, errorLogFileName);
                bearCode.PopulateListLocations(listboxBillingTimekeeperOffice, "timekeeper", errorLogFileName);
            }

            if (Request["Body"] != null)
            {
                if (Request["Body"].ToString().Equals("Default"))
                {
                    TextBoxEmailBodyOpeningLine.Text    = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_DEFAULT;
                    TextBoxEmailBodyOpeningLine.Enabled = false;
                    TextBoxEmailBody.Text    = VariablesExceptionRates.EMAIL_BODY_DEFAULT;
                    TextBoxEmailBody.Enabled = false;
                    ListBoxUdf.SelectedValue = "N";
                }
                else if (Request["Body"].ToString().Equals("Alternate"))
                {
                    TextBoxEmailBodyOpeningLine.Text    = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_ALTERNATE;
                    TextBoxEmailBodyOpeningLine.Enabled = false;
                    TextBoxEmailBody.Text    = VariablesExceptionRates.EMAIL_BODY_ALTERNATE;
                    TextBoxEmailBody.Enabled = false;
                    ListBoxUdf.SelectedValue = "Y";
                }
                else if (Request["Body"].ToString().Equals("DefaultRemind"))
                {
                    TextBoxEmailBodyOpeningLine.Text    = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_REMINDER_DEFAULT;
                    TextBoxEmailBodyOpeningLine.Enabled = false;
                    TextBoxEmailBody.Text    = VariablesExceptionRates.EMAIL_BODY_REMINDER_DEFAULT;
                    TextBoxEmailBody.Enabled = false;
                    ListBoxAttorneyReviewed.SelectedValue = "0";
                    ListBoxAttorneyReviewed.Enabled       = false;
                    ListBoxUdf.SelectedValue       = "N";
                    ListBoxFinalized.SelectedValue = "0";
                }
                else if (Request["Body"].ToString().Equals("AlternateRemind"))
                {
                    TextBoxEmailBodyOpeningLine.Text    = VariablesExceptionRates.EMAIL_BODY_OPENING_LINE_REMINDER_ALTERNATE;
                    TextBoxEmailBodyOpeningLine.Enabled = false;
                    TextBoxEmailBody.Text    = VariablesExceptionRates.EMAIL_BODY_REMINDER_ALTERNATE;
                    TextBoxEmailBody.Enabled = false;
                    ListBoxAttorneyReviewed.SelectedValue = "0";
                    ListBoxAttorneyReviewed.Enabled       = false;
                    ListBoxUdf.SelectedValue       = "Y";
                    ListBoxFinalized.SelectedValue = "0";
                }
            }
        }
        /// <summary>
        /// Ran each time the page is loaded
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            LinkButtonUserPreferences.Visible = true;

            Page.MaintainScrollPositionOnPostBack = true;

            ///if this is not a postback operation, <br />
            ///populate the Billing Specialist and Office Control on the parameter page
            ///accomplished with code behind to add database entries after the hardcoded "All" item
            if (!Page.IsPostBack)
            {
                bearCode.PopulateListBillingSpecialists(dropDownListBillingSpecialist, errorLogFileName);
                bearCode.PopulateListLocations(listboxInvoicingAttorneyOffice, "timekeeper", errorLogFileName);
                PopulateListArrangementCodes();
                PopulateListBillingPeriods();
                PopulateListPracticeAreas();
            }

            CheckBoxThreshold.Attributes.Add("onClick", "ToggleThreshold()");

            ///resetCookie session variable is used to reset the scroll position
            Session["resetCookie"] = "true";


            /**
             * add onFocus to textbox controls on the parameter page.  The commands are in the aspx file.
             */
            textboxBillingTkid.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxBillingTkid')");
            textboxInvoiceAtty.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxInvoiceAtty')");
            textboxClient.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxClient')");
            textboxMatter.Attributes.Add("onFocus", "TextBoxOnFocusAllToBlank('textboxMatter')");

            ///Set Tool Tips
            buttonSubmitTkid.Attributes.Add("onmouseover", "Tip('" + VariablesBillTracker.TOOLTIP_SUBMIT_BUTTON + "')");
            buttonSubmitTkid.Attributes.Add("onmouseout", "UnTip()");
            ImageButtonTKID.Attributes.Add("onmouseover", "Tip('" + VariablesBillTracker.TOOLTIP_SEARCH_TKID_BUTTON + "')");
            ImageButtonTKID.Attributes.Add("onmouseout", "UnTip()");
        }