diff --git a/src/main/resources/common/jdbc.properties b/src/main/resources/common/jdbc.properties index 19baf067..4f1dc797 100644 --- a/src/main/resources/common/jdbc.properties +++ b/src/main/resources/common/jdbc.properties @@ -1,4 +1,4 @@ -jdbcUrl= jdbc\:mysql\://localhost\:3306/jsh_erp?useUnicode\=true&characterEncoding\=UTF-8 +jdbcUrl= jdbc\:mysql\://localhost\:3306/jsh_erp20170717?useUnicode\=true&characterEncoding\=UTF-8 driverClass= com.mysql.jdbc.Driver user= root password=1234 \ No newline at end of file diff --git a/src/main/resources/hibernate/Depot.hbm.xml b/src/main/resources/hibernate/Depot.hbm.xml index 528ac16f..8fe3df57 100644 --- a/src/main/resources/hibernate/Depot.hbm.xml +++ b/src/main/resources/hibernate/Depot.hbm.xml @@ -1,6 +1,6 @@ + "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> @@ -12,6 +12,21 @@ 仓库名称 + + + 仓库地址 + + + + + 仓储费 + + + + + 搬运费 + + 类型 diff --git a/src/main/resources/hibernate/DepotHead.hbm.xml b/src/main/resources/hibernate/DepotHead.hbm.xml index 96257ac4..f4ee9e95 100644 --- a/src/main/resources/hibernate/DepotHead.hbm.xml +++ b/src/main/resources/hibernate/DepotHead.hbm.xml @@ -1,6 +1,6 @@ + "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> @@ -14,14 +14,19 @@ - 出入库分类 + 出入库分类(销售、采购、调拨等) - - 项目Id - + + 仓库id(停用) + + + + 初始票据号 + + 票据号 @@ -44,7 +49,7 @@ - 供应商Id + 供应商或客户Id @@ -52,6 +57,11 @@ 经手人Id + + + 业务员(可以多个) + + 账户Id @@ -59,13 +69,58 @@ - 变动金额(收款/付款) + 单据总金额(收款/付款) + + + + + 多账户ID列表 + + + + + 多账户金额列表 + + + + + 优惠率 + + + + + 优惠金额 + + + + + 优惠后金额 + + + + + 销售或采购费用 + + + + + 销售或采购费用涉及项目Id数组(包括快递、招待等) + + + + + 销售或采购费用涉及项目(包括快递、招待等) + + + + + 结算天数 - - 调拨时,对方项目Id - + + 调拨时,对方仓库Id(停用) + @@ -74,7 +129,12 @@ - 付款类型 + 付款类型(现金、记账等) + + + + + 单据状态(未审核、已审核) diff --git a/src/main/resources/hibernate/DepotItem.hbm.xml b/src/main/resources/hibernate/DepotItem.hbm.xml index c6de4ed9..b188287d 100644 --- a/src/main/resources/hibernate/DepotItem.hbm.xml +++ b/src/main/resources/hibernate/DepotItem.hbm.xml @@ -1,6 +1,6 @@ + "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> @@ -8,39 +8,99 @@ - - 表头Id - + + 主表Id + - - 材料Id - + + 商品Id + + + + 商品计量单位 + + 数量 + + + 基础数量,如kg、瓶 + + 单价 + + + 含税单价 + + 金额 + + + 仓库ID(库存是统计出来的) + + + + + 调拨时,对方仓库Id + + + + + 税率 + + + + + 税额 + + + + + 价税合计 + + + + + 自定义字段1-品名 + + + + + 自定义字段2-型号 + + + + + 自定义字段3-制造商 + + + + + 自定义字段4 + + + + + 自定义字段5 + + 描述 - - - 图片 - - diff --git a/src/main/resources/hibernate/Functions.hbm.xml b/src/main/resources/hibernate/Functions.hbm.xml index 2a8923bc..f1e1d478 100644 --- a/src/main/resources/hibernate/Functions.hbm.xml +++ b/src/main/resources/hibernate/Functions.hbm.xml @@ -47,6 +47,11 @@ 类型 + + + 功能按钮 + + diff --git a/src/main/resources/hibernate/Material.hbm.xml b/src/main/resources/hibernate/Material.hbm.xml index 1ca3b9de..5bf5270a 100644 --- a/src/main/resources/hibernate/Material.hbm.xml +++ b/src/main/resources/hibernate/Material.hbm.xml @@ -15,6 +15,21 @@ 名称 + + + 制造商 + + + + + 包装(KG/包) + + + + + 安全存量(KG) + + 型号 @@ -32,7 +47,27 @@ - 单位 + 单位-单个 + + + + + 多单位 + + + + + 首选出库单位 + + + + + 首选入库单位 + + + + + 价格策略 @@ -60,5 +95,10 @@ 备注 + + + 启用 + + diff --git a/src/main/resources/hibernate/Supplier.hbm.xml b/src/main/resources/hibernate/Supplier.hbm.xml index 475cc5bc..80260dc1 100644 --- a/src/main/resources/hibernate/Supplier.hbm.xml +++ b/src/main/resources/hibernate/Supplier.hbm.xml @@ -9,7 +9,7 @@ - 供应商名称 + 名称 @@ -24,7 +24,17 @@ - 联系电话 + 电话 + + + + + 传真 + + + + + 手机 @@ -32,11 +42,36 @@ 电子邮箱 + + + 地址 + + 预收款 + + + 纳税人识别号 + + + + + 开户行 + + + + + 账号 + + + + + 税率 + + 期初应收 @@ -58,7 +93,9 @@ - + + 备注 + diff --git a/src/main/resources/hibernate/Unit.hbm.xml b/src/main/resources/hibernate/Unit.hbm.xml new file mode 100644 index 00000000..2071c2a3 --- /dev/null +++ b/src/main/resources/hibernate/Unit.hbm.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + 单位名称 + + + + diff --git a/src/main/resources/hibernate/UserBusiness.hbm.xml b/src/main/resources/hibernate/UserBusiness.hbm.xml index 98b9201b..f45a1c9d 100644 --- a/src/main/resources/hibernate/UserBusiness.hbm.xml +++ b/src/main/resources/hibernate/UserBusiness.hbm.xml @@ -22,5 +22,10 @@ + + + 按钮权限 + + diff --git a/src/main/resources/hibernate/hibernate.cfg.xml b/src/main/resources/hibernate/hibernate.cfg.xml index 5a4b823f..e399c485 100644 --- a/src/main/resources/hibernate/hibernate.cfg.xml +++ b/src/main/resources/hibernate/hibernate.cfg.xml @@ -29,6 +29,7 @@ + diff --git a/src/main/resources/spring/basic-applicationContext.xml b/src/main/resources/spring/basic-applicationContext.xml index a3d9574d..c65d478e 100644 --- a/src/main/resources/spring/basic-applicationContext.xml +++ b/src/main/resources/spring/basic-applicationContext.xml @@ -106,10 +106,12 @@ + + @@ -140,6 +142,18 @@ + + + + + + + + + + + + @@ -294,6 +308,7 @@ + diff --git a/src/main/resources/spring/dao-applicationContext.xml b/src/main/resources/spring/dao-applicationContext.xml index 8261312c..dd07b88b 100644 --- a/src/main/resources/spring/dao-applicationContext.xml +++ b/src/main/resources/spring/dao-applicationContext.xml @@ -20,6 +20,8 @@ + + diff --git a/src/main/resources/struts2/material-struts.xml b/src/main/resources/struts2/material-struts.xml index d5e38778..1e590ba7 100644 --- a/src/main/resources/struts2/material-struts.xml +++ b/src/main/resources/struts2/material-struts.xml @@ -7,5 +7,24 @@ + + + + application/vnd.ms-excel + excelStream + attachment;filename="${fileName}" + 1024 + + /pages/materials/material.jsp + + + + + application/vnd.ms-excel + excelStream + attachment;filename="${fileName}" + 1024 + + \ No newline at end of file diff --git a/src/main/resources/struts2/supplier-struts.xml b/src/main/resources/struts2/supplier-struts.xml index 407b1b57..3545c13e 100644 --- a/src/main/resources/struts2/supplier-struts.xml +++ b/src/main/resources/struts2/supplier-struts.xml @@ -7,5 +7,46 @@ + + + + + application/vnd.ms-excel + excelStream + attachment;filename="${fileName}" + 1024 + + /pages/manage/vendor.jsp + + + + + application/vnd.ms-excel + excelStream + attachment;filename="${fileName}" + 1024 + + /pages/manage/customer.jsp + + + + + application/vnd.ms-excel + excelStream + attachment;filename="${fileName}" + 1024 + + /pages/manage/member.jsp + + + + + + application/vnd.ms-excel + excelStream + attachment;filename="${fileName}" + 1024 + + \ No newline at end of file diff --git a/src/main/resources/struts2/unit-struts.xml b/src/main/resources/struts2/unit-struts.xml new file mode 100644 index 00000000..6a3dd7c1 --- /dev/null +++ b/src/main/resources/struts2/unit-struts.xml @@ -0,0 +1,11 @@ + + + + + + + + + \ No newline at end of file