Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
f01f4f21
"git@ustchcs.com:gujinli1118/litemall.git" did not exist on "2f253ccee83162c5ece517aaf8889a3dafbe3df6"
Commit
f01f4f21
authored
Oct 30, 2016
by
季圣华
Browse files
初始化项目2
parent
238bdf9c
Changes
206
Hide whitespace changes
Inline
Side-by-side
src/com/jsh/junitest/json/IPStream.java
0 → 100644
View file @
f01f4f21
package
com.jsh.junitest.json
;
import
java.io.Serializable
;
@SuppressWarnings
(
"serial"
)
public
class
IPStream
implements
Serializable
{
/**
* ID
*/
private
Long
id
;
/**
* 协议
*/
private
Short
protocol
;
/**
*IP地址
*/
private
String
IPUrl
;
/**
* 端口
*/
private
Integer
port
;
/**
* 类型--输入输出 0==输入 1==输出
*/
private
Short
type
;
/**
* 视频格式
*/
private
Short
IPformat
;
/**
* 视频规格 0==标清 1==高清
*/
private
Short
IPnorms
;
/**
* 码率
*/
private
Float
rate
;
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Short
getProtocol
()
{
return
protocol
;
}
public
void
setProtocol
(
Short
protocol
)
{
this
.
protocol
=
protocol
;
}
public
String
getIPUrl
()
{
return
IPUrl
;
}
public
void
setIPUrl
(
String
iPUrl
)
{
IPUrl
=
iPUrl
;
}
public
Integer
getPort
()
{
return
port
;
}
public
void
setPort
(
Integer
port
)
{
this
.
port
=
port
;
}
public
Short
getType
()
{
return
type
;
}
public
void
setType
(
Short
type
)
{
this
.
type
=
type
;
}
public
Short
getIPformat
()
{
return
IPformat
;
}
public
void
setIPformat
(
Short
iPformat
)
{
IPformat
=
iPformat
;
}
public
Short
getIPnorms
()
{
return
IPnorms
;
}
public
void
setIPnorms
(
Short
iPnorms
)
{
IPnorms
=
iPnorms
;
}
public
Float
getRate
()
{
return
rate
;
}
public
void
setRate
(
Float
rate
)
{
this
.
rate
=
rate
;
}
}
src/com/jsh/junitest/json/JsonTest.java
0 → 100644
View file @
f01f4f21
package
com.jsh.junitest.json
;
import
junit.framework.TestCase
;
import
net.sf.json.JSONArray
;
import
net.sf.json.JSONObject
;
public
class
JsonTest
extends
TestCase
{
public
void
testJson
()
{
JSONObject
outer
=
new
JSONObject
();
outer
.
put
(
"total"
,
8
);
JSONArray
json
=
new
JSONArray
();
// {"total":28,"rows":[
// {"productid":"AV-CB-01","attr1":"Adult Male","itemid":"EST-18"}
// ]}
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
JSONObject
jo
=
new
JSONObject
();
jo
.
put
(
"name"
,
"andy"
+
i
);
jo
.
put
(
"sex"
,
"false"
+
i
);
json
.
add
(
jo
);
}
outer
.
put
(
"rows"
,
json
);
System
.
out
.
println
(
outer
.
toString
());
}
}
src/com/jsh/junitest/spring/SpringTest.java
0 → 100644
View file @
f01f4f21
package
com.jsh.junitest.spring
;
import
junit.framework.TestCase
;
public
class
SpringTest
extends
TestCase
{
public
static
void
main
(
String
[]
args
)
{
// @SuppressWarnings({ "unchecked", "rawtypes" })
// public BaseService()
// {
// // //加载 已经加载过的 spring配置文件内容
// // WebApplicationContext wac =
// // ContextLoader.getCurrentWebApplicationContext();
// // // wac.getBean(beanID);
// // ApplicationContext factory = new
// // ClassPathXmlApplicationContext("spring/*-applicationContext.xml");
// // ApplicationContext factory = new ClassPathXmlApplicationContext(new
// // String[]{"spring/basic-applicationContext.xml",
// // "spring/dao-applicationContext.xml"});
// // this.baseDao = (BaseIDAO) factory.getBean("baseDao");
// // // this.baseDao =
// // ((BaseIDAO)BeanFactoryUtil.getBeanByClassPathAndBeanName("spring/dao-applicationContext.xml",
// // "baseDao"));
// BeanFactoryUtil util = BeanFactoryUtil.getInstance();
//
// this.baseDao = ((BaseIDAO<T>) util.getBean("baseDao"));
//// ApplicationContext factory = new ClassPathXmlApplicationContext(new
//// String[]{"spring/basic-applicationContext.xml",
//// "spring/dao-applicationContext.xml"});
//// this.baseDao = (BaseIDAO) factory.getBean("baseDao");
// Class c = getEntityClass();
// setPoJoClass(c);
// }
}
}
src/com/jsh/model/po/App.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.App"
table=
"jsh_app"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<property
generated=
"never"
lazy=
"false"
name=
"Number"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Number"
>
<comment>
代号
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Name"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Name"
>
<comment>
名称
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Type"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Type"
>
<comment>
类型
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Icon"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Icon"
>
<comment>
图标
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"URL"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"URL"
>
<comment>
链接
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Width"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Width"
>
<comment>
宽度
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Height"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Height"
>
<comment>
高度
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"ReSize"
type=
"boolean"
>
<column
length=
"1"
name=
"ReSize"
>
<comment>
拉伸
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"OpenMax"
type=
"boolean"
>
<column
length=
"1"
name=
"OpenMax"
>
<comment>
最大化
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Flash"
type=
"boolean"
>
<column
length=
"1"
name=
"Flash"
>
<comment>
Flash
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"ZL"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"ZL"
>
<comment>
种类
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Sort"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Sort"
>
<comment>
排序号
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"200"
name=
"Remark"
>
<comment>
备注
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Enabled"
type=
"boolean"
>
<column
length=
"1"
name=
"Enabled"
>
<comment>
启用
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/App.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
App
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Number
;
private
String
Name
;
private
String
Type
;
private
String
Icon
;
private
String
URL
;
private
String
Width
;
private
String
Height
;
private
Boolean
ReSize
;
private
Boolean
OpenMax
;
private
Boolean
Flash
;
private
String
ZL
;
private
String
Sort
;
private
String
Remark
;
private
Boolean
Enabled
;
public
App
()
{
}
public
App
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
App
(
String
Number
,
String
Name
,
String
Type
,
String
Icon
,
String
URL
,
String
Width
,
String
Height
,
Boolean
ReSize
,
Boolean
OpenMax
,
Boolean
Flash
,
String
ZL
,
String
Sort
,
String
Remark
,
Boolean
Enabled
)
{
this
.
Number
=
Number
;
this
.
Name
=
Name
;
this
.
Type
=
Type
;
this
.
Icon
=
Icon
;
this
.
URL
=
URL
;
this
.
Width
=
Width
;
this
.
Height
=
Height
;
this
.
ReSize
=
ReSize
;
this
.
OpenMax
=
OpenMax
;
this
.
Flash
=
Flash
;
this
.
ZL
=
ZL
;
this
.
Sort
=
Sort
;
this
.
Remark
=
Remark
;
this
.
Enabled
=
Enabled
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
String
getNumber
()
{
return
Number
;
}
public
void
setNumber
(
String
number
)
{
Number
=
number
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
public
String
getType
()
{
return
Type
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
public
String
getIcon
()
{
return
Icon
;
}
public
void
setIcon
(
String
icon
)
{
Icon
=
icon
;
}
public
String
getURL
()
{
return
URL
;
}
public
void
setURL
(
String
uRL
)
{
URL
=
uRL
;
}
public
String
getWidth
()
{
return
Width
;
}
public
void
setWidth
(
String
width
)
{
Width
=
width
;
}
public
String
getHeight
()
{
return
Height
;
}
public
void
setHeight
(
String
height
)
{
Height
=
height
;
}
public
Boolean
getReSize
()
{
return
ReSize
;
}
public
void
setReSize
(
Boolean
reSize
)
{
ReSize
=
reSize
;
}
public
Boolean
getOpenMax
()
{
return
OpenMax
;
}
public
void
setOpenMax
(
Boolean
openMax
)
{
OpenMax
=
openMax
;
}
public
Boolean
getFlash
()
{
return
Flash
;
}
public
void
setFlash
(
Boolean
flash
)
{
Flash
=
flash
;
}
public
String
getZL
()
{
return
ZL
;
}
public
void
setZL
(
String
zL
)
{
ZL
=
zL
;
}
public
String
getSort
()
{
return
Sort
;
}
public
void
setSort
(
String
sort
)
{
Sort
=
sort
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
Boolean
getEnabled
()
{
return
Enabled
;
}
public
void
setEnabled
(
Boolean
enabled
)
{
Enabled
=
enabled
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Asset.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Asset"
table=
"ams_t_asset"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<many-to-one
name=
"assetname"
class=
"com.jsh.model.po.Assetname"
lazy=
"false"
>
<column
name=
"assetnameID"
not-null=
"true"
/>
</many-to-one>
<property
name=
"location"
type=
"java.lang.String"
>
<column
name=
"location"
>
<comment>
位置
</comment>
</column>
</property>
<property
name=
"labels"
type=
"java.lang.String"
>
<column
name=
"labels"
>
<comment>
标签:以空格为分隔符
</comment>
</column>
</property>
<property
name=
"status"
type=
"java.lang.Short"
>
<column
name=
"status"
>
<comment>
资产的状态:0==在库,1==在用,2==消费
</comment>
</column>
</property>
<many-to-one
name=
"user"
class=
"com.jsh.model.po.Basicuser"
lazy=
"false"
>
<column
name=
"userID"
/>
</many-to-one>
<property
name=
"price"
type=
"java.lang.Double"
>
<column
name=
"price"
precision=
"22"
scale=
"2"
>
<comment>
购买价格
</comment>
</column>
</property>
<property
name=
"purchasedate"
type=
"java.sql.Timestamp"
>
<column
name=
"purchasedate"
length=
"19"
>
<comment>
购买日期
</comment>
</column>
</property>
<property
name=
"periodofvalidity"
type=
"java.sql.Timestamp"
>
<column
name=
"periodofvalidity"
length=
"19"
>
<comment>
有效日期
</comment>
</column>
</property>
<property
name=
"warrantydate"
type=
"java.sql.Timestamp"
>
<column
name=
"warrantydate"
length=
"19"
>
<comment>
保修日期
</comment>
</column>
</property>
<property
name=
"assetnum"
type=
"java.lang.String"
>
<column
name=
"assetnum"
>
<comment>
资产编号
</comment>
</column>
</property>
<property
name=
"serialnum"
type=
"java.lang.String"
>
<column
name=
"serialnum"
>
<comment>
资产序列号
</comment>
</column>
</property>
<many-to-one
name=
"supplier"
class=
"com.jsh.model.po.Supplier"
lazy=
"false"
>
<column
name=
"supplier"
/>
</many-to-one>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
>
<comment>
描述信息
</comment>
</column>
</property>
<property
name=
"addMonth"
type=
"java.lang.String"
>
<column
name=
"addMonth"
length=
"500"
>
<comment>
资产添加时间,统计报表使用
</comment>
</column>
</property>
<property
name=
"createtime"
type=
"java.sql.Timestamp"
>
<column
name=
"createtime"
length=
"19"
/>
</property>
<many-to-one
name=
"creator"
class=
"com.jsh.model.po.Basicuser"
lazy=
"false"
>
<column
name=
"creator"
/>
</many-to-one>
<property
name=
"updatetime"
type=
"java.sql.Timestamp"
>
<column
name=
"updatetime"
length=
"19"
/>
</property>
<many-to-one
name=
"updator"
class=
"com.jsh.model.po.Basicuser"
lazy=
"false"
>
<column
name=
"updator"
/>
</many-to-one>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Asset.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
import
java.sql.Timestamp
;
import
java.util.Map
;
@SuppressWarnings
(
"serial"
)
public
class
Asset
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
Assetname
assetname
;
private
String
location
;
private
Short
status
;
private
Basicuser
user
;
private
Double
price
;
private
Timestamp
purchasedate
;
private
Timestamp
periodofvalidity
;
private
Timestamp
warrantydate
;
private
String
assetnum
;
private
String
serialnum
;
private
Supplier
supplier
;
private
String
labels
;
private
String
description
;
private
String
addMonth
;
private
Timestamp
createtime
;
private
Basicuser
creator
;
private
Timestamp
updatetime
;
private
Basicuser
updator
;
//----------以下属性导入exel表格使用--------------------
/**
* 类型 right--正确 warn--警告 wrong--错误
*/
private
Map
<
Integer
,
String
>
cellInfo
;
/**
* 行号
*/
private
Integer
rowLineNum
;
/**
* 保存价格
*/
private
String
priceStr
;
/**
* 资产名称
*/
private
String
assetnameStr
;
/**
* 资产类型
*/
private
String
category
;
/**
* 购买日期
*/
private
String
purchasedateStr
;
/**
* 有效日期
*/
private
String
periodofvalidityStr
;
/**
* 保修日期
*/
private
String
warrantydateStr
;
public
Asset
()
{
}
public
Asset
(
Long
id
)
{
this
.
id
=
id
;
}
public
Asset
(
Assetname
assetname
,
String
location
,
Short
status
,
Basicuser
user
,
Double
price
,
Timestamp
purchasedate
,
Timestamp
periodofvalidity
,
Timestamp
warrantydate
,
String
assetnum
,
String
serialnum
,
Supplier
supplier
,
String
description
,
Timestamp
createtime
,
Basicuser
creator
,
Timestamp
updatetime
,
String
labels
,
Basicuser
updator
,
String
addMonth
)
{
super
();
this
.
assetname
=
assetname
;
this
.
location
=
location
;
this
.
status
=
status
;
this
.
user
=
user
;
this
.
price
=
price
;
this
.
purchasedate
=
purchasedate
;
this
.
periodofvalidity
=
periodofvalidity
;
this
.
warrantydate
=
warrantydate
;
this
.
assetnum
=
assetnum
;
this
.
serialnum
=
serialnum
;
this
.
supplier
=
supplier
;
this
.
description
=
description
;
this
.
createtime
=
createtime
;
this
.
creator
=
creator
;
this
.
updatetime
=
updatetime
;
this
.
updator
=
updator
;
this
.
labels
=
labels
;
this
.
addMonth
=
addMonth
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Assetname
getAssetname
()
{
return
assetname
;
}
public
void
setAssetname
(
Assetname
assetname
)
{
this
.
assetname
=
assetname
;
}
public
String
getLocation
()
{
return
location
;
}
public
void
setLocation
(
String
location
)
{
this
.
location
=
location
;
}
public
Short
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Short
status
)
{
this
.
status
=
status
;
}
public
Basicuser
getUser
()
{
return
user
;
}
public
void
setUser
(
Basicuser
user
)
{
this
.
user
=
user
;
}
public
Double
getPrice
()
{
return
price
;
}
public
void
setPrice
(
Double
price
)
{
this
.
price
=
price
;
}
public
Timestamp
getPurchasedate
()
{
return
purchasedate
;
}
public
void
setPurchasedate
(
Timestamp
purchasedate
)
{
this
.
purchasedate
=
purchasedate
;
}
public
Timestamp
getPeriodofvalidity
()
{
return
periodofvalidity
;
}
public
void
setPeriodofvalidity
(
Timestamp
periodofvalidity
)
{
this
.
periodofvalidity
=
periodofvalidity
;
}
public
Timestamp
getWarrantydate
()
{
return
warrantydate
;
}
public
void
setWarrantydate
(
Timestamp
warrantydate
)
{
this
.
warrantydate
=
warrantydate
;
}
public
String
getAssetnum
()
{
return
assetnum
;
}
public
void
setAssetnum
(
String
assetnum
)
{
this
.
assetnum
=
assetnum
;
}
public
String
getSerialnum
()
{
return
serialnum
;
}
public
void
setSerialnum
(
String
serialnum
)
{
this
.
serialnum
=
serialnum
;
}
public
Supplier
getSupplier
()
{
return
supplier
;
}
public
void
setSupplier
(
Supplier
supplier
)
{
this
.
supplier
=
supplier
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
Timestamp
getCreatetime
()
{
return
createtime
;
}
public
void
setCreatetime
(
Timestamp
createtime
)
{
this
.
createtime
=
createtime
;
}
public
Basicuser
getCreator
()
{
return
creator
;
}
public
void
setCreator
(
Basicuser
creator
)
{
this
.
creator
=
creator
;
}
public
Timestamp
getUpdatetime
()
{
return
updatetime
;
}
public
void
setUpdatetime
(
Timestamp
updatetime
)
{
this
.
updatetime
=
updatetime
;
}
public
Basicuser
getUpdator
()
{
return
updator
;
}
public
void
setUpdator
(
Basicuser
updator
)
{
this
.
updator
=
updator
;
}
public
String
getLabels
()
{
return
labels
;
}
public
void
setLabels
(
String
labels
)
{
this
.
labels
=
labels
;
}
public
String
getAddMonth
()
{
return
addMonth
;
}
public
void
setAddMonth
(
String
addMonth
)
{
this
.
addMonth
=
addMonth
;
}
public
Integer
getRowLineNum
()
{
return
rowLineNum
;
}
public
void
setRowLineNum
(
Integer
rowLineNum
)
{
this
.
rowLineNum
=
rowLineNum
;
}
public
Map
<
Integer
,
String
>
getCellInfo
()
{
return
cellInfo
;
}
public
void
setCellInfo
(
Map
<
Integer
,
String
>
cellInfo
)
{
this
.
cellInfo
=
cellInfo
;
}
public
String
getPriceStr
()
{
return
priceStr
;
}
public
void
setPriceStr
(
String
priceStr
)
{
this
.
priceStr
=
priceStr
;
}
public
String
getAssetnameStr
()
{
return
assetnameStr
;
}
public
void
setAssetnameStr
(
String
assetnameStr
)
{
this
.
assetnameStr
=
assetnameStr
;
}
public
String
getCategory
()
{
return
category
;
}
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
;
}
public
String
getPurchasedateStr
()
{
return
purchasedateStr
;
}
public
void
setPurchasedateStr
(
String
purchasedateStr
)
{
this
.
purchasedateStr
=
purchasedateStr
;
}
public
String
getPeriodofvalidityStr
()
{
return
periodofvalidityStr
;
}
public
void
setPeriodofvalidityStr
(
String
periodofvalidityStr
)
{
this
.
periodofvalidityStr
=
periodofvalidityStr
;
}
public
String
getWarrantydateStr
()
{
return
warrantydateStr
;
}
public
void
setWarrantydateStr
(
String
warrantydateStr
)
{
this
.
warrantydateStr
=
warrantydateStr
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Assetcategory.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Assetcategory"
table=
"ams_t_assetcategory"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"assetname"
type=
"java.lang.String"
>
<column
name=
"assetname"
not-null=
"true"
>
<comment>
资产类型名称
</comment>
</column>
</property>
<property
name=
"isystem"
type=
"java.lang.Short"
>
<column
name=
"isystem"
not-null=
"true"
>
<comment>
是否系统自带 0==系统 1==非系统
</comment>
</column>
</property>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
>
<comment>
描述信息
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Assetcategory.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Assetcategory
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
assetname
;
private
Short
isystem
;
private
String
description
;
public
Assetcategory
()
{
}
public
Assetcategory
(
Long
id
)
{
this
.
id
=
id
;
}
public
Assetcategory
(
String
assetname
,
Short
isystem
,
String
description
)
{
this
.
assetname
=
assetname
;
this
.
isystem
=
isystem
;
this
.
description
=
description
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getAssetname
()
{
return
this
.
assetname
;
}
public
void
setAssetname
(
String
assetname
)
{
this
.
assetname
=
assetname
;
}
public
Short
getIsystem
()
{
return
this
.
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Assetname.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Assetname"
table=
"ams_t_assetname"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"assetname"
type=
"java.lang.String"
>
<column
name=
"assetname"
not-null=
"true"
>
<comment>
资产名称
</comment>
</column>
</property>
<many-to-one
name=
"category"
class=
"com.jsh.model.po.Category"
lazy=
"false"
>
<column
name=
"assetcategoryID"
not-null=
"true"
/>
</many-to-one>
<property
name=
"isystem"
type=
"java.lang.Short"
>
<column
name=
"isystem"
not-null=
"true"
>
<comment>
是否系统自带 0==系统 1==非系统
</comment>
</column>
</property>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
>
<comment>
描述信息
</comment>
</column>
</property>
<property
name=
"isconsumables"
type=
"java.lang.Short"
>
<column
name=
"isconsumables"
>
<comment>
是否为耗材 0==否 1==是 耗材状态只能是消费
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Assetname.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Assetname
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
assetname
;
private
Short
isystem
;
private
Category
category
;
private
String
description
;
private
Short
isconsumables
;
public
Assetname
()
{
}
public
Assetname
(
Long
id
)
{
this
.
id
=
id
;
}
public
Assetname
(
String
assetname
,
Short
isystem
,
String
description
,
Short
isconsumables
,
Category
category
)
{
this
.
assetname
=
assetname
;
this
.
isystem
=
isystem
;
this
.
description
=
description
;
this
.
isconsumables
=
isconsumables
;
this
.
category
=
category
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getAssetname
()
{
return
this
.
assetname
;
}
public
void
setAssetname
(
String
assetname
)
{
this
.
assetname
=
assetname
;
}
public
Short
getIsystem
()
{
return
this
.
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
Short
getIsconsumables
()
{
return
this
.
isconsumables
;
}
public
void
setIsconsumables
(
Short
isconsumables
)
{
this
.
isconsumables
=
isconsumables
;
}
public
Category
getCategory
()
{
return
category
;
}
public
void
setCategory
(
Category
category
)
{
this
.
category
=
category
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Basicuser.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Basicuser"
table=
"ams_t_basicuser"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"username"
type=
"java.lang.String"
>
<column
name=
"username"
not-null=
"true"
>
<comment>
用户姓名--例如张三
</comment>
</column>
</property>
<property
name=
"loginame"
type=
"java.lang.String"
>
<column
name=
"loginame"
>
<comment>
登录用户名--可能为空
</comment>
</column>
</property>
<property
name=
"password"
type=
"java.lang.String"
>
<column
name=
"password"
length=
"30"
not-null=
"true"
>
<comment>
登陆密码
</comment>
</column>
</property>
<property
name=
"position"
type=
"java.lang.String"
>
<column
name=
"position"
length=
"200"
>
<comment>
职位
</comment>
</column>
</property>
<property
name=
"department"
type=
"java.lang.String"
>
<column
name=
"department"
>
<comment>
所属部门
</comment>
</column>
</property>
<property
name=
"email"
type=
"java.lang.String"
>
<column
name=
"email"
length=
"100"
>
<comment>
电子邮箱
</comment>
</column>
</property>
<property
name=
"phonenum"
type=
"java.lang.String"
>
<column
name=
"phonenum"
length=
"100"
>
<comment>
手机号码
</comment>
</column>
</property>
<property
name=
"ismanager"
type=
"java.lang.Short"
>
<column
name=
"ismanager"
not-null=
"true"
>
<comment>
是否为管理者 0==管理者 1==员工
</comment>
</column>
</property>
<property
name=
"isystem"
type=
"java.lang.Short"
>
<column
name=
"isystem"
not-null=
"true"
>
<comment>
是否系统自带数据
</comment>
</column>
</property>
<property
name=
"status"
type=
"java.lang.Short"
>
<column
name=
"status"
>
<comment>
用户状态
</comment>
</column>
</property>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
>
<comment>
用户描述信息
</comment>
</column>
</property>
<property
name=
"remark"
type=
"java.lang.String"
>
<column
name=
"remark"
length=
"500"
/>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Basicuser.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Basicuser
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
username
;
private
String
loginame
;
private
String
password
;
private
String
position
;
private
String
department
;
private
String
email
;
private
String
phonenum
;
private
Short
ismanager
;
private
Short
isystem
;
private
Short
status
;
private
String
description
;
private
String
remark
;
public
Basicuser
()
{
}
public
Basicuser
(
Long
id
)
{
this
.
id
=
id
;
}
public
Basicuser
(
String
username
,
String
loginame
,
String
password
,
String
position
,
String
department
,
String
email
,
String
phonenum
,
Short
ismanager
,
Short
isystem
,
Short
status
,
String
description
,
String
remark
)
{
this
.
username
=
username
;
this
.
loginame
=
loginame
;
this
.
password
=
password
;
this
.
position
=
position
;
this
.
department
=
department
;
this
.
email
=
email
;
this
.
phonenum
=
phonenum
;
this
.
ismanager
=
ismanager
;
this
.
isystem
=
isystem
;
this
.
status
=
status
;
this
.
description
=
description
;
this
.
remark
=
remark
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getUsername
()
{
return
this
.
username
;
}
public
void
setUsername
(
String
username
)
{
this
.
username
=
username
;
}
public
String
getLoginame
()
{
return
this
.
loginame
;
}
public
void
setLoginame
(
String
loginame
)
{
this
.
loginame
=
loginame
;
}
public
String
getPassword
()
{
return
this
.
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
String
getPosition
()
{
return
this
.
position
;
}
public
void
setPosition
(
String
position
)
{
this
.
position
=
position
;
}
public
String
getDepartment
()
{
return
this
.
department
;
}
public
void
setDepartment
(
String
department
)
{
this
.
department
=
department
;
}
public
String
getEmail
()
{
return
this
.
email
;
}
public
void
setEmail
(
String
email
)
{
this
.
email
=
email
;
}
public
String
getPhonenum
()
{
return
this
.
phonenum
;
}
public
void
setPhonenum
(
String
phonenum
)
{
this
.
phonenum
=
phonenum
;
}
public
Short
getIsmanager
()
{
return
this
.
ismanager
;
}
public
void
setIsmanager
(
Short
ismanager
)
{
this
.
ismanager
=
ismanager
;
}
public
Short
getIsystem
()
{
return
this
.
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
public
Short
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
Short
status
)
{
this
.
status
=
status
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
String
getRemark
()
{
return
this
.
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Building.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Building"
table=
"jsh_building"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<many-to-one
name=
"depot"
class=
"com.jsh.model.po.Depot"
lazy=
"false"
>
<column
name=
"ProjectId"
not-null=
"true"
/>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"Name"
type=
"java.lang.String"
>
<column
length=
"20"
name=
"Name"
>
<comment>
名称
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Remark"
>
<comment>
备注
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Enabled"
type=
"boolean"
>
<column
length=
"1"
name=
"Enabled"
>
<comment>
启用
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Building.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Building
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
Depot
depot
;
private
String
Name
;
private
String
Remark
;
private
Boolean
Enabled
;
public
Building
()
{
}
public
Building
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
Building
(
Depot
depot
,
String
name
,
String
remark
,
Boolean
enabled
)
{
super
();
this
.
depot
=
depot
;
Name
=
name
;
Remark
=
remark
;
Enabled
=
enabled
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
Depot
getDepot
()
{
return
depot
;
}
public
void
setDepot
(
Depot
depot
)
{
this
.
depot
=
depot
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
Boolean
getEnabled
()
{
return
Enabled
;
}
public
void
setEnabled
(
Boolean
enabled
)
{
Enabled
=
enabled
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Category.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Category"
table=
"ams_t_assetcategory"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"assetname"
type=
"java.lang.String"
>
<column
name=
"assetname"
not-null=
"true"
>
<comment>
资产类型名称
</comment>
</column>
</property>
<property
name=
"isystem"
type=
"java.lang.Short"
>
<column
name=
"isystem"
not-null=
"true"
>
<comment>
是否系统自带 0==系统 1==非系统
</comment>
</column>
</property>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
>
<comment>
描述信息
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Category.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Category
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
assetname
;
private
Short
isystem
;
private
String
description
;
public
Category
()
{
}
public
Category
(
Long
id
)
{
this
.
id
=
id
;
}
public
Category
(
String
assetname
,
Short
isystem
,
String
description
)
{
this
.
assetname
=
assetname
;
this
.
isystem
=
isystem
;
this
.
description
=
description
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getAssetname
()
{
return
this
.
assetname
;
}
public
void
setAssetname
(
String
assetname
)
{
this
.
assetname
=
assetname
;
}
public
Short
getIsystem
()
{
return
this
.
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Department.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Department"
table=
"ams_t_department"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"deptname"
type=
"java.lang.String"
>
<column
name=
"deptname"
not-null=
"true"
>
<comment>
部门名称
</comment>
</column>
</property>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
>
<comment>
部门描述
</comment>
</column>
</property>
<property
name=
"isystem"
type=
"java.lang.Short"
>
<column
name=
"isystem"
not-null=
"true"
>
<comment>
是否系统自带 0==系统 1==非系统
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Department.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Department
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
deptname
;
private
Short
isystem
;
private
String
description
;
public
Department
()
{
}
public
Department
(
Long
id
)
{
this
.
id
=
id
;
}
public
Department
(
String
deptname
,
Short
isystem
,
String
description
)
{
super
();
this
.
deptname
=
deptname
;
this
.
isystem
=
isystem
;
this
.
description
=
description
;
}
public
Short
getIsystem
()
{
return
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getDeptname
()
{
return
this
.
deptname
;
}
public
void
setDeptname
(
String
deptname
)
{
this
.
deptname
=
deptname
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Depot.hbm.xml
0 → 100644
View file @
f01f4f21
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class
name=
"com.jsh.model.po.Depot"
table=
"ams_t_depot"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
generated=
"never"
lazy=
"false"
name=
"name"
type=
"java.lang.String"
>
<column
length=
"20"
name=
"name"
>
<comment>
仓库名称
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"sort"
type=
"java.lang.String"
>
<column
length=
"10"
name=
"sort"
>
<comment>
排序
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"remark"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"remark"
>
<comment>
描述
</comment>
</column>
</property>
</class>
</hibernate-mapping>
Prev
1
2
3
4
5
6
7
8
9
…
11
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment