using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using System.Runtime.InteropServices; using Saraff.Twain; using HXX.Scanner.Common; using HXX.Scanner.Biz.Socket; namespace HXX.Scanner.Biz { /// /// 扫描前准备 /// public class biz_engine_prepare { /// /// 扫描前准备 /// public static void prepare() { //设置环境变量 config_environment.scan_state = true; engine_twain32.first_state = true; config_environment.scan_state_socket = true; //每2秒报告扫描情况 biz_pushCompletedScan.Work(); if (config_environment.scan_type == ScanType.Formal || config_environment.scan_type == ScanType.Test_From_Web) { if (config_environment.web_parameter != null) { biz_scannedBatch.add_batch(config_environment.web_parameter.zipId.ToString()); } } biz_scanHistory.start_new(); } } }