public PackingSlip(PackingSlipData packingSlipData) { this.m_PackingSlipData = packingSlipData; YellowstonePathology.Document.Xps.PlainHeader header = new YellowstonePathology.Document.Xps.PlainHeader("Packing Slip"); YellowstonePathology.Document.Xps.NoFooter footer = new YellowstonePathology.Document.Xps.NoFooter(); this.m_ReportDocument = new YellowstonePathology.Document.Xps.ReportDocument(header, footer); this.WriteHeader(); this.WriteShipmentDetails(); this.WritePatientDetails(); }
public PackingSlip(PackingSlipData packingSlipData) { this.m_PackingSlipData = packingSlipData; YellowstonePathology.Document.Xps.PlainHeader header = new YellowstonePathology.Document.Xps.PlainHeader("Packing Slip"); YellowstonePathology.Document.Xps.NoFooter footer = new YellowstonePathology.Document.Xps.NoFooter(); this.m_ReportDocument = new YellowstonePathology.Document.Xps.ReportDocument(header, footer); this.WriteHeader(); this.WriteShipmentDetails(); this.WritePatientDetails(); }
public MaterialTrackingBatchSummary(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch, YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogViewCollection materialTrackingLogViewCollection) { this.m_MaterialTrackingBatch = materialTrackingBatch; this.m_MaterialTrackingLogViewCollection = materialTrackingLogViewCollection; YellowstonePathology.Document.Xps.PlainHeader header = new YellowstonePathology.Document.Xps.PlainHeader("Yellowstone Pathology Institute - Material Distribution Report"); YellowstonePathology.Document.Xps.NoFooter footer = new YellowstonePathology.Document.Xps.NoFooter(); this.m_ReportDocument = new YellowstonePathology.Document.Xps.ReportDocument(header, footer); int totalMaterialCount = 0; MaterialTrackingSummaryCollection materialTrackingSummaryCollection = new MaterialTrackingSummaryCollection(); List<string> materialTypeList = this.m_MaterialTrackingLogViewCollection.GetDistinctMaterialTypes(); List<string> masterAccessionNoList = this.m_MaterialTrackingLogViewCollection.GetMasterAccessionNoList(); foreach (string masterAccessionNo in masterAccessionNoList) { MaterialTrackingSummary materialTrackingSummary = new MaterialTrackingSummary(masterAccessionNo, false); foreach (string materialType in materialTypeList) { int materialCount = this.m_MaterialTrackingLogViewCollection.GetMaterialCount(masterAccessionNo, materialType); MaterialTrackingSummaryColumn materialTrackingSummaryColumn = new MaterialTrackingSummaryColumn(materialType, materialCount); materialTrackingSummary.ColumnList.Add(materialTrackingSummaryColumn); totalMaterialCount += materialCount; } materialTrackingSummaryCollection.Add(materialTrackingSummary); } this.WriteHeadingsGrid(materialTypeList); foreach (MaterialTrackingSummary materialTrackingSummary in materialTrackingSummaryCollection) { this.WriteReportLine(materialTrackingSummary); } if (materialTrackingSummaryCollection.Count > 0) { materialTrackingSummaryCollection.SetTotals(); this.WriteTotalLine(materialTrackingSummaryCollection[materialTrackingSummaryCollection.Count - 1]); } }
public MaterialTrackingBatchSummary(YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch, YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogViewCollection materialTrackingLogViewCollection) { this.m_MaterialTrackingBatch = materialTrackingBatch; this.m_MaterialTrackingLogViewCollection = materialTrackingLogViewCollection; YellowstonePathology.Document.Xps.PlainHeader header = new YellowstonePathology.Document.Xps.PlainHeader("Yellowstone Pathology Institute - Material Distribution Report"); YellowstonePathology.Document.Xps.NoFooter footer = new YellowstonePathology.Document.Xps.NoFooter(); this.m_ReportDocument = new YellowstonePathology.Document.Xps.ReportDocument(header, footer); int totalMaterialCount = 0; MaterialTrackingSummaryCollection materialTrackingSummaryCollection = new MaterialTrackingSummaryCollection(); List <string> materialTypeList = this.m_MaterialTrackingLogViewCollection.GetDistinctMaterialTypes(); List <string> masterAccessionNoList = this.m_MaterialTrackingLogViewCollection.GetMasterAccessionNoList(); foreach (string masterAccessionNo in masterAccessionNoList) { MaterialTrackingSummary materialTrackingSummary = new MaterialTrackingSummary(masterAccessionNo, false); foreach (string materialType in materialTypeList) { int materialCount = this.m_MaterialTrackingLogViewCollection.GetMaterialCount(masterAccessionNo, materialType); MaterialTrackingSummaryColumn materialTrackingSummaryColumn = new MaterialTrackingSummaryColumn(materialType, materialCount); materialTrackingSummary.ColumnList.Add(materialTrackingSummaryColumn); totalMaterialCount += materialCount; } materialTrackingSummaryCollection.Add(materialTrackingSummary); } this.WriteHeadingsGrid(materialTypeList); foreach (MaterialTrackingSummary materialTrackingSummary in materialTrackingSummaryCollection) { this.WriteReportLine(materialTrackingSummary); } if (materialTrackingSummaryCollection.Count > 0) { materialTrackingSummaryCollection.SetTotals(); this.WriteTotalLine(materialTrackingSummaryCollection[materialTrackingSummaryCollection.Count - 1]); } }