using System.Collections.Generic; namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model { /// /// 蓝牙打印机配置接口 /// public interface IBluetoothPrintConfig { /// /// 声明蓝牙打印机配置必须有详细配置 /// public List ConfigDetails { get; set; } } /// /// 蓝牙打印机详细配置接口 /// public interface IBluetoothPrintDetailConfig { } /// /// 德佟蓝牙打印机元素配置接口 /// public interface IElementConfig { } /// /// 蓝牙打印配置基类 /// public class BluetoothPrintConfigBase { public BluetoothPrintConfigBase() { ConfigDetails = new List(); } /// /// 配置名称 /// public string ConfigName { get; set; } /// /// 配置代码 /// public string ConfigNumber { get; set; } /// /// 打印数量 /// public int PrintCount { get; set; } /// /// 标签宽度 /// public decimal LabelWidth { get; set; } /// /// 标签长度 /// public decimal LabelHeight { get; set; } /// /// 详细配置 /// public List ConfigDetails { get; set; } } /// /// 蓝牙打印详细配置基类 /// public class BluetoothPrintDetailConfigBase { /// /// 元素类型 /// public int ElementType { get; set; } } /// /// 德佟蓝牙打印机元素配置基类 /// public class BluetoothPrintElementConfigBase_DT : BluetoothPrintDetailConfigBase { /// /// 字段是否有默认值 /// public bool IsDefaultValue { get; set; } /// /// 字段值 /// public string FieldValue { get; set; } /// /// 备注 /// public string Note { get; set; } } /// /// 蓝牙打印机配置类 /// public class BluetoothPrintConfig : BluetoothPrintConfigBase, IBluetoothPrintConfig { } /// /// 蓝牙打印机详细配置类 /// public class BluetoothPrintDetailConfig : BluetoothPrintDetailConfigBase, IBluetoothPrintDetailConfig { /// /// 绑定字段名 /// public string BindingFieldName { get; set; } /// /// 手动/自动编码 /// public bool EncodeMode { get; set; } /// /// X轴左侧开始位置 /// public decimal XAxisLeftBeginPosition { get; set; } /// /// Y轴顶部开始位置 /// public decimal YAxisTopBeginPosition { get; set; } /// /// X轴方向放大倍率 /// public decimal XAxisMultiplication { get; set; } /// /// Y轴方向放大倍率 /// public decimal YAxisMultiplication { get; set; } /// /// 条码高度 /// public decimal BarcodeHeight { get; set; } /// /// 条码宽度 /// public decimal BarcodeWidth { get; set; } /// /// 窄条码线高度 /// public decimal NarrowBarcodeLineHeight { get; set; } /// /// 宅条码线宽度 /// public decimal NarrowBarcodeLineWidth { get; set; } /// /// 条码旋转角度 /// public decimal BarcodeRotationAngle { get; set; } } /// /// 德佟蓝牙打印机配置类 /// public class BluetoothPrintConfig_DT : BluetoothPrintConfigBase, IBluetoothPrintConfig { /// /// 整体旋转角度 /// public decimal Orientation { get; set; } } /// /// 德佟蓝牙打印机详细配置类 /// public class BluetoothPrintDetailConfig_DT : IBluetoothPrintDetailConfig { public BluetoothPrintDetailConfig_DT() { ElementConfigs = new List(); } /// /// 配置的条码 /// public string Barcode { get; set; } /// /// 元素配置集合 /// public List ElementConfigs { get; set; } } /// /// 德佟蓝牙打印机方框配置 /// public class BoxConfig : BluetoothPrintElementConfigBase_DT, IElementConfig { public decimal X { get; set; } public decimal Y { get; set; } public decimal Width { get; set; } public decimal Height { get; set; } public decimal LineWidth { get; set; } } /// /// 德佟蓝牙打印机文本配置 /// public class TextConfig : BluetoothPrintElementConfigBase_DT, IElementConfig { public decimal X { get; set; } public decimal Y { get; set; } public decimal Width { get; set; } public decimal Height { get; set; } public decimal FontHeight { get; set; } public string FontStyle { get; set; } public decimal Orientation { get; set; } public bool AutoReturn { get; set; } public string BindingField { get; set; } public bool IsInterceptText { get; set; } public int InterceptLength { get; set; } } /// /// 德佟蓝牙打印机一维码配置 /// public class BarcodeConfig : BluetoothPrintElementConfigBase_DT, IElementConfig { public decimal X { get; set; } public decimal Y { get; set; } public decimal Width { get; set; } public decimal Height { get; set; } public decimal TextHeight { get; set; } public decimal Orientation { get; set; } public string BindingField { get; set; } } /// /// 德佟蓝牙打印机二维码配置 /// public class QRCodeConfig : BluetoothPrintElementConfigBase_DT, IElementConfig { public decimal X { get; set; } public decimal Y { get; set; } public decimal Width { get; set; } public decimal Orientation { get; set; } public string BindingField { get; set; } } /// /// 德佟蓝牙打印机直线配置 /// public class LineConfig : BluetoothPrintElementConfigBase_DT, IElementConfig { public decimal X1 { get; set; } public decimal Y1 { get; set; } public decimal X2 { get; set; } public decimal Y2 { get; set; } public decimal LineWidth { get; set; } } /// /// 请求蓝牙打印机配置参数实体 /// public class QueryPrintConfigModel { public string OrgId { get; set; } public string ConfigNumber { get; set; } public string PrinterBrand { get; set; } public List BarcodeList { get; set; } } public class PrintModel { public string DBAias { get; set; } public string UserID { get; set; } public string FMOULD { get; set; } public List FBarcode { get; set; } } }