Exemple #1
0
 public void UpdatePriorValueInfo(AcctValueInfo info)
 {
     priorAppraisedValue = info.appraisedValue;
     priorAssessedValue  = info.assessedValue;
     priorAcctType       = info.acctType;
     priorRatio          = info.ratio;
 }
Exemple #2
0
        public void UpdateNoticeCurrentValue(AcctValueInfo info)
        {
            info.GetCurrentValueFromAP5(propertyID, taxYear, isPersonalProperty);

            currentAppraisedValue = info.appraisedValue;
            currentAssessedValue  = info.assessedValue;
            currentAcctType       = info.acctType;
            currentRatio          = info.ratio;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            int propID;

            if (int.TryParse(TextBox1.Text.Trim(), out propID) || (TextBox1.Text.StartsWith("P") && TextBox1.Text.Trim().Length == 12))
            {
                thisNotice = new Notice();
                if (isPersonalPropertyChkBx.Checked)
                {
                    if (TextBox1.Text.StartsWith("P"))
                    {
                        thisNotice.GetDataForNewNoticeFromAP5(0, DateTime.Today.Year, "", TextBox1.Text.Trim());
                    }
                    else
                    {
                        thisNotice.GetDataForNewNoticeFromAP5(0, DateTime.Today.Year, TextBox1.Text.Trim(), "");
                    }
                }
                else
                {
                    thisNotice.GetDataForNewNoticeFromAP5(propID, DateTime.Today.Year, "", "");
                }


                currentYearValue     = new AcctValueInfo();
                noticeValue          = new AcctValueInfo();
                priorYearValue       = new AcctValueInfo();
                priorHandNoticeValue = new AcctValueInfo();


                noticeValue.GetPriorValueFromAP5(thisNotice.propertyID, thisNotice.taxYear, 11, thisNotice.isPersonalProperty);
                priorYearValue.GetPriorValueFromAP5(thisNotice.propertyID, thisNotice.taxYear - 1, 1, thisNotice.isPersonalProperty);
                priorHandNoticeValue.GetValueFromPriorNotice(thisNotice.propertyID, thisNotice.taxYear);

                thisNotice.UpdateNoticeCurrentValue(currentYearValue);
                thisNotice.UpdatePriorValueInfo(noticeValue);
                NoticeToTextBoxes();
                EnableDisableRadioButtons(true, this);
                radioButton2.Checked = true;
                EnableDisableSpecificRadioButtons(radioButton2, noticeValue);
                EnableDisableSpecificRadioButtons(radioButton1, priorYearValue);
                EnableDisableSpecificRadioButtons(radioButton3, priorHandNoticeValue);
                if (!radioButton1.Enabled && !radioButton2.Enabled && !radioButton3.Enabled)
                {
                    thisNotice.priorAcctType       = "";
                    thisNotice.priorAppraisedValue = 0;
                    thisNotice.priorAssessedValue  = 0;
                    thisNotice.priorRatio          = 0;
                }
            }
            else
            {
                MessageBox.Show("Account Number must be a number. Please Try again");
            }
        }
 void EnableDisableSpecificRadioButtons(RadioButton rdb, AcctValueInfo acctInfo)
 {
     if (acctInfo.appraisedValue >= 0)
     {
         rdb.Enabled = true;
     }
     else
     {
         rdb.Enabled = false;
     }
 }