/// <summary> /// Get File number for a File /// </summary> /// <param name="FileId">Id of the file to get File number</param> /// <returns>A string representing the full file number in the IGRSS File numbering Format (OFFICE/DEPT/FILENO/YEAR)</returns> public static string GetFileNo(Guid FileId) { string fileNumber = string.Empty;; try { FileManagementMasterTable FileDetails = new FileManagementMasterTable(); FileDetails = IgrssAdapters.FileManagementMasterTable.GetFileDetails(FileId); if (FileDetails.Rows.Count > 0) { FileManagementMasterRow File = (FileManagementMasterRow)FileDetails.Rows[0]; fileNumber = File.FileDepartment + "/" + File.FileNo.ToString() + "/" + File.FileYear; } } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) { throw; } } return(fileNumber); }
/// <summary> /// Get File number for a File /// </summary> /// <param name="FileId">Id of the file to get File number</param> /// <returns>A string representing the full file number in the IGRSS File numbering Format (OFFICE/DEPT/FILENO/YEAR)</returns> public static string GetFileNo(Guid FileId) { string fileNumber = string.Empty; ; try { FileManagementMasterTable FileDetails = new FileManagementMasterTable(); FileDetails = IgrssAdapters.FileManagementMasterTable.GetFileDetails(FileId); if (FileDetails.Rows.Count > 0) { FileManagementMasterRow File = (FileManagementMasterRow)FileDetails.Rows[0]; fileNumber = File.FileDepartment + "/" + File.FileNo.ToString() + "/" + File.FileYear; } } catch (Exception ex) { if (ExceptionPolicy.HandleException(ex, "DAL")) throw; } return fileNumber; }