/// <summary>
        /// F2201_s the get personal property description.
        /// </summary>
        /// <param name="code">The code.</param>
        /// <returns></returns>
        public static F2201CentrallyAssessedSearchData F2201_GetPersonalPropertyDescription(string code)
        {
            F2201CentrallyAssessedSearchData F2201_PropertyDescription = new F2201CentrallyAssessedSearchData();
            Hashtable ht = new Hashtable();

            ht.Add("@PersonalPropertyCode", code);
            Utility.LoadDataSet(F2201_PropertyDescription.f2200_PersonalPropertyCodeDescription, "f2200_pcget_PersonalPropertyCodeDescription", ht);
            return(F2201_PropertyDescription);
        }
Ejemplo n.º 2
0
        private void LoadGridResultSet()
        {
            try
            {
                this.CodeVal        = this.CodeTextBox.Text;
                this.DescriptionVal = this.DescriptionTextBox.Text;
                int recordCount;
                this.SearchDataset.f2201_PersonalPropertyCodeSelection.Clear();
                this.SearchDataset = this.form2201Control.WorkItem.F2201_GetPersonalPropertySearch(this.CodeTextBox.Text.Trim(), this.DescriptionTextBox.Text.Trim());
                recordCount        = this.SearchDataset.f2201_PersonalPropertyCodeSelection.Rows.Count;
                if (SearchDataset.f2201_PersonalPropertyCodeSelection.Rows.Count > 0 && this.ScheduleSearchDataGridView.RowCount > 0)
                {
                    // recordCount = this.SearchDataset.f2201_PersonalPropertyCodeSelection.Rows.Count;
                    this.ScheduleSearchDataGridView.Enabled    = true;
                    this.ScheduleSearchDataGridView.DataSource = this.SearchDataset.f2201_PersonalPropertyCodeSelection.DefaultView;
                    this.ScheduleSearchDataGridView.Focus();
                    this.ScheduleSearchDataGridView.Rows[0].Selected = true;
                    this.AcceptButton.Enabled = true;
                    this.emptyRecord          = false;
                    this.RemoveButton.Enabled = false;
                }
                else
                {
                    // recordCount = this.SearchDataset.f2201_PersonalPropertyCodeSelection.Rows.Count;
                    this.ScheduleSearchDataGridView.DataSource       = this.SearchDataset.f2201_PersonalPropertyCodeSelection.DefaultView;
                    this.ScheduleSearchDataGridView.Enabled          = false;
                    this.ScheduleSearchDataGridView.Rows[0].Selected = false;
                    this.ScheduleSearchDataGridView.CurrentCell      = null;
                    this.emptyRecord          = true;
                    this.AcceptButton.Enabled = false;
                }
                this.RecordCountLabel.Text = recordCount + SharedFunctions.GetResourceString("9101MasterNameSearch");
            }

            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
        }