/// <summary> /// SubmitCommand validation method /// </summary> /// <param name="param"></param> /// <returns>True/False</returns> private Boolean SubmitCommandValidationMethod(object param) { if (SelectedPresentationDocumentationInfo == null) { return(false); } return(SelectedPresentationDocumentationInfo.Where(record => record.Category == UploadDocumentType.PRESENTATION).Count() == 1 && SelectedPresentationDocumentationInfo.Where(record => record.Category == UploadDocumentType.INVESTMENT_CONTEXT_REPORT).Count() == 1 && SelectedPresentationDocumentationInfo.Where(record => record.Category == UploadDocumentType.FINSTAT_REPORT).Count() == 1 && EditEnabled //&& SelectedPresentationDocumentationInfo.Where(record => record.Category == UploadDocumentType.DCF_MODEL).Count() == 1 ); }
/// <summary> /// Icommand method for Upload Initialization /// </summary> /// <param name="param"></param> private void UploadCommandMethod(object param) { if (dbInteractivity != null) { BusyIndicatorNotification(true, "Uploading document"); String deleteUrl = String.Empty; if (SelectedUploadDocumentInfo != UploadDocumentType.ADDITIONAL_ATTACHMENT && SelectedUploadDocumentInfo != UploadDocumentType.DCF_MODEL) { FileMaster overwriteFileMaster = SelectedPresentationDocumentationInfo.Where(record => record.Category == SelectedUploadDocumentInfo) .FirstOrDefault(); if (overwriteFileMaster != null) { deleteUrl = overwriteFileMaster.Location; } } dbInteractivity.UploadDocument(UploadFileData.Name, UploadFileStreamData , deleteUrl, UploadDocumentCallbackMethod); } }