예제 #1
0
        public PDF PDFUpdateFileDeletion(int pdfId)
        {
            PDFDAL dal = new PDFDAL();
            PDF    pdf = dal.PDFSelectAuto(null, null, pdfId);

            if (pdf != null)
            {
                pdf.FileDeletionDate = DateTime.Now;
                pdf = dal.PDFUpdateAuto(null, null, pdf);
            }
            else
            {
                throw new Exception("Could not find existing pdf record");
            }
            return(pdf);
        }
예제 #2
0
        public PDF PDFUpdateGenerationInfo(int pdfId, string fileLocation, string fileUrl,
                                           int numberImagesMissing, int numberOcrMissing)
        {
            PDFDAL dal = new PDFDAL();
            PDF    pdf = dal.PDFSelectAuto(null, null, pdfId);

            if (pdf != null)
            {
                pdf.FileLocation        = fileLocation;
                pdf.FileUrl             = fileUrl;
                pdf.FileGenerationDate  = DateTime.Now;
                pdf.NumberImagesMissing = numberImagesMissing;
                pdf.NumberOcrMissing    = numberOcrMissing;
                pdf.PdfStatusID         = this.PdfStatusGenerated;
                pdf = dal.PDFUpdateAuto(null, null, pdf);
            }
            else
            {
                throw new Exception("Could not find existing pdf record");
            }
            return(pdf);
        }
예제 #3
0
 public void PDFSave(PDF pdf)
 {
     PDFDAL.Save(null, null, pdf);
 }
예제 #4
0
        public bool PDFUpdatePdfStatus(int pdfId, int pdfStatusId)
        {
            PDFDAL dal = new PDFDAL();

            return(dal.PDFUpdatePdfStatus(null, null, pdfId, pdfStatusId));
        }