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
"jetbrains:/idea/checkout/git" did not exist on "db7b097eac0900c5965d7a0092bad3f47f5312e0"
Commit
f01f4f21
authored
Oct 30, 2016
by
季圣华
Browse files
初始化项目2
parent
238bdf9c
Changes
206
Hide whitespace changes
Inline
Side-by-side
src/com/jsh/model/po/Depot.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Depot
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
name
;
private
String
sort
;
private
String
remark
;
public
Depot
()
{
}
public
Depot
(
Long
id
)
{
this
.
id
=
id
;
}
public
Depot
(
String
name
,
String
sort
,
String
remark
)
{
this
.
name
=
name
;
this
.
sort
=
sort
;
this
.
remark
=
remark
;
}
public
Long
getId
()
{
return
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getSort
()
{
return
sort
;
}
public
void
setSort
(
String
sort
)
{
this
.
sort
=
sort
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
}
\ No newline at end of file
src/com/jsh/model/po/DepotHead.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.DepotHead"
table=
"jsh_depothead"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<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=
"SubType"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"SubType"
>
<comment>
出入库分类
</comment>
</column>
</property>
<many-to-one
name=
"ProjectId"
class=
"com.jsh.model.po.Depot"
lazy=
"false"
>
<column
name=
"ProjectId"
not-null=
"true"
>
<comment>
项目Id
</comment>
</column>
</many-to-one>
<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=
"OperPersonName"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"OperPersonName"
>
<comment>
操作员名字
</comment>
</column>
</property>
<property
name=
"CreateTime"
type=
"java.sql.Timestamp"
>
<column
length=
"19"
name=
"CreateTime"
>
<comment>
创建时间
</comment>
</column>
</property>
<property
name=
"OperTime"
type=
"java.sql.Timestamp"
>
<column
length=
"19"
name=
"OperTime"
>
<comment>
出入库时间
</comment>
</column>
</property>
<many-to-one
name=
"OrganId"
class=
"com.jsh.model.po.Supplier"
lazy=
"false"
>
<column
name=
"OrganId"
>
<comment>
供应商Id
</comment>
</column>
</many-to-one>
<many-to-one
name=
"HandsPersonId"
class=
"com.jsh.model.po.Person"
lazy=
"false"
>
<column
name=
"HandsPersonId"
>
<comment>
采购/领料-经手人Id
</comment>
</column>
</many-to-one>
<many-to-one
name=
"WareHousePersonId"
class=
"com.jsh.model.po.Person"
lazy=
"false"
>
<column
name=
"WareHousePersonId"
not-null=
"true"
>
<comment>
仓管员-经手人Id
</comment>
</column>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"SettlementWay"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"SettlementWay"
>
<comment>
现金/记账
</comment>
</column>
</property>
<many-to-one
name=
"BuildingId"
class=
"com.jsh.model.po.Building"
lazy=
"false"
>
<column
name=
"BuildingId"
>
<comment>
单元Id
</comment>
</column>
</many-to-one>
<many-to-one
name=
"AllocationProjectId"
class=
"com.jsh.model.po.Depot"
lazy=
"false"
>
<column
name=
"AllocationProjectId"
>
<comment>
调拨时,对方项目Id
</comment>
</column>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"Remark"
type=
"java.lang.String"
>
<column
length=
"1000"
name=
"Remark"
>
<comment>
备注
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"State"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"State"
>
<comment>
草稿/已生效/废弃/待审核/未通过
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"ReAuditPersonName"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"ReAuditPersonName"
>
<comment>
撤审人
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Reason"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"Reason"
>
<comment>
撤审原因
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/DepotHead.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
import
java.sql.Timestamp
;
@SuppressWarnings
(
"serial"
)
public
class
DepotHead
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Type
;
private
String
SubType
;
private
Depot
ProjectId
;
private
String
Number
;
private
String
OperPersonName
;
private
Timestamp
CreateTime
;
private
Timestamp
OperTime
;
private
Supplier
OrganId
;
private
Person
HandsPersonId
;
private
Person
WareHousePersonId
;
private
String
SettlementWay
;
private
Building
BuildingId
;
private
Depot
AllocationProjectId
;
private
String
Remark
;
private
String
State
;
private
String
ReAuditPersonName
;
private
String
Reason
;
public
DepotHead
()
{
}
public
DepotHead
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
DepotHead
(
String
type
,
String
subType
,
Depot
projectId
,
String
number
,
String
operPersonName
,
Timestamp
createTime
,
Timestamp
operTime
,
Supplier
organId
,
Person
handsPersonId
,
Person
wareHousePersonId
,
String
settlementWay
,
Building
buildingId
,
Depot
allocationProjectId
,
String
remark
,
String
state
,
String
reAuditPersonName
,
String
reason
)
{
super
();
Type
=
type
;
SubType
=
subType
;
ProjectId
=
projectId
;
Number
=
number
;
OperPersonName
=
operPersonName
;
CreateTime
=
createTime
;
OperTime
=
operTime
;
OrganId
=
organId
;
HandsPersonId
=
handsPersonId
;
WareHousePersonId
=
wareHousePersonId
;
SettlementWay
=
settlementWay
;
BuildingId
=
buildingId
;
AllocationProjectId
=
allocationProjectId
;
Remark
=
remark
;
State
=
state
;
ReAuditPersonName
=
reAuditPersonName
;
Reason
=
reason
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
String
getType
()
{
return
Type
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
public
String
getSubType
()
{
return
SubType
;
}
public
void
setSubType
(
String
subType
)
{
SubType
=
subType
;
}
public
Depot
getProjectId
()
{
return
ProjectId
;
}
public
void
setProjectId
(
Depot
projectId
)
{
ProjectId
=
projectId
;
}
public
String
getNumber
()
{
return
Number
;
}
public
void
setNumber
(
String
number
)
{
Number
=
number
;
}
public
String
getOperPersonName
()
{
return
OperPersonName
;
}
public
void
setOperPersonName
(
String
operPersonName
)
{
OperPersonName
=
operPersonName
;
}
public
Timestamp
getCreateTime
()
{
return
CreateTime
;
}
public
void
setCreateTime
(
Timestamp
createTime
)
{
CreateTime
=
createTime
;
}
public
Timestamp
getOperTime
()
{
return
OperTime
;
}
public
void
setOperTime
(
Timestamp
operTime
)
{
OperTime
=
operTime
;
}
public
Supplier
getOrganId
()
{
return
OrganId
;
}
public
void
setOrganId
(
Supplier
organId
)
{
OrganId
=
organId
;
}
public
Person
getHandsPersonId
()
{
return
HandsPersonId
;
}
public
void
setHandsPersonId
(
Person
handsPersonId
)
{
HandsPersonId
=
handsPersonId
;
}
public
Person
getWareHousePersonId
()
{
return
WareHousePersonId
;
}
public
void
setWareHousePersonId
(
Person
wareHousePersonId
)
{
WareHousePersonId
=
wareHousePersonId
;
}
public
String
getSettlementWay
()
{
return
SettlementWay
;
}
public
void
setSettlementWay
(
String
settlementWay
)
{
SettlementWay
=
settlementWay
;
}
public
Building
getBuildingId
()
{
return
BuildingId
;
}
public
void
setBuildingId
(
Building
buildingId
)
{
BuildingId
=
buildingId
;
}
public
Depot
getAllocationProjectId
()
{
return
AllocationProjectId
;
}
public
void
setAllocationProjectId
(
Depot
allocationProjectId
)
{
AllocationProjectId
=
allocationProjectId
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getState
()
{
return
State
;
}
public
void
setState
(
String
state
)
{
State
=
state
;
}
public
String
getReAuditPersonName
()
{
return
ReAuditPersonName
;
}
public
void
setReAuditPersonName
(
String
reAuditPersonName
)
{
ReAuditPersonName
=
reAuditPersonName
;
}
public
String
getReason
()
{
return
Reason
;
}
public
void
setReason
(
String
reason
)
{
Reason
=
reason
;
}
}
\ No newline at end of file
src/com/jsh/model/po/DepotItem.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.DepotItem"
table=
"jsh_depotitem"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<many-to-one
name=
"HeaderId"
class=
"com.jsh.model.po.DepotHead"
lazy=
"false"
>
<column
name=
"HeaderId"
not-null=
"true"
>
<comment>
表头Id
</comment>
</column>
</many-to-one>
<many-to-one
name=
"MaterialId"
class=
"com.jsh.model.po.Material"
lazy=
"false"
>
<column
name=
"MaterialId"
not-null=
"true"
>
<comment>
材料Id
</comment>
</column>
</many-to-one>
<property
generated=
"never"
lazy=
"false"
name=
"OperNumber"
type=
"java.lang.Double"
>
<column
name=
"OperNumber"
precision=
"22"
scale=
"3"
>
<comment>
数量
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"UnitPrice"
type=
"java.lang.Double"
>
<column
name=
"UnitPrice"
precision=
"22"
scale=
"3"
>
<comment>
单价
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Incidentals"
type=
"java.lang.Double"
>
<column
name=
"Incidentals"
precision=
"22"
scale=
"3"
>
<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=
"Img"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Img"
>
<comment>
图片
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/DepotItem.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
DepotItem
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
DepotHead
HeaderId
;
private
Material
MaterialId
;
private
Double
OperNumber
;
private
Double
UnitPrice
;
private
Double
Incidentals
;
private
String
Remark
;
private
String
Img
;
public
DepotItem
()
{
}
public
DepotItem
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
DepotItem
(
DepotHead
headerId
,
Material
materialId
,
Double
operNumber
,
Double
unitPrice
,
Double
incidentals
,
String
remark
,
String
img
)
{
super
();
HeaderId
=
headerId
;
MaterialId
=
materialId
;
OperNumber
=
operNumber
;
UnitPrice
=
unitPrice
;
Incidentals
=
incidentals
;
Remark
=
remark
;
Img
=
img
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
DepotHead
getHeaderId
()
{
return
HeaderId
;
}
public
void
setHeaderId
(
DepotHead
headerId
)
{
HeaderId
=
headerId
;
}
public
Material
getMaterialId
()
{
return
MaterialId
;
}
public
void
setMaterialId
(
Material
materialId
)
{
MaterialId
=
materialId
;
}
public
Double
getOperNumber
()
{
return
OperNumber
;
}
public
void
setOperNumber
(
Double
operNumber
)
{
OperNumber
=
operNumber
;
}
public
Double
getUnitPrice
()
{
return
UnitPrice
;
}
public
void
setUnitPrice
(
Double
unitPrice
)
{
UnitPrice
=
unitPrice
;
}
public
Double
getIncidentals
()
{
return
Incidentals
;
}
public
void
setIncidentals
(
Double
incidentals
)
{
Incidentals
=
incidentals
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
public
String
getImg
()
{
return
Img
;
}
public
void
setImg
(
String
img
)
{
Img
=
img
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Functions.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.Functions"
table=
"jsh_functions"
>
<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=
"PNumber"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"PNumber"
>
<comment>
上级编号
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"URL"
type=
"java.lang.String"
>
<column
length=
"100"
name=
"URL"
>
<comment>
链接
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"State"
type=
"boolean"
>
<column
length=
"1"
name=
"State"
>
<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=
"Enabled"
type=
"boolean"
>
<column
length=
"1"
name=
"Enabled"
>
<comment>
启用
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Type"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Type"
>
<comment>
类型
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Functions.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Functions
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Number
;
private
String
Name
;
private
String
PNumber
;
private
String
URL
;
private
Boolean
State
;
private
String
Sort
;
private
Boolean
Enabled
;
private
String
Type
;
public
Functions
()
{
}
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
getPNumber
()
{
return
PNumber
;
}
public
void
setPNumber
(
String
pNumber
)
{
PNumber
=
pNumber
;
}
public
String
getURL
()
{
return
URL
;
}
public
void
setURL
(
String
uRL
)
{
URL
=
uRL
;
}
public
Boolean
getState
()
{
return
State
;
}
public
void
setState
(
Boolean
state
)
{
State
=
state
;
}
public
String
getSort
()
{
return
Sort
;
}
public
void
setSort
(
String
sort
)
{
Sort
=
sort
;
}
public
Boolean
getEnabled
()
{
return
Enabled
;
}
public
void
setEnabled
(
Boolean
enabled
)
{
Enabled
=
enabled
;
}
public
String
getType
()
{
return
Type
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Logdetails.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.Logdetails"
table=
"ams_t_logdetails"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<many-to-one
name=
"user"
class=
"com.jsh.model.po.Basicuser"
lazy=
"false"
>
<column
name=
"userID"
not-null=
"true"
/>
</many-to-one>
<property
name=
"operation"
type=
"java.lang.String"
>
<column
name=
"operation"
length=
"500"
>
<comment>
操作模块名称
</comment>
</column>
</property>
<property
name=
"clientIp"
type=
"java.lang.String"
>
<column
name=
"clientIP"
length=
"50"
>
<comment>
客户端IP
</comment>
</column>
</property>
<property
name=
"createtime"
type=
"java.sql.Timestamp"
>
<column
name=
"createtime"
length=
"19"
>
<comment>
创建时间
</comment>
</column>
</property>
<property
name=
"status"
type=
"java.lang.Short"
>
<column
name=
"status"
>
<comment>
操作状态 0==成功,1==失败
</comment>
</column>
</property>
<property
name=
"contentdetails"
type=
"java.lang.String"
>
<column
name=
"contentdetails"
length=
"1000"
>
<comment>
操作详情
</comment>
</column>
</property>
<property
name=
"remark"
type=
"java.lang.String"
>
<column
name=
"remark"
length=
"500"
>
<comment>
备注信息
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Logdetails.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
import
java.sql.Timestamp
;
@SuppressWarnings
(
"serial"
)
public
class
Logdetails
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
Basicuser
user
;
private
String
operation
;
private
String
clientIp
;
private
Timestamp
createtime
;
private
Short
status
;
private
String
contentdetails
;
private
String
remark
;
public
Logdetails
()
{
}
public
Logdetails
(
Long
id
)
{
this
.
id
=
id
;
}
public
Logdetails
(
Basicuser
user
,
String
operation
,
String
clientIp
,
Timestamp
createtime
,
Short
status
,
String
contentdetails
,
String
remark
)
{
this
.
user
=
user
;
this
.
operation
=
operation
;
this
.
clientIp
=
clientIp
;
this
.
createtime
=
createtime
;
this
.
status
=
status
;
this
.
contentdetails
=
contentdetails
;
this
.
remark
=
remark
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Basicuser
getUser
()
{
return
user
;
}
public
void
setUser
(
Basicuser
user
)
{
this
.
user
=
user
;
}
public
String
getOperation
()
{
return
this
.
operation
;
}
public
void
setOperation
(
String
operation
)
{
this
.
operation
=
operation
;
}
public
String
getClientIp
()
{
return
this
.
clientIp
;
}
public
void
setClientIp
(
String
clientIp
)
{
this
.
clientIp
=
clientIp
;
}
public
Timestamp
getCreatetime
()
{
return
this
.
createtime
;
}
public
void
setCreatetime
(
Timestamp
createtime
)
{
this
.
createtime
=
createtime
;
}
public
Short
getStatus
()
{
return
this
.
status
;
}
public
void
setStatus
(
Short
status
)
{
this
.
status
=
status
;
}
public
String
getContentdetails
()
{
return
this
.
contentdetails
;
}
public
void
setContentdetails
(
String
contentdetails
)
{
this
.
contentdetails
=
contentdetails
;
}
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/Material.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.Material"
table=
"jsh_material"
>
<id
name=
"Id"
type=
"java.lang.Long"
>
<column
name=
"Id"
/>
<generator
class=
"native"
/>
</id>
<many-to-one
name=
"materialCategory"
class=
"com.jsh.model.po.MaterialCategory"
lazy=
"false"
>
<column
name=
"CategoryId"
/>
</many-to-one>
<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=
"Model"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Model"
>
<comment>
型号
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Color"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Color"
>
<comment>
颜色
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Unit"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Unit"
>
<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>
src/com/jsh/model/po/Material.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Material
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
MaterialCategory
materialCategory
;
private
String
Name
;
private
String
Model
;
private
String
Color
;
private
String
Unit
;
private
String
Remark
;
public
Material
()
{
}
public
Material
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
Material
(
MaterialCategory
materialCategory
,
String
name
,
String
model
,
String
color
,
String
unit
,
String
remark
)
{
super
();
this
.
materialCategory
=
materialCategory
;
Name
=
name
;
Model
=
model
;
Color
=
color
;
Unit
=
unit
;
Remark
=
remark
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
MaterialCategory
getMaterialCategory
()
{
return
materialCategory
;
}
public
void
setMaterialCategory
(
MaterialCategory
materialCategory
)
{
this
.
materialCategory
=
materialCategory
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
public
String
getModel
()
{
return
Model
;
}
public
void
setModel
(
String
model
)
{
Model
=
model
;
}
public
String
getColor
()
{
return
Color
;
}
public
void
setColor
(
String
color
)
{
Color
=
color
;
}
public
String
getUnit
()
{
return
Unit
;
}
public
void
setUnit
(
String
unit
)
{
Unit
=
unit
;
}
public
String
getRemark
()
{
return
Remark
;
}
public
void
setRemark
(
String
remark
)
{
Remark
=
remark
;
}
}
\ No newline at end of file
src/com/jsh/model/po/MaterialCategory.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.MaterialCategory"
table=
"jsh_materialcategory"
>
<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=
"50"
name=
"Name"
>
<comment>
名称
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"CategoryLevel"
type=
"java.lang.Short"
>
<column
length=
"20"
name=
"CategoryLevel"
>
<comment>
等级
</comment>
</column>
</property>
<many-to-one
name=
"materialCategory"
class=
"com.jsh.model.po.MaterialCategory"
lazy=
"false"
>
<column
name=
"ParentId"
/>
</many-to-one>
</class>
</hibernate-mapping>
src/com/jsh/model/po/MaterialCategory.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
MaterialCategory
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Name
;
private
Short
CategoryLevel
;
private
MaterialCategory
materialCategory
;
public
MaterialCategory
()
{
}
public
MaterialCategory
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
MaterialCategory
(
String
name
,
Short
categoryLevel
,
MaterialCategory
materialCategory
)
{
Name
=
name
;
CategoryLevel
=
categoryLevel
;
this
.
materialCategory
=
materialCategory
;
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
public
Short
getCategoryLevel
()
{
return
CategoryLevel
;
}
public
void
setCategoryLevel
(
Short
categoryLevel
)
{
CategoryLevel
=
categoryLevel
;
}
public
MaterialCategory
getMaterialCategory
()
{
return
materialCategory
;
}
public
void
setMaterialCategory
(
MaterialCategory
materialCategory
)
{
this
.
materialCategory
=
materialCategory
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Measureunit.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.Measureunit"
table=
"ams_t_measureunit"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"unitname"
type=
"java.lang.String"
>
<column
name=
"unitname"
length=
"30"
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/Measureunit.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
import
java.sql.Timestamp
;
@SuppressWarnings
(
"serial"
)
public
class
Measureunit
implements
java
.
io
.
Serializable
{
private
Long
id
;
private
String
unitname
;
private
String
description
;
private
Short
isystem
;
public
Measureunit
()
{
}
public
Measureunit
(
Long
id
)
{
this
.
id
=
id
;
}
public
Measureunit
(
String
unitname
,
Timestamp
createtime
,
Long
creator
,
Timestamp
updatetime
,
Long
updator
,
String
description
,
Short
isystem
)
{
this
.
unitname
=
unitname
;
this
.
description
=
description
;
this
.
isystem
=
isystem
;
}
public
Long
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getUnitname
()
{
return
this
.
unitname
;
}
public
void
setUnitname
(
String
unitname
)
{
this
.
unitname
=
unitname
;
}
public
String
getDescription
()
{
return
this
.
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
Short
getIsystem
()
{
return
this
.
isystem
;
}
public
void
setIsystem
(
Short
isystem
)
{
this
.
isystem
=
isystem
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Person.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.Person"
table=
"jsh_person"
>
<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=
"Type"
type=
"java.lang.String"
>
<column
length=
"20"
name=
"Type"
>
<comment>
类型
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"Name"
type=
"java.lang.String"
>
<column
length=
"50"
name=
"Name"
>
<comment>
姓名
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Person.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Person
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
Depot
depot
;
private
String
Type
;
private
String
Name
;
public
Person
()
{
}
public
Person
(
Long
Id
)
{
this
.
Id
=
Id
;
}
public
Person
(
Depot
depot
,
String
type
,
String
name
)
{
this
.
depot
=
depot
;
Type
=
type
;
Name
=
name
;
}
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
getType
()
{
return
Type
;
}
public
void
setType
(
String
type
)
{
Type
=
type
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Role.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.Role"
table=
"jsh_role"
>
<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=
"50"
name=
"Name"
>
<comment>
角色名称
</comment>
</column>
</property>
</class>
</hibernate-mapping>
src/com/jsh/model/po/Role.java
0 → 100644
View file @
f01f4f21
package
com.jsh.model.po
;
@SuppressWarnings
(
"serial"
)
public
class
Role
implements
java
.
io
.
Serializable
{
private
Long
Id
;
private
String
Name
;
public
Role
()
{
}
public
Long
getId
()
{
return
Id
;
}
public
void
setId
(
Long
id
)
{
Id
=
id
;
}
public
String
getName
()
{
return
Name
;
}
public
void
setName
(
String
name
)
{
Name
=
name
;
}
}
\ No newline at end of file
src/com/jsh/model/po/Supplier.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.Supplier"
table=
"ams_t_supplier"
>
<id
name=
"id"
type=
"java.lang.Long"
>
<column
name=
"id"
/>
<generator
class=
"native"
/>
</id>
<property
name=
"supplier"
type=
"java.lang.String"
>
<column
name=
"supplier"
not-null=
"true"
>
<comment>
供应商名称
</comment>
</column>
</property>
<property
name=
"type"
type=
"java.lang.String"
>
<column
name=
"type"
length=
"20"
>
<comment>
类型
</comment>
</column>
</property>
<property
name=
"contacts"
type=
"java.lang.String"
>
<column
name=
"contacts"
length=
"100"
>
<comment>
联系人
</comment>
</column>
</property>
<property
name=
"phonenum"
type=
"java.lang.String"
>
<column
name=
"phonenum"
length=
"30"
>
<comment>
联系电话
</comment>
</column>
</property>
<property
name=
"email"
type=
"java.lang.String"
>
<column
name=
"email"
length=
"50"
>
<comment>
电子邮箱
</comment>
</column>
</property>
<property
name=
"description"
type=
"java.lang.String"
>
<column
name=
"description"
length=
"500"
/>
</property>
<property
name=
"isystem"
type=
"java.lang.Short"
>
<column
name=
"isystem"
not-null=
"true"
>
<comment>
是否系统自带 0==系统 1==非系统
</comment>
</column>
</property>
<property
generated=
"never"
lazy=
"false"
name=
"enabled"
type=
"boolean"
>
<column
length=
"1"
name=
"enabled"
>
<comment>
启用
</comment>
</column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
Prev
1
2
3
4
5
6
7
8
9
10
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