public void RemoveFAM(LearningDeliveryFAM.SingleOccurrenceFAMs FAMType) { LearningDeliveryFAM lFAM = GetFAM(FAMType); if (lFAM != null) { Delete(lFAM); } }
public LearningDeliveryFAM CreateLearningDeliveryFAM() { XmlNode newNode = Node.OwnerDocument.CreateElement("LearningDeliveryFAM", NSMgr.LookupNamespace("ia")); LearningDeliveryFAM newInstance = new LearningDeliveryFAM(newNode, NSMgr); LearningDeliveryFAMList.Add(newInstance); AppendToLastOfNodeNamed(newNode, newNode.Name); return(newInstance); }
public void RemoveFAM(LearningDeliveryFAM.DatedFAMs FAMType) { LearningDeliveryFAM lFAM = GetFAM(FAMType); if (lFAM != null) { Delete(lFAM); } }
public void AddFAM(LearningDeliveryFAM.MultiOccurrenceFAMs FAMType, string FAMCode) { if (this.LearningDeliveryFAMList.Where(x => x.LearnDelFAMType == FAMType.ToString() && x.LearnDelFAMCode == FAMCode.ToString() ).Count() == 0) { LearningDeliveryFAM lFAM = this.CreateLearningDeliveryFAM(); lFAM.LearnDelFAMType = FAMType.ToString(); lFAM.LearnDelFAMCode = FAMCode; } }
public void SetFAM(LearningDeliveryFAM.SingleOccurrenceFAMs FAMType, string FAMCode) { LearningDeliveryFAM lFAM = GetFAM(FAMType); if (lFAM == null) { lFAM = this.CreateLearningDeliveryFAM(); lFAM.LearnDelFAMType = FAMType.ToString(); } lFAM.LearnDelFAMCode = FAMCode; }
public void SetFAMTo(LearningDeliveryFAM.DatedFAMs FAMType, DateTime?ToDate) { LearningDeliveryFAM lFAM = GetFAM(FAMType); if (lFAM == null) { lFAM = this.CreateLearningDeliveryFAM(); lFAM.LearnDelFAMType = FAMType.ToString(); } lFAM.LearnDelFAMDateTo = ToDate; }
public string GetFAMCode(LearningDeliveryFAM.DatedFAMs FAMType) { LearningDeliveryFAM lFAM = GetFAM(FAMType); if (lFAM == null) { return(null); } else { return(lFAM.LearnDelFAMCode); } }
public DateTime?GetFAMTo(LearningDeliveryFAM.DatedFAMs FAMType) { LearningDeliveryFAM lFAM = GetFAM(FAMType); if (lFAM == null) { return(null); } else { return(lFAM.LearnDelFAMDateTo); } }
internal LearningDeliveryFAM(LearningDeliveryFAM MigrationLearningDeliveryFAM, XmlNode LearningDeliveryFAMNode, XmlNamespaceManager NSMgr) { this.Node = LearningDeliveryFAMNode; this.NSMgr = NSMgr; this.LearnDelFAMType = MigrationLearningDeliveryFAM.LearnDelFAMType; if (MigrationLearningDeliveryFAM.LearnDelFAMType == "HEM" && (MigrationLearningDeliveryFAM.LearnDelFAMCode == "2" || MigrationLearningDeliveryFAM.LearnDelFAMCode == "4")) { this.LearnDelFAMCode = "5"; } else { this.LearnDelFAMCode = MigrationLearningDeliveryFAM.LearnDelFAMCode; } this.LearnDelFAMDateFrom = MigrationLearningDeliveryFAM.LearnDelFAMDateFrom; this.LearnDelFAMDateTo = MigrationLearningDeliveryFAM.LearnDelFAMDateTo; }
internal LearningDeliveryFAM(LearningDeliveryFAM MigrationLearningDeliveryFAM, XmlNode LearningDeliveryFAMNode, XmlNamespaceManager NSMgr) { this.Node = LearningDeliveryFAMNode; this.NSMgr = NSMgr; if ((MigrationLearningDeliveryFAM.LearnDelFAMType == "LDM" && MigrationLearningDeliveryFAM.LearnDelFAMCode == "125") || MigrationLearningDeliveryFAM.LearnDelFAMType == "WPL") { this.LearnDelFAMType = "LDM"; this.LearnDelFAMCode = "350"; } else { this.LearnDelFAMType = MigrationLearningDeliveryFAM.LearnDelFAMType; this.LearnDelFAMCode = MigrationLearningDeliveryFAM.LearnDelFAMCode; } this.LearnDelFAMDateFrom = MigrationLearningDeliveryFAM.LearnDelFAMDateFrom; this.LearnDelFAMDateTo = MigrationLearningDeliveryFAM.LearnDelFAMDateTo; }
internal LearningDelivery(LearningDelivery MigrationLearningDelivery, XmlNode Node, XmlNamespaceManager NSMgr) { IsImportRunning = true; this.Node = Node; this.NSMgr = NSMgr; this.LearnAimRef = MigrationLearningDelivery.LearnAimRef; if (MigrationLearningDelivery.AimType == 4 && MigrationLearningDelivery.HasFAM("LDM", "323")) { this.AimType = 3; this.ProgType = 24; } else { this.AimType = MigrationLearningDelivery.AimType; this.ProgType = MigrationLearningDelivery.ProgType; } this.AimSeqNumber = MigrationLearningDelivery.AimSeqNumber; this.LearnStartDate = MigrationLearningDelivery.LearnStartDate; this.OrigLearnStartDate = MigrationLearningDelivery.OrigLearnStartDate; this.LearnPlanEndDate = MigrationLearningDelivery.LearnPlanEndDate; this.FundModel = MigrationLearningDelivery.FundModel; this.FworkCode = MigrationLearningDelivery.FworkCode; this.PwayCode = MigrationLearningDelivery.PwayCode; this.PartnerUKPRN = MigrationLearningDelivery.PartnerUKPRN; this.DelLocPostCode = MigrationLearningDelivery.DelLocPostCode; if (this.AimType != 1) { this.PriorLearnFundAdj = MigrationLearningDelivery.PriorLearnFundAdj; this.OtherFundAdj = MigrationLearningDelivery.OtherFundAdj; } this.ESFProjDosNumber = MigrationLearningDelivery.ESFProjDosNumber; this.ESFLocProjNumber = MigrationLearningDelivery.ESFLocProjNumber; this.EmpOutcome = MigrationLearningDelivery.EmpOutcome; this.CompStatus = MigrationLearningDelivery.CompStatus; this.LearnActEndDate = MigrationLearningDelivery.LearnActEndDate; this.WithdrawReason = MigrationLearningDelivery.WithdrawReason; this.Outcome = MigrationLearningDelivery.Outcome; this.OutGrade = MigrationLearningDelivery.OutGrade; foreach (LearningDeliveryFAM migrationItem in MigrationLearningDelivery.LearningDeliveryFAMList) { XmlNode newNode = Node.OwnerDocument.CreateElement("LearningDeliveryFAM", NSMgr.LookupNamespace("ia")); LearningDeliveryFAM newInstance = new LearningDeliveryFAM(migrationItem, newNode, NSMgr); LearningDeliveryFAMList.Add(newInstance); AppendToLastOfNodeNamed(newNode, newNode.Name); } foreach (ProviderSpecDeliveryMonitoring migrationItem in MigrationLearningDelivery.ProviderSpecDeliveryMonitoringList) { XmlNode newNode = Node.OwnerDocument.CreateElement("ProviderSpecDeliveryMonitoring", NSMgr.LookupNamespace("ia")); ProviderSpecDeliveryMonitoring newInstance = new ProviderSpecDeliveryMonitoring(migrationItem, newNode, NSMgr); ProviderSpecDeliveryMonitoringList.Add(newInstance); AppendToLastOfNodeNamed(newNode, newNode.Name); } if (MigrationLearningDelivery.LearningDeliveryHE != null) { XmlNode newNode = Node.OwnerDocument.CreateElement("LearningDeliveryHE", NSMgr.LookupNamespace("ia")); LearningDeliveryHE = new LearningDeliveryHE(MigrationLearningDelivery.LearningDeliveryHE, newNode, NSMgr); AppendToLastOfNodeNamed(newNode, newNode.Name); } IsImportRunning = false; }