using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace POSV
{
public class Constant
{
public const string AUTO_UPDATER_NEW = "AutoUpdater.New";
public const string APP_SIGN = "cy2";
public const string TERMINAL_TYPE = "x86";
public const string CNY = "¥";
///
/// 练习模式打印描述
///
public const string STUDYMODE_PRINTSTR = "!练习!";
///
/// 练习模式默认序号
///
public const string STUDYMODE_DEFAULT_ORDERNO = "999";
///
/// 重打标识
///
public const string REPRINT_SIGN = ".";
///
/// 串口参数
///
public const string COM_PORT_NAME = "port";
///
/// 串口值
///
public static string[] COM_PORT_NAME_VALUE = { "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9" };
///
/// 串口波特率
///
public const string COM_PORT_BAUD = "baud";
///
/// 串口波特率值
///
public static string[] COM_PORT_BAUD_VALUE = { "2400", "4800", "9600", "19200", "38400", "57600", "115200" };
///
/// 并口参数
///
public const string LPT_NAME = "lpt";
///
/// 并口值
///
public static string[] LPT_NAME_VALUE = { "LPT1", "LPT2", "LPT3", "LPT4" };
///
/// 打印机分辨率
///
public static string[] DPI_NAME_VALUE = { "200", "203", "300", "600" };
///
/// USB_PID
///
public const string USB_PID = "pid";
///
/// USB_VID
///
public const string USB_VID = "vid";
///
/// 网口参数
///
public const string NET_IP_ADDRESS = "ip";
///
/// 驱动参数
///
public const string DRIVE_NAME = "driver";
///
/// 请求超时设置(以毫秒为单位),默认为10秒。
/// 说明:此处常量专为提供给方法的参数的默认值,不是方法内所有请求的默认超时时间。
///
public const int TIMEOUT = 30000;
///
/// 默认的创建用户
///
public static string DEFAULT_SYNC_USER = "sync";
///
/// 分页下载数据默认每页大小
///
public const int DEFAULT_PAGESIZE = 500;
///
/// 遮罩层默认的透明度
///
public const double Opacity = .5;
///
/// 合码支付中PayMode对应的No,04微信、05微信支付、07银联闪付
///
public static string[] HEMA_PAY = { "04" , "05" ,"07"};
///
/// 合码支付对应的No
///
public static string HEMA_CODE = "00";
#region subin 20231011 add
///
/// 通联支付对应的No
///
public static string ALLINPAY_CODE = "50";
#endregion
///
/// 窗体默认的背景颜色
///
public static Color DefaultBackColor = Color.FromArgb(187 , 175 , 167);
///
/// 特大字体
///
public static Font BIG_BIG_FONT = new Font("微软雅黑" , 18F , System.Drawing.FontStyle.Regular , System.Drawing.GraphicsUnit.Point , ((byte)(134)));
///
/// 大字体
///
public static Font BIG_FONT = new Font("微软雅黑", 15F , System.Drawing.FontStyle.Regular , System.Drawing.GraphicsUnit.Point , ((byte)(134)));
///
/// 正常字体
///
public static Font NORMAL_FONT = new Font("微软雅黑", 12F , System.Drawing.FontStyle.Regular , System.Drawing.GraphicsUnit.Point , ((byte)(134)));
///
/// 小字体
///
public static Font SMALL_FONT = new Font("微软雅黑", 9F , System.Drawing.FontStyle.Regular , System.Drawing.GraphicsUnit.Point , ((byte)(134)));
///
/// 默认字体
///
public static Font DEFAULT_FONT = new Font("微软雅黑", 10.75F , System.Drawing.FontStyle.Regular , System.Drawing.GraphicsUnit.Point , ((byte)(134)));
///
/// 网络联机状态
///
public const string ONLINE = "\ue2bf";
///
/// 网络联机状态
///
public const string OFFLINE = "\ue2c1";
///
/// 网络连接检测Topic
///
public const string NETWORK_EVENT_NOTIFY = "system:network";
///
/// 点单区菜单修改完成发送通知
///
public const string MENU_CHANGED_NOTIFY = "menu:changed";
///
/// 快捷区菜单修改完成发送通知
///
public const string SHORTCUT_CHANGED_NOTIFY = "shortcut:changed";
///
/// 品类样式修改完成发送通知
///
public const string CATEGORY_CHANGED_NOTIFY = "category:changed";
///
/// 品项样式修改完成发送通知
///
public const string PRODUCT_CHANGED_NOTIFY = "product:changed";
///
/// 沽清修改后发送通知
///
public const string SALE_CLEAR_CHANGED_NOTIFY = "sale:clear:changed";
///
/// 品项键盘操作发送通知
///
public const string PRODUCT_KEYBOARD_NOTIFY = "product:keyboard";
///
/// 选择商品键盘操作发送通知(要货、入库)
///
public const string PRODUCTSELECT_KEYBOARD_NOTIFY = "productselect:keyboard";
///
/// 规格键盘操作发送通知
///
public const string SPEC_KEYBOARD_NOTIFY = "spec:keyboard";
///
/// 点单列表样式修改完成发送通知
///
public const string CART_CHANGED_NOTIFY = "cart:changed";
///
/// 练习模式切换通知
///
public const string STUDYMODE_CHANGED_NOTIFY = "studyMode:changed";
///
/// 规格列表样式修改完成发送通知
///
public const string SPEC_CHANGED_NOTIFY = "spec:changed";
///
/// 做法列表样式修改完成发送通知
///
public const string FLAVOR_CHANGED_NOTIFY = "flavor:changed";
///
/// 点单区定义-选择资源功能通知
///
public const string RESOURCES_SELECTED_NOTIFY = "resources:selected";
///
/// 当前秤状态变更通知
///
public const string CURRENTSTEELYARD_STATUS_CHANGE = "currentSteelyardStatus:change";
///
/// 结账操作信息输出提醒Topic
///
public const string PAY_MESSAGE_EVENT_NOTIFY = "pay:message";
///
/// 自动完成结账操作Topic
///
public const string PAY_AUTO_EVENT_NOTIFY = "pay:auto";
///
/// 混合支付结账Topic
///
public static string ORDER_PAYMENT_NOTIFY = "order:payment";
///
/// 结账完成后触发Topic
///
public static string ORDER_PAYMENT_FINISHED = "order:finished";
#region subin 20231011 add 支付失败后需要重新生成订单号
///
/// 支付失败后需要重新生成订单号触发
///
public static string ORDER_PAYMENT_ERROR_GENERATENO = "orderpayerror:generateticketno";
public static string SPLITPAY_UPLOAD_PROGRESS = "splitpay:uploadprogress";
#endregion
///
/// 屏幕键盘切换通知事件
///
public const string KEYBOARD_CHANGED_NOTIFY = "keyboard:changed";
///
/// 副屏订单消息同志
///
public const string VICE_ORDER_NOTIFY = "vice:order";
///
/// 副屏UI设置变更
///
public const string VICE_CHANGED_NOTIFY = "vice:changed";
///
/// 订单历史通知
///
public const string HISTORY_CHANGED_NOTIFY = "history:changed";
///
/// 订单促销变更通知
///
public const string ORDERPROMOTION_CHANGED_NOTIFY = "orderPromotion:changed";
///
/// 巨为微信订单推送通知
///
public const string JW_WEIXIN_UI_UPDATA = "JwWeiXinUiUpData";
///
/// 企迈小程序订单更新界面UI通知,zhangy 2020-02-20 Add
///
public const string QM_WEIXIN_UI_UPDATA = "QMWeiXinUiUpData";
///
/// 果盘
///
public const string GuoPan_WEIXIN_UI_UPDATA = "GuoPanWeiXinUiUpData";
///
/// 电子券使用通知
///
public const string MEMBERCOUPON_CHANGE_NOTIFY = "memberCoupon:changed";
///
/// 消息中心主题
///
public const string MSGCENTER_NOTIFY = "msgCenter";
///
/// 菜单title和name的变更通知
///
public const string MENU_TITLE_CHANGED_NOTIFY = "menutitle:notify";
///
/// 品项下一页分页标识
///
public const string NEXT_PAGER = "__NEXT__";
///
/// 品项上一页分页标识
///
public const string PREV_PAGER = "__PREV__";
///
/// 全部品类标签
///
public const string ALL_PRODUCT_TAG = "__APT__";
#region 桌台模式添加
///
/// 全部桌台标签
///
public const string ALL_TABLE_TAG = "__ATA__";
///
/// 桌台点单通知
///
public const string TABLE_ORDER_DISHS_NOTIFY = "table:order:dishs";
#endregion
///
/// 开放平台的错误代码
///
public const string ERROR_TOKEN = "@@$-ERROR_TOKEN$-@@";
///
/// 判断开放平台返回的数据是否正确
///
///
///
public static bool IsSuccessful(string content)
{
return !(content.Contains(ERROR_TOKEN));
}
}
}