/*******************************************************************************
* Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
* 类的信息:
* 1.程序名称:Constant.cs
* 2.功能描述:系统常量
* 编辑履历:
* 作者 日期 版本 修改内容
* 欧阳涛 2012/06/07 1.00 新建
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace Dongke.IBOSS.PRD.Basics.BaseResources
{
///
///
///
public static class Constant
{
#region 系统常量
#region 主画面
///
/// 系统的系统名称
///
public const string M_SYSTEM_NAME = "iBOSS.MES";
///
/// 系统的系统中文名称
///
public const string M_SYSTEM_CHINESE_NAME = "东科卫生陶瓷制造执行系统";
///
/// 产品系列中文名称
///
public const string M_SYSTEM_CHINESE_SERIES = "标准版";
///
/// 状态栏当前用户的用户信息
///
public const string M_CURRENT_USER_TEXT = "工号:{0}({1})";
///
/// 状态栏当前用户的执行信息就绪
///
public const string M_NETWORK_CONNECT_TEXT = "就绪";
///
/// 状态栏当前用户的执行信息服务器断开
///
public const string M_NETWORK_DISCONNECT_TEXT = "服务器断开";
///
/// 状态栏当前用户的帐套信息
///
public const string M_CURRENT_ACCOUNT_TEXT = "账套:({0}){1}";
///
/// 状态栏当前账务日期
///
public const string M_CURRENT_ACCOUNT_DATE_TEXT = "账务日期:{0}";
///
/// 心跳程序的时间间隔(毫秒)-2分钟
///
public const int M_SYSTEM_HEARTBEAT_INTERVAL = 120 * 1000;
#endregion 主画面
#region 设置
///
/// 重新启动的程序名称
///
public const string S_SYSTEM_CLIENT_NAME = "IBOSSPRD.exe";
///
/// 用户初始化密码
///
public const string S_PASSWORD_DEFAULT = "dongke";
///
/// 加密密钥
///
public const string S_ENCRYPTION_KEY = "DongkeIbossprd";
///
/// 消息头名
///
public const string S_WCF_MESSAGE_HEADER_NAME = "LoginUserInfo";
///
/// 消息头命名空间
///
public const string S_WCF_MESSAGE_HEADER_NAMESPACE = "http://www.dongkesoft.com";
///
/// 3位编码每级的最大值(组织机构)
///
public const int S_CODE_LEVEL_MAXCODE = 999;
///
/// 编码最大级数(组织机构)
///
public const int S_CODE_MAXLEVEL = 7;
///
/// 显示顺序最大值
///
public const int S_DISPLAYNO_MAX = 999;
///
/// 日期格式(YYYY-MM-DD)
///
public const string S_DATE_YYYY_MM_DD = "yyyy-MM-dd";
#endregion 设置
#region INI
///
/// 系统登录配置文件名
///
public const string INI_FILE_NAME = "iBossPrdConfig.ini";
///
/// 配置文件业务配置的域名
///
public const string INI_SECTION_NET = "NetworkAddress";
///
/// IP地址节点的KEY
///
public const string INI_KEY_IP = "IP";
///
/// 端口节点的KEY
///
public const string INI_KEY_PORT = "Port";
///
/// 当前登录用户配置
///
public const string INI_SECTION_SETTINGS = "UserSetting";
///
/// 当前登录帐套
///
public const string INI_KEY_ACCOUNT_CODE = "AccountCode";
///
/// 当前登录用户名称
///
public const string INI_KEY_USER_CODE = "UserCode";
///
/// 当前窑炉编码
///
public const string INI_KEY_KILN_CODE = "KilnCode";
#endregion INI
#region 正则表达式
///
/// 车牌号格式
///
public const string REGEX_PLATENUMBER_STRING = @"^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$";
///
/// 网址证格式
///
public const string REGEX_HTTP_STRING = @"^[a-zA-Z]+://(\w+(-\w+)*)(\.(\w+(-\w+)*))*(\?\s*)?$";
///
/// 车架号格式
///
public const string REGEX_VEHICLENUM_STRING = @"^L[A-HJ-NR-Z0-9P]{16}$";
///
/// IP地址验证
///
public const string REGEX_IP_STRING = @"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])"
+ @"\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)"
+ @"\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)"
+ @"\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$";
///
/// 端口验证
///
public const string REGEX_PORT_STRING = @"/^[1-9]$|(^[1-9][0-9]$)|(^[1-9][0-9][0-9]$)|(^[1-9][0-9][0-9][0-9]$)"
+ @"|(^[1-6][0-5][0-5][0-3][0-5]$)/";
#endregion
#region 系统定义上传图片、文档过滤器及大小
///
/// 图片的过滤格式
///
public const string FILTER_PIC = "JPEG(*jpg)|*.jpg;*.jpeg"
+ "|位图(*.bmp)|*.bmp"
+ "|GIF(*.gif)|*.gif"
+ "|PNG(*.png)|*.png";
///
/// 文档的过滤格式
///
public const string FILTER_DOC = "Word(*.doc/*.docx)|*.doc;*.docx"
+ "|Excel(*.xls/*.xlsx)|*.xls;*.xlsx"
+ "|PDF(*.pdf)|*.pdf";
///
/// 图片的最大字节数,即1M
///
public const int UPLOAD_PIC_MAX_SIZE = 1024000;
#endregion
#region 其他
///
/// ComBox 选择项目 的全部值 -99
///
public const int CBO_SELECT_ALL_VALUE = -99;
///
/// ComBox 选择项目 的全部内容 全部
///
public const string CBO_SELECT_ALL_NAME = "全部";
///
/// ComBox 选择项目 的 null 内容 ' '
///
public const string CBO_SELECT_EMPTY_NAME = " ";
///
/// 键盘 回车 按键编码 13
///
public const int SYSTEM_KEYBOARD_ENTER_VALUE = 13;
///
/// 员工报餐模板名称
///
public const string HR_STAFF_DAILYMEAL_TEMPLET = "员工报餐模板.rar";
///
/// 员工考勤模板名称
///
public const string HR_STAFF_ATTENDANCE_TEMPLET = "员工考勤模板.xlsx";
///
/// 员工资料导入模板名称
///
public const string HR_STAFF_INFO_TEMPLET = "员工资料模板.xlsx";
///
/// 员工离职导入模板名称
///
public const string HR_STAFF_DIMISSION_TEMPLET = "员工离职模板.xlsx";
///
/// 模块名称
///
public static string SYSTEM_MODULE_PM = "PM";
///
/// 缺陷图片格式
///
public static string SYSTEM_IMAGE_FORMAT = ".jpg";
///
/// 上传文件的临时文件夹
///
public static string SYSTEM_TEMP_PATH = "TempFile";
///
/// 除数是0(#DIV/0!)
///
public const string DIV0 = "#DIV/0!";
#endregion 其他
#endregion 系统常量
#region 枚举
#region 系统表
///
/// 条码状态
///
public enum BarcodeStatus
{
///
/// 未使用
///
Unused = 0,
///
/// 注浆
///
Grouting = 1,
///
/// 在产
///
InProduction = 2,
///
/// 成品
///
FinishedProduct = 3,
///
/// 废弃
///
ScrapProduct = 4,
///
/// 废弃待审
///
ScrapPending = 5,
///
/// 更换条码
///
Replaced = 6,
}
///
/// 审核状态
///
public enum AuditStatus
{
///
/// 0:待审核
///
Pending = 0,
///
/// 1:审核通过
///
Agree = 1,
///
/// 2:审核未通过
///
Disagree = 2,
}
///
/// 审批状态
///
public enum ApprovalStatus
{
///
/// 0:待审批
///
Pending = 0,
///
/// 1:审批中
///
Doing = 1,
///
/// 2:审批未通过
///
Disagree = 2,
///
/// 3:审批通过
///
Agree = 3,
///
/// 4:确定
///
Determine = 4,
///
/// 5:未完成
///
Unfinished = 5,
///
/// 6:完成(销)
///
Finish = 6,
///
/// 7:完成
///
Complete = 7,
///
/// 8:冲正待审批
///
OffsetPending = 8,
///
/// 9:冲正审批中
///
OffsetDoing = 9,
///
/// 10:冲正
///
Offset = 10,
///
/// 11:被冲正
///
BeOffset = 11,
///
/// 99:草稿
///
Draft = 99,
}
///
/// 员工状态
///
public enum StaffStatus
{
///
/// 0:未入职
///
NoEntry = 0,
///
/// 1:试用
///
Trial = 1,
///
/// 2:正式员工
///
Employees = 2,
///
/// 3:离职
///
Departure = 3,
}
///
/// 员工履历状态
///
public enum StaffRecordType
{
///
/// 1:入职
///
Entry = 1,
///
/// 2:转正
///
Positive = 2,
///
/// 3:工种调整
///
AdjustJob = 3,
///
/// 4:职务调整
///
AdjustPost = 4,
///
/// 5:部门调整
///
AdjustOrganization = 5,
///
/// 6:离职
///
Departure = 6,
}
///
/// 范围权限类型
///
public enum PurviewType
{
///
/// 1:查看业务部门范围权限
///
ViewOrganization = 1,
///
/// 2:操作业务部门范围权限
///
OperateOrganization = 2,
///
/// 3:查看工号范围权限
///
ViewUser = 3,
///
/// 4:操作工号范围权限
///
OperateUser = 4,
///
/// 5:查看成型生产线范围权限
///
ViewGroutingLine = 5,
///
/// 6:操作成型生产线范围权限
///
OperateGroutingLine = 6,
///
/// 7:查看生产线范围权限
///
ViewProductionLine = 7,
///
/// 8:操作生产线范围权限
///
OperateProductionLine = 8,
///
/// 9:查看工序范围权限
///
ViewProcedure = 9,
///
/// 10:操作工序范围权限
///
OperateProcedure = 10,
///
/// 11:查看温湿计范围权限
///
ViewCelsius = 11,
///
/// 12:操作温湿计范围权限
///
OperateCelsius = 12,
}
///
/// 工序模型类别
///
public enum ProcedureModelType
{
///
/// -3 半检质量统计 xuwei add 2019-12-12
///
SemiQualityStatistics = -3,
///
/// -1:质量统计
///
QualityStatistics = -1,
///
/// -2:入窑前检验
///
IntoKilnCheck = -2,
///
/// 0:标准计件
///
Normal = 0,
///
/// 1:装窑车
///
LoadCar = 1,
///
/// 2:入窑
///
IntoKiln = 2,
///
/// 3:出窑
///
OutKiln = 3,
///
/// 4:卸窑车
///
UnloadCar = 4,
///
/// 5:交坯
///
DeliverMud = 5,
///
/// 6:窑车补件
///
CarAdd = 6,
///
/// 7:坯库(废弃)
///
AdobeStock = 7,
///
/// 8:干补
///
SpecialRepair = 8,
///
/// 9:回收
///
Recovery = 9,
}
///
/// 注浆模具状态
///
public enum GMouldStatus
{
///
/// 0:停用
///
Disable = 0,
///
/// 1:正常
///
Normal = 1,
///
/// 2:维修中
///
Repair = 2,
///
/// 3:换模中
///
Replac = 3,
///
/// 4:变产中
///
Update = 4,
///
/// 5:已变产
///
EndUpdated = 5,
}
///
/// 模具履历类型
///
public enum GMouldRecordType
{
///
/// 0:停用
///
Disable = 0,
///
/// 1:维修
///
Repair = 1,
///
/// 2:维修转换模
///
RepairToReplac = 2,
///
/// 3:换模
///
Replac = 3,
///
/// 4:整线换模
///
AllReplac = 4,
///
/// 5:变产
///
Update = 5,
}
///
/// 产品分级类别
///
public enum GoodsLevelType
{
///
/// 1:无缺陷
///
NoDefects = 1,
///
/// 2:有缺陷
///
Defect = 2,
///
/// 3:废品
///
Waste = 3,
///
/// 4:正品
///
Quality = 4,
///
/// 5:副品
///
Substandard = 5,
///
/// 6:重烧
///
ReFire = 6,
///
/// 7:次品
///
Reject = 7,
///
/// 8:损坯
///
Damage = 8,
///
/// 9:干补
///
SpecialRepair = 9,
///
/// 10:丢失
///
LostGoods = 10
}
#endregion 系统表
#region 标识
#region 系统
///
/// 功能标识
///
public enum FunctionFlag
{
///
/// 0:功能分类
///
None = 0,
///
/// 1:画面功能
///
Form = 1,
///
/// 2:按钮功能
///
Button = 2,
}
///
/// 窗体状态
///
public enum FormMode
{
///
/// 0:显示(查看、审核、审批等)
///
Display = 0,
///
/// 1:新建
///
Add = 1,
///
/// 2:编辑
///
Edit = 2,
///
/// 3:有限制的编辑
///
LimitEdit = 3,
///
/// 4:复制并新建
///
CopyAndAdd = 4,
}
///
/// 数据标识
///
public enum ValueFlag
{
///
/// 0:无效的(停用)
///
Invalid = 0,
///
/// 1:有效的(正常)
///
Effective = 1,
}
///
/// 结算标识
///
public enum SettlementFlag
{
///
/// 0:未结算
///
NotSettled = 0,
///
/// 1:已结算
///
Settled = 1,
}
///
/// 系统日期类型
///
public enum SystemDateType
{
///
/// 1:系统账务日期
///
AccountDate = 1,
///
/// 2:工资结算日期
///
WageSettlementDate = 2,
///
/// 3:系统上线日期
///
OnlineDate = 3,
///
/// 5:工资结算月
///
WageSettlementMonth = 5,
}
///
/// 系统参数类型
///
public enum SettingType
{
///
/// 密码尝试次数
///
S_LGN_0001,
///
/// 用户锁定时长
///
S_LGN_0002,
///
/// 启用MAC地址认证
///
S_LGN_0003,
///
/// 登录时段限制
///
S_LGN_0004,
///
/// 默认用户密码
///
S_CMN_0001,
///
/// 年度开始月份
///
S_CMN_0002,
///
/// 结算账务日期
///
S_CMN_0003,
///
/// 账务时间
///
S_CMN_0004,
///
/// 未交坯自动报损限制天数
///
S_PM_001,
///
/// 交坯限制天数
///
S_PM_002,
///
/// 交坯撤销限制天数
///
S_PM_003,
///
/// 计件撤销限制天数
///
S_PM_004,
///
/// 成品撤销限制天数
///
S_PM_005,
///
/// 损坯撤销限制天数
///
S_PM_006,
///
/// 半检登记改判限制天数
///
S_PM_007,
///
/// 半检复检撤销限制天数
///
S_PM_008,
///
/// 成检登记改判限制天数
///
S_PM_009,
///
/// 成型模具默认选项(0:自动编号 1:模具条码)
///
S_PC_001,
}
///
/// 数据字典类型
///
public enum DictionaryType
{
///
/// 釉料类别
///
TPC002,
///
/// 未注浆原因
///
TPC004,
///
/// 缺陷扣罚
///
ASE002
}
///
/// 系统缓存表
///
public enum SysCacheTable
{
///
/// 性别
///
TP_SYS_Gender,
///
/// 婚姻状况
///
TP_SYS_MaritalStatus,
///
/// 民族
///
TP_SYS_National,
///
/// 学历
///
TP_SYS_Educational,
///
/// 模具状态
///
TP_SYS_GMouldStatus,
///
/// 工序模型类别
///
TP_SYS_ProcedureModelType,
///
/// 审核状态
///
TP_SYS_AuditStatus,
///
/// 员工状态
///
TP_SYS_StaffStatus
}
#endregion 系统
#region 生产管理
///
/// 工序节点类型
///
public enum ProcedureNodeType
{
///
/// 1:开始工序
///
Begin = 1,
///
/// 2:中间工序
///
Middle = 2,
///
/// 3:结束工序
///
End = 3
}
///
/// 必须工序标识
///
public enum ProcedureMustFlag
{
/////
///// 0:非必须
/////
//No = 0,
///
/// 1:必须
///
Yes = 1,
///
/// 2:非必须(废弃)
/// ///
NonMust = 2,
}
///
/// 工序模型
///
public enum ProcedureModel
{
///
/// 1:计件模型
///
Piece = 1,
///
/// 2:检验模型
///
Test = 2,
}
///
/// 工序流向标识
///
public enum FlowFlag
{
///
/// 1:前工序(能到达此工序的工序)
///
Previous = 1,
///
/// 2:后工序(此工序能到达的工序)
///
Next = 2,
}
///
/// 特殊返工工序
///
public enum SpecialReworkFlag
{
///
/// 0:否
///
No = 0,
///
/// 1:是(重烧)
///
Yes = 1,
}
///
/// 采集模式
///
public enum ProcedureCollectType
{
///
/// 1:集中采集
///
Togather = 1,
///
/// 2:单点采集
///
SinglePoint = 2,
}
///
/// 计件模式
///
public enum ProcedurePieceType
{
///
/// 0:不计件
///
NoPiece = 0,
///
/// 1:同工种策略
///
JobsPiece = 1,
}
///
/// 公坯标识
///
public enum PublicBodyFlag
{
///
/// 0:正常
///
No = 0,
///
/// 1:公坯
///
Yes = 1,
}
///
/// 多次注浆标识
///
public enum ManyTimesFlag
{
///
/// 0:不可以
///
Cannot = 0,
///
/// 1:可以
///
Can = 1,
}
///
/// 注浆标识
///
public enum GroutingFlag
{
///
/// 0:否
///
No = 0,
///
/// 1:是
///
Yes = 1,
}
///
/// 注浆损坯标识
///
public enum GroutingScrapFlag
{
///
/// 0:否
///
No = 0,
///
/// 1:是
///
Yes = 1,
}
///
/// 缺陷标识
///
public enum DefectFlag
{
///
/// 0:没有缺陷
///
No = 0,
///
/// 1:有缺陷
///
Yes = 1,
}
///
/// 重烧标识
///
public enum ReFireFlag
{
///
/// 0:非重烧
///
No = 0,
///
/// 6:重烧
///
Yes = 6,
}
///
/// 产品废弃责任类型
///
public enum ScrapResponType
{
///
/// 1:无责任人
///
NoPerson = 1,
///
/// 2:直接责任人
///
Person = 2,
///
/// 3:责任工序
///
Procedure = 3,
}
///
/// 生产工号
///
public enum WorkerNoFlag
{
///
/// 非生产工号
///
No = 0,
///
/// 生产工号
///
Yes = 1,
}
///
/// 盘点标识
///
public enum InCheckedFlag
{
///
/// 0:未盘点
///
InCheckedNo = 0,
///
/// 1:己盘点
///
InCheckeded = 1,
///
/// 2:盘盈
///
InCheckedWin = 2,
///
/// 3:盘亏报损
///
Loss = 3,
}
#endregion 生产管理
///
/// 模具状态
///
public enum MouldStatus
{
///
/// 0 新建时作为前置状态
///
Add = 0,
///
/// 1 在库
///
Inv = 1,
///
/// 2 在产
///
OnLine = 2,
///
/// 3 待产
///
Out = 3,
///
/// 4 报废
///
Scrap = 4,
}
///
/// 模具操作类别
///
public enum MouldOperationType
{
///
/// 1 模具新增(入库)
///
ToInv = 1,
///
/// 2 在库报损(出库)
///
InvToScrap = 2,
///
/// 3 报废撤销(入库))
///
ScrapToInv = 3,
///
/// 4 模具领用(出库)
///
InvToOut = 4,
///
/// 5 模具回收(入库)
///
OutToInv = 5,
///
/// 6 库存上线(出库)
///
InvToOnLine = 6,
///
/// 7 在产回库(入库)
///
OnLineToInv = 7,
///
/// 8 在产下线
///
OnLineToOut = 8,
///
/// 9 在产报损
///
OnLineToScrap = 9,
///
/// 10 待产上线
///
OutToOnLine = 10,
///
/// 11 待产报损
///
OutToScrap = 11,
///
/// -1 变更型号
///
ChangeGoodsCode = -1,
///
/// -2 条码替换
///
ChangeBarcode = -2,
///
/// -3 维修开始
///
RepairBegin = -3,
///
/// -4 维修结束
///
RepairEnd = -4,
}
#endregion 标识
#endregion 枚举
#region 系统登录验证常量 todo enum
///
/// 登录返回状态
///
public enum LoginResultType
{
///
/// 登录认证成功
///
Success = 0,
///
/// 帐套不存在
///
AccountNotExist = 1,
///
/// 用户不存在
///
UserNotExist = 2,
/////
///// 密码错误
/////
//public const int LOGIN_PASSORD_ERROR = 3;
/////
///// MAC地址错误
/////
//public const int LOGIN_MAC_ERROR = 4;
/////
///// 登录时间段错误
/////
//public const int LOGIN_DATETIME_ERROR = 5;
/////
///// 用户为停用用户
/////
//public const int LOGIN_USER_DISABLE = 6;
/////
///// 用户被锁死
/////
//public const int LOGIN_USER_IS_LOCK = 7;
/////
///// 8:此用户不能在移动端登录
/////
//public const int LOGIN_USER_NOT_IN_SMART = 8;
/////
///// 9:此用户不能在PC端登录
/////
//public const int LOGIN_USER_NOT_IN_PC = 9;
/////
///// 10:服务器日期错误
/////
//public const int LOGIN_USER_SYSTEMDATE_ERROR = 10;
/////
///// 没有找到加密锁
/////
//public const int LOGIN_NOT_ENCRYPTION_LOCK = 11;
/////
///// 加密锁不是东科的加密锁
/////
//public const int LOGIN_NOT_DONGKE_ENCRYPTION_LOCK = 12;
/////
///// 读取锁内客户编码内容失败
/////
//public const int LOGIN_ENCRYPTION_LOCK_CUSTOMER_ERROR = 13;
/////
///// 没有找到license文件
/////
//public const int LOGIN_NOT_LICENSE = 21;
/////
///// license文件损坏
/////
//public const int LOGIN_LICENSE_ERROR = 22;
/////
///// license文件内容不正确
/////
//public const int LOGIN_LICENSE_CONTENT_ERROR = 23;
/////
///// 加密锁的内容和license文件的内容不相符
/////
//public const int LOGIN_LICENSE_ENCRYPTION_LOCK_ERROR = 31;
/////
///// 临时的License已经过期
/////
//public const int LOGIN_LICENSE_BE_OVERDUE = 32;
/////
///// 打开客户端加密锁失败
/////
//public const int LOGIN_CLENT_ENCRYPTION_LOCK_ERROR = 41;
/////
///// 没有找到客户端加密锁
/////
//public const int LOGIN_CLENT_NOT_ENCRYPTION_LOCK = 42;
/////
///// 客户端加密锁不是东科的加密锁
/////
//public const int LOGIN_CLENT_NOT_DONGKE_ENCRYPTION_LOCK = 43;
/////
///// 读取加密锁信息失败(硬件损坏、管理密码错误等)
/////
//public const int LOGIN_CLENT_ENCRYPTION_LOCK_DAMAGE = 44;
/////
///// 客户端加密锁的内容和license内容不一致
/////
//public const int LOGIN_CLENT_LICENSE_ENCRYPTION_LOCK_ERROR = 45;
}
///
/// 登录认证成功
///
public const int LOGIN_IS_SUCCESS = 0;
///
/// 帐套不存在
///
public const int LOGIN_ACCOUNT_NOT_EXIST = 1;
///
/// 用户不存在
///
public const int LOGIN_USER_NOT_EXIST = 2;
///
/// 密码错误
///
public const int LOGIN_PASSORD_ERROR = 3;
///
/// MAC地址错误
///
public const int LOGIN_MAC_ERROR = 4;
///
/// 登录时间段错误
///
public const int LOGIN_DATETIME_ERROR = 5;
///
/// 用户为停用用户
///
public const int LOGIN_USER_DISABLE = 6;
///
/// 用户被锁死
///
public const int LOGIN_USER_IS_LOCK = 7;
///
/// 8:此用户不能在移动端登录
///
public const int LOGIN_USER_NOT_IN_SMART = 8;
///
/// 9:此用户不能在PC端登录
///
public const int LOGIN_USER_NOT_IN_PC = 9;
///
/// 10:服务器日期错误
///
public const int LOGIN_USER_SYSTEMDATE_ERROR = 10;
///
/// 没有找到加密锁
///
public const int LOGIN_NOT_ENCRYPTION_LOCK = 11;
///
/// 加密锁不是东科的加密锁
///
public const int LOGIN_NOT_DONGKE_ENCRYPTION_LOCK = 12;
///
/// 读取锁内客户编码内容失败
///
public const int LOGIN_ENCRYPTION_LOCK_CUSTOMER_ERROR = 13;
///
/// 没有找到license文件
///
public const int LOGIN_NOT_LICENSE = 21;
///
/// license文件损坏
///
public const int LOGIN_LICENSE_ERROR = 22;
///
/// license文件内容不正确
///
public const int LOGIN_LICENSE_CONTENT_ERROR = 23;
///
/// 加密锁的内容和license文件的内容不相符
///
public const int LOGIN_LICENSE_ENCRYPTION_LOCK_ERROR = 31;
///
/// 临时的License已经过期
///
public const int LOGIN_LICENSE_BE_OVERDUE = 32;
///
/// 打开客户端加密锁失败
///
public const int LOGIN_CLENT_ENCRYPTION_LOCK_ERROR = 41;
///
/// 没有找到客户端加密锁
///
public const int LOGIN_CLENT_NOT_ENCRYPTION_LOCK = 42;
///
/// 客户端加密锁不是东科的加密锁
///
public const int LOGIN_CLENT_NOT_DONGKE_ENCRYPTION_LOCK = 43;
///
/// 读取加密锁信息失败(硬件损坏、管理密码错误等)
///
public const int LOGIN_CLENT_ENCRYPTION_LOCK_DAMAGE = 44;
///
/// 客户端加密锁的内容和license内容不一致
///
public const int LOGIN_CLENT_LICENSE_ENCRYPTION_LOCK_ERROR = 45;
#endregion
#region PDA服务端常量 todo enum
#region 枚举
///
/// 服务端处理PDA请求结果
///
public enum PDAResult
{
///
/// 成功
///
Success = 0,
///
/// 失败
///
Fail = 999,
///
/// 用户验证信息错误
///
LoginInfoError = -1,
///
/// 用户在其它终端登陆
///
RepeatLogin = -2,
///
/// 服务器日期错误
///
SystemDateError = -3,
///
/// Lic错误
///
LicInfoError = -4,
///
/// 服务器异常
///
Exception = -999,
}
#endregion
#region MyRegion
///
/// 用户验证信息错误
///
public static string PDA_RESULT_LOGININFOERROR = "用户验证信息错误";
///
/// 用户在其它终端登陆
///
public static string PDA_RESULT_REPEATLOGIN = "用户在其它终端登陆";
///
/// 服务器日期错误
///
public static string PDA_RESULT_SYSTEMDATEERROR = "服务器日期被修改(小于系统账务日期),不允许登录本系统";
///
/// 服务器异常,请联系管理员
///
public static string PDA_RESULT_EXCEPTION = "服务器异常,请联系管理员";
///
/// 服务器繁忙,请重试
///
public static string PDA_RESULT_UNKNOWN_ERR = "服务器繁忙,请重试";
///
/// 不允许编辑当前成检
///
public static string PDA_RESULT_ALLOW_ERR = "不允许编辑当前成检";
#endregion
#endregion
#region 字典表类型常量 todo enum
///
/// 生产配置-窑炉类型 窑炉基本资料
///
public static string TPC_TPC001 = "TPC001";
///
/// 生产配置-釉料类别 产品釉料类别
///
public static string TPC_TPC002 = "TPC002";
///
/// 生产配置-窑车位置 产品在窑车上的摆放位置
///
public static string TPC_TPC003 = "TPC003";
///
/// 生产配置-未注浆原因 注浆日报明细中模具未注浆的原因
///
public static string TPC_TPC004 = "TPC004";
///
/// 策略管理-行政考核类别
///
public static string ASE_ASE001 = "ASE001";
#endregion
#region 数据状态 todo
///
/// 数据状态的枚举-有效
///
public static string VALUEFLAG_EFFECTIVE = "有效";
///
/// 数据状态的枚举-停用
///
public static string VALUEFLAG_DISABLE = "停用";
///
/// 数据状态的枚举-锁定
///
public static string VALUEFLAG_LOCK = "锁定";
///
/// 数据状态的枚举-有缺陷
///
public static string DEFECTFLAG_YES = "有缺陷";
///
/// 数据状态的枚举-无缺陷
///
public static string DEFECTFLAG_NO = "无缺陷";
#endregion
#region 生产管理 todo
#region 工序模型常量名称
///
/// 标准计件
///
public const string PROCEDURE_NORMAL = "标准计件";
///
/// 装窑车
///
public const string PROCEDURE_LOADCAR = "装窑车";
///
/// 入窑
///
public const string PROCEDURE_INTOKILN = "入窑";
///
/// 出窑
///
public const string PROCEDURE_OUTKILN = "出窑";
///
/// 卸窑车
///
public const string PROCEDURE_UNLOADCAR = "卸窑车";
///
/// 交坯
///
public const string PROCEDURE_DELIVERADOBE = "交坯";
///
/// 窑车补件
///
public const string PROCEDURE_CARADD = "窑车补件";
///
/// 坯库
///
public const string PROCEDURE_ADOBESTOCK = "坯库";
///
/// 质量统计
///
public const string PROCEDURE_QUALITYSTATISTICS = "质量统计";
///
/// 入窑前检验
///
public const string PROCEDURE_INTOKILNCHECK = "入窑前检验";
#endregion
///
/// 产品分级
///
public enum GoodsGrade
{
///
/// 1:正品
///
Good = 1,
///
/// 0:副品
///
Bad = 0,
///
/// 2:次品
///
Substandard = 2,
///
/// 3:重烧
///
ReFire = 3,
}
#region 产品分级
///
/// 产品等级-正品
///
public const string GOODSGRADE_GOOD = "正品";
///
/// 产品等级-副品
///
public const string GOODSGRADE_BAD = "副品";
///
/// 产品等级-次品
///
public const string GOODSGRADE_SUBSTANDARD = "次品";
///
/// 产品等级-重烧
///
public const string GOODSGRADE_REFIRE = "重烧";
#endregion
///
/// 计件/检验时返回的信息字段名称
///
public enum BarCodeResultTableColumns
{
///
/// 返回错误消息
///
out_errMsg,
///
/// 条码对应的产品ID
///
out_goodsID,
///
/// 条码对应的产品Code
///
out_goodsCode,
///
/// 条码对应的产品Name
///
out_goodsName,
///
/// 条码的注浆者ID
///
out_groutingUserID,
///
/// 条码的注浆者Code
///
out_groutingUserCode,
///
/// 条码的注浆者Name
///
out_groutingUserName,
///
/// 条码的注浆次数
///
out_groutingNum,
///
/// 模具编号
///
out_mouldCode,
///
/// 公坯标识
///
out_ispublicbody,
///
/// 公坯标识(次品)
///
out_ispublicbodyTrach,
///
/// 注浆日期
///
out_groutingdate,
///
/// 干补标识
///
out_specialRepairFlag,
///
/// 重烧标识
///
out_isReFire,
///
/// 漏扫标识
///
out_missFlag,
///
/// 商标ID
///
out_logoID,
///
/// 商标编码
///
out_logoCode,
///
/// 商标名称
///
out_logoName,
///
/// 商品限制天数
///
out_deliverLimitCycle,
///
/// 产品条码
///
out_barcode,
///
/// 水效标识码
///
out_WaterLabelCode,
///
/// 编码检验标识
///
out_CodeCheckFlag,
}
///
/// 构建 校验窑车号时返回的信息
///
public enum KilnCarResultTableColumns
{
///
/// 返回错误消息
///
out_errMsg,
///
/// 窑车ID
///
out_kilnCarID,
///
/// 窑车Name
///
out_kilnCarName,
///
/// 窑炉ID
///
out_kilnID,
///
/// 窑炉Code
///
out_kilnCode,
///
/// 窑炉Name
///
out_kilnName,
}
///
/// 成型线明细更新模式枚举
///
public enum GroutingLineDetailUpdateMode
{
///
/// 履历前置插入
///
Preposition,
///
/// 履历后置插入
///
Postposition
}
///
/// 成型线明细更新模式
///
public const GroutingLineDetailUpdateMode NowUpdateMode = GroutingLineDetailUpdateMode.Preposition;
///
/// 废弃类型(废弃)
///
public enum ScrapType
{
///
/// 0:损坯(直接报损)
///
BreakDown = 0,
///
/// 1:废品(半成品检验报损)
///
Waste = 1,
///
/// 2:次品(成品检验报损)
///
Substandard = 2,
///
/// 质量登记
///
Quality = 1,
///
/// 半检
///
Check = 2,
///
/// 半检复检
///
ReCheck = 3,
}
#region 废弃类型
///
/// 废弃类型 - 损坯
///
public static string SCRAPTYPE_BREAKDOWN = "损坯";
///
/// 废弃类型 - 废品
///
public static string SCRAPTYPE_WASTE = "废品";
///
/// 废弃类型 - 次品
///
public static string SCRAPTYPE_SUBSTANDARD = "次品";
///
/// 废弃类型 - 不合格
///
public static string SCRAPTYPE_NOPASS = "不合格";
///
/// 废弃类型 - 不合格返
///
public static string SCRAPTYPE_NOPASSREWORK = "不合格(返)";
#endregion
#endregion
#region 成型线 todo
///
/// 成型线状态
///
public static string[,] ConGMouldStatus = new string[,] { { "1", "正常" }, { "3", "换模中" }, { "4", "变产中" }, { "5", "己变产" } };
///
/// 成型线状态数量
///
public const int ConGMouldStatusCount = 4;
#endregion
#region 策略管理 todo
///
/// 服务返回状态(试用版)
///
public enum ServiceResultStatus
{
///
/// 1:其他业务标识
///
Other = 1,
///
/// 0:操作成功
///
Success = 0,
///
/// -1:验证失败
///
ValidationFailed = -1,
///
/// -2:此用户没有登录
///
UserNotLogin = -2,
///
/// -3:此用户已在其他客户端登录
///
UserOtherLogin = -3,
///
/// -4:系统账务日期错误
///
AccountDateError = -4,
///
/// -100:没有查询结果
///
NoSearchResults = -100,
///
/// -101:没有更新任何数据
///
NoModifyData = -101,
///
/// -102:数据已被其他用户更改
///
DataChanged = -102,
///
/// -103:有重复数据,更新失败
///
DataDuplicated = -103,
///
/// -800:License中无此模块权限
///
NoLicensesRight = -800,
///
/// -801:此用户无此操作权限
///
NoFunRight = -801,
///
/// -999:系统异常
///
SystemError = -999,
}
///
/// 策略类型
///
public enum SalaryType
{
///
/// 0:试用期员工策略
///
Ceremonial = 0,
///
/// 1:正式员工策略
///
Trial = 1
}
public static string[] SalaryTypeName = new string[] { "试用期员工策略", "正式员工策略" };
///
/// 扣罚类型
///
public enum FineType
{
///
/// 1:按工价系数扣罚
///
Coefficient = 1,
///
/// 2:按金额扣罚
///
Money = 2
}
public static string[] FineTypeName = new string[] { "按工价系数扣罚", "按金额扣罚" };
///
/// 管理岗位工资类型
///
public enum ManagerSalaryType
{
///
/// 1:平均
///
Average = 1,
///
/// 2:最高
///
Max = 2,
///
/// 3: 最低
///
Min = 3
}
public static string[] ManagerSalaryTypeName = new string[] { "平均工资", "最高工资", "最低工资" };
#endregion
#region todo localPath
// todo 放到 localPath中
///
/// 模板文件相对目录地址
///
public static string SYSTEM_TEMPLET_FILE_PATH = "Templet"; //modify wangx AppDomain.CurrentDomain.BaseDirectory +
///
/// 图片文件相对目录地址
///
public static string SYSTEM_IMAGE_PATH
{
get
{
try
{
return INIUtility.Instance(INIUtility.IniFile.Config).ReadIniData("PathSetting", "UpFilesPath");
//return System.Configuration.ConfigurationManager.AppSettings["UpFilesPath"].Trim();
}
catch
{
return "";
}
}
}//DefectImage
public static string SYSTEM_FILE_PATH
{
get
{
try
{
return System.Configuration.ConfigurationManager.AppSettings["UpFilesPath"].Trim();
}
catch
{
return "";
}
}
}
#endregion
#region todo0
#region INT类型常量
///
/// 当int型为0时
///
public const int INT_IS_ZERO = 0;
///
/// 表示int当前为1
///
public const int INT_IS_ONE = 1;
///
/// 表示int当前为2
///
public const int INT_IS_TWO = 2;
///
/// 表示int当前为3
///
public const int INT_IS_THREE = 3;
///
/// 表示int当前为4
///
public const int INT_IS_FOUR = 4;
///
/// 表示int当前为5
///
public const int INT_IS_FIVE = 5;
///
/// 表示int当前为6
///
public const int INT_IS_SIX = 6;
///
/// 表示int当前为7
///
public const int INT_IS_SEVEN = 7;
///
/// 表示int当前为8
///
public const int INT_IS_EIGHT = 8;
///
/// 表示int当前为11
///
public const int INT_IS_ELEVEN = 11;
///
/// 表示int当前为100
///
public const int INT_IS_HUNDRED = 100;
///
/// 表示int当前为-1
///
public const int INT_IS_NEGATIE_ONE = -1;
///
/// 表示int当前为-2
///
public const int INT_IS_NEGATIE_TWO = -2;
///
/// 表示int当前为-3
///
public const int INT_IS_NEGATIE_THREE = -3;
///
/// 表示int当前为-4
///
public const int INT_IS_NEGATIE_FOUR = -4;
///
/// 表示int当前为-5
///
public const int INT_IS_NEGATIE_FIVE = -5;
///
/// 表示int当前为-6
///
public const int INT_IS_NEGATIE_SIX = -6;
#endregion
#region 基础数据模块常量
// todo emun
///
/// 保存时存在重复的数据,不允许保存
///
public const int RETURN_IS_EXIST = -3;
///
/// 账务时间不合法,不允许修改
///
public const int RETURN_IS_ERRORACCOUNTTIME = -4;
///
/// 子级中存在有效数据
///
public const int RETURN_IS_HAVEVALIDCHILD = -5;
///
/// 操作的数据已经发生了变化
///
public const int RETURN_IS_DATACHANGED = -7;
///
/// 操作数据不合法
///
public const int RETURN_IS_DATAISNOTVALID = -8;
///
/// 当前数据状态不符合操作条件
///
public const int RETURN_IS_ENABLETOOPERATE = -53;
#endregion
#region 操作按钮动作
///
/// 操作按钮动作-保存
///
public const string OPERATE_SAVE = "保存";
#endregion
#region 普通按钮文本常量
///
/// 查询条件
///
public const string LABEL_QUERY_CONDITIONS = "查询条件";
///
/// 换模
///
public const string BUTTON_TEXT_CHANGE = "换模";
///
/// 停用
///
public const string BUTTON_TEXT_STOP = "停用";
// todo rex
///
/// 明细
///
public const string BUTTON_TEXT_DETAIL = "明细(&O)";
///
/// 审批通过
///
public const string BUTTON_TEXT_AUDITPASS = "审批通过(&P)";
///
/// 审批驳回
///
public const string BUTTON_TEXT_AUDITRETURN = "审批驳回(&R)";
#endregion
#endregion
#region 按钮文本
///
/// 登录
///
public static string BTN_LOGIN = "登录";
///
/// 设置
///
public static string BTN_SETTING = "设置";
///
/// 测试(T)
///
public static string BTN_TEST = "测试(&T)";
///
/// 保存(S)
///
public static string BTN_SAVE = "保存(&S)";
///
/// 确定(S)
///
public static string BTN_SUBMIT = "确定(&S)";
///
/// 保存(S)
///
public static string TSBTN_SAVE = "保存(&S)";
///
/// 取消(X)
///
public static string BTN_CANCEL = "取消(&X)";
///
/// 自动列宽(A)
///
public static string BTN_ADAPTIVE = "自动列宽(&A)";
///
/// 初始化(I)
///
public const string BTN_INIT = "初始化(&I)";
///
/// 初始化(I)
///
public const string TSBTN_INITD = "初始化(&I)";
///
/// 刷新(R)
///
public const string TSBTN_REFRESHD = "刷新(&R)";
///
/// 展开(Z)
///
public const string TSBTN_EXPENDD = "展开(&Z)";
///
/// 折叠(&Y)
///
public const string TSBTN_COLLAPSE = "折叠(&Y)";
///
/// 关闭(X)
///
public static string BTN_CLOSE = "取消(&X)";
///
/// 全部清空(&C)
///
public static string TSBTN_CLEAR = "全部清空(&C)";
///
/// 清空金额(&L)
///
public static string TSBTN_CLEARAMOUNT = "清空金额(&L)";
///
/// 下一步(N)
///
public static string BTN_NEXTSTEP = "下一步(&N)";
///
/// 修改密码
///
public static string TSMI_EDITPASSWORD = "修改密码";
///
/// 切换用户
///
public static string TSMI_CHANGEUSER = "切换用户";
///
/// 退出
///
public static string TSMI_EXIT = "退出";
///
/// 导航菜单
///
public static string TSMI_NAVIGATION = "导航菜单";
///
/// 刷新菜单
///
public static string TSMI_REFRESH = "刷新菜单";
///
/// 修改密码
///
public static string TSBTN_EDITPASSWORD = "修改密码";
///
/// 切换用户
///
public static string TSBTN_CHANGEUSER = "切换用户";
///
/// 导航菜单
///
public static string TSBTN_NAVIGATION = "导航菜单";
///
/// 刷新菜单
///
public static string TSBTN_REFRESH = "刷新菜单";
///
/// 退出
///
public static string TSBTN_EXIT = "退出系统";
///
/// 新建(N)
///
public static string TSBTN_ADD = "新建(&N)";
///
/// 新建子级(N)
///
public static string TSBTN_ADDCHILD = "新建子级(&N)";
///
/// 新建一级(T)
///
public static string TSBTN_ADDPARENT = "新建一级(&T)";
///
/// 编辑(E)
///
public static string TSBTN_EDIT = "编辑(&E)";
///
/// 结转(N)
///
public static string TSBTN_TRANSFER = "结转(&N)";
///
/// 反结转(E)
///
public static string TSBTN_UNTRANSFER = "反结转(&E)";
///
/// 自适应列宽(A)
///
public static string TSBTN_ADAPTIVE = "自适应列宽(&A)";
///
/// 关闭(X)
///
public static string TSBTN_CLOSE = "关闭(&X)";
///
/// 初始(I)
///
public static string TSBTN_INIT = "初始(&I)";
///
/// 查询(Q)
///
public static string BTN_SEARCH = "查询(&Q)";
///
/// 查询(Q)
///
public static string TSBTN_SEARCH = "查询(&Q)";
///
/// 清空条件(C)
///
public static string BTN_CLEARCONDITION = "清空条件(&C)";
///
/// 清空条件(C)
///
public static string TSBTN_CLEARCONDITION = "清空条件(&C)";
///
/// 重置密码(R)
///
public static string TSBTN_RESETPASSWORD = "重置密码(&R)";
///
/// 解锁(U)
///
public static string TSBTN_UNLOCK = "解锁(&U)";
///
/// 功能权限(F)
///
public static string TSBTN_FUNCTIONRIGHT = "功能权限(&F)";
///
/// 范围权限(V)
///
public static string TSBTN_PURVIEWRIGHT = "范围权限(&V)";
///
/// 停用(S)
///
public static string TSBTN_STOP = "停用(&S)";
///
/// 启用(S)
///
public static string TSBTN_START = "启用(&S)";
///
/// 添加物料(B)
///
public static string TSBTN_ADDGOODS = "新建物料(&B)";
///
/// 清空已选明细(D)
///
public static string TSBTN_DELSELECT = "清空已选明细(&D)";
#region 选择来源单据 注释不要加快捷键 会导致不能提示信息
///
/// 选择物料
///
public static string TSBTN_SELECTGOODS = "物料编码(&M)";
///
/// 选择库存
///
public static string TSBTN_SELECTINVENTORY = "库存明细(&M)";
///
/// 选择应收
///
public static string TSBTN_SELECTRECEIVABLE = "应收账款(&R)";
///
/// 选择应付
///
public static string TSBTN_SELECTPAYABLE = "应付账款(&P)";
///
/// 选择调库单 203 302
///
public static string TSBTN_SELECTTRANSFER = "选择调库单(&M)";
///
/// 选择销售单 307
///
public static string TSBTN_SELECTSAL = "选择销售单(&M)";
///
/// 选择销售退货 207
///
public static string TSBTN_SELECTSAL_RETURN = "选择销售退货(&M)";
///
/// 选择领料单 305
///
public static string TSBTN_SELECTAPPLY = "选择领料单(&M)";
///
/// 选择领料退货 205
///
public static string TSBTN_SELECTAPPLY_RETURN = "选择领料退货(&M)";
///
/// 选择采购退货 306
///
public static string TSBTN_SELECTPUR_RETURN = "选择采购退货(&M)";
///
/// 选择采购请购
///
public static string TSBTN_APPLY = "采购请购(&Y)";
///
/// 选择采购计划
///
public static string TSBTN_PLAN = "采购计划(&P)";
///
/// 选择采购订单 206
///
public static string TSBTN_ORDER = "采购订单(&M)";
#endregion
///
/// 编辑格式(L)
///
public static string TSBTN_EDITFORMAT = "编辑格式(&L)";
///
/// 预览(P)
///
public static string TSBTN_PREVIEW = "预览(&P)";
///
/// 导入(I)
///
public static string TSBTN_INPORT = "导入(&I)";
///
/// 导出(B)
///
public static string TSBTN_OUTPUT = "导出(&B)";
///
/// 复制(I)
///
public static string TSBTN_COPY = "复制(&I)";
///
/// 编辑格式(L)
///
public static string TSBTN_EDITDETAIL = "编辑格式(&L)";
///
/// 删除(D)
///
public static string TSBTN_DELETE = "删除(&D)";
///
/// 导出(B)
///
public static string TSBTN_EXPORT = "导出(&B)";
///
/// 导入(I)
///
public static string TSBTN_IMPORT = "导入(&I)";
///
/// 冲正(R)
///
public static string TSBTN_REVERSED = "冲正(&R)";
///
/// 送审(S)
///
public static string TSBTN_TOAPPROVAL = "送审(&S)";
///
/// 审批(O)
///
public static string TSBTN_APPROVAL = "审批(&O)";
///
/// 打印(P)
///
public static string TSBTN_PRINT = "打印(&P)";
///
/// 补打(B)
///
public static string TSBTN_REPRINTRECEIPT = "补打(&B)";
///
/// 全选(Y)
///
public static string TSBTN_SELALL = "全选(&Y)";
///
/// 取消全选(Z)
///
public static string TSBTN_UNSELALL = "取消全选(&Z)";
///
/// 明细(D)
///
public static string TSBTN_DETAIL = "明细(&D)";
///
/// 核销(V)
///
public static string TSBTN_VERIFICATION = "核销(&V)";
///
/// 撤销核销(U)
///
public static string TSBTN_REVOCATEVERIFICATION = "撤销核销(&U)";
///
/// 过滤(F)
///
public static string TSBTN_FILTER = "过滤(&F)";
///
/// 取消过滤(G)
///
public static string TSBTN_CLEARFILTER = "取消过滤(&G)";
///
/// 审核(S)
///
public static string TSBTN_AUDIT = "审核(&S)";
///
/// 生成月计划(M)
///
public static string TSBTN_CREATEMOUTH = "生成月计划(&M)";
///
/// 生成周计划(W)
///
public static string TSBTN_CREATEWEEK = "生成周计划(&W)";
///
/// 生成日计划(D)
///
public static string TSBTN_CREATEDAY = "生成日计划(&D)";
///
/// 计划反算(R)
///
public static string TSBTN_RETURNSUM = "计划反算(&R)";
///
/// 补齐新物料(Y)
///
public static string TSBTN_GETNEW = "补齐新物料(&Y)";
///
/// 新物料计划生成(O)
///
public static string TSBTN_ONESELECTCREATE = "新物料计划生成(&O)";
///
/// 核对(B)
///
public static string TSBTN_CHECK = "核对(&H)";
///
/// 撤销核对(G)
///
public static string TSBTN_REVOCATECHECK = "撤销核对(&G)";
///
/// (无票据样式)
///
public static string TSBTN_NOTINVOICELAYOUT = "(无票据样式)";
///
/// 收入登记
///
public static string TSBTN_INCOME = "收入(&I)";
///
/// 支出登记
///
public static string TSBTN_EXPEND = "支出(&O)";
///
/// 数据刷
///
public static string TSBTN_BRUSH = "数据刷(&U)";
public static string TSBTN_ALLCLARE = "全部清空(&C)";
#endregion
#region 提示信息
///
/// 没有选择任何数据,请选择一条{0}数据,再进行{1}操作。
///
public static string W_CMN_C_001 = "没有选择任何数据,请选择一条{0}数据,再进行{1}操作。";
///
/// 系统没有更新任何数据,请确认该数据是否存在或已经被改变。
///
public static string W_CMN_C_002 = "系统没有更新任何数据,请确认该数据是否存在或已经被改变。";
///
/// 上传的附件文件过大,请重新选择合理大小的文件。系统限制文件的大小必须小于等于{0}M。
///
public static string W_CMN_C_003 = "上传的附件文件过大,请重新选择合理大小的文件。系统限制文件的大小必须小于等于{0}M。";
///
/// 上传的图片文件过大,请重新选择合理大小的图片文件。系统限制图片文件的大小必须小于等于{0}M。
///
public static string W_CMN_C_003_1 = "上传的图片文件过大,请重新选择合理大小的图片文件。系统限制图片文件的大小必须小于等于{0}M。";
///
/// {0}为{1}的{2}在本系统中已存在,请重新输入{0}。
///
public static string W_CMN_C_004 = "{0}为{1}的{2}在本系统中已存在,请重新输入{0}。";
///
/// 当前数据正在被【{0}】进行{1}操作,请稍候再试。
///
public static string W_CMN_C_005 = "当前数据正在被【{0}】进行{1}操作,请稍候再试。";
///
/// 当前数据正在被其他人操作,请稍候再试。
///
public static string W_CMN_C_005_1 = "当前数据或其关联数据正在被其他人操作,请稍候再试。";
///
/// {0}的{1}不允许为空,请输入{1}。
///
public static string W_CMN_C_006 = "{0}的{1}不允许为空,请输入{1}。";
///
/// {0}的{1}不允许为空,请输入{1}。
///
public static string W_CMN_C_006_1 = "{0}的{1}不允许为0,请输入{1}。";
///
/// 当前数据处于{0}状态,不允许进行{1}操作。
///
public static string W_CMN_C_007 = "当前数据处于{0}状态,不允许进行{1}操作。";
///
/// 产品:{0}的可售量不足,请调整其销售数量后再试。
///
public static string W_CMN_C_008 = "产品:{0}的可售量不足,请调整其销售数量后再试。";
///
/// 系统中不存在该{0},请确认该{0}是否正确。
///
public static string W_CMN_C_009 = "系统中不存在该{0},请确认该{0}是否正确。";
///
/// {0}是必须输入项目,请输入{0}。
///
public static string W_CMN_C_010 = "{0}是必须输入项目,请输入{0}。";
///
/// {0}不能大于{1},请输入正确的{1}。
///
public static string W_CMN_C_011 = "{0}不能大于{1},请输入正确的{1}。";
///
/// {0}不能大于{1},请输入正确的{2}。
///
public static string W_CMN_C_021 = "{0}不能大于{1},请输入正确的{2}。";
///
/// {0}不能大于{1},请输入正确的{0}。
///
public static string W_CMN_C_016 = "{0}不能大于{1},请输入正确的{0}。";
///
/// 不允许该操作,原因:{}。
///
public static string W_CMN_C_012 = "不允许该操作,原因:{0}。";
///
/// 存在相同的{0},请重新输入
///
public static string W_CMN_C_013 = "存在相同的{0},请重新输入";
///
///
/// 存在重复数据,请重新输入
///
public static string W_CMN_C_014 = "存在重复数据,请重新输入";
///
/// 报销金额与冲抵金额不能同时为空
///
public static string W_CMN_C_015 = "报销金额与冲抵金额不能同时为空";
///
/// 总单金额不等于明细金额之和,不能进行保存。
///
public static string W_CMN_C_017 = "总单金额不等于明细金额之和,不能进行保存。";
///
/// 连接超时,请检查服务器IP地址及端口是否正确.
///
public static string W_CON_C_001 = "服务端数据库配置错误,请联系系统管理员。";
///
/// 数据库SID不存在,请核对SID并修改保存后再试.
///
public static string W_CON_C_003 = "数据库SID不存在,请核对SID并修改保存后再试.";
///
/// 数据库连接字符串不正确,请检查服务端连接字符串拼写.
///
public static string W_CON_C_002 = "数据库连接字符串不正确,请检查服务端连接字符串拼写.";
///
/// 服务端与数据库网络连接不通,请检查服务端网络设置.
///
public static string W_CON_C_004 = "服务端与数据库网络连接不通,请检查服务端网络设置.";
///
/// 数据库账号密码不正确,请核对账号密码并修改保存后再试.
///
public static string W_CON_C_005 = "数据库账号密码不正确,请核对账号密码并修改保存后再试.";
///
/// 单据不是待审、审批不通过状态
///
public static string W_ACC_001 = "单据不是待审、审批不通过状态。";
///
/// 单据不是审批不通过状态
///
public static string W_ACC_002 = "单据不是审批不通过状态。";
///
/// 单据不是审批通过状态
///
public static string W_ACC_003 = "单据不是审批通过状态。";
///
/// 单据不是未收支状态
///
public static string W_ACC_004 = "单据不是未收支状态。";
///
/// 单据己核对
///
public static string W_ACC_005 = "单据己核对。";
///
/// 单据不是待审、审批中、冲正待审、冲正审批中
///
public static string W_ACC_006 = "单据不是待审、审批中、冲正待审、冲正审批中。";
///
/// 核对金额不能为空或者为零
///
public static string W_ACC_007 = "核对金额不能为空或者为零。";
///
/// {0}不能为空或者零,请输入{0}
///
public static string W_ACC_C_007 = "{0}不能为空或者零,请输入{0}";
///
/// 数据已被其他用户更改
///
public static string W_ACC_008 = "数据已被其他用户更改。";
///
/// 存在单据已核对,请确保所有需要核对的单据都是未核对状态
///
public static string W_ACC_009 = "存在单据已核对,请确保所有需要核对的单据都是未核对状态";
///
/// 存在单据未核对,请确保所有需要撤销核对的单据都是已核对状态
///
public static string W_ACC_010 = "存在单据未核对,请确保所有需要撤销核对的单据都是已核对状态";
///
/// 不允许进行该操作,原因:{0}的{1}已经超过系统规定的最大值。系统规定{0}的{1}为:{2}。
///
public static string W_ACC_011 = "不允许进行该操作,原因:{0}的{1}已经超过系统规定的最大值。系统规定{0}的{1}为:{2}。";
///
/// 存在不同的借款部门与借款人
///
public static string W_ACC_012 = "存在不同的借款部门与借款人";
///
/// 退补方式必须填写
///
public static string W_ACC_013 = "退补方式必须填写。";
///
/// 支付方式必须填写
///
public static string W_ACC_014 = "支付方式必须填写。";
///
/// 已冲正的单据不能冲正。
///
public static string W_IVT_C_001 = "已冲正的单据不能冲正。";
///
/// 已财务制单的单据不能冲正。
///
public static string W_IVT_C_002 = "已财务制单的单据不能冲正。";
///
/// 获取冲正单号失败。
///
public static string W_IVT_C_003 = "已成本核对的单据不能冲正。";
///
/// 已成本结转的单据不能冲正。
///
public static string W_IVT_C_004 = "已成本结转的单据不能冲正。";
///
/// 库存物料的可售量不足。
///
public static string W_IVT_C_005 = "库存物料的可售量不足。";
///
/// 获取冲正单号失败。
///
public static string W_IVT_C_006 = "获取冲正单号失败。";
///
/// {0}的{1}必须大于{2},请输入正确的{1}。
///
public static string W_IVT_C_007 = "{0}的{1}必须大于{2},请输入正确的{1}。";
///
/// {0}不能大于{1},请输入正确的{1}。
///
public static string W_IVT_C_008 = "{0}不能大于{1},请输入正确的{1}。";
///
/// {0}不能大于{1},请重新设置。
///
public static string W_IVT_C_009 = "{0}不能大于{1},请重新设置。";
///
/// {0}不能小于{1},请重新设置。
///
public static string W_IVT_C_010 = "{0}不能小于{1},请重新设置。";
///
/// {0}不是合法的数值,请重新设置。
///
public static string W_IVT_C_011 = "{0}不是合法的数值,请重新设置。";
///
/// {0}的各行合计和总单合计值不符,请重新设置。
///
public static string W_IVT_C_012 = "{0}的各行合计和总单合计值不符,请重新设置。";
///
/// 选中{0}的{1}必须相同,请重新选择。
///
public static string W_IVT_C_013 = "选中{0}的{1}必须相同,请重新选择。";
///
/// {0}不允许调出调入的库区、仓位号一致,必须有一个不同。
///
public static string W_IVT_C_014 = "{0}不允许调出调入的库区、仓位号一致,必须有一个不同。";
///
/// 盘点单的库存数量在审批期间不允许发送变化以下库存异常:\r\n{0}。
///
public static string W_IVT_C_015 = "盘点单明细的库存数量在审批期间不允许发送变化以下库存异常:\r\n{0}";
///
/// 数据库发生异常,请联系管理员。
///
public static string E_CON_C_001 = "本系统出现了服务异常。请联系系统管理员。";
///
/// 根据查询条件,未查询到符合条件的数据。
///
public static string I_CMN_C_001 = "根据查询条件,未查询到符合条件的数据。";
///
/// {0}的{1}操作成功。
///
public static string I_CMN_C_002 = "{0}的{1}操作成功。";
///
/// 链接服务器成功
///
public static string I_CMN_C_003 = "链接服务器成功。";
///
/// 链接服务器失败
///
public static string I_CMN_C_004 = "链接服务器失败。";
///
/// 单据状态不是审批不通过或者待审批
///
public static string I_CMN_C_005 = "单据状态不是审批不通过或者待审批。";
///
/// 当前单据不允许送审
///
public static string I_CMN_C_006 = "当前单据不允许送审。";
///
/// 当前单据不允许冲正
///
public static string I_CMN_C_007 = "当前单据不允许冲正。";
///
/// 可售量不足:\r\n{0}
///
public static string I_CMN_C_008 = "可售量不足:\r\n{0}";
///
/// 占库失败:\r\n{0}
///
public static string I_CMN_C_009 = "占库失败:\r\n{0}";
///
/// 入库失败:\r\n{0}
///
public static string I_CMN_C_010 = "入库失败:\r\n{0}";
///
/// 出库失败:\r\n{0}
///
public static string I_CMN_C_011 = "出库失败:\r\n{0}";
///
/// 审批失败:\r\n{0}
///
public static string I_CMN_C_012 = "审批失败:\r\n{0}";
///
/// 单号获取失败:\r\n{0}
///
public static string I_CMN_C_013 = "单号获取失败:\r\n{0}";
///
/// 释放占库失败:\r\n{0}
///
public static string I_CMN_C_014 = "释放占库失败:\r\n{0}";
///
/// 缺少明细数据:\r\n{0}
///
public static string I_CMN_C_015 = "缺少明细数据";
///
/// 缺少总单数据:\r\n{0}
///
public static string I_CMN_C_016 = "缺少总单数据";
///
/// 单据状态不是待审、审批中、冲正待审、冲正审批中。
///
public static string I_CMN_C_017 = "单据状态不是待审、审批中、冲正待审、冲正审批中。";
///
/// 单据状态不是审批通过不允许冲正
///
public static string I_CMN_C_018 = "单据状态不是审批通过不允许冲正。";
///
/// 占库量不足,无法释放占库
///
public static string I_CMN_C_019 = "占库量不足,无法释放占库:\r\n{0}";
///
/// 单据状态不是待审、审批中
///
public static string I_CMN_C_020 = "单据状态不是待审、审批中";
///
/// 当前单据不允许核销
///
public static string I_CMN_C_021 = "当前单据不允许核销。";
///
/// 当前单据不允许撤销核销
///
public static string I_CMN_C_022 = "当前单据不允许撤销核销。";
///
/// {0}和{1}必须相等!
///
public static string I_CMN_C_023 = " {0}的{1}和{2}必须相等!";
///
/// 当前数据已被【{0}】进行过编辑,是否进行覆盖操作?
///
public static string Q_CMN_C_001 = "当前数据已被【{0}】进行过编辑,是否进行覆盖操作?";
///
/// 当前数据已经进行过编辑,是否进行覆盖操作?
///
public static string Q_CMN_C_001_1 = "当前数据已经进行过编辑,是否进行覆盖操作?";
///
/// 当前页面数据有变更,是否对变更数据进行保存?
///
public static string Q_CMN_C_002 = "当前页面数据有变更,是否对变更数据进行保存?";
///
/// 确定要对当前数据进行{0}操作吗?
///
public static string Q_CMN_C_003 = "确定要对当前数据进行{0}操作吗?";
///
/// {0}的{1}操作成功,是否关闭当前页面?
///
public static string Q_CMN_C_004 = "{0}的{1}操作成功,是否关闭当前页面?";
///
/// 当前数据已进行过编辑,是否进行覆盖操作?
///
public static string Q_CMN_C_005 = "当前数据已进行过编辑,是否进行覆盖操作?";
///
/// 是否进行删除操作
///
public static string Q_CMN_C_006 = "是否进行删除操作?";
///
/// 是否进行{0}操作?
///
public static string Q_CMN_C_011 = "是否进行{0}操作?";
///
/// 是否进行删除操作
///
public static string Q_CMN_C_007 = "是否进行冲正操作?";
///
/// 是否进行送审操作
///
public static string Q_CMN_C_008 = "是否进行送审操作?";
///
/// 是否进行核销操作
///
public static string Q_CMN_C_009 = "是否进行核销操作?";
///
/// 是否进行撤销核销操作
///
public static string Q_CMN_C_010 = "是否进行撤销核销操作?";
///
/// 当前画面已有过更改,是否保存变更?
///
public static string Q_CMN_C_012 = "当前画面已有过更改,是否保存变更?";
///
/// 初始化后,所有允许修改的系统参数都会恢复为参数默认值,是否进行该操作?
///
public const string Q_CMN_C_013 = "初始化后,所有允许修改的系统参数都会恢复为参数默认值,是否进行该操作?";
///
/// 该用户已经在其他终端登录,系统将会自动关闭。如果需要继续使用,请重新启动本系统。
///
public static string E_CMN_W_008 = "该用户已经在其他终端登录,系统将会自动关闭。如果需要继续使用,请重新启动本系统。";
///
/// 系统在验证私有秘钥时没有通过,系统将会自动关闭。如果需要继续使用,请重新启动本系统。
///
public static string E_CMN_W_009 = "系统在验证私有秘钥时没有通过,系统将会自动关闭。如果需要继续使用,请重新启动本系统。";
///
/// 系统在验证当前用户的信息时没有通过,系统将会自动关闭。如果需要继续使用,请重新启动本系统。
///
public static string E_CMN_W_010 = "系统在验证当前用户的信息时没有通过,系统将会自动关闭。如果需要继续使用,请重新启动本系统。";
///
/// 服务器日期被修改(小于系统账务日期),系统将会自动关闭。如果需要继续使用,请联系系统管理员。
///
public static string E_CMN_W_022 = "服务器日期被修改(小于系统账务日期),系统将会自动关闭。如果需要继续使用,请联系系统管理员。";
///
/// 输入的{0}不正确,请输入正确的{0}。
///
public static string E_CMN_W_011 = "输入的{0}不正确,请输入正确的{0}。";
///
/// 该用户被限制了登录系统的MAC地址,当前的MAC地址不允许该用户登录系统。
///
public static string E_CMN_W_012 = "该用户被限制了登录系统的MAC地址,当前的MAC地址不允许该用户登录系统。";
///
/// 该用户被限制了登录系统的时间段,当前时间不允许该用户登录系统。
///
public static string E_CMN_W_013 = "该用户被限制了登录系统的时间段,当前时间不允许该用户登录系统。";
///
/// 该用户已经被停用,不允许登录本系统。
///
public static string E_CMN_W_014 = "该用户已经被停用,不允许登录本系统。";
///
/// 该用户已经被锁死,不允许登录本系统。\r\n 如需要登录请联系系统管理员。
///
public static string E_CMN_W_015 = "该用户已经被锁死,不允许登录本系统。\r\n 如需要登录请联系系统管理员。";
///
/// 该用户不能在移动端登录本系统。\r\n 如需要登录请联系系统管理员。
///
public static string E_CMN_W_016 = "该用户不能在移动端登录本系统。\r\n 如需要登录请联系系统管理员。";
///
/// 该用户不能在PC端登录本系统。\r\n 如需要登录请联系系统管理员。
///
public static string E_CMN_W_017 = "该用户不能在PC端登录本系统。\r\n 如需要登录请联系系统管理员。";
///
/// 服务器日期被修改(小于系统账务日期),不允许登录本系统。\r\n 如需要登录请联系系统管理员。
///
public static string E_CMN_W_018 = "服务器日期被修改(小于系统账务日期),不允许登录本系统。\r\n 如需要登录请联系系统管理员。";
///
/// 没有找到服务器上的加密锁,请联系系统管理员,确认是否有东科软件的使用授权。
///
public static string E_CMN_W_019 = "没有找到服务器上的加密锁,请联系系统管理员,确认是否有东科软件的使用授权。";
///
/// 服务器上的加密锁与本系统不匹配,请联系系统管理员,确认服务器上的加密锁是否正确。
///
public static string E_CMN_W_020 = "服务器上的加密锁与本系统不匹配,请联系系统管理员,确认服务器上的加密锁是否正确。";
///
/// 服务器读取加密锁失败,请联系系统管理员,确认加密锁是否损坏。
///
public static string E_CMN_W_021 = "服务器读取加密锁失败,请联系系统管理员,确认加密锁是否损坏。";
///
/// 系统没有找到License文件,请联系系统管理员,确认是否有东科软件的使用授权。
///
public static string E_CMN_W_023 = "系统没有找到License文件,请联系系统管理员,确认是否有东科软件的使用授权。";
///
/// License文件信息读取失败,请联系系统管理员,确认License文件是否损坏。
///
public static string E_CMN_W_024 = "License文件信息读取失败,请联系系统管理员,确认License文件是否损坏。";
///
/// License文件信息不正确,请联系系统管理员,确认License文件是否正确。
///
public static string E_CMN_W_025 = "License文件信息不正确,请联系系统管理员,确认License文件是否正确。";
///
/// 加密锁信息与License文件信息不相符,请联系系统管理员,确认加密锁或License文件是否正确。
///
public static string E_CMN_W_026 = "加密锁信息与License文件信息不相符,请联系系统管理员,确认加密锁或License文件是否正确。";
///
/// 您所使用的License是临时授权,现已经超过使用期限。\r\n 请与东科公司联系获取新的License授权。
///
public static string E_CMN_W_027 = "您所使用的License是临时授权,现已经超过使用期限。\r\n 请与东科公司联系获取新的License授权。";
///
/// 在打开客户端加密锁时失败。\r\n 该用户已经被限制需要客户端加密锁登录本系统)。
///
public static string E_CMN_W_028 = "在打开客户端加密锁时失败。\r\n 该用户已经被限制需要客户端加密锁登录本系统)。";
///
/// 系统没有发现客户端加密锁。\r\n(该用户已经被限制需要客户端加密锁登录本系统)。
///
public static string E_CMN_W_029 = "系统没有发现客户端加密锁。\r\n(该用户已经被限制需要客户端加密锁登录本系统)。";
///
/// 客户端加密锁与系统不匹配。\r\n(该用户已经被限制需要客户端加密锁登录本系统)。
///
public static string E_CMN_W_030 = "客户端加密锁与系统不匹配。\r\n(该用户已经被限制需要客户端加密锁登录本系统)。";
///
/// 在读取客户端加密锁信息时失败。\r\n(该用户已经被限制需要客户端加密锁登录本系统)。
///
public static string E_CMN_W_031 = "在读取客户端加密锁信息时失败。\r\n(该用户已经被限制需要客户端加密锁登录本系统)。";
///
/// 客户端加密锁内容与授权内容不一致。\r\n (该用户已经被限制需要客户端加密锁登录本系统)。
///
public static string E_CMN_W_032 = "客户端加密锁内容与授权内容不一致。\r\n (该用户已经被限制需要客户端加密锁登录本系统)。";
///
/// 登录信息验证失败。\r\n 请重新填写登录信息,再进行系统的登录操作。
///
public static string E_CMN_W_033 = "登录信息验证失败。\r\n 请重新填写登录信息,再进行系统的登录操作。";
///
/// 未配置服务器地址或端口。\r\n 请先配置服务器地址和端口,再进行系统的登录操作。
///
public static string E_CMN_W_034 = "未配置服务器地址或端口。\r\n 请先配置服务器地址和端口,再进行系统的登录操作。";
///
/// 登录信息验证失败。\r\n 请重新填写登录信息,再进行系统的登录操作。
///
public static string E_CMN_W_035 = "登录信息验证失败。\r\n 请重新填写登录信息,再进行系统的登录操作。";
///
/// 输入的{0}格式不正确,请重新输入。\r\n {0}的正确格式为:{1}。
///
public static string E_CMN_W_036 = "输入的{0}格式不正确,请重新输入。\r\n {0}的正确格式为:{1}。";
///
/// 该物料已经作为其他物料的配件,不可修改配件标识。
///
public static string E_CMN_W_037 = "该物料已经作为其他物料的配件,不可修改配件标识。";
///
/// 配件无法包含配件信息,此配件物料的配件信息将无法保存,是否继续?
///
public static string E_CMN_W_038 = "配件无法包含配件信息,请删除配件信息后进行保存,或取消配件标识。";
///
/// "{0}的{1}要求大于0,小于等于{2},请重新输入{1}。";
///
public static string E_CMN_W_039 = "{0}的{1}要求大于0,小于等于{2},请重新输入{1}。";
///
/// "{0}的{1}要求如果小于0,要大于等于-{2},请重新输入{1}。";
///
public static string E_CMN_W_040 = "{0}的{1}要求如果小于0,要大于等于-{2},请重新输入{3}。";
///
/// 配件数量不可为空或为0,请重新输入!
///
public static string E_CMN_W_041 = "配件数量不可为空或为0,请重新输入。";
///
/// {0}的{1}不可为0,请重新输入{3}
///
public static string E_CMN_W_042 = "{0}的{1}不可为0,请重新输入{2}。";
///
/// 本系统出现了处理异常。请重新启动本系统或者联系系统管理员。
///
public static string E_CMN_E_001 = "本系统出现了处理异常。请联系系统管理员。";
///
/// 客户端应用程序无法找到或者访问远程的服务器。请确认远程服务器地址是否正确,然后再重试。
///
public static string E_CMN_E_002 = "客户端应用程序无法找到或者访问远程的服务器。请确认远程服务器地址是否正确,然后再重试。";
///
/// 客户端应用程序与远程的服务器通讯时出现了连接超时,请确认网络是否通畅后,然后重试。
///
public static string E_CMN_E_004 = "客户端应用程序与远程的服务器通讯时出现了连接超时,请确认网络是否通畅后,然后重试。";
///
/// 系统内存不足。请等待一段时间,然后重启本系统,再试一次。
///
public static string E_CMN_E_005 = "系统内存不足。请等待一段时间,然后重启本系统,再试一次。";
///
/// 策略价不可小于0,请检查后重新输入。
///
public static string W_TAT_C_001 = "策略价不可小于0,请检查后重新输入。";
///
/// 该策略时间范围与其它已启用策略时间范围有重叠,无法进行{0}操作。
///
public static string W_TAT_C_002 = "该策略时间范围与其它已启用策略时间范围有重叠,无法进行该操作。";
///
/// 该计划时间年度已经存在,无法进行该操作。
///
public static string W_TAT_C_002_1 = "该计划时间年度已经存在,无法进行该操作。";
///
/// 该计划时间范围与其它计划时间范围有重叠,无法进行该操作。
///
public static string W_TAT_C_002_2 = "该计划时间范围与其它计划时间范围有重叠,无法进行该操作。";
///
/// 终止时间不得大于起始时间,请重新设置。
///
public static string W_TAT_C_003 = "终止时间不得大于起始时间,请重新设置。";
///
/// 月计划为空,请先生成月计划再进行该操作。
///
public static string W_TAT_C_004 = "月计划为空,请先生成月计划再进行该操作。";
///
/// 周计划为空,请先生成周计划再进行该操作。
///
public static string W_TAT_C_005 = "周计划为空,请先生成周计划再进行该操作。";
///
/// 已存在对应计划,是否进行覆盖操作?(非保存,关闭窗体即可取消覆盖)
///
public static string W_TAT_C_006 = "已存在对应计划,是否进行覆盖操作?(非保存,关闭窗体即可取消覆盖)";
///
/// 该物资已存在对应子集生产计划,请直接修改对应计划产量。
///
public static string W_TAT_C_007 = "该物资已存在对应子集生产计划,请直接修改对应计划产量。";
///
/// 没有缺货的配件物资需要进行采购。
///
public static string W_TAT_C_008 = "没有缺货的配件物资需要进行采购。";
///
/// 请先进行缺货分析查询后再进行该操作。
///
public static string W_TAT_C_009 = "请先进行缺货分析查询后再进行该操作。";
///
/// 是否放弃修改,重新加载数据?
///
public static string W_TAT_C_010 = "是否放弃修改,重新加载数据?";
///
/// 请至少选择一行信息进行审核操作。
///
public static string W_TAT_C_011 = "请至少选择一行信息进行审核操作。";
///
/// 请至少选择一行信息进行审核操作。
///
public static string W_TAT_C_012 = "对应操作列表中没有信息,无法进行该操作!";
///
/// 没有设置相关的票据样式。
///
public static string W_PRN_C_001 = "没有设置相关的票据样式。";
///
/// 确定要切换用户吗?
///
public static string E_CMN_C_006 = "是否切换用户。";
///
/// 确定要退出本系统吗?
///
public static string E_CMN_C_007 = "是否退出系统。";
///
/// 系统警告
///
public static string MSG_TITLE_W01 = "系统警告";
///
/// 系统异常
///
public static string MSG_TITLE_E01 = "系统异常";
///
/// 系统消息
///
public static string MSG_TITLE_I01 = "系统消息";
///
/// 系统询问
///
public static string MSG_TITLE_Q01 = "系统询问";
///
/// 创建结束日期不得大于起始日期,请重新设置。
///
public static string W_ACC_C_001 = "创建起始日期不得大于结束日期,请重新设置。";
///
/// 账务结束日期不得大于起始日期,请重新设置。
///
public static string W_ACC_C_002 = "账务起始日期不得大于结束日期,请重新设置。";
///
/// {0}不得大于起始{1},请重新设置。
///
public static string W_ACC_C_004 = "{0}起始金额不得大于结束{1}金额,请重新设置。";
///
/// 账务日期不能大于等于当前日期。
///
public static string W_ACC_C_003 = "初始账务日期不能大于当前账务日期。";
///
/// 创建新客户信息失败,请关闭页面后重试。
///
public static string W_SAL_C_001 = "创建新客户信息失败,请关闭页面后重试。";
///
/// 获取单号失败,请关闭页面后重试。
///
public static string W_SAL_C_002 = "获取单号失败,请关闭页面后重试。";
///
/// 单据状态不正确,请关闭页面后重试。
///
public static string W_SAL_C_003 = "单据状态不正确,请关闭页面后重试。";
///
/// 应收金额不能小于0。
///
public static string W_SAL_C_004 = "应收金额不能小于0。";
///
/// 单据进行了审核操作,无法冲正。
///
public static string W_SAL_C_005 = "单据进行了审核操作,无法冲正。";
///
/// 单据进行了付款操作,无法冲正。
///
public static string W_SAL_C_006 = "单据进行了付款操作,无法冲正。";
///
/// 单据进行了退货操作,无法冲正。
///
public static string W_SAL_C_007 = "单据进行了退货操作,无法冲正。";
///
/// 当前客户编码已存在,请重新查询客户编码后选择!
///
public static string W_SAL_C_008 = "当前客户编码已存在,请重新查询客户编码后选择!";
///
/// 有明细对应可售量不足,无法进行该操作。
///
public static string W_SAL_C_009 = "部分明细对应的库存可售量不足,无法进行该操作。";
///
/// 合计金额不等于货物总额-舍零金额,请核对!
///
public static string W_SAL_C_010 = "合计金额不等于货物总额-舍零金额,请核对!";
///
/// 该单据已经进行了核销操作,请刷新页面!
///
public static string W_SAL_C_011 = "该单据已经进行了核销操作,请刷新页面!";
///
/// 该单据已经进行了核销核销操作,请刷新页面!
///
public static string W_SAL_C_012 = "该单据已经进行了核销核销操作,请刷新页面!";
///
/// 没有找到与{0}关键字相匹配的系统参数
///
public const string W_MST_C_001 = "没有找到与{0}关键字相匹配的系统参数";
#endregion
}
#region INIUtility
///
/// 把Library项目下的INIUtility文件复制过来。因为循环引用
///
class INIUtility
{
// 放置单例
private static Dictionary _dic = new Dictionary();
// ini文件路径
private string _iniFilePath;
///
/// 文件
///
public enum IniFile
{
///
/// Config文件
///
Config,
}
///
/// 构造
///
private INIUtility()
{
}
///
/// 单例
///
/// 配置文件
///
public static INIUtility Instance(IniFile iniFile)
{
if (_dic.Keys.Contains(iniFile))
{
return _dic[iniFile];
}
else
{
INIUtility ini = new INIUtility();
ini._iniFilePath = System.AppDomain.CurrentDomain.BaseDirectory + iniFile.ToString() + ".ini";
_dic.Add(iniFile, ini);
return ini;
}
}
#region API函数声明
///
/// 返回0表示失败,非0为成功
///
///
///
///
///
///
[DllImport("kernel32")]
private static extern long WritePrivateProfileString(string section, string key,
string val, string filePath);
[DllImport("kernel32")]//返回取得字符串缓冲区的长度
private static extern int GetPrivateProfileString(string section, string key, string def, System.Text.StringBuilder retVal, int size, string filePath);
#endregion
#region 读Ini文件
///
/// 读Ini文件
///
/// section
/// key
///
public string ReadIniData(string section, string key)
{
if (File.Exists(_iniFilePath))
{
// 每次从ini中读取多少字节
StringBuilder temp = new StringBuilder(2048);
// section=配置节,key=键名,temp=上面,path=路径
GetPrivateProfileString(section, key, "", temp, 2048, _iniFilePath);
return temp.ToString();
}
else
{
return String.Empty;
}
}
#endregion
#region 写Ini文件
///
/// 写Ini文件
///
///
///
///
///
public bool WriteIniData(string Section, string Key, string Value)
{
if (File.Exists(_iniFilePath))
{
long OpStation = WritePrivateProfileString(Section, Key, Value, _iniFilePath);
if (OpStation == 0)
{
return false;
}
else
{
return true;
}
}
else
{
return false;
}
}
#endregion
}
#endregion
}