/// <summary> /// LoadStrands /// </summary> /// <param name="forms"></param> /// <param name="filter"></param> private void LoadCastStrands( IEnumerable<RecProductionFormStd> forms, Filter filter ) { foreach( var recProductionFormStd in forms ) { var rec = new RecProductionCastStrand() { Factory = filter.Factory, Project = filter.Project, CastId = recProductionFormStd.ProductionCast.CastId }; if( null != recProductionFormStd.ProductionCast ) { if( recProductionFormStd.FormType == FormType.Bed && recProductionFormStd.StrandType == StrandType.Bed ) { // Load cast strands var svc = new ProjectManager(); recProductionFormStd.ProductionCast.Strands = svc.LoadProductionCastStrand( rec ); } var et = recProductionFormStd.ProductionCast.ElementType; var hasStrands = et.Equals( "HD" ) || et.Equals( "HD/F" ); if( hasStrands ) { var strandSvc = new ProjectManager(); recProductionFormStd.ProductionCast.Strands = strandSvc.LoadStrands( filter.Factory, filter.Project, recProductionFormStd.ProductionCast.ElementType, recProductionFormStd.ProductionCast.Style, recProductionFormStd.ProductionCast.Strandptn ); } } } }
public List<RecProductionCastStrand> LoadCastStrands( RecProductionCastStrand record ) { var svc = new ProjectManager(); return svc.LoadProductionCastStrand( record ); }