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