コード例 #1
0
 public static PhysicianClientDistributionListItem GetPhysicianClientDistribution(string distributionType)
 {
     PhysicianClientDistributionListItem physicianClientDistribution = null;
     switch (distributionType)
     {
         case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.FAX:
             physicianClientDistribution = new FaxPhysicianClientDistribution();
             break;
         case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.ECW:
             physicianClientDistribution = new ECWPhysicianClientDistribution();
             break;
         case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.ATHENA:
             physicianClientDistribution = new AthenaPhysicianClientDistribution();
             break;
         case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.EPIC:
             physicianClientDistribution = new EPICPhysicianClientDistribution();
             break;
         case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.MEDITECH:
             physicianClientDistribution = new MediTechPhysicianClientDistribution();
             break;
         case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.EPICANDFAX:
             physicianClientDistribution = new EPICAndFaxPhysicianClientDistribution();
             break;
         default:
             physicianClientDistribution = new PhysicianClientDistributionListItem();
             break;
     }
     return physicianClientDistribution;
 }
コード例 #2
0
        public static PhysicianClientDistributionListItem GetPhysicianClientDistribution(string distributionType)
        {
            PhysicianClientDistributionListItem physicianClientDistribution = null;

            switch (distributionType)
            {
            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.FAX:
                physicianClientDistribution = new FaxPhysicianClientDistribution();
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.ECW:
                physicianClientDistribution = new ECWPhysicianClientDistribution();
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.ATHENA:
                physicianClientDistribution = new AthenaPhysicianClientDistribution();
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.EPIC:
                physicianClientDistribution = new EPICPhysicianClientDistribution();
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.MEDITECH:
                physicianClientDistribution = new MediTechPhysicianClientDistribution();
                break;

            case YellowstonePathology.Business.ReportDistribution.Model.DistributionType.EPICANDFAX:
                physicianClientDistribution = new EPICAndFaxPhysicianClientDistribution();
                break;

            default:
                physicianClientDistribution = new PhysicianClientDistributionListItem();
                break;
            }
            return(physicianClientDistribution);
        }