Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
ab2d23c6
Commit
ab2d23c6
authored
May 30, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-05-30 销售出库单
parent
36a51ac2
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
148 additions
and
6 deletions
+148
-6
AllotTypeEnum.java
src/main/java/com/baosight/hggp/common/AllotTypeEnum.java
+68
-0
DdynamicEnum.java
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
+25
-0
HGConstant.java
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
+2
-0
HGKC004.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004.xml
+1
-0
HGKC004A.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004A.xml
+1
-0
HGKC010.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC010.xml
+40
-0
HGPZ005A.xml
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005A.xml
+1
-0
HGSJ001.xml
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
+3
-1
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+2
-0
HGKC004.js
src/main/webapp/HG/KC/HGKC004.js
+4
-4
HGKC004A.jsp
src/main/webapp/HG/KC/HGKC004A.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/common/AllotTypeEnum.java
0 → 100644
View file @
ab2d23c6
package
com
.
baosight
.
hggp
.
common
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author LiuYang
* @version 1.0 2024/5/29
*/
public
enum
AllotTypeEnum
{
ZZN
(
1
,
"组织内"
),
ZZJ
(
2
,
"组织间"
);
private
Integer
code
;
private
String
value
;
AllotTypeEnum
(
Integer
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
static
EiBlock
generatorEiBlock
()
{
EiBlock
block
=
new
EiBlock
(
"allot_type_block_id"
);
List
<
Map
<
String
,
Object
>>
rows
=
new
ArrayList
<
Map
<
String
,
Object
>>()
{{
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HGConstants
.
TEXT_FIELD
,
ZZN
.
value
);
put
(
HGConstants
.
VALUE_FIELD
,
ZZN
.
code
);
}});
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HGConstants
.
TEXT_FIELD
,
ZZJ
.
value
);
put
(
HGConstants
.
VALUE_FIELD
,
ZZJ
.
code
);
}});
}};
block
.
setRows
(
rows
);
return
block
;
}
public
static
AllotTypeEnum
getEnumByCode
(
Integer
code
){
for
(
AllotTypeEnum
en
:
AllotTypeEnum
.
values
()){
if
(
code
.
compareTo
(
en
.
code
)==
0
){
return
en
;
}
}
return
null
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
}
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
View file @
ab2d23c6
...
@@ -123,6 +123,20 @@ public enum DdynamicEnum {
...
@@ -123,6 +123,20 @@ public enum DdynamicEnum {
*/
*/
SPEC_NAME_BLOCK_ID
(
"spec_name_block_id"
,
"spec"
,
"spec"
,
"HGPZ005.queryComboBoxSpecName"
),
SPEC_NAME_BLOCK_ID
(
"spec_name_block_id"
,
"spec"
,
"spec"
,
"HGPZ005.queryComboBoxSpecName"
),
/**
* 模块:规格
* 用途:调拨单下拉框
* 编写:ly
*/
INVENT_CODE_BOX_BLOCK_ID
(
"invent_code_box_block_id"
,
"inventCode"
,
"inventName"
,
"inventType"
,
"specId"
,
"HGKC010.queryInventCodeBox"
),
/**
* 模块:规格
* 用途:调拨单下拉框
* 编写:ly
*/
SPEC_BOX_BLOCK_ID
(
"spec_box_block_id"
,
"specId"
,
"spec"
,
"length"
,
"width"
,
"thick"
,
"invQty"
,
"invUnitWeight"
,
"invWeight"
,
"HGKC010.querySpecIdBox"
),
/**
/**
* 模块:仓库类型
* 模块:仓库类型
* 用途:仓库类型下拉框
* 用途:仓库类型下拉框
...
@@ -138,6 +152,17 @@ public enum DdynamicEnum {
...
@@ -138,6 +152,17 @@ public enum DdynamicEnum {
WH_RECORD_BLOCK_ID
(
"wh_record_block_id"
,
"whCode"
,
"whName"
,
"HGPZ007.queryComboBox"
),
WH_RECORD_BLOCK_ID
(
"wh_record_block_id"
,
"whCode"
,
"whName"
,
"HGPZ007.queryComboBox"
),
/**
/**
* 模块:调拨单
* 用途:调拨单下拉框
* 编写:ly
*/
WH_RECORD_BOX_BLOCK_ID
(
"wh_record_box_block_id"
,
"whCode"
,
"whName"
,
"companyCode"
,
"companyName"
,
"HGKC010.queryWhCodeBox"
,
new
HashMap
<
String
,
Object
>(){{
put
(
"deleteFlag"
,
CommonConstant
.
YesNo
.
NO_0
);
}}),
/**
* 模块:仓库档案
* 模块:仓库档案
* 用途:仓库档案下拉框 不默认状态
* 用途:仓库档案下拉框 不默认状态
* 编写:
* 编写:
...
...
src/main/java/com/baosight/hggp/hg/constant/HGConstant.java
View file @
ab2d23c6
...
@@ -111,6 +111,8 @@ public class HGConstant {
...
@@ -111,6 +111,8 @@ public class HGConstant {
public
static
final
String
CW_SETTLEMENT_NO
=
"CW_SETTLEMENT_NO"
;
public
static
final
String
CW_SETTLEMENT_NO
=
"CW_SETTLEMENT_NO"
;
// 销售出库单号
// 销售出库单号
public
static
final
String
SALE_OUT_CODE
=
"SALE_OUT_CODE"
;
public
static
final
String
SALE_OUT_CODE
=
"SALE_OUT_CODE"
;
// 调拨单号
public
static
final
String
ALLOT_NO
=
"ALLOT_NO"
;
}
}
/**
/**
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004.xml
View file @
ab2d23c6
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
STATUS as "status"
<!-- 状态 0-停止 1-启用 -->
STATUS as "status"
<!-- 状态 0-停止 1-启用 -->
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC004A.xml
View file @
ab2d23c6
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
</sql>
</sql>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC010.xml
View file @
ab2d23c6
...
@@ -200,4 +200,44 @@
...
@@ -200,4 +200,44 @@
WHERE ID = #id#
WHERE ID = #id#
</update>
</update>
<!--仓库公司下拉框-->
<select
id=
"queryWhCodeBox"
resultClass=
"java.util.HashMap"
>
SELECT distinct
COMPANY_CODE as "companyCode",
<!-- 公司编码 -->
COMPANY_NAME as "companyName",
<!-- 公司名称 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName"
<!-- 仓库名称 -->
FROM ${hggpSchema}.HGKC010
WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--存货名称下拉框-->
<select
id=
"queryInventCodeBox"
resultClass=
"java.util.HashMap"
>
SELECT distinct
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC_ID as "specId",
<!-- 规格ID -->
FROM ${hggpSchema}.HGKC010
WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--规格下拉框-->
<select
id=
"querySpecIdBox"
resultClass=
"java.util.HashMap"
>
SELECT distinct
SPEC_ID as "specId",
<!-- 规格ID -->
SPEC as "spec",
<!-- 规格 -->
LENGTH as "length",
<!-- 长度 -->
WIDTH as "width",
<!-- 宽度 -->
THICK as "thick",
<!-- 厚度 -->
INV_QTY as "invQty",
<!-- 库存数量 -->
INV_UNIT_WEIGHT as "invUnitWeight",
<!-- 库存单重 -->
INV_WEIGHT as "invWeight"
<!-- 库存重量 -->
FROM ${hggpSchema}.HGKC010
WHERE 1=1
<include
refid=
"condition"
/>
</select>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hggp/hg/pz/sql/HGPZ005A.xml
View file @
ab2d23c6
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
<sqlMap
namespace=
"HGPZ005A"
>
<sqlMap
namespace=
"HGPZ005A"
>
<sql
id=
"condition"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
ID = #id#
</isNotEmpty>
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/sj/sql/HGSJ001.xml
View file @
ab2d23c6
...
@@ -311,7 +311,9 @@
...
@@ -311,7 +311,9 @@
a.ORG_ENAME as "orgEname",
a.ORG_ENAME as "orgEname",
a.ORG_CNAME as "orgCname"
a.ORG_CNAME as "orgCname"
from ${platSchema}.txsog01 a
from ${platSchema}.txsog01 a
left join ${platSchema}.txsog02 b on a.ORG_ID = b.ORG_ID
<isNotEmpty
prepend=
"AND"
property=
"userId"
>
left join ${platSchema}.txsog02 b on a.ORG_ID = b.ORG_ID
</isNotEmpty>
where 1=1
where 1=1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
a.ACCOUNT_CODE = #accountCode#
a.ACCOUNT_CODE = #accountCode#
...
...
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
ab2d23c6
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC004A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC004A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC010.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC010.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC011.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC011.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC013.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC013A.xml"
/>
<!-- 质量 -->
<!-- 质量 -->
<sqlMap
resource=
"com/baosight/hggp/hg/zl/sql/HGZL001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/zl/sql/HGZL001.xml"
/>
<!-- 生产 -->
<!-- 生产 -->
...
...
src/main/webapp/HG/KC/HGKC004.js
View file @
ab2d23c6
...
@@ -29,10 +29,10 @@ $(function () {
...
@@ -29,10 +29,10 @@ $(function () {
e
.
preventDefault
();
e
.
preventDefault
();
save
();
save
();
},
},
},
onSuccess
:
function
(
e
)
{
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
){
query
();
query
();
}
}
}
}
}
}
}
...
...
src/main/webapp/HG/KC/HGKC004A.jsp
View file @
ab2d23c6
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<script>
<script>
var ctx = "${ctx}";
var ctx = "${ctx}";
</script>
</script>
<EF:EFPage title="
存货档案
">
<EF:EFPage title="
销售出库单详情
">
<EF:EFRegion id="inqu" title="查询条件">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<div class="row">
<EF:EFSelect cname="存货类型" ename="inqu_status-0-inventType" colWidth="3" filter="contains">
<EF:EFSelect cname="存货类型" ename="inqu_status-0-inventType" colWidth="3" filter="contains">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment