/// <versions>20-02-2018(GesAMFC-v1.0.0.3)</versions> public Form_Recibo_Quotas(AMFCMember objMember, AMFCYear objYearSelected) { this.LibAMFC = new Library_AMFC_Methods(); try { InitializeComponent(); Member = new AMFCMember(); ListYears = new AMFCYears(); ListYears.SetYearList(2000, 2018); if (Program.IsValidYear(objYearSelected.Value)) { this.YearSelected = objYearSelected; } else { this.YearSelected = Program.DefaultYear; } if (objMember != null && objMember.NUMERO >= objMember.MinNumber && objMember.NUMERO < objMember.MaxNumber && !String.IsNullOrEmpty(objMember.NOME)) { this.Member = objMember; TextEdit_SOCIO.Text = this.Member.NUMERO.ToString(); TextEdit_NOME.Text = this.Member.NOME; } } catch (Exception ex) { Program.HandleError(ex.TargetSite.Name, ex.Message, Program.ErroType.EXCEPTION, true, false); } }
/// <versions>01-12-2017(GesAMFC-v0.0.4.41)</versions> public Form_Year(AMFCYear objYearSelected) { this.LibAMFC = new Library_AMFC_Methods(); try { InitializeComponent(); ListYears = new AMFCYears(); ListYears.SetYearList(); this.IsYearSelected = false; if (Program.IsValidYear(objYearSelected.Value)) { this.YearSelected = objYearSelected; } else { this.YearSelected = Program.DefaultYear; } } catch (Exception ex) { Program.HandleError(ex.TargetSite.Name, ex.Message, Program.ErroType.EXCEPTION, true, false); } }
//// <versions>05-12-2017(GesAMFC-v0.0.4.41)</versions> public Form_Period(AMFCPeriod objPeriodSelected) { this.LibAMFC = new Library_AMFC_Methods(); try { InitializeComponent(); ListYears = new AMFCYears(); ListYears.SetYearList(); ListMonths = new AMFCMonths(); ListMonths.SetMonthList(); this.IsPeriodSelected = false; this.PeriodSelected = new AMFCPeriod(); this.PeriodSelected.Start = new AMFCPeriodYearMonth(); this.PeriodSelected.End = new AMFCPeriodYearMonth(); if (objPeriodSelected != null) { if (objPeriodSelected.Start != null && Program.IsValidYear(objPeriodSelected.Start.Year.Value) && Program.IsValidMonth(objPeriodSelected.Start.Month.Value)) { this.PeriodSelected.Start = objPeriodSelected.Start; } else { this.PeriodSelected.Start.Year = Program.DefaultYear; this.PeriodSelected.Start.Month = Program.DefaultMonth; } if (objPeriodSelected.End != null && Program.IsValidYear(objPeriodSelected.End.Year.Value) && Program.IsValidMonth(objPeriodSelected.End.Month.Value)) { this.PeriodSelected.End = objPeriodSelected.End; } else { this.PeriodSelected.End.Year = Program.DefaultYear; this.PeriodSelected.End.Month = Program.DefaultMonth; } } } catch (Exception ex) { Program.HandleError(ex.TargetSite.Name, ex.Message, Program.ErroType.EXCEPTION, true, false); } }