/// <summary> /// 获取未签章pdf集合 /// </summary> private Hashtable GetCleanPdfPath(string fileIDS) { Hashtable cleanPdfPath = new Hashtable(); string strWhere = "FileListID in(" + fileIDS + ")"; IList <Model.T_FileList_MDL> fileList = fileBLL.GetModelList(strWhere); if (fileList.Count > 0) { string mPdfPath = string.Empty; string oPdfPath = string.Empty; string rootPath = string.Empty; foreach (Model.T_FileList_MDL file in fileList) { rootPath = Path.Combine(file.RootPath, file.SingleProjectID.ToString(), "OMPDF"); if (!Directory.Exists(rootPath)) { Directory.CreateDirectory(rootPath); } mPdfPath = Path.Combine(file.RootPath, file.SingleProjectID.ToString(), "MPDF", file.PDFFilePath); oPdfPath = Path.Combine(rootPath, file.PDFFilePath); if (!System.IO.File.Exists(oPdfPath) && !System.IO.File.Exists(mPdfPath)) { continue; } else if (System.IO.File.Exists(mPdfPath)) { System.IO.File.Copy(mPdfPath, oPdfPath, true); } //cleanPdfPath.Add(file.FileListID, oPdfPath); LHSignatureFilesList lhSignature = new LHSignatureFilesList(); if (!lhSignature.CheckSignatureFinishCount(file.FileListID.ToString(), file.OldRecID.ToString())) //判断当前用户对该份文件是否签章完成 N继续 { if (lhSignature.CheckSignatureStatus(file.FileListID.ToString(), file.OldRecID.ToString())) //单张表格的PDF 或上个用户已签章 { cleanPdfPath.Add(file.FileListID, oPdfPath); } } } } return(cleanPdfPath); }
public bool CheckSignatureFinishCount(string FileListID, string FileListTmpID) { LHSignatureFilesList lhSignature = new LHSignatureFilesList(); return(lhSignature.CheckSignatureFinishCount(FileListID, FileListTmpID)); }