using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; using HXX.Scanner.Biz.Socket; using Saraff.Twain; namespace HXX.Scanner.Biz { /// /// 环境参数 /// public class config_environment { static config_environment() { web_parameter = new cmd_startScan2(); } /// /// 当前扫描状态 /// public static bool scan_state = false; /// /// 当前扫描状态,对web socket而言(ws会延后结束判断) /// public static bool scan_state_socket = false; /// /// 当前扫描模式 /// public static ScanType scan_type = ScanType.Formal; /// /// 当前扫描模式 /// public static ScanType scan_type2 = ScanType.Formal; /// /// 是否弹框扫描 /// public static bool use_source_ui = false; /// /// 当前web socket调用方 /// public static IntPtr current_invoker = IntPtr.Zero; /// /// 当前是否双面 /// public static bool scan_ab = true; /// /// 当前纸张规格 /// public static PaperSize paper_size = PaperSize.A4; /// /// 当前扫描仪加载状态 /// public static bool loading = false; /// /// 本机唯一id /// public static string unique_client_id = string.Empty; /// /// 版本升级url /// public static string url_base = string.Empty; /// /// 当前扫描参数 /// public static cmd_startScan2 web_parameter { get; set; } /// /// 当前扫描公共异常 /// public static ResponseEntity on_error = null; } }