Пример #1
0
        /// <summary>
        /// Object to keep track of PLM report properties
        /// </summary>
        public PlmReport()
        {
            isForeignCrossing = true;

            this.reportId = Guid.NewGuid().ToString();
            this.existingReport = false;
            this.foreignCrossing = new ForeignCrossing();
            this.reportProperties = new ReportProperties();
            this.rowInfo = new RowInfo();
            this.corrosionInspection = new CorrosionInpsection();
            this.permanentRepair = new PermanentRepair();
            this.fileAttachments = new FileAttachments();
            this.pointFeatures = new PointFeatures();
            this.linearFeatures = new LinearFeatures();
        }
Пример #2
0
        /// <summary>
        /// Constructor for exiting report based on id
        /// </summary>
        /// <param name="reportId"></param>
        public PlmReport(string reportId)
        {
            this.reportId = reportId;
            this.existingReport = true;
            this.reportProperties = new ReportProperties(reportId);
            this.foreignCrossing = new ForeignCrossing(reportId);
            if (!this.foreignCrossing.hasValuesSet)
            {
                this.isForeignCrossing = false;
                this.rowInfo = new RowInfo(reportId);
                this.corrosionInspection = new CorrosionInpsection(reportId);
                this.permanentRepair = new PermanentRepair(reportId);
                this.fileAttachments = new FileAttachments(reportId);
            }
            else
            {
                this.isForeignCrossing = true;
                this.rowInfo = new RowInfo();
                this.corrosionInspection = new CorrosionInpsection();
                this.permanentRepair = new PermanentRepair();
                this.fileAttachments = new FileAttachments();

            }
        }