Esempio n. 1
0
        /// <summary>
        /// Handles the Load event of the F1405 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        private void F1405_Load(object sender, EventArgs e)
        {
            //this.ClearStateSearch();

            this.SearchButton.Enabled      = true;
            this.StateCancelButton.Enabled = true;

            //this.stateSelectionData = this.form1405Control.WorkItem.F1405_ListStateSearch(null);
            ////used to display the county configuration value.
            this.parcelSectionDataSet = this.form1405Control.WorkItem.F1403_GetParcelType(null);
            if (this.parcelSectionDataSet != null)
            {
                if (this.parcelSectionDataSet.ParcelRollYearDataTable.Rows.Count > 0)
                {
                    this.RollYearTextBox.Text = this.parcelSectionDataSet.ParcelRollYearDataTable.Rows[0][0].ToString();
                }
            }
            //this.StateSearchDataGridView.DataSource = null;
            //this.StateSearchDataGridView.Enabled = false;
            //this.StateSearchDataGridView.Rows[0].Selected = false;
            //this.DisableButtons();
            this.CustomizeStateSelectionGrid();
            this.FormLoad();
            //this.stateSelectionData = this.form1405Control.WorkItem.F1405_GetStateType(null);
            //if (this.stateSelectionData != null)
            //{
            //    if (this.stateSelectionData.StateRollYearDataTable.Rows.Count > 0)
            //    {
            //        this.RollYearTextBox.Text = this.stateSelectionData.StateRollYearDataTable.Rows[0][0].ToString();
            //    }
            //}
        }
Esempio n. 2
0
        /// <summary>
        /// F1403_s the get sale tracking roll year.
        /// </summary>
        /// <param name="eventID">The event ID.</param>
        /// <returns></returns>
        public static F1403ParcelSearch F1403_GetSaleTrackingRollYear(int eventID)
        {
            F1403ParcelSearch parcelSearchDataSet = new F1403ParcelSearch();
            Hashtable         ht = new Hashtable();

            ht.Add("@EventID", eventID);
            Utility.LoadDataSet(parcelSearchDataSet.SaleTrakingRollYear, "f1403_pcget_SaleTrakingRollYear", ht);
            return(parcelSearchDataSet);
        }
Esempio n. 3
0
        /// <summary>
        /// F1403_s the get search result.
        /// </summary>
        /// <param name="parcelSearchXml">The parcel search XML.</param>
        /// <returns>F1403ParcelSearch</returns>
        public static F1403ParcelSearch F1403_GetSearchResult(string parcelSearchXml)
        {
            F1403ParcelSearch parcelSearchDataSet = new F1403ParcelSearch();
            Hashtable         ht = new Hashtable();

            ht.Add("@ParcelConditionXML", parcelSearchXml);

            Utility.LoadDataSet(parcelSearchDataSet.ParcelSearchDataTable, "f1403_pclst_Parcel", ht);
            return(parcelSearchDataSet);
        }
Esempio n. 4
0
        /// <summary>
        /// Gets the type of the parcel.
        /// </summary>
        /// <param name="parcelId">The parcel id.</param>
        /// <returns>F1403ParcelSearch</returns>
        public static F1403ParcelSearch F1403_GetParcelType(int?parcelId)
        {
            F1403ParcelSearch parcelSearchDataSet = new F1403ParcelSearch();
            Hashtable         ht = new Hashtable();

            ht.Add("@CallingForm", parcelId);
            string[] tableName = new string[] { parcelSearchDataSet.ParcelTypeDataTable.TableName, parcelSearchDataSet.ParcelLabelDataTable.TableName, parcelSearchDataSet.ParcelRollYearDataTable.TableName };
            Utility.LoadDataSet(parcelSearchDataSet, "f1401_pclst_ParcelType", ht, tableName);
            return(parcelSearchDataSet);
        }
Esempio n. 5
0
        /// <summary>
        /// Handles the Load event of the F1403 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        private void F1403_Load(object sender, EventArgs e)
        {
            try
            {
                // Populate ParcelType Combo
                if (this.callingForm == 0)
                {
                    this.parcelSectionDataSet = this.form1403Control.WorkItem.F1403_GetParcelType(null);
                    //this.parcelSectionDataSet = this.form1403Control.WorkItem.F1403_GetParcelType(null,null);
                }
                else
                {
                    this.parcelSectionDataSet = this.form1403Control.WorkItem.F1403_GetParcelType(this.callingForm);
                }
                this.SearchButton.Enabled = true;
                /* Modified to change the Rollyear Field */
                this.ClearButton.Enabled = false;

                this.ParcelCancelButton.Enabled = true;
                if (this.parcelSectionDataSet != null)
                {
                    //Modifed to load SaleTraking Rollyear by purushotham
                    if (this.callingForm > 0 && this.callingForm == 24550)
                    {
                        this.RollYearTextBox.Text = this.rollYear.ToString();
                        /* Modified to change the Rollyear Field */
                        this.RollYearTextBox.Enabled = false;
                        this.ClearButton.Enabled     = false;
                    }
                    else
                    {
                        if (this.parcelSectionDataSet.ParcelRollYearDataTable.Rows.Count > 0)
                        {
                            this.RollYearTextBox.Text = this.parcelSectionDataSet.ParcelRollYearDataTable.Rows[0][0].ToString();
                        }
                    }
                    //if (this.parcelSectionDataSet.ParcelRollYearDataTable.Rows.Count > 0)
                    //{
                    //    this.RollYearTextBox.Text = this.parcelSectionDataSet.ParcelRollYearDataTable.Rows[0][0].ToString();
                    //}

                    if (this.parcelSectionDataSet.ParcelTypeDataTable.Rows.Count > 0)
                    {
                        this.ParcelTypeComboBox.DataSource    = this.parcelSectionDataSet.ParcelTypeDataTable;
                        this.ParcelTypeComboBox.DisplayMember = this.parcelSectionDataSet.ParcelTypeDataTable.ParcelTypeColumn.ColumnName;
                        this.ParcelTypeComboBox.ValueMember   = this.parcelSectionDataSet.ParcelTypeDataTable.ParcelTypeIDColumn.ColumnName;
                    }
                }
                //this.RollYearTextBox.Enabled = false;
                this.CustomizeDataGrid();
                this.FormLoad();
                this.GridHeaderChange();
            }
            catch (SoapException ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
        }