Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
f3c46019
Commit
f3c46019
authored
Jan 10, 2024
by
YG6494
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c7a3e335
5ba56f3b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
191 additions
and
30 deletions
+191
-30
DdynamicEnum.java
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
+29
-6
InventTypeEnun.java
src/main/java/com/baosight/hpjx/common/InventTypeEnun.java
+68
-0
THppz004.java
src/main/java/com/baosight/hpjx/hp/pz/domain/THppz004.java
+13
-13
HPPZ003.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ003.xml
+16
-1
HPPZ004.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
+16
-0
HPPZ007.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ007.xml
+16
-1
HPSC001.xml
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC001.xml
+16
-0
HPPZ002.jsp
src/main/webapp/HP/PZ/HPPZ002.jsp
+4
-4
HPPZ004.js
src/main/webapp/HP/PZ/HPPZ004.js
+1
-1
HPPZ004.jsp
src/main/webapp/HP/PZ/HPPZ004.jsp
+12
-4
No files found.
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
View file @
f3c46019
...
@@ -14,19 +14,42 @@ package com.baosight.hpjx.common;
...
@@ -14,19 +14,42 @@ package com.baosight.hpjx.common;
*}});
*}});
*/
*/
public
enum
DdynamicEnum
{
public
enum
DdynamicEnum
{
//------------------------------------配置管理-----------------------------------
/**
/**
* 模块:供应商档案
* 模块:供应商档案
* 用途:供应商档案下拉框
.
* 用途:供应商档案下拉框
* 编写:wwl
.
* 编写:wwl
*/
*/
SUPPLIER_RECORD_BLOCK_ID
(
"supplier_record_block_id"
,
"
CUST_CODE"
,
"CUST_NAME
"
,
"HPPZ002.queryComboBox"
),
SUPPLIER_RECORD_BLOCK_ID
(
"supplier_record_block_id"
,
"
custCode"
,
"custName
"
,
"HPPZ002.queryComboBox"
),
/**
/**
* 模块:客户档案
* 模块:客户档案
* 用途:客户档案下拉框
.
* 用途:客户档案下拉框
* 编写:wwl
.
* 编写:wwl
*/
*/
CUSTOMER_RECORD_BLOCK_ID
(
"customer_record_block_id"
,
"CUST_CODE"
,
"CUST_NAME"
,
"HPPZ003.queryComboBox"
);
CUSTOMER_RECORD_BLOCK_ID
(
"customer_record_block_id"
,
"custCode"
,
"custName"
,
"HPPZ003.queryComboBox"
),
/**
* 模块:存货名称
* 用途:存货名称下拉框
* 编写:wwl
*/
INVENT_NAME_BLOCK_ID
(
"invent_name_block_id"
,
"inventCode"
,
"inventName"
,
"HPPZ004.queryComboBox"
),
/**
* 模块:仓库档案
* 用途:仓库档案下拉框
* 编写:wwl
*/
WH_RECORD_BLOCK_ID
(
"wh_record_block_id"
,
"whCode"
,
"whName"
,
"HPPZ007.queryComboBox"
),
//------------------------------------生产管理-----------------------------------
/**
* 模块:项目档案
* 用途:项目档案下拉框
* 编写:wwl
*/
PROJ_RECORD_BLOCK_ID
(
"proj_record_block_id"
,
"projCode"
,
"projName"
,
"HPSC001.queryComboBox"
);
/** 将结果集放入的块名 */
/** 将结果集放入的块名 */
...
...
src/main/java/com/baosight/hpjx/common/InventTypeEnun.java
0 → 100644
View file @
f3c46019
package
com
.
baosight
.
hpjx
.
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 wwl
* @Date 2024/1/10 14:29
*/
public
enum
InventTypeEnun
{
MATERIAL
(
1
,
"原材料"
),
CONSUMABLE
(
2
,
"耗材"
),
SEMI_FINISHED_PRODUCT
(
2
,
"半成品"
),
FINISHED_PRODUCT
(
2
,
"产成品"
);
private
Integer
code
;
private
String
value
;
InventTypeEnun
(
Integer
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
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
;
}
public
static
EiBlock
generatorEiBlock
()
{
EiBlock
block
=
new
EiBlock
(
"customer_type_block_id"
);
List
<
Map
<
String
,
Object
>>
rows
=
new
ArrayList
<
Map
<
String
,
Object
>>()
{{
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HPConstants
.
TEXT_FIELD
,
MATERIAL
.
code
);
put
(
HPConstants
.
VALUE_FIELD
,
MATERIAL
.
value
);
}});
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HPConstants
.
TEXT_FIELD
,
CONSUMABLE
.
code
);
put
(
HPConstants
.
VALUE_FIELD
,
CONSUMABLE
.
value
);
}});
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HPConstants
.
TEXT_FIELD
,
SEMI_FINISHED_PRODUCT
.
code
);
put
(
HPConstants
.
VALUE_FIELD
,
SEMI_FINISHED_PRODUCT
.
value
);
}});
add
(
new
HashMap
<
String
,
Object
>()
{{
put
(
HPConstants
.
TEXT_FIELD
,
FINISHED_PRODUCT
.
code
);
put
(
HPConstants
.
VALUE_FIELD
,
FINISHED_PRODUCT
.
value
);
}});
}};
block
.
setRows
(
rows
);
return
block
;
}
}
src/main/java/com/baosight/hpjx/hp/pz/domain/THppz004.java
View file @
f3c46019
...
@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -16,7 +16,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
*/
*/
public
class
THppz004
extends
DaoEPBase
{
public
class
THppz004
extends
DaoEPBase
{
private
Integer
id
=
0
;
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventCode
=
" "
;
/* 存货编码*/
...
@@ -87,20 +87,20 @@ public THppz004() {
...
@@ -87,20 +87,20 @@ public THppz004() {
initMetaData
();
initMetaData
();
}
}
/**
/**
* get the id
* get the id
* @return the id
* @return the id
*/
*/
public
Integer
getId
()
{
public
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
}
}
/**
/**
* set the id
* set the id
*/
*/
public
void
setId
(
Integer
id
)
{
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
this
.
id
=
id
;
}
}
/**
/**
* get the companyCode - 企业编码 预留
* get the companyCode - 企业编码 预留
* @return the companyCode
* @return the companyCode
...
@@ -246,7 +246,7 @@ initMetaData();
...
@@ -246,7 +246,7 @@ initMetaData();
*/
*/
public
void
fromMap
(
Map
map
)
{
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
to
Integer
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setId
(
NumberUtils
.
to
Long
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ003.xml
View file @
f3c46019
...
@@ -133,5 +133,19 @@
...
@@ -133,5 +133,19 @@
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
CUST_CODE as "custCode",
CUST_CNAME as "custName"
FROM hpjx.t_hppz003 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"custType"
>
CUST_TYPE = #custType#
</isNotEmpty>
ORDER BY CUST_CODE
</select>
</sqlMap>
</sqlMap>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
View file @
f3c46019
...
@@ -127,5 +127,20 @@
...
@@ -127,5 +127,20 @@
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
INVENT_CODE as "inventCode",
INVENT_NAME as "inventName"
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventType"
>
INVENT_TYPE = #inventType#
</isNotEmpty>
ORDER BY INVENT_CODE
</select>
</sqlMap>
</sqlMap>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ007.xml
View file @
f3c46019
...
@@ -131,5 +131,19 @@
...
@@ -131,5 +131,19 @@
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
WH_CODE = #whCode#,
WH_NAME = #whName#
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whType"
>
WH_TYPE = #whType#
</isNotEmpty>
ORDER BY WH_CODE
</select>
</sqlMap>
</sqlMap>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC001.xml
View file @
f3c46019
...
@@ -148,5 +148,20 @@
...
@@ -148,5 +148,20 @@
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
PROJ_CODE = #projCode#,
PROJ_NAME = #projName#
FROM hpjx.t_hpsc001 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projType"
>
PROJ_TYPE = #projType#
</isNotEmpty>
ORDER BY PROJ_CODE
</select>
</sqlMap>
</sqlMap>
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ002.jsp
View file @
f3c46019
...
@@ -28,8 +28,8 @@
...
@@ -28,8 +28,8 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"custType"
cname=
"供应商类型"
align=
"center"
<EF:EFComboColumn
ename=
"custType"
cname=
"供应商类型"
align=
"center"
columnTemplate=
"#=
textField#-#=value
Field#"
optionLabel=
" "
columnTemplate=
"#=
valueField#-#=text
Field#"
optionLabel=
" "
itemTemplate=
"#=
textField#-#=value
Field#"
textField=
"textField"
itemTemplate=
"#=
valueField#-#=text
Field#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"国企"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"国企"
value=
"1"
></EF:EFOption>
...
@@ -38,8 +38,8 @@
...
@@ -38,8 +38,8 @@
<EF:EFColumn
ename=
"custCode"
cname=
"供应商编码"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"custCode"
cname=
"供应商编码"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"custName"
cname=
"供应商名称"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"custName"
cname=
"供应商名称"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"address"
cname=
"地址"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"address"
cname=
"地址"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=
textField#-#=value
Field#"
optionLabel=
" "
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=
valueField#-#=text
Field#"
optionLabel=
" "
itemTemplate=
"#=
textField#-#=value
Field#"
textField=
"textField"
itemTemplate=
"#=
valueField#-#=text
Field#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
...
...
src/main/webapp/HP/PZ/HPPZ004.js
View file @
f3c46019
...
@@ -40,7 +40,7 @@ $(function() {
...
@@ -40,7 +40,7 @@ $(function() {
});
});
// 修改
// 修改
$
(
"#UPDATE"
).
on
(
"click"
,
function
()
{
$
(
"#
BTN_
UPDATE"
).
on
(
"click"
,
function
()
{
var
rowCount
=
resultGrid
.
getCheckedRows
();
var
rowCount
=
resultGrid
.
getCheckedRows
();
// 检验是否选中数据
// 检验是否选中数据
if
(
rowCount
==
null
||
rowCount
==
""
)
{
if
(
rowCount
==
null
||
rowCount
==
""
)
{
...
...
src/main/webapp/HP/PZ/HPPZ004.jsp
View file @
f3c46019
...
@@ -9,7 +9,10 @@
...
@@ -9,7 +9,10 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"inqu_status-0-inventName"
cname=
"存货类型"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFSelect
ename=
"inqu_status-0-inventType"
cname=
"存货类型"
colWidth=
"4"
>
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"待定"
value=
"1"
></EF:EFOption>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-status"
cname=
"状态"
colWidth=
"4"
>
<EF:EFSelect
ename=
"inqu_status-0-status"
cname=
"状态"
colWidth=
"4"
>
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
...
@@ -24,9 +27,14 @@
...
@@ -24,9 +27,14 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"类型编码"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"类型编码"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFColumn
ename=
"inventType"
cname=
"存货类型"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"待定"
value=
"1"
></EF:EFOption>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
...
...
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