using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
namespace JwKdsV.Core
{
public class Constant
{
#region 系统设置
public const string AUTO_UPDATER_NEW = "AutoUpdater.New";
public const string APP_SIGN = "cy2";
public const string TERMINAL_TYPE = "kds_x86";
///
/// 分页下载数据默认每页大小
///
public const int DEFAULT_PAGESIZE = 500;
///
/// 默认小数点位数
///
public static int POINTNUM = 2;
#endregion
#region 消息主题
///
/// 样式变更
///
public const string STYLECHANGED = "style:changed";
///
/// 订单出品
///
public const string ORDERCHUPIN = "order:chupin";
//Yao 2023/08/05
public const string CALLORDERTTS = "order:qucan";
///
/// 新订单
///
public const string NEWORDER = "order:new";
///
/// 新的划菜通知
///
public const string NEWHUACAIITEM = "orderItem:huacai";
///
/// 屏幕键盘切换通知事件
///
public const string KEYBOARD_CHANGED_NOTIFY = "keyboard:changed";
///
/// 沽清修改后发送通知
///
public const string SALE_CLEAR_CHANGED_NOTIFY = "sale:clear:changed";
///
/// 品项键盘操作发送通知
///
public const string PRODUCT_KEYBOARD_NOTIFY = "product:keyboard";
#endregion
///
/// 品项下一页分页标识
///
public const string NEXT_PAGER = "__NEXT__";
///
/// 品项上一页分页标识
///
public const string PREV_PAGER = "__PREV__";
///
/// 全部品类标签
///
public const string ALL_PRODUCT_TAG = "__APT__";
///
/// 网络联机状态
///
public const string ONLINE = "\ue2bf";
///
/// 网络联机状态
///
public const string OFFLINE = "\ue2c1";
#region 字体
///
/// 超级巨无霸字体
///
public static Font SUBURBAN_FONT_BIG = new Font("宋体", 42F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
///
/// 巨无霸字体
///
public static Font SUBURBAN_FONT = new Font("宋体", 35F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
///
/// 超大字体
///
public static Font BEST_BIG_FONT = new Font("宋体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
///
/// 大字体
///
public static Font BIG_FONT = new Font("宋体", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
///
/// 正常字体
///
public static Font NORMAL_FONT = new Font("宋体", 14.25F, 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)));
#endregion
///
/// 开放平台错误代码
///
public const string ERROR_TOKEN = "@@$-ERROR_TOKEN$-@@";
///
/// 开放平台返回结果是否成功
///
///
///
public static bool IsSuccessful(string content)
{
if (content == null)
{
return false;
}
else
{
return !(content.Contains(ERROR_TOKEN));
}
}
}
}