初始化项目2
This commit is contained in:
119
src/com/jsh/constants/asset/AssetConstants.java
Normal file
119
src/com/jsh/constants/asset/AssetConstants.java
Normal file
@@ -0,0 +1,119 @@
|
||||
package com.jsh.constants.asset;
|
||||
|
||||
/**
|
||||
* 定义资产管理常量
|
||||
* @author andy
|
||||
*/
|
||||
public interface AssetConstants
|
||||
{
|
||||
/**
|
||||
* 公共常量
|
||||
* @author andy
|
||||
*/
|
||||
public class Common
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 资产常量--导入导出excel表格业务相关
|
||||
* @author andy
|
||||
*/
|
||||
public class BusinessForExcel
|
||||
{
|
||||
/**
|
||||
* 资产名称常量
|
||||
*/
|
||||
public static final int EXCEL_ASSETNAME = 0;
|
||||
|
||||
/**
|
||||
* 资产类型常量
|
||||
*/
|
||||
public static final int EXCEL_CATEGORY = 1;
|
||||
|
||||
/**
|
||||
* 资产单价
|
||||
*/
|
||||
public static final int EXCEL_PRICE = 2;
|
||||
|
||||
/**
|
||||
* 用户
|
||||
*/
|
||||
public static final int EXCEL_USER = 3;
|
||||
|
||||
/**
|
||||
* 购买日期
|
||||
*/
|
||||
public static final int EXCEL_PURCHASE_DATE = 4;
|
||||
|
||||
/**
|
||||
* 资产状态
|
||||
*/
|
||||
public static final int EXCEL_STATUS = 5;
|
||||
|
||||
/**
|
||||
* 位置
|
||||
*/
|
||||
public static final int EXCEL_LOCATION = 6;
|
||||
|
||||
/**
|
||||
* 资产编号
|
||||
*/
|
||||
public static final int EXCEL_NUM = 7;
|
||||
|
||||
/**
|
||||
* 序列号
|
||||
*/
|
||||
public static final int EXCEL_SERIALNO = 8;
|
||||
|
||||
/**
|
||||
* 有效日期
|
||||
*/
|
||||
public static final int EXCEL_EXPIRATION_DATE = 9;
|
||||
|
||||
/**
|
||||
* 保修日期
|
||||
*/
|
||||
public static final int EXCEL_WARRANTY_DATE = 10;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
public static final int EXCEL_SUPPLIER = 11;
|
||||
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
public static final int EXCEL_LABLE = 12;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
public static final int EXCEL_DESC = 13;
|
||||
|
||||
/**
|
||||
* 表头
|
||||
*/
|
||||
public static final int EXCEL_TABLE_HEAD = 0;
|
||||
|
||||
/**
|
||||
* 状态 --在库
|
||||
*/
|
||||
public static final int EXCEl_STATUS_ZAIKU = 0;
|
||||
|
||||
/**
|
||||
* 状态 --在用
|
||||
*/
|
||||
public static final int EXCEl_STATUS_INUSE = 1;
|
||||
|
||||
/**
|
||||
* 状态 -- 消费
|
||||
*/
|
||||
public static final int EXCEl_STATUS_CONSUME = 2;
|
||||
|
||||
/**
|
||||
* action返回excel结果
|
||||
*/
|
||||
public static final String EXCEL = "excel";
|
||||
}
|
||||
}
|
||||
35
src/com/jsh/constants/asset/ExcelConstantsCode.java
Normal file
35
src/com/jsh/constants/asset/ExcelConstantsCode.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package com.jsh.constants.asset;
|
||||
|
||||
public interface ExcelConstantsCode
|
||||
{
|
||||
/**
|
||||
* 导入excel表格常量定义
|
||||
*/
|
||||
public class ImportExcelCode
|
||||
{
|
||||
/**
|
||||
* 表格正确
|
||||
*/
|
||||
public static final String RIGHT = "right";
|
||||
|
||||
/**
|
||||
* 表格错误
|
||||
*/
|
||||
public static final String WRONG = "wrong";
|
||||
|
||||
/**
|
||||
* 表格警告
|
||||
*/
|
||||
public static final String WARN = "warn";
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel表格常量定义
|
||||
* @author angel
|
||||
*
|
||||
*/
|
||||
public class ExportExcelCode
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
36
src/com/jsh/constants/common/AmsConstants.java
Normal file
36
src/com/jsh/constants/common/AmsConstants.java
Normal file
@@ -0,0 +1,36 @@
|
||||
package com.jsh.constants.common;
|
||||
|
||||
public interface AmsConstants
|
||||
{
|
||||
/**
|
||||
* 定义资产管理公共常量
|
||||
* @author andy
|
||||
*/
|
||||
public class Common
|
||||
{
|
||||
/**
|
||||
* Info级别日志前缀
|
||||
*/
|
||||
public static final String LOG_INFO_PREFIX = "==========";
|
||||
|
||||
/**
|
||||
* error级别日志前缀
|
||||
*/
|
||||
public static final String LOG_ERROR_PREFIX = ">>>>>>>>>>";
|
||||
|
||||
/**
|
||||
* debug级别日志前缀
|
||||
*/
|
||||
public static final String LOG_DEBUG_PREFIX = "-----------";
|
||||
|
||||
/**
|
||||
* fatal级别日志前缀
|
||||
*/
|
||||
public static final String LOG_FATAL_PREFIX = "$$$$$$$$$$";
|
||||
|
||||
/**
|
||||
* warn级别日志前缀
|
||||
*/
|
||||
public static final String LOG_WARN_PREFIX = "##########";
|
||||
}
|
||||
}
|
||||
35
src/com/jsh/constants/common/ExceptionCodeConstants.java
Normal file
35
src/com/jsh/constants/common/ExceptionCodeConstants.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package com.jsh.constants.common;
|
||||
|
||||
public interface ExceptionCodeConstants
|
||||
{
|
||||
/**
|
||||
* 用户错误码定义
|
||||
*/
|
||||
public class UserExceptionCode
|
||||
{
|
||||
/**
|
||||
* 用户不存在
|
||||
*/
|
||||
public static final int USER_NOT_EXIST = 1;
|
||||
|
||||
/**
|
||||
* 用户密码错误
|
||||
*/
|
||||
public static final int USER_PASSWORD_ERROR = 2;
|
||||
|
||||
/**
|
||||
* 被加入黑名单
|
||||
*/
|
||||
public static final int BLACK_USER = 3;
|
||||
|
||||
/**
|
||||
* 可以登录
|
||||
*/
|
||||
public static final int USER_CONDITION_FIT = 4;
|
||||
|
||||
/**
|
||||
* 访问数据库异常
|
||||
*/
|
||||
public static final int USER_ACCESS_EXCEPTION = 5;
|
||||
}
|
||||
}
|
||||
65
src/com/jsh/constants/common/LogModuleConstants.java
Normal file
65
src/com/jsh/constants/common/LogModuleConstants.java
Normal file
@@ -0,0 +1,65 @@
|
||||
package com.jsh.constants.common;
|
||||
|
||||
public interface LogModuleConstants
|
||||
{
|
||||
/**
|
||||
* 系统管理模块名称定义
|
||||
* @author andy
|
||||
*/
|
||||
public class ManageModuleNameCode
|
||||
{
|
||||
/**
|
||||
* 管理模块资产名称
|
||||
*/
|
||||
public static final String MODULE_MANAGE_ASSETNAME = "资产名称";
|
||||
|
||||
/**
|
||||
* 管理模块供应商
|
||||
*/
|
||||
public static final String MODULE_MANAGE_SUPPLIER = "供应商";
|
||||
|
||||
/**
|
||||
* 管理模块资产类型
|
||||
*/
|
||||
public static final String MODULE_MANAGE_CATEGORY = "资产类型";
|
||||
|
||||
/**
|
||||
* 管理模块用户管理
|
||||
*/
|
||||
public static final String MODULE_MANAGE_USER = "用户管理";
|
||||
}
|
||||
|
||||
/**
|
||||
* 资产管理模块名称定义
|
||||
* @author andy
|
||||
*/
|
||||
public class AssetModuleNameCode
|
||||
{
|
||||
/**
|
||||
* 资产管理模块资产管理
|
||||
*/
|
||||
public static final String MODULE_ASSET_MANAGE = "资产管理";
|
||||
|
||||
/**
|
||||
* 资产管理模块资产报表
|
||||
*/
|
||||
public static final String MODULE_ASSET_REPORT = "资产报表";
|
||||
|
||||
/**
|
||||
* 资产管理模块资产概况
|
||||
*/
|
||||
public static final String MODULE_ASSET_GENERAL = "资产概况";
|
||||
}
|
||||
|
||||
/**
|
||||
* 日志管理模块名称定义
|
||||
* @author andy
|
||||
*/
|
||||
public class LogModuleNameCode
|
||||
{
|
||||
/**
|
||||
* 日志管理模块日志管理
|
||||
*/
|
||||
public static final String MODULE_LOG_MANAGE = "日志管理";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user