Exemple #1
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanDocument CreateNewBlank(WaterQualityManagementPlan waterQualityManagementPlan, FileResource fileResource, WaterQualityManagementPlanDocumentType waterQualityManagementPlanDocumentType)
 {
     return(new WaterQualityManagementPlanDocument(waterQualityManagementPlan, fileResource, default(string), default(DateTime), waterQualityManagementPlanDocumentType));
 }
Exemple #2
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static TreatmentBMPImage CreateNewBlank(FileResource fileResource, TreatmentBMP treatmentBMP)
 {
     return(new TreatmentBMPImage(fileResource, treatmentBMP, default(DateTime)));
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static NeptunePageImage CreateNewBlank(NeptunePage neptunePage, FileResource fileResource)
 {
     return(new NeptunePageImage(neptunePage, fileResource));
 }
Exemple #4
0
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public WaterQualityManagementPlanDocument(WaterQualityManagementPlan waterQualityManagementPlan, FileResource fileResource, string displayName, DateTime uploadDate, WaterQualityManagementPlanDocumentType waterQualityManagementPlanDocumentType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.WaterQualityManagementPlanDocumentID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.WaterQualityManagementPlanID         = waterQualityManagementPlan.WaterQualityManagementPlanID;
     this.WaterQualityManagementPlan           = waterQualityManagementPlan;
     waterQualityManagementPlan.WaterQualityManagementPlanDocuments.Add(this);
     this.FileResourceID = fileResource.FileResourceID;
     this.FileResource   = fileResource;
     fileResource.WaterQualityManagementPlanDocuments.Add(this);
     this.DisplayName = displayName;
     this.UploadDate  = uploadDate;
     this.WaterQualityManagementPlanDocumentTypeID = waterQualityManagementPlanDocumentType.WaterQualityManagementPlanDocumentTypeID;
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static TreatmentBMPDocument CreateNewBlank(FileResource fileResource, TreatmentBMP treatmentBMP)
 {
     return(new TreatmentBMPDocument(fileResource, treatmentBMP, default(string), default(DateTime)));
 }
Exemple #6
0
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static OnlandVisualTrashAssessmentObservationPhoto CreateNewBlank(FileResource fileResource, OnlandVisualTrashAssessmentObservation onlandVisualTrashAssessmentObservation)
 {
     return(new OnlandVisualTrashAssessmentObservationPhoto(fileResource, onlandVisualTrashAssessmentObservation));
 }
Exemple #7
0
 public string PhotoUrlScaledThumbnail(int maxHeight)
 {
     return(FileResource.FileResourceUrlScaledThumbnail(maxHeight));
 }
Exemple #8
0
 public string GetAuditDescriptionString()
 {
     return($"Site {TreatmentBMPID} {FileResource?.GetOriginalCompleteFileName() ?? "File Resource Not Found"}");
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static TreatmentBMPAssessmentPhoto CreateNewBlank(FileResource fileResource, TreatmentBMPAssessment treatmentBMPAssessment)
 {
     return(new TreatmentBMPAssessmentPhoto(fileResource, treatmentBMPAssessment));
 }
Exemple #10
0
 public string GetPhotoUrl()
 {
     return(FileResource.GetFileResourceUrl());
 }
 public string GetAuditDescriptionString()
 {
     return
         ($"Treatment BMP Assessment Photo {FileResource?.GetOriginalCompleteFileName() ?? "File Resource Not Found"}");
 }
Exemple #12
0
 public static void DeleteFileResource(this IQueryable <FileResource> fileResources, FileResource fileResourceToDelete)
 {
     DeleteFileResource(fileResources, new List <FileResource> {
         fileResourceToDelete
     });
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static WaterQualityManagementPlanPhoto CreateNewBlank(FileResource fileResource)
 {
     return(new WaterQualityManagementPlanPhoto(fileResource, default(DateTime)));
 }
Exemple #14
0
 public string GetPhotoUrlScaledForPrint()
 {
     return(FileResource.GetFileResourceUrlScaledForPrint());
 }
Exemple #15
0
 public string GetCaptionOnGallery()
 {
     return($"{Caption}\r\n{FileResource.GetFileResourceDataLengthString()}");
 }