/// <summary> /// /// </summary> /// <returns></returns> protected string GetCurrentFileExtensionList() { string retValue = string.Empty; DocsPaWR.FileDocumento fileDocument = new UIManager.FileManager().getInfoFile(this.Page); if (fileDocument == null) { FileRequest lastDocument = null; String selectedVersionId = null; if (DocumentManager.getSelectedNumberVersion() != null && DocumentManager.ListDocVersions != null) { selectedVersionId = (from v in DocumentManager.ListDocVersions where v.version.Equals(DocumentManager.getSelectedNumberVersion()) select v.versionId).FirstOrDefault(); } lastDocument = FileManager.GetFileRequest(selectedVersionId); fileDocument = new UIManager.FileManager().getInfoFile(this.Page, lastDocument); } if (fileDocument != null) { System.IO.FileInfo fileInfo = new System.IO.FileInfo(fileDocument.fullName); retValue = fileInfo.Extension.Replace(".", string.Empty); if (retValue.ToUpper() == "P7M") { // Se il file è firmato, viene reperito il nome del file originale firmato retValue += "|" + UIManager.FileManager.getEstensioneIntoSignedFile(fileDocument.fullName).ToUpper(); } } return(retValue); }
/// <summary> /// /// </summary> /// <returns></returns> protected string GetCurrentFileExtensionList() { string retValue = string.Empty; DocsPaWR.FileDocumento fileDocument = new UIManager.FileManager().getInfoFile(this.Page); if (fileDocument != null) { System.IO.FileInfo fileInfo = new System.IO.FileInfo(fileDocument.fullName); retValue = fileInfo.Extension.Replace(".", string.Empty); if (retValue.ToUpper() == "P7M") { // Se il file è firmato, viene reperito il nome del file originale firmato retValue += "|" + UIManager.FileManager.getEstensioneIntoP7M(fileDocument.fullName).ToUpper(); } } return(retValue); }