private void ReadModelValues(PeriodSetting model) { if (model == null) { throw new ArgumentNullException("model"); } YearPart = model.YearPart; StartDate = model.StartDate; EndDate = model.EndDate; SelectedStatus = model.PeriodStatus; _sequenceNo = model.PaymentSequences.Count(); foreach (PaymentSequence seq in model.PaymentSequences) { YearSequences.Add(seq); } if (SelectedStatus != null && SelectedStatus.Id == 1) { ClosedStatus = SelectedStatus.Description; } else { ClosedStatus = null; } RaisePropertyChanged(""); }
private void AddSequence() { var s = new PaymentSequence(); int tempSeq = GenerateSequenceNo(); if (tempSeq > 12) { string msg = Properties.Resources.PaymentSeqView_ExceedingSeqNo; Helper.ShowMessage(msg); return; } s.SequenceNo = tempSeq; s.SequenceDescription = PaymentWord + PaymentSeqMap[s.SequenceNo]; YearSequences.Add(s); RaisePropertyChanged("YearSequences"); }
private void AddSequence() { var s = new PaymentSequence(); var tempSeq = GenerateSequenceNo(); if (tempSeq > 12) { var msg = ""; //Properties.Resources.PaymentSeqView_ExceedingSeqNo; Helper.ShowMessage(msg); return; } s.SequenceNo = tempSeq; s.SequenceDescription = PAYMENT_WORD + PaymentSeqMap[s.SequenceNo]; YearSequences.Add(s); OnPropertyChanged(nameof(YearSequences)); }