Esempio n. 1
0
 /// <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
            );
 }
Esempio n. 2
0
 /// <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);
     }
 }