internal ProviderSpecDeliveryMonitoring(ProviderSpecDeliveryMonitoring MigrationProviderSpecDeliveryMonitoring, XmlNode ProviderSpecDeliveryMonitoringNode, XmlNamespaceManager NSMgr) { this.Node = ProviderSpecDeliveryMonitoringNode; this.NSMgr = NSMgr; this.ProvSpecDelMonOccur = MigrationProviderSpecDeliveryMonitoring.ProvSpecDelMonOccur; this.ProvSpecDelMon = MigrationProviderSpecDeliveryMonitoring.ProvSpecDelMon; }
public ProviderSpecDeliveryMonitoring CreateProviderSpecDeliveryMonitoring() { XmlNode newNode = Node.OwnerDocument.CreateElement("ProviderSpecDeliveryMonitoring", NSMgr.LookupNamespace("ia")); ProviderSpecDeliveryMonitoring newInstance = new ProviderSpecDeliveryMonitoring(newNode, NSMgr); ProviderSpecDeliveryMonitoringList.Add(newInstance); AppendToLastOfNodeNamed(newNode, newNode.Name); return(newInstance); }
public string GetProvSpecMonValue(ProviderSpecDeliveryMonitoring.Occurrence Occurrence) { ProviderSpecDeliveryMonitoring provSpecMon = GetProvSpecMon(Occurrence); if (provSpecMon == null) { return(null); } else { return(provSpecMon.ProvSpecDelMon); } }
public void SetProvSpecMon(ProviderSpecDeliveryMonitoring.Occurrence Occurrence, string ProvSpecMonValue) { ProviderSpecDeliveryMonitoring provSpecMon = GetProvSpecMon(Occurrence); if (ProvSpecMonValue != null && ProvSpecMonValue.Length != 0) { if (provSpecMon == null) { provSpecMon = this.CreateProviderSpecDeliveryMonitoring(); provSpecMon.ProvSpecDelMonOccur = Occurrence.ToString(); } provSpecMon.ProvSpecDelMon = ProvSpecMonValue; } else if (provSpecMon != null) { Delete(provSpecMon); } }
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; }