Beispiel #1
0
        /// <summary>
        /// Handles the Load event of the F1401 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 F1401_Load(object sender, EventArgs e)
        {
            try
            {
                // Populate ParcelType Combo
                this.parcelSectionDataSet       = this.form1401Control.WorkItem.F1401_GetParcelType(null);
                this.SearchButton.Enabled       = true;
                this.ParcelCancelButton.Enabled = true;
                if (this.parcelSectionDataSet != null)
                {
                    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.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);
            }
        }
Beispiel #2
0
        /// <summary>
        /// F1401_s the get search result.
        /// </summary>
        /// <param name="parcelSearchXml">The parcel search XML.</param>
        /// <returns>F1401ParcelSearch</returns>
        public static F1401ParcelSearch F1401_GetSearchResult(string parcelSearchXml)
        {
            F1401ParcelSearch parcelSearchDataSet = new F1401ParcelSearch();
            Hashtable         ht = new Hashtable();

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

            Utility.LoadDataSet(parcelSearchDataSet.ParcelSearchDataTable, "f1401_pclst_Parcel", ht);
            return(parcelSearchDataSet);
        }
Beispiel #3
0
        /// <summary>
        /// Gets the type of the parcel.
        /// </summary>
        /// <param name="parcelId">The parcel id.</param>
        /// <returns>F1401ParcelSearch</returns>
        public static F1401ParcelSearch F1401_GetParcelType(int?parcelId)
        {
            F1401ParcelSearch parcelSearchDataSet = new F1401ParcelSearch();
            Hashtable         ht = new Hashtable();

            ht.Add("@ParcelID", parcelId);
            string[] tableName = new string[] { parcelSearchDataSet.ParcelTypeDataTable.TableName, parcelSearchDataSet.ParcelLabelDataTable.TableName };
            Utility.LoadDataSet(parcelSearchDataSet, "f1401_pclst_ParcelType", ht, tableName);
            return(parcelSearchDataSet);
        }