C# Class Rock.Apps.CheckScannerUtility.ScanningPage

Interaction logic for ScanningPage.xaml
Inheritance: System.Windows.Controls.Page
Exibir arquivo Open project: SparkDevNetwork/Rock Class Usage Examples

Private Properties

Property Type Description
DisplayScannedDocInfo void
EnsureUploadScanRestClient RockRestClient
GetImageBytesFromRanger byte[]
HideUploadWarningPrompts void
IsDuplicateScan bool
Page_Loaded void
ResumeScanning void
ShowStartupPage void
ShowUploadStats void
ShowUploadSuccess void
ShowUploadWarnings void
StopScanning void
UploadScannedItem void
btnClose_Click void
btnIgnoreAndUpload_Click void
btnSkipAndContinue_Click void
btnStart_Click void
btnStopScanning_Click void

Public Methods

Method Description
ScanningPage ( BatchPage value ) : System

Initializes a new instance of the ScanningPage class.

ShowException ( Exception ex ) : void

Shows the exception.

ShowScannedDocStatusAndUpload ( ScannedDocInfo scannedDocInfo ) : void

Adds the scanned doc to a history of scanned docs, and shows info and status.

ShowScannerStatus ( RangerTransportStates xportStates, System statusColor, string statusText ) : void

Shows the scanner status.

StartRangerFeedingWhenReady ( object sender, AxRANGERLib e ) : void

Starts the ranger feeding when ready.

StartScanning ( ) : void

Starts the scanning as soon as items are in the hopper

WriteToDebugLog ( string message ) : void

Writes the message to a debug log (if DebugLogFilePath is configured in AppSettings)

micrImage_MicrDataReceived ( object sender, System e ) : void

Handles the MicrDataReceived event of the micrImage control.

rangerScanner_TransportFeedingState ( object sender, EventArgs e ) : void

Handles the TransportFeedingState event of the rangerScanner control.

rangerScanner_TransportFeedingStopped ( object sender, AxRANGERLib e ) : void

Rangers the scanner_ transport feeding stopped.

rangerScanner_TransportIsDead ( object sender, EventArgs e ) : void

Handles the TransportIsDead event of the rangerScanner control.

rangerScanner_TransportNewItem ( object sender, EventArgs e ) : void

Handles the TransportNewItem event of the rangerScanner control.

rangerScanner_TransportSetItemOutput ( object sender, AxRANGERLib e ) : void

Rangers the scanner_ transport item in pocket.

Private Methods

Method Description
DisplayScannedDocInfo ( ScannedDocInfo scannedDocInfo ) : void

Displays the scanned document information.

EnsureUploadScanRestClient ( ) : RockRestClient

Initializes the RestClient for Uploads and loads any data that is needed for the scan session (if it isn't already initialized)

GetImageBytesFromRanger ( RangerSides side ) : byte[]

Gets the doc image.

HideUploadWarningPrompts ( bool hideWarningMessages = true ) : void

Hides the warnings messages and prompts

IsDuplicateScan ( ScannedDocInfo scannedDoc ) : bool

Determines whether [is duplicate scan] [the specified scanned document].

Page_Loaded ( object sender, RoutedEventArgs e ) : void

Handles the Loaded event of the Page control.

ResumeScanning ( ) : void

Resumes scanning.

ShowStartupPage ( ) : void

Shows the startup page.

ShowUploadStats ( ) : void

Shows the upload stats.

ShowUploadSuccess ( ) : void

Shows the upload success.

ShowUploadWarnings ( ScannedDocInfo scannedDocInfo ) : void

Shows the upload warnings.

StopScanning ( ) : void

Stops the scanning.

UploadScannedItem ( ScannedDocInfo scannedDocInfo ) : void

Uploads the scanned item.

btnClose_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the btnClose control.

btnIgnoreAndUpload_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the btnIgnoreAndUpload control.

btnSkipAndContinue_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the btnSkipAndContinue control.

btnStart_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the btnStart control.

btnStopScanning_Click ( object sender, RoutedEventArgs e ) : void

Handles the Click event of the btnStopScanning control.

Method Details

ScanningPage() public method

Initializes a new instance of the ScanningPage class.
public ScanningPage ( BatchPage value ) : System
value BatchPage The value.
return System

ShowException() public method

Shows the exception.
public ShowException ( Exception ex ) : void
ex System.Exception The ex.
return void

ShowScannedDocStatusAndUpload() public method

Adds the scanned doc to a history of scanned docs, and shows info and status.
public ShowScannedDocStatusAndUpload ( ScannedDocInfo scannedDocInfo ) : void
scannedDocInfo ScannedDocInfo The scanned check info.
return void

ShowScannerStatus() public method

Shows the scanner status.
public ShowScannerStatus ( RangerTransportStates xportStates, System statusColor, string statusText ) : void
xportStates RangerTransportStates The xport states.
statusColor System
statusText string
return void

StartRangerFeedingWhenReady() public method

Starts the ranger feeding when ready.
public StartRangerFeedingWhenReady ( object sender, AxRANGERLib e ) : void
sender object The sender.
e AxRANGERLib The e.
return void

StartScanning() public method

Starts the scanning as soon as items are in the hopper
public StartScanning ( ) : void
return void

WriteToDebugLog() public method

Writes the message to a debug log (if DebugLogFilePath is configured in AppSettings)
public WriteToDebugLog ( string message ) : void
message string The message.
return void

micrImage_MicrDataReceived() public method

Handles the MicrDataReceived event of the micrImage control.
public micrImage_MicrDataReceived ( object sender, System e ) : void
sender object The source of the event.
e System The instance containing the event data.
return void

rangerScanner_TransportFeedingState() public method

Handles the TransportFeedingState event of the rangerScanner control.
public rangerScanner_TransportFeedingState ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

rangerScanner_TransportFeedingStopped() public method

Rangers the scanner_ transport feeding stopped.
public rangerScanner_TransportFeedingStopped ( object sender, AxRANGERLib e ) : void
sender object The sender.
e AxRANGERLib The e.
return void

rangerScanner_TransportIsDead() public method

Handles the TransportIsDead event of the rangerScanner control.
public rangerScanner_TransportIsDead ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

rangerScanner_TransportNewItem() public method

Handles the TransportNewItem event of the rangerScanner control.
public rangerScanner_TransportNewItem ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void

rangerScanner_TransportSetItemOutput() public method

Rangers the scanner_ transport item in pocket.
public rangerScanner_TransportSetItemOutput ( object sender, AxRANGERLib e ) : void
sender object The sender.
e AxRANGERLib The e.
return void