初始化项目2
This commit is contained in:
81
src/com/jsh/model/po/App.hbm.xml
Normal file
81
src/com/jsh/model/po/App.hbm.xml
Normal file
@@ -0,0 +1,81 @@
|
||||
<?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>
|
||||
174
src/com/jsh/model/po/App.java
Normal file
174
src/com/jsh/model/po/App.java
Normal file
@@ -0,0 +1,174 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
96
src/com/jsh/model/po/Asset.hbm.xml
Normal file
96
src/com/jsh/model/po/Asset.hbm.xml
Normal file
@@ -0,0 +1,96 @@
|
||||
<?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>
|
||||
379
src/com/jsh/model/po/Asset.java
Normal file
379
src/com/jsh/model/po/Asset.java
Normal file
@@ -0,0 +1,379 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
26
src/com/jsh/model/po/Assetcategory.hbm.xml
Normal file
26
src/com/jsh/model/po/Assetcategory.hbm.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
67
src/com/jsh/model/po/Assetcategory.java
Normal file
67
src/com/jsh/model/po/Assetcategory.java
Normal file
@@ -0,0 +1,67 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
34
src/com/jsh/model/po/Assetname.hbm.xml
Normal file
34
src/com/jsh/model/po/Assetname.hbm.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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>
|
||||
93
src/com/jsh/model/po/Assetname.java
Normal file
93
src/com/jsh/model/po/Assetname.java
Normal file
@@ -0,0 +1,93 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
69
src/com/jsh/model/po/Basicuser.hbm.xml
Normal file
69
src/com/jsh/model/po/Basicuser.hbm.xml
Normal file
@@ -0,0 +1,69 @@
|
||||
<?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>
|
||||
177
src/com/jsh/model/po/Basicuser.java
Normal file
177
src/com/jsh/model/po/Basicuser.java
Normal file
@@ -0,0 +1,177 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
29
src/com/jsh/model/po/Building.hbm.xml
Normal file
29
src/com/jsh/model/po/Building.hbm.xml
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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>
|
||||
70
src/com/jsh/model/po/Building.java
Normal file
70
src/com/jsh/model/po/Building.java
Normal file
@@ -0,0 +1,70 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
26
src/com/jsh/model/po/Category.hbm.xml
Normal file
26
src/com/jsh/model/po/Category.hbm.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
67
src/com/jsh/model/po/Category.java
Normal file
67
src/com/jsh/model/po/Category.java
Normal file
@@ -0,0 +1,67 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
26
src/com/jsh/model/po/Department.hbm.xml
Normal file
26
src/com/jsh/model/po/Department.hbm.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
69
src/com/jsh/model/po/Department.java
Normal file
69
src/com/jsh/model/po/Department.java
Normal file
@@ -0,0 +1,69 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
26
src/com/jsh/model/po/Depot.hbm.xml
Normal file
26
src/com/jsh/model/po/Depot.hbm.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
60
src/com/jsh/model/po/Depot.java
Normal file
60
src/com/jsh/model/po/Depot.java
Normal file
@@ -0,0 +1,60 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
96
src/com/jsh/model/po/DepotHead.hbm.xml
Normal file
96
src/com/jsh/model/po/DepotHead.hbm.xml
Normal file
@@ -0,0 +1,96 @@
|
||||
<?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>
|
||||
210
src/com/jsh/model/po/DepotHead.java
Normal file
210
src/com/jsh/model/po/DepotHead.java
Normal file
@@ -0,0 +1,210 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
46
src/com/jsh/model/po/DepotItem.hbm.xml
Normal file
46
src/com/jsh/model/po/DepotItem.hbm.xml
Normal file
@@ -0,0 +1,46 @@
|
||||
<?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>
|
||||
103
src/com/jsh/model/po/DepotItem.java
Normal file
103
src/com/jsh/model/po/DepotItem.java
Normal file
@@ -0,0 +1,103 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
54
src/com/jsh/model/po/Functions.hbm.xml
Normal file
54
src/com/jsh/model/po/Functions.hbm.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?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>
|
||||
|
||||
|
||||
|
||||
93
src/com/jsh/model/po/Functions.java
Normal file
93
src/com/jsh/model/po/Functions.java
Normal file
@@ -0,0 +1,93 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
44
src/com/jsh/model/po/Logdetails.hbm.xml
Normal file
44
src/com/jsh/model/po/Logdetails.hbm.xml
Normal file
@@ -0,0 +1,44 @@
|
||||
<?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>
|
||||
119
src/com/jsh/model/po/Logdetails.java
Normal file
119
src/com/jsh/model/po/Logdetails.java
Normal file
@@ -0,0 +1,119 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
39
src/com/jsh/model/po/Material.hbm.xml
Normal file
39
src/com/jsh/model/po/Material.hbm.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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>
|
||||
91
src/com/jsh/model/po/Material.java
Normal file
91
src/com/jsh/model/po/Material.java
Normal file
@@ -0,0 +1,91 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
24
src/com/jsh/model/po/MaterialCategory.hbm.xml
Normal file
24
src/com/jsh/model/po/MaterialCategory.hbm.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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>
|
||||
61
src/com/jsh/model/po/MaterialCategory.java
Normal file
61
src/com/jsh/model/po/MaterialCategory.java
Normal file
@@ -0,0 +1,61 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
26
src/com/jsh/model/po/Measureunit.hbm.xml
Normal file
26
src/com/jsh/model/po/Measureunit.hbm.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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>
|
||||
72
src/com/jsh/model/po/Measureunit.java
Normal file
72
src/com/jsh/model/po/Measureunit.java
Normal file
@@ -0,0 +1,72 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
24
src/com/jsh/model/po/Person.hbm.xml
Normal file
24
src/com/jsh/model/po/Person.hbm.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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>
|
||||
59
src/com/jsh/model/po/Person.java
Normal file
59
src/com/jsh/model/po/Person.java
Normal file
@@ -0,0 +1,59 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
16
src/com/jsh/model/po/Role.hbm.xml
Normal file
16
src/com/jsh/model/po/Role.hbm.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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>
|
||||
31
src/com/jsh/model/po/Role.java
Normal file
31
src/com/jsh/model/po/Role.java
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
49
src/com/jsh/model/po/Supplier.hbm.xml
Normal file
49
src/com/jsh/model/po/Supplier.hbm.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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>
|
||||
114
src/com/jsh/model/po/Supplier.java
Normal file
114
src/com/jsh/model/po/Supplier.java
Normal file
@@ -0,0 +1,114 @@
|
||||
package com.jsh.model.po;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class Supplier implements java.io.Serializable
|
||||
{
|
||||
private Long id;
|
||||
private String supplier;
|
||||
private String type;
|
||||
private String contacts;
|
||||
private String phonenum;
|
||||
private String email;
|
||||
private Short isystem;
|
||||
private String description;
|
||||
private Boolean enabled;
|
||||
|
||||
public Supplier()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Supplier(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Supplier(String supplier, String type, String contacts,
|
||||
String phonenum, String email, Short isystem, String description,
|
||||
Boolean enabled) {
|
||||
super();
|
||||
this.supplier = supplier;
|
||||
this.type = type;
|
||||
this.contacts = contacts;
|
||||
this.phonenum = phonenum;
|
||||
this.email = email;
|
||||
this.isystem = isystem;
|
||||
this.description = description;
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getSupplier() {
|
||||
return supplier;
|
||||
}
|
||||
|
||||
public void setSupplier(String supplier) {
|
||||
this.supplier = supplier;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getContacts() {
|
||||
return contacts;
|
||||
}
|
||||
|
||||
public void setContacts(String contacts) {
|
||||
this.contacts = contacts;
|
||||
}
|
||||
|
||||
public String getPhonenum() {
|
||||
return phonenum;
|
||||
}
|
||||
|
||||
public void setPhonenum(String phonenum) {
|
||||
this.phonenum = phonenum;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public Short getIsystem() {
|
||||
return isystem;
|
||||
}
|
||||
|
||||
public void setIsystem(Short isystem) {
|
||||
this.isystem = isystem;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Boolean getEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
26
src/com/jsh/model/po/UserBusiness.hbm.xml
Normal file
26
src/com/jsh/model/po/UserBusiness.hbm.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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.UserBusiness" table="jsh_userBusiness">
|
||||
<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="KeyId" type="java.lang.String">
|
||||
<column length="50" name="KeyId">
|
||||
<comment>主ID</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="Value" type="java.lang.String">
|
||||
<column length="10000" name="Value">
|
||||
<comment>值</comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
49
src/com/jsh/model/po/UserBusiness.java
Normal file
49
src/com/jsh/model/po/UserBusiness.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package com.jsh.model.po;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class UserBusiness implements java.io.Serializable
|
||||
{
|
||||
private Long Id;
|
||||
private String Type;
|
||||
private String KeyId;
|
||||
private String Value;
|
||||
|
||||
public UserBusiness()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
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 getKeyId() {
|
||||
return KeyId;
|
||||
}
|
||||
|
||||
public void setKeyId(String keyId) {
|
||||
KeyId = keyId;
|
||||
}
|
||||
|
||||
public String getValue() {
|
||||
return Value;
|
||||
}
|
||||
|
||||
public void setValue(String value) {
|
||||
Value = value;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
49
src/com/jsh/model/po/VisitAccount.hbm.xml
Normal file
49
src/com/jsh/model/po/VisitAccount.hbm.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?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.VisitAccount" table="jsh_visitaccount">
|
||||
<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="LouHao" type="java.lang.String">
|
||||
<column length="50" name="LouHao">
|
||||
<comment>楼号</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="HuHao" type="java.lang.String">
|
||||
<column length="50" name="HuHao">
|
||||
<comment>户号</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="HuiFang" type="java.lang.String">
|
||||
<column length="50" name="HuiFang">
|
||||
<comment>回访情况</comment>
|
||||
</column>
|
||||
</property>
|
||||
<property generated="never" lazy="false" name="LuoShi" type="java.lang.String">
|
||||
<column length="50" name="LuoShi">
|
||||
<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="Tel" type="java.lang.String">
|
||||
<column length="50" name="Tel">
|
||||
<comment>电话 </comment>
|
||||
</column>
|
||||
</property>
|
||||
<property name="AddTime" type="java.sql.Timestamp">
|
||||
<column length="19" name="AddTime">
|
||||
<comment>时间 </comment>
|
||||
</column>
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
114
src/com/jsh/model/po/VisitAccount.java
Normal file
114
src/com/jsh/model/po/VisitAccount.java
Normal file
@@ -0,0 +1,114 @@
|
||||
package com.jsh.model.po;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class VisitAccount implements java.io.Serializable
|
||||
{
|
||||
private Long Id;
|
||||
private Depot depot;
|
||||
private String LouHao;
|
||||
private String HuHao;
|
||||
private String HuiFang;
|
||||
private String LuoShi;
|
||||
private String Name;
|
||||
private String Tel;
|
||||
private Timestamp AddTime;
|
||||
|
||||
public VisitAccount()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public VisitAccount(Long Id)
|
||||
{
|
||||
this.Id = Id;
|
||||
}
|
||||
|
||||
public VisitAccount(Depot depot, String LouHao, String HuHao,
|
||||
String HuiFang,String LuoShi,String Name,String Tel,Timestamp AddTime)
|
||||
{
|
||||
this.depot = depot;
|
||||
this.LouHao = LouHao;
|
||||
this.HuHao = HuHao;
|
||||
this.HuiFang = HuiFang;
|
||||
this.LuoShi = LuoShi;
|
||||
this.Name = Name;
|
||||
this.Tel = Tel;
|
||||
this.AddTime = AddTime;
|
||||
}
|
||||
|
||||
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 getLouHao() {
|
||||
return LouHao;
|
||||
}
|
||||
|
||||
public void setLouHao(String louHao) {
|
||||
LouHao = louHao;
|
||||
}
|
||||
|
||||
public String getHuHao() {
|
||||
return HuHao;
|
||||
}
|
||||
|
||||
public void setHuHao(String huHao) {
|
||||
HuHao = huHao;
|
||||
}
|
||||
|
||||
public String getHuiFang() {
|
||||
return HuiFang;
|
||||
}
|
||||
|
||||
public void setHuiFang(String huiFang) {
|
||||
HuiFang = huiFang;
|
||||
}
|
||||
|
||||
public String getLuoShi() {
|
||||
return LuoShi;
|
||||
}
|
||||
|
||||
public void setLuoShi(String luoShi) {
|
||||
LuoShi = luoShi;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return Name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public String getTel() {
|
||||
return Tel;
|
||||
}
|
||||
|
||||
public void setTel(String tel) {
|
||||
Tel = tel;
|
||||
}
|
||||
|
||||
public Timestamp getAddTime() {
|
||||
return AddTime;
|
||||
}
|
||||
|
||||
public void setAddTime(Timestamp addTime) {
|
||||
AddTime = addTime;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user