예제 #1
0
        public ActionResult SearchFileAssignCheck(string searchFileName)
        {
            OCRInvoiceSearchViewModel objModel = new OCRInvoiceSearchViewModel();

            try
            {
                objModel.OCRFileSearchResult = Mapper.Map <IEnumerable <OCRFileInvoices> >(_ocr.GetOCRFilesInvoiceRecords(searchFileName, GlobalConst.Records.Skip, GlobalConst.Records.Take));
                objModel.OCRFileCount        = _ocr.GetOCRFilesInvoiceRecordsCount(searchFileName);
            }
            catch (Exception ex)
            {
                _arCommonService.CreateErrorLog(ex.Message, ex.StackTrace);
            }
            return(Json(objModel, GlobalConst.ContentTypes.TextHtml));
        }
예제 #2
0
파일: OCRTest.cs 프로젝트: buyonlinemahi/AR
        public void Get_OCRFilesInvoiceRecords()
        {
            var getAllOCRRecords = _IOCRImplBL.GetOCRFilesInvoiceRecords("%", 0, 10);

            Assert.IsTrue(getAllOCRRecords != null, "Unable to find");
        }