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
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
180 additions
and
19 deletions
+180
-19
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
+4
-4
HPPZ003.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ003.xml
+15
-0
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
+15
-0
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;
*}});
*/
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;
*/
public
class
THppz004
extends
DaoEPBase
{
private
Integer
id
=
0
;
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
inventCode
=
" "
;
/* 存货编码*/
...
...
@@ -91,14 +91,14 @@ initMetaData();
* get the id
* @return the id
*/
public
Integer
getId
()
{
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id
*/
public
void
setId
(
Integer
id
)
{
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
...
...
@@ -246,7 +246,7 @@ initMetaData();
*/
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
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
...
...
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ003.xml
View file @
f3c46019
...
...
@@ -134,4 +134,18 @@
ID = #id#
</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>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ004.xml
View file @
f3c46019
...
...
@@ -128,4 +128,19 @@
ID = #id#
</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>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ007.xml
View file @
f3c46019
...
...
@@ -132,4 +132,18 @@
ID = #id#
</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>
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sc/sql/HPSC001.xml
View file @
f3c46019
...
...
@@ -149,4 +149,19 @@
ID = #id#
</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>
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ002.jsp
View file @
f3c46019
...
...
@@ -28,8 +28,8 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"custType"
cname=
"供应商类型"
align=
"center"
columnTemplate=
"#=
textField#-#=value
Field#"
optionLabel=
" "
itemTemplate=
"#=
textField#-#=value
Field#"
textField=
"textField"
columnTemplate=
"#=
valueField#-#=text
Field#"
optionLabel=
" "
itemTemplate=
"#=
valueField#-#=text
Field#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"国企"
value=
"1"
></EF:EFOption>
...
...
@@ -38,8 +38,8 @@
<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=
"address"
cname=
"地址"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=
textField#-#=value
Field#"
optionLabel=
" "
itemTemplate=
"#=
textField#-#=value
Field#"
textField=
"textField"
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=
valueField#-#=text
Field#"
optionLabel=
" "
itemTemplate=
"#=
valueField#-#=text
Field#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
...
...
src/main/webapp/HP/PZ/HPPZ004.js
View file @
f3c46019
...
...
@@ -40,7 +40,7 @@ $(function() {
});
// 修改
$
(
"#UPDATE"
).
on
(
"click"
,
function
()
{
$
(
"#
BTN_
UPDATE"
).
on
(
"click"
,
function
()
{
var
rowCount
=
resultGrid
.
getCheckedRows
();
// 检验是否选中数据
if
(
rowCount
==
null
||
rowCount
==
""
)
{
...
...
src/main/webapp/HP/PZ/HPPZ004.jsp
View file @
f3c46019
...
...
@@ -9,7 +9,10 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<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:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
...
...
@@ -24,9 +27,14 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"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=
"inventType"
cname=
"存货类型"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
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"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></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