/// <summary> /// Handles the Click event of the OwnerApplyingPicture 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 OwnerApplyingPicture_Click(object sender, EventArgs e) { try { Form ownerIdForm = new Form(); ownerIdForm = this.form29610Control.WorkItem.Services.Get <TerraScan.Infrastructure.Interface.Services.IFormEngineService>().GetForm(9101, null, this.form29610Control.WorkItem); if (ownerIdForm != null) { if (ownerIdForm.ShowDialog() == DialogResult.Yes) { this.Hohownerid = Convert.ToInt32(TerraScanCommon.GetValue(ownerIdForm, "MasterNameOwnerId")); this.SetEditRecord(); this.ownerDetailDataSet = this.form29610Control.WorkItem.GetOwnerDetails(this.Hohownerid); this.OwnerAppplyingTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.NameColumn].ToString(); this.OwnerAppplyingTextBox.ForeColor = Color.Black; this.OwnerAddressTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.Address1Column].ToString() + "," + this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.Address2Column].ToString(); this.CityStateZipTextBox.Text = this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.CityColumn].ToString() + "," + this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.StateColumn].ToString() + "," + this.ownerDetailDataSet.ListPartiesOwnerDetail.Rows[0][this.ownerDetailDataSet.ListPartiesOwnerDetail.ZipColumn].ToString(); //this.Hohownerid = this.ownerId; this.HoHExemptionDetailDataSet = this.form29610Control.WorkItem.F29610_GetOwnerPercent(Hohownerid, scheduleid); if (this.HoHExemptionDetailDataSet.GetOwnerPercent.Rows.Count > 0) { this.OwnerPercentTextBox.Text = this.HoHExemptionDetailDataSet.GetOwnerPercent.Rows[0][this.HoHExemptionDetailDataSet.GetOwnerPercent.OwnerPercentColumn].ToString(); } } } } catch (Exception e1) { ExceptionManager.ManageException(e1, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }
/// <summary> /// F29610_s the get ho H exemption details. /// </summary> /// <param name="eventid">The eventid.</param> /// <returns></returns> public static F29610HoHExemptionData F29610_GetHoHExemptionDetails(int eventid) { F29610HoHExemptionData HoHExemptionDetails = new F29610HoHExemptionData(); Hashtable ht = new Hashtable(); ht.Add("@EventID", eventid); Utility.LoadDataSet(HoHExemptionDetails.GetHoHExemptionDetails, "f24610_pcget_HoH", ht); return(HoHExemptionDetails); }
/// <summary> /// F29610_s the owner percent. /// </summary> /// <param name="ownerId">The owner id.</param> /// <param name="scheduleId">The schedule id.</param> /// <returns></returns> public static F29610HoHExemptionData F29610_GetOwnerPercent(int ownerId, int scheduleId) { F29610HoHExemptionData HoHExemptionDetails = new F29610HoHExemptionData(); Hashtable ht = new Hashtable(); ht.Add("@OwnerID", ownerId); ht.Add("@ScheduleID", scheduleId); Utility.LoadDataSet(HoHExemptionDetails.GetOwnerPercent, "f24610_pcget_OwnerPercent", ht); return(HoHExemptionDetails); }
/// <summary> /// F29610_s the get calculation of ho H. /// </summary> /// <param name="scheduleid">The scheduleid.</param> /// <param name="exemptionid">The exemptionid.</param> /// <returns></returns> public static F29610HoHExemptionData F29610_GetCalculationOfHoH(int scheduleid, int exemptionid) { F29610HoHExemptionData HoHExemptionDetails = new F29610HoHExemptionData(); Hashtable ht = new Hashtable(); ht.Add("@ScheduleID", scheduleid); ht.Add("@ExemptionID", exemptionid); Utility.LoadDataSet(HoHExemptionDetails.GetCalculationHeadOfHousehold, "f24610_pcget_CalculationHeadOfHousehold", ht); return(HoHExemptionDetails); }
private void GetHoHEemptionDetails(int eventId) { this.HoHExemptionDetailDataSet = this.form29610Control.WorkItem.F29610_GetHoHExemptionDetails(eventId); if (this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows.Count > 0) { string hohowner; hohowner = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.OwnerIDColumn].ToString(); if (!string.IsNullOrEmpty(hohowner)) { Hohownerid = Convert.ToInt32(hohowner); } this.OwnerAppplyingTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.OwnerNameColumn].ToString(); this.OwnerAddressTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.AddressColumn].ToString(); this.CityStateZipTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.StateDetailColumn].ToString(); string qualifiedcombo = string.Empty; qualifiedcombo = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.IsQualifiedColumn].ToString(); if (qualifiedcombo == "False") { this.QualifiedComboBox.SelectedIndex = 1; } else { this.QualifiedComboBox.SelectedIndex = 0; } this.EffectiveDateTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.EffectiveDateColumn].ToString(); this.ThroughDateTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.ThroughDateColumn].ToString(); this.OwnerPercentTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.OwnerPercentColumn].ToString(); this.ResultingOwnerValueTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.O1ValueColumn].ToString(); scheduleid = Convert.ToInt32(this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.ScheduleIDColumn].ToString()); int exemptionid = Convert.ToInt32(this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.ExemptionIDColumn].ToString()); this.ResultingTaxableValueTextBox.Text = this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.Rows[0][this.HoHExemptionDetailDataSet.GetHoHExemptionDetails.ResultingTaxableColumn].ToString(); this.HoHExemptionDetailDataSet = this.form29610Control.WorkItem.F29610_GetCalculationOfHoH(scheduleid, exemptionid); if (this.QualifiedComboBox.SelectedIndex == 0) { this.ReductionofvalueTextBox.Text = this.HoHExemptionDetailDataSet.GetCalculationHeadOfHousehold.Rows[0][this.HoHExemptionDetailDataSet.GetCalculationHeadOfHousehold.ReductionValueColumn].ToString(); } else { this.ReductionofvalueTextBox.Text = string.Empty; } this.HoHExemptionDetailDataSet = this.form29610Control.WorkItem.F29610_GetOwnerPercent(Hohownerid, scheduleid); if (this.HoHExemptionDetailDataSet.GetOwnerPercent.Rows.Count > 0) { this.OwnerPercentTextBox.Text = this.HoHExemptionDetailDataSet.GetOwnerPercent.Rows[0][this.HoHExemptionDetailDataSet.GetOwnerPercent.OwnerPercentColumn].ToString(); } } else { this.ClearControl(); } }