/// <summary> /// F29660_ the get TIF District details. /// </summary> /// <param name="EventId">The Event id.</param> /// <param name="userId">The user id.</param> /// <returns>The TIFEvent dataset.</returns> public static F29660TIFEventData F29660_GetTIFEventDetails(int EventId, int userId) { F29660TIFEventData TIFEventData = new F29660TIFEventData(); Hashtable ht = new Hashtable(); DataSet ds = new DataSet(); ht.Add("@EventID", EventId); ht.Add("@User", userId); string[] tableNames = new string[] { TIFEventData.F29660TIFEventDataTable.TableName, TIFEventData.DistrictComboboxDataTable.TableName }; Utility.LoadDataSet(TIFEventData, "f29660_pcget_TIF", ht, tableNames); //Utility.FillDataSet(ds, "f29660_pcget_TIF", ht); return(TIFEventData); //Utility.FillDataSet(TIFEventData.F29660TIFEventDataTable , "f29660_pcget_TIF", ht); //return TIFEventData; }
/// <summary> /// LoadEventDetails /// </summary> private void LoadEventDetails() { this.pageLoadStatus = true; this.tifEventData = this.form29660Controll.WorkItem.F29660_GetTIFEventDetails(this.keyId, TerraScanCommon.UserId); //this.tifEventData = this.form29660Controll.WorkItem.F29660_GetTIFEventDetails(this.keyId, TerraScanCommon.UserId); if (this.tifEventData.DistrictComboboxDataTable.Rows.Count > 0) { this.TIFDistrictComboBox.DataSource = this.tifEventData.DistrictComboboxDataTable; this.TIFDistrictComboBox.DisplayMember = this.tifEventData.DistrictComboboxDataTable.NameColumn.ColumnName; this.TIFDistrictComboBox.ValueMember = this.tifEventData.DistrictComboboxDataTable.TIFIDColumn.ColumnName; this.TIFDistrictComboBox.SelectedValue = -1; } //// load the form f29660 using keyid and userid if (this.tifEventData.F29660TIFEventDataTable.Rows.Count > 0) { this.getTifEventData = (F29660TIFEventData.F29660TIFEventDataTableRow) this.tifEventData.F29660TIFEventDataTable.Rows[0]; if (!this.getTifEventData.IsTIFIDNull()) { this.TIFDistrictComboBox.SelectedValue = this.tifEventData.F29660TIFEventDataTable.Rows[0][this.tifEventData.F29660TIFEventDataTable.TIFIDColumn.ColumnName].ToString(); } else { this.TIFDistrictComboBox.SelectedValue = -1; } if (!this.getTifEventData.IsTIFDistrictNull()) { //this.TIFDistrictComboBox.SelectedValue = this.tifEventData.F29660TIFEventDataTable.Rows[0][this.tifEventData.F29660TIFEventDataTable.TIFDistrictColumn.ColumnName].ToString(); } else { this.TIFDistrictComboBox.SelectedValue = -1; } if (!this.getTifEventData.IsSubFundNull()) { this.TIFSubFund.Text = this.tifEventData.F29660TIFEventDataTable.Rows[0][this.tifEventData.F29660TIFEventDataTable.SubFundColumn.ColumnName].ToString(); } else { this.TIFSubFund.Text = string.Empty; } if (!this.getTifEventData.IsCityNull()) { this.TIFCityTextBox.Text = this.tifEventData.F29660TIFEventDataTable.Rows[0][this.tifEventData.F29660TIFEventDataTable.CityColumn.ColumnName].ToString(); } else { this.TIFCityTextBox.Text = string.Empty; } this.CurrentAssessedTextBox.Text = this.tifEventData.F29660TIFEventDataTable.Rows[0][this.tifEventData.F29660TIFEventDataTable.CurrentAssessedValueColumn.ColumnName].ToString(); this.BaseValueTextBox.Text = this.tifEventData.F29660TIFEventDataTable.Rows[0][this.tifEventData.F29660TIFEventDataTable.BaseValueColumn.ColumnName].ToString(); //this.CalculateExcessValue(); //this.LockControls(true); this.pageMode = TerraScanCommon.PageModeTypes.View; } else { this.ClearTIFEventText(); this.LockControls(true); } this.formLoad = true; //this.pageMode = TerraScanCommon.PageModeTypes.View; //this.pageLoadStatus = false; }