Exemplo n.º 1
0
        /// <summary>
        /// Sets the schedule details.
        /// </summary>
        /// <param name="selectedRow">The selected row.</param>
        private void SetPropertyHeaderDetails(F25055PropertyHeaderData.GetPersonalPropertyDetailRow selectedRow)
        {
            this.SetLinkDetails(selectedRow);
            this.SetMIDIDetails(selectedRow);

            if (!string.IsNullOrEmpty(selectedRow.RollYear.ToString()))
            {
                this.RollYearTextBox.Text = selectedRow.RollYear.ToString();
            }
            else
            {
                this.RollYearTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsFilingTypeNull())
            {
                this.SourceTextBox.Text = selectedRow.FilingType;
            }
            else
            {
                this.SourceTextBox.Text = string.Empty;
            }

            if (!string.IsNullOrEmpty(selectedRow.IsReview.ToString()))
            {
                this.ReviewTextBox.Text = selectedRow.IsReview;
            }
            else
            {
                this.ReviewTextBox.Text = string.Empty;
            }

            if (selectedRow.IsExempt)
            {
                this.ExemptTextBox.Text = SharedFunctions.GetResourceString("Yes");
            }
            else
            {
                this.ExemptTextBox.Text = SharedFunctions.GetResourceString("No");
            }

            if (!selectedRow.IsPropertyTypeNull())
            {
                this.PropertyTypeTextBox.Text = selectedRow.PropertyType;
            }
            else
            {
                this.PropertyTypeTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsAssessmentTypeNull())
            {
                this.AssessmentTypeTextBox.Text = selectedRow.AssessmentType;
            }
            else
            {
                this.AssessmentTypeTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsScheduleTypeNull())
            {
                this.ScheduleTypeTextBox.Text = selectedRow.ScheduleType;
                if (!selectedRow.ScheduleType.ToUpper().Equals("ACTIVE"))
                {
                    // Set fore color as red if schedultype is other than 'Active'
                    this.ScheduleTypeTextBox.ForeColor = Color.Red;
                }
                else
                {
                    // Set fore color as gray if schedule type is 'Active'
                    this.ScheduleTypeTextBox.ForeColor = Color.Gray;
                }
            }
            else
            {
                this.ScheduleTypeTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsDescriptionNull())
            {
                this.DescriptionTextBox.Text = selectedRow.Description;
            }
            else
            {
                this.DescriptionTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsStreetAddressNull())
            {
                this.StreetAddressTextBox.Text = selectedRow.StreetAddress;
            }
            else
            {
                this.StreetAddressTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsScheduleStateCodeNull())
            {
                this.ScheduleDORTextBox.Text = selectedRow.ScheduleStateCode;
            }
            else
            {
                this.ScheduleDORTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsParcelStateCodeNull())
            {
                this.RealPropertyDORTextBox.Text = selectedRow.ParcelStateCode;
            }
            else
            {
                this.RealPropertyDORTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsNAICSNull())
            {
                this.NAICSTextBox.Text = selectedRow.NAICS;
            }
            else
            {
                this.NAICSTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsLegalNull())
            {
                this.LegalTextBox.Text = selectedRow.Legal;
            }
            else
            {
                this.LegalTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsMapNumberNull())
            {
                this.RealPropertyMapNumberTextBox.Text = selectedRow.MapNumber;
            }
            else
            {
                this.RealPropertyMapNumberTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsRealPropertyResultingTaxableNull())
            {
                this.RealPropTaxableTextBox.Text = selectedRow.RealPropertyResultingTaxable.ToString();
            }
            else
            {
                this.RealPropTaxableTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsFilingDateNull())
            {
                this.FilingDateTextBox.Text = selectedRow.FilingDate.ToString();
            }
            else
            {
                this.FilingDateTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsPenaltyAmountNull())
            {
                this.PenaltyAmountTextBox.Text = selectedRow.PenaltyAmount.ToString();
            }
            else
            {
                this.PenaltyAmountTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsPenaltyPercentNull())
            {
                this.PenaltyPercentTextBox.TextCustomFormat = TerraScanCommon.CustomDecimalFormat(selectedRow.PenaltyPercent.ToString()) + "%";
                this.PenaltyPercentTextBox.Text             = selectedRow.PenaltyPercent.ToString();
            }
            else
            {
                this.PenaltyPercentTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsNewConstructionNull())
            {
                this.NewConstrctionTextBox.Text = selectedRow.NewConstruction.ToString();
            }
            else
            {
                this.NewConstrctionTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsPPTaxableValueNull())
            {
                this.ScheduleTaxableTextBox.Text = selectedRow.PPTaxableValue.ToString();
            }
            else
            {
                this.ScheduleTaxableTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsResultingTaxableNull())
            {
                this.ResultingTaxableTextBox.Text = selectedRow.ResultingTaxable.ToString();
            }
            else
            {
                this.ResultingTaxableTextBox.Text = string.Empty;
            }

            if (!selectedRow.IsBuisnessNameNull())
            {
                this.BusinessNameTextBox.Text = selectedRow.BuisnessName;
            }
            else
            {
                this.BusinessNameTextBox.Text = string.Empty;
            }
        }