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
77d284d6
Commit
77d284d6
authored
Jan 23, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实时库存管理;
parent
e8da80e2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
802 additions
and
26 deletions
+802
-26
DdynamicEnum.java
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
+104
-2
HPConstants.java
src/main/java/com/baosight/hpjx/common/HPConstants.java
+15
-0
HPKC010.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC010.java
+0
-0
ServiceHPKC001.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
+1
-1
ServiceHPKC002.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
+1
-1
ServiceHPKC003.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003.java
+1
-1
ServiceHPKC004.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
+1
-1
ServiceHPKC005.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
+1
-1
ServiceHPKC009.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009.java
+1
-1
ServiceHPKC010.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010.java
+295
-0
HPKC010.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
+161
-0
ServiceHPPZ006.java
.../java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ006.java
+16
-0
HPPZ006.xml
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ006.xml
+22
-0
package-info.java
...ain/java/com/baosight/hpjx/hp/sc/domain/package-info.java
+0
-2
package-info.java
...in/java/com/baosight/hpjx/hp/sc/service/package-info.java
+0
-2
package-info.java
src/main/java/com/baosight/hpjx/hp/sc/sql/package-info.java
+0
-2
CommonMethod.java
src/main/java/com/baosight/hpjx/util/CommonMethod.java
+11
-0
ACConstants.java
...ain/java/com/baosight/hpjx/util/contants/ACConstants.java
+1
-1
package-info.java
src/main/webapp/HP/DEMO/package-info.java
+0
-2
HPKC001.jsp
src/main/webapp/HP/KC/HPKC001.jsp
+1
-1
HPKC002.jsp
src/main/webapp/HP/KC/HPKC002.jsp
+1
-1
HPKC003.jsp
src/main/webapp/HP/KC/HPKC003.jsp
+2
-2
HPKC004.jsp
src/main/webapp/HP/KC/HPKC004.jsp
+2
-2
HPKC005.jsp
src/main/webapp/HP/KC/HPKC005.jsp
+1
-1
HPKC009.jsp
src/main/webapp/HP/KC/HPKC009.jsp
+2
-2
HPKC010.js
src/main/webapp/HP/KC/HPKC010.js
+93
-0
HPKC010.jsp
src/main/webapp/HP/KC/HPKC010.jsp
+69
-0
No files found.
src/main/java/com/baosight/hpjx/common/DdynamicEnum.java
View file @
77d284d6
...
@@ -51,6 +51,13 @@ public enum DdynamicEnum {
...
@@ -51,6 +51,13 @@ public enum DdynamicEnum {
INVENT_SPEC_BLOCK_ID
(
"invent_spec_block_id"
,
"id"
,
"spec"
,
"HPPZ006.queryComboBoxSpec"
),
INVENT_SPEC_BLOCK_ID
(
"invent_spec_block_id"
,
"id"
,
"spec"
,
"HPPZ006.queryComboBoxSpec"
),
/**
/**
* 模块:存货档案(ALL)
* 用途:存货档案下拉框
* 编写:wwl
*/
INVENT_ALL_BLOCK_ID
(
"invent_all_block_id"
,
"id"
,
"inventType"
,
"inventName"
,
"spec"
,
"material"
,
"unit"
,
"HPPZ006.queryComboBoxAll"
),
/**
* 模块:存货档案(规格)
* 模块:存货档案(规格)
* 用途:存货档案下拉框
* 用途:存货档案下拉框
* 编写:wwl
* 编写:wwl
...
@@ -64,8 +71,6 @@ public enum DdynamicEnum {
...
@@ -64,8 +71,6 @@ public enum DdynamicEnum {
*/
*/
WH_RECORD_BLOCK_ID
(
"wh_record_block_id"
,
"whCode"
,
"whName"
,
"HPPZ007.queryComboBox"
),
WH_RECORD_BLOCK_ID
(
"wh_record_block_id"
,
"whCode"
,
"whName"
,
"HPPZ007.queryComboBox"
),
WH_RECORD_QUERY_BLOCK_ID
(
"whName_block_id"
,
"whCode"
,
"whName"
,
"HPPZ007.queryComboBox"
),
/**
/**
* 模块:物料类型
* 模块:物料类型
* 用途:物料类型下拉框
* 用途:物料类型下拉框
...
@@ -95,10 +100,68 @@ public enum DdynamicEnum {
...
@@ -95,10 +100,68 @@ public enum DdynamicEnum {
private
final
String
value
;
private
final
String
value
;
/** 字段描述 */
/** 字段描述 */
private
final
String
text
;
private
final
String
text
;
private
String
param1
;
private
String
param2
;
private
String
param3
;
private
String
param4
;
private
String
param5
;
/** 数据源 */
/** 数据源 */
private
final
String
dbSource
;
private
final
String
dbSource
;
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
param1
,
String
dbSource
)
{
this
.
blockId
=
blockId
;
this
.
value
=
value
;
this
.
text
=
text
;
this
.
param1
=
param1
;
this
.
dbSource
=
dbSource
;
}
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
param1
,
String
param2
,
String
dbSource
)
{
this
.
blockId
=
blockId
;
this
.
value
=
value
;
this
.
text
=
text
;
this
.
param1
=
param1
;
this
.
param2
=
param2
;
this
.
dbSource
=
dbSource
;
}
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
param1
,
String
param2
,
String
param3
,
String
dbSource
)
{
this
.
blockId
=
blockId
;
this
.
value
=
value
;
this
.
text
=
text
;
this
.
param1
=
param1
;
this
.
param2
=
param2
;
this
.
param3
=
param3
;
this
.
dbSource
=
dbSource
;
}
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
param1
,
String
param2
,
String
param3
,
String
param4
,
String
dbSource
)
{
this
.
blockId
=
blockId
;
this
.
value
=
value
;
this
.
text
=
text
;
this
.
param1
=
param1
;
this
.
param2
=
param2
;
this
.
param3
=
param3
;
this
.
param4
=
param4
;
this
.
dbSource
=
dbSource
;
}
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
param1
,
String
param2
,
String
param3
,
String
param4
,
String
param5
,
String
dbSource
)
{
this
.
blockId
=
blockId
;
this
.
value
=
value
;
this
.
text
=
text
;
this
.
param1
=
param1
;
this
.
param2
=
param2
;
this
.
param3
=
param3
;
this
.
param4
=
param4
;
this
.
param5
=
param5
;
this
.
dbSource
=
dbSource
;
}
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
dbSource
){
DdynamicEnum
(
String
blockId
,
String
value
,
String
text
,
String
dbSource
){
this
.
blockId
=
blockId
;
this
.
blockId
=
blockId
;
...
@@ -125,4 +188,43 @@ public enum DdynamicEnum {
...
@@ -125,4 +188,43 @@ public enum DdynamicEnum {
return
text
;
return
text
;
}
}
public
String
getParam1
()
{
return
param1
;
}
public
void
setParam1
(
String
param1
)
{
this
.
param1
=
param1
;
}
public
String
getParam2
()
{
return
param2
;
}
public
void
setParam2
(
String
param2
)
{
this
.
param2
=
param2
;
}
public
String
getParam3
()
{
return
param3
;
}
public
void
setParam3
(
String
param3
)
{
this
.
param3
=
param3
;
}
public
String
getParam4
()
{
return
param4
;
}
public
void
setParam4
(
String
param4
)
{
this
.
param4
=
param4
;
}
public
String
getParam5
()
{
return
param5
;
}
public
void
setParam5
(
String
param5
)
{
this
.
param5
=
param5
;
}
}
}
src/main/java/com/baosight/hpjx/common/HPConstants.java
View file @
77d284d6
...
@@ -37,6 +37,21 @@ public class HPConstants {
...
@@ -37,6 +37,21 @@ public class HPConstants {
public
static
final
String
TEXT_FIELD
=
"textField"
;
public
static
final
String
TEXT_FIELD
=
"textField"
;
/** 前后台交互下拉框字段 字段名 dzg */
/** 前后台交互下拉框字段 字段名 dzg */
public
static
final
String
PARAM1_FIELD
=
"param1Field"
;
/** 前后台交互下拉框字段 字段名 dzg */
public
static
final
String
PARAM2_FIELD
=
"param2Field"
;
/** 前后台交互下拉框字段 字段名 dzg */
public
static
final
String
PARAM3_FIELD
=
"param3Field"
;
/** 前后台交互下拉框字段 字段名 dzg */
public
static
final
String
PARAM4_FIELD
=
"param4Field"
;
/** 前后台交互下拉框字段 字段名 dzg */
public
static
final
String
PARAM5_FIELD
=
"param5Field"
;
/** 前后台交互下拉框字段 字段名 dzg */
public
static
final
String
VALUE_FIELD
=
"valueField"
;
public
static
final
String
VALUE_FIELD
=
"valueField"
;
}
}
...
...
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC010.java
0 → 100644
View file @
77d284d6
This diff is collapsed.
Click to expand it.
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
View file @
77d284d6
...
@@ -33,7 +33,7 @@ public class ServiceHPKC001 extends ServiceBase {
...
@@ -33,7 +33,7 @@ public class ServiceHPKC001 extends ServiceBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_
QUERY_
BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC001
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC001
().
eiMetadata
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
View file @
77d284d6
...
@@ -32,7 +32,7 @@ public class ServiceHPKC002 extends ServiceBase {
...
@@ -32,7 +32,7 @@ public class ServiceHPKC002 extends ServiceBase {
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_
QUERY_
BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC002
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC002
().
eiMetadata
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC003.java
View file @
77d284d6
...
@@ -36,7 +36,7 @@ public class ServiceHPKC003 extends ServiceBase {
...
@@ -36,7 +36,7 @@ public class ServiceHPKC003 extends ServiceBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_
QUERY_
BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC003
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC003
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
View file @
77d284d6
...
@@ -34,7 +34,7 @@ public class ServiceHPKC004 extends ServiceBase {
...
@@ -34,7 +34,7 @@ public class ServiceHPKC004 extends ServiceBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_
QUERY_
BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC004
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC004
().
eiMetadata
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC005.java
View file @
77d284d6
...
@@ -41,7 +41,7 @@ public class ServiceHPKC005 extends ServiceBase {
...
@@ -41,7 +41,7 @@ public class ServiceHPKC005 extends ServiceBase {
outInfo
.
addBlock
(
EiConstant
.
queryBlock
).
setCell
(
0
,
"receiptDate"
,
CommonMethod
.
getCurrentSameYearMonth
());
outInfo
.
addBlock
(
EiConstant
.
queryBlock
).
setCell
(
0
,
"receiptDate"
,
CommonMethod
.
getCurrentSameYearMonth
());
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
().
clear
();
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
().
clear
();
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_
QUERY_
BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
MATERIAL_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
MATERIAL_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
),
null
,
false
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
),
null
,
false
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC009.java
View file @
77d284d6
...
@@ -55,7 +55,7 @@ public class ServiceHPKC009 extends ServiceBase {
...
@@ -55,7 +55,7 @@ public class ServiceHPKC009 extends ServiceBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
try
{
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_
QUERY_
BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_NAME_BLOCK_ID
),
null
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC009
().
eiMetadata
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC009
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
}
catch
(
PlatException
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC010.java
0 → 100644
View file @
77d284d6
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.kc.domain.HPKC010
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.util.*
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.MapUtils
;
import
org.apache.commons.lang.StringUtils
;
import
java.math.BigDecimal
;
import
java.util.*
;
/**
*
* @author:wwl
* @date:2024/1/23,10:51
*/
public
class
ServiceHPKC010
extends
ServiceBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPKC010
HPKC010
=
new
HPKC010
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC010
);
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
().
clear
();
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
WH_RECORD_BLOCK_ID
),
null
);
CommonMethod
.
initBlock
(
outInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_ALL_BLOCK_ID
),
null
,
false
);
return
outInfo
;
}
/**
* 查询操作.
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
"HPKC010.query"
,
new
HPKC010
());
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 保存操作.
*
* @param inInfo
* @return
*/
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 数据校验
this
.
checkSaveData
(
resultRows
);
// 写入数据
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC010
fKc010
=
new
HPKC010
();
fKc010
.
fromMap
(
resultRows
.
get
(
i
));
// 设置基础信息
if
(
fKc010
.
getId
()
==
null
||
fKc010
.
getId
()
==
0
)
{
this
.
add
(
fKc010
);
}
else
{
this
.
modify
(
fKc010
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据保存成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
return
inInfo
;
}
/**
* 校验保存的数据
*
* @param resultRows
*/
private
void
checkSaveData
(
List
<
Map
>
resultRows
)
{
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC010
fKc010
=
new
HPKC010
();
fKc010
.
fromMap
(
resultRows
.
get
(
i
));
AssertUtils
.
isEmpty
(
fKc010
.
getWhCode
(),
"仓库名称不能为空"
);
AssertUtils
.
isNull
(
fKc010
.
getInventRecordId
(),
"存货名称不能为空"
);
}
}
/**
* 新增
*
* @param fKc010
*/
private
void
add
(
HPKC010
fKc010
)
{
DaoUtils
.
insert
(
"HPKC010.insert"
,
fKc010
);
}
/**
* 修改数据
*
* @param fKc010
*/
private
void
modify
(
HPKC010
fKc010
)
{
DaoUtils
.
update
(
"HPKC010.update"
,
fKc010
);
}
/**
* 新增操作.
*/
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
creatorInfo
(
inInfo
,
EiConstant
.
resultBlock
);
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
HPKC010
fKc010
=
new
HPKC010
();
fKc010
.
fromMap
(
resultRows
.
get
(
i
));
// 设置基础信息
DaoUtils
.
insert
(
HPKC010
.
INSERT
,
fKc010
);
}
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
}
return
inInfo
;
}
/**
* 修改操作
*
* @param inInfo
* @return
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
HPKC010
fKc010
=
new
HPKC010
();
fKc010
.
fromMap
(
eiBlock
.
getRow
(
i
));
DaoUtils
.
update
(
HPKC010
.
UPDATE
,
fKc010
);
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"修改成功!"
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"修改失败"
);
}
return
inInfo
;
}
/**
* 更新库存
* @param companyCode 企业编码
* @param whCode 仓库编码
* @param inventRecordId 存货档案ID
* @param amout 数量
* @param weight 重量
* @return
*/
public
EiInfo
updateStock
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
,
BigDecimal
amout
,
BigDecimal
weight
){
EiInfo
inInfo
=
new
EiInfo
();
try
{
checkUpdateStockParam
(
companyCode
,
whCode
,
inventRecordId
,
amout
,
weight
);
HPKC010
newObj
=
generatorBaseInfo
(
companyCode
,
whCode
,
inventRecordId
,
amout
,
weight
);
List
<
Map
>
list
=
dao
.
query
(
"queryByCondition"
,
new
HashMap
<
String
,
Object
>(){{
put
(
"companyCode"
,
companyCode
);
put
(
"whCode"
,
whCode
);
put
(
"inventRecordId"
,
inventRecordId
);
}});
if
(
CollectionUtils
.
isEmpty
(
list
)){
//新增
if
(
Objects
.
isNull
(
amout
)||
amout
.
compareTo
(
BigDecimal
.
ZERO
)<=
0
||
Objects
.
isNull
(
amout
)||
weight
.
compareTo
(
BigDecimal
.
ZERO
)<=
0
){
throw
new
PlatException
(
"当前库存为空,库存变更数量与重量不能小于等于0!"
);
}
DaoUtils
.
insert
(
"insert"
,
newObj
);
}
else
{
//修改
HPKC010
oldObj
=
new
HPKC010
();
oldObj
.
fromMap
(
list
.
get
(
0
));
BigDecimal
afterAmout
=
oldObj
.
getAmount
().
add
(
amout
);
BigDecimal
afterWeight
=
oldObj
.
getWeight
().
add
(
weight
);
if
(
afterAmout
.
compareTo
(
BigDecimal
.
ZERO
)<=
0
||
afterWeight
.
compareTo
(
BigDecimal
.
ZERO
)<=
0
){
throw
new
PlatException
(
"库存更新失败,出库数量与重量不能大于当前库存!"
);
}
oldObj
.
setAmount
(
afterAmout
);
oldObj
.
setWeight
(
afterWeight
);
oldObj
.
setUpdatedBy
(
newObj
.
getUpdatedBy
());
oldObj
.
setUpdatedName
(
newObj
.
getUpdatedName
());
oldObj
.
setUpdatedTime
(
newObj
.
getUpdatedTime
());
int
result
=
DaoUtils
.
update
(
"updateStock"
,
oldObj
);
if
(
result
!=
1
){
throw
new
PlatException
(
"库存更新失败,库存已发生变更或系统异常,请重试!"
);
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"库存更新成功!"
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"库存更新失败!"
);
}
return
inInfo
;
}
/**
* 生成库存对象
* @param companyCode
* @param whCode
* @param inventRecordId
* @param amout
* @param weight
* @reutrn HPKC010
*/
private
HPKC010
generatorBaseInfo
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
,
BigDecimal
amout
,
BigDecimal
weight
)
{
HPKC010
hpkc010
=
new
HPKC010
();
hpkc010
.
setCompanyCode
(
companyCode
);
hpkc010
.
setWhCode
(
whCode
);
hpkc010
.
setInventRecordId
(
inventRecordId
);
hpkc010
.
setAmount
(
amout
);
hpkc010
.
setWeight
(
weight
);
String
userId
=
UserSession
.
getLoginName
();
String
userName
=
UserSession
.
getLoginCName
();
String
time
=
DateUtils
.
curDateTimeStr14
();
hpkc010
.
setCreatedBy
(
userId
);
hpkc010
.
setCreatedName
(
userName
);
hpkc010
.
setCreatedTime
(
time
);
hpkc010
.
setUpdatedBy
(
userId
);
hpkc010
.
setUpdatedName
(
userName
);
hpkc010
.
setUpdatedTime
(
time
);
return
hpkc010
;
}
/**
* 校验库存变更请求参数
* @param companyCode
* @param whCode
* @param inventRecordId
* @param amout
* @param weight
*/
private
void
checkUpdateStockParam
(
String
companyCode
,
String
whCode
,
Long
inventRecordId
,
BigDecimal
amout
,
BigDecimal
weight
){
if
(
StringUtils
.
isBlank
(
companyCode
)){
throw
new
PlatException
(
"企业编码不能为空!"
);
}
if
(
StringUtils
.
isBlank
(
whCode
)){
throw
new
PlatException
(
"仓库编码不能为空!"
);
}
if
(
Objects
.
isNull
(
inventRecordId
)||
inventRecordId
==
0
){
throw
new
PlatException
(
"存货档案ID不能为空!"
);
}
if
(
Objects
.
isNull
(
amout
)||
amout
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
throw
new
PlatException
(
"库存变更数量不能为空!"
);
}
if
(
Objects
.
isNull
(
amout
)||
weight
.
compareTo
(
BigDecimal
.
ZERO
)==
0
){
throw
new
PlatException
(
"库存变更重量不能为空!"
);
}
}
/**
* 删除操作
*
* @param inInfo
* @return
*/
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
for
(
int
i
=
0
;
i
<
resultRows
.
size
();
i
++)
{
DaoUtils
.
update
(
HPKC010
.
DELETE
,
resultRows
.
get
(
i
));
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC010.xml
0 → 100644
View file @
77d284d6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<sqlMap
namespace=
"HPKC010"
>
<sql
id=
"column"
>
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
<!-- WH_NAME as "whName", <!– 仓库名称 –>-->
<!-- INVENT_TYPE as "inventType", <!– 物料类型 –>-->
<!-- INVENT_CODE as "inventCode", <!– 物料编码 –>-->
<!-- INVENT_NAME as "inventName", <!– 物料名称 –>-->
INVENT_RECORD_ID as "inventRecordId",
<!-- 存货档案ID -->
AMOUNT as "amount",
<!-- 数量 -->
WEIGHT as "weight",
<!-- 重量 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime",
<!-- 更新时间 -->
VERSION as "version"
</sql>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventRecordId"
>
INVENT_RECORD_ID = #inventRecordId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whCode"
>
WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME LIKE '%' || #whName# || '%'
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventType"
>
INVENT_TYPE = #inventType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"version"
>
VERSION = #version#
</isNotEmpty>
</sql>
<select
id=
"query"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC010"
>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC010
WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID DESC
</isEmpty>
</dynamic>
</select>
<select
id=
"queryByCondition"
resultClass=
"java.util.HashMap"
>
SELECT
<include
refid=
"column"
/>
FROM hpjx.T_HPKC010
WHERE 1=1
<include
refid=
"condition"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.T_HPKC010
WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!-- 查询统计 -->
<select
id=
"querySum"
resultClass=
"com.baosight.hpjx.hp.kc.domain.HPKC010"
>
SELECT
COALESCE(SUM(AMOUNT), 0) AS "amount",
<!-- 数量 -->
COALESCE(SUM(WEIGHT), 0) AS "weight"
<!-- 重量 -->
FROM ${hpjxSchema}.T_HPKC010
WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO hpjx.T_HPKC010 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
WH_CODE,
<!-- 仓库编码 -->
WH_NAME,
<!-- 仓库名称 -->
INVENT_TYPE,
<!-- 物料类型 -->
INVENT_CODE,
<!-- 物料编码 -->
INVENT_NAME,
<!-- 物料名称 -->
INVENT_RECORD_ID,
<!-- 存货档案ID -->
AMOUNT,
<!-- 数量 -->
WEIGHT,
<!-- 重量 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME,
<!-- 更新时间 -->
VERSION
) VALUES (
#companyCode#, #whCode#, #whName#, #inventType#,
#inventCode#, #inventName#, #inventRecordId#, #amount#, #weight#,
#createdBy#, #createdTime#, #updatedBy#,
#updatedTime#, #version#
)
</insert>
<delete
id=
"delete"
>
DELETE FROM hpjx.T_HPKC010 WHERE ID = #id#
</delete>
<update
id=
"update"
>
UPDATE hpjx.T_HPKC010
SET
WH_CODE = #whCode#,
<!-- 仓库编码 -->
WH_NAME = #whName#,
<!-- 仓库名称 -->
INVENT_TYPE = #inventType#,
<!-- 物料类型 -->
INVENT_CODE = #inventCode#,
<!-- 物料编码 -->
INVENT_NAME = #inventName#,
<!-- 物料名称 -->
INVENT_RECORD_ID = #inventRecordId#,
<!-- 存货档案ID -->
AMOUNT = #amount#,
<!-- 数量 -->
WEIGHT = #weight#,
<!-- 重量 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
VERSION = #version#
WHERE ID = #id#
</update>
<update
id=
"updateStock"
>
UPDATE hpjx.T_HPKC010
SET
AMOUNT = #amount#,
<!-- 数量 -->
WEIGHT = #weight#,
<!-- 重量 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_NAME = #updatedName#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
VERSION = CURRENT_TIMESTAMP(3)
WHERE ID = #id#
AND VERSION = #version#
</update>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/pz/service/ServiceHPPZ006.java
View file @
77d284d6
...
@@ -178,4 +178,20 @@ public class ServiceHPPZ006 extends ServiceBase {
...
@@ -178,4 +178,20 @@ public class ServiceHPPZ006 extends ServiceBase {
return
eiInfo
;
return
eiInfo
;
}
}
/**
* 下拉框
*
* @param inInfo
* @return
*/
public
EiInfo
queryComboBoxAll
(
EiInfo
inInfo
)
{
try
{
List
<
DdynamicEnum
>
list
=
new
ArrayList
<>();
list
.
add
(
DdynamicEnum
.
INVENT_ALL_BLOCK_ID
);
CommonMethod
.
initBlock
(
inInfo
,
list
,
EiInfoUtils
.
getFirstRow
(
inInfo
),
false
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询规格失败"
);
}
return
inInfo
;
}
}
}
src/main/java/com/baosight/hpjx/hp/pz/sql/HPPZ006.xml
View file @
77d284d6
...
@@ -196,4 +196,26 @@
...
@@ -196,4 +196,26 @@
ORDER BY SPEC DESC
ORDER BY SPEC DESC
</select>
</select>
<!-- 缺省下拉框 -->
<select
id=
"queryComboBoxAll"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
ID AS "id",
INVENT_TYPE AS "inventType",
CONCAT(INVENT_CODE,'-',INVENT_NAME) AS "inventName",
(CASE WHEN SPEC = '' THEN '无规格' ELSE SPEC END) AS "spec",
MATERIAL AS "material" ,
<!-- 材质 -->
UNIT AS "unit"
<!-- 单位 -->
FROM hpjx.t_hppz006 WHERE STATUS=1
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventCode"
>
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventType"
>
INVENT_TYPE = #inventType#
</isNotEmpty>
ORDER BY ID
</select>
</sqlMap>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/sc/domain/package-info.java
deleted
100644 → 0
View file @
e8da80e2
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
domain
;
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sc/service/package-info.java
deleted
100644 → 0
View file @
e8da80e2
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
service
;
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/sc/sql/package-info.java
deleted
100644 → 0
View file @
e8da80e2
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
sql
;
\ No newline at end of file
src/main/java/com/baosight/hpjx/util/CommonMethod.java
View file @
77d284d6
...
@@ -71,8 +71,19 @@ public class CommonMethod {
...
@@ -71,8 +71,19 @@ public class CommonMethod {
row
.
put
(
HPConstants
.
VALUE_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getValue
())));
row
.
put
(
HPConstants
.
VALUE_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getValue
())));
if
(
isSplicingSymbol
)
{
if
(
isSplicingSymbol
)
{
row
.
put
(
HPConstants
.
TEXT_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HPConstants
.
TEXT_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HPConstants
.
PARAM1_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam1
())));
row
.
put
(
HPConstants
.
PARAM2_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam2
())));
row
.
put
(
HPConstants
.
PARAM3_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam3
())));
row
.
put
(
HPConstants
.
PARAM4_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam4
())));
row
.
put
(
HPConstants
.
PARAM5_FIELD
,
(
tryValue
.
get
(
tableParam
.
getValue
())
+
HPConstants
.
SPLICING_SYMBOL
+
tryValue
.
get
(
tableParam
.
getParam5
())));
}
else
{
}
else
{
row
.
put
(
HPConstants
.
TEXT_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HPConstants
.
TEXT_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getText
())));
row
.
put
(
HPConstants
.
PARAM1_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam1
())));
row
.
put
(
HPConstants
.
PARAM2_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam2
())));
row
.
put
(
HPConstants
.
PARAM3_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam3
())));
row
.
put
(
HPConstants
.
PARAM4_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam4
())));
row
.
put
(
HPConstants
.
PARAM5_FIELD
,
String
.
valueOf
(
tryValue
.
get
(
tableParam
.
getParam5
())));
}
}
eiBlock
.
addRow
(
row
);
eiBlock
.
addRow
(
row
);
}
}
...
...
src/main/java/com/baosight/hpjx/util/contants/ACConstants.java
View file @
77d284d6
...
@@ -38,7 +38,7 @@ public class ACConstants {
...
@@ -38,7 +38,7 @@ public class ACConstants {
*/
*/
public
static
final
String
WH_CODE_BLOCK_ID
=
"wh_record_block_id"
;
public
static
final
String
WH_CODE_BLOCK_ID
=
"wh_record_block_id"
;
public
static
final
String
WH_CODE_QUERY_BLOCK_ID
=
"wh
Name
_block_id"
;
public
static
final
String
WH_CODE_QUERY_BLOCK_ID
=
"wh
_record
_block_id"
;
...
...
src/main/webapp/HP/DEMO/package-info.java
deleted
100644 → 0
View file @
e8da80e2
package
com
.
baosight
.
iplat4j
.
hp
.
kc
.
domain
;
\ No newline at end of file
src/main/webapp/HP/KC/HPKC001.jsp
View file @
77d284d6
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
required=
"false"
defultValue=
"ALL"
required=
"false"
defultValue=
"ALL"
template=
"#=textField#"
>
template=
"#=textField#"
>
<EF:EFOption
label=
"请选择"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"请选择"
value=
""
></EF:EFOption>
<EF:EFOptions
blockId=
"wh
Name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-materialCode"
cname=
"物料名称"
<EF:EFSelect
ename=
"inqu_status-0-materialCode"
cname=
"物料名称"
valueTemplate=
"#=textField#"
filter=
"contains"
valueTemplate=
"#=textField#"
filter=
"contains"
...
...
src/main/webapp/HP/KC/HPKC002.jsp
View file @
77d284d6
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
required=
"false"
defultValue=
"ALL"
required=
"false"
defultValue=
"ALL"
template=
"#=textField#"
>
template=
"#=textField#"
>
<EF:EFOption
label=
"请选择"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"请选择"
value=
""
></EF:EFOption>
<EF:EFOptions
blockId=
"wh
Name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-materialCode"
cname=
"物料名称"
<EF:EFSelect
ename=
"inqu_status-0-materialCode"
cname=
"物料名称"
valueTemplate=
"#=textField#"
filter=
"contains"
valueTemplate=
"#=textField#"
filter=
"contains"
...
...
src/main/webapp/HP/KC/HPKC003.jsp
View file @
77d284d6
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<EF:EFInput
ename=
"inqu_status-0-prodNo"
cname=
"生产入库单号"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-prodNo"
cname=
"生产入库单号"
colWidth=
"3"
/>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOptions
blockId=
"wh
Name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOption
label=
"请选择"
value=
""
/>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<EF:EFColumn
ename=
"documentDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"documentDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
columnTemplate=
"#=textField#"
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh
Name
_block_id"
itemTemplate=
"#=textField#"
blockName=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
width=
"100"
>
align=
"center"
filter=
"contains"
width=
"100"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
src/main/webapp/HP/KC/HPKC004.jsp
View file @
77d284d6
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<EF:EFInput
ename=
"inqu_status-0-saleNo"
cname=
"生产销售单号"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-saleNo"
cname=
"生产销售单号"
colWidth=
"3"
/>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOptions
blockId=
"wh
Name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-inventCode"
cname=
"存货名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOption
label=
"请选择"
value=
""
/>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
columnTemplate=
"#=textField#"
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh
Name
_block_id"
itemTemplate=
"#=textField#"
blockName=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
width=
"120"
>
align=
"center"
filter=
"contains"
width=
"120"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
src/main/webapp/HP/KC/HPKC005.jsp
View file @
77d284d6
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"wh
Name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-inventType"
cname=
"存货类型"
colWidth=
"3"
filter=
"contains"
<EF:EFSelect
ename=
"inqu_status-0-inventType"
cname=
"存货类型"
colWidth=
"3"
filter=
"contains"
template=
"#=valueField#-#=textField#"
valueTemplate=
"#=valueField#-#=textField#"
>
template=
"#=valueField#-#=textField#"
valueTemplate=
"#=valueField#-#=textField#"
>
...
...
src/main/webapp/HP/KC/HPKC009.jsp
View file @
77d284d6
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</EF:EFSelect>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
filter=
"contains"
defultValue=
""
>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOptions
blockId=
"wh
Name
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
<EF:EFOptions
blockId=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</EF:EFSelect>
</div>
</div>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</EF:EFComboColumn>
</EF:EFComboColumn>
<EF:EFColumn
cname=
"日期"
ename=
"dateProc"
enable=
"false"
width=
"90"
align=
"center"
/>
<EF:EFColumn
cname=
"日期"
ename=
"dateProc"
enable=
"false"
width=
"90"
align=
"center"
/>
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
enable=
"false"
columnTemplate=
"#=textField#"
<EF:EFComboColumn
cname=
"仓库名称"
ename=
"whCode"
enable=
"false"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh
Name
_block_id"
itemTemplate=
"#=textField#"
blockName=
"wh
_record
_block_id"
textField=
"textField"
valueField=
"valueField"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
width=
"100"
>
align=
"center"
filter=
"contains"
width=
"100"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
...
...
src/main/webapp/HP/KC/HPKC010.js
0 → 100644
View file @
77d284d6
var
inventNameGlobalData
=
[];
var
specGlobalData
=
[];
$
(
function
()
{
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
// 保存
$
(
"#BTN_SAVE"
).
on
(
"click"
,
save
);
IPLATUI
.
EFGrid
=
{
"result"
:
{
loadComplete
:
function
(
grid
)
{
//删除
$
(
"#DELETE"
).
on
(
"click"
,
function
()
{
var
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
var
dataItems
=
resultGrid
.
getCheckedRows
();
if
(
dataItems
==
null
||
dataItems
==
""
)
{
NotificationUtil
({
msg
:
'选择要删除的数据'
},
"warning"
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
return
false
;
}
IPLAT
.
submitNode
(
$
(
"#HPKC010"
),
"HPKC010"
,
"delete"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
NotificationUtil
({
msg
:
'删除成功'
});
// 绑定grid
resultGrid
.
setEiInfo
(
ei
);
}
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
},
onFail
:
function
(
ei
)
{
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
}
},
};
});
/**
* 页面加载时执行
*/
$
(
window
).
load
(
function
()
{
// let eiInfo = new EiInfo();
// // 规格
// EiCommunicator.send("HPPZ006", "queryComboBoxAll", eiInfo, {
// onSuccess: function (ei) {
// specGlobalData = ei.getBlock("invent_all_block_id").getMappedRows();
// },
// onFail: function (ei) {
// }
// }, {async: false});
// 查询
query
();
});
/**
* 查询
*/
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
// 点击查询按钮,从第1页开始查询
}
/**
* 保存
*/
let
save
=
function
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPKC010"
,
"save"
,
true
);
}
});
}
src/main/webapp/HP/KC/HPKC010.jsp
0 → 100644
View file @
77d284d6
<!DOCTYPE html>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<EF:EFPage
title=
"实时库存管理"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFDatePicker
ename=
"inqu_status-0-receiptDate"
cname=
"单据日期"
role=
"date"
format=
"yyyy-MM-dd"
readonly=
"true"
/>
<EF:EFSelect
ename=
"inqu_status-0-inventType"
cname=
"存货类型"
filter=
"contains"
defaultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFSelect>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
filter=
"contains"
defultValue=
""
>
<EF:EFOption
label=
"请选择"
value=
""
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"存货档案ID"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"whCode"
cname=
"仓库编码"
width=
"120"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"120"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
blockName=
"invent_all_block_id"
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
columnTemplate=
"#=param1Field#"
itemTemplate=
"#=param1Field#"
blockName=
"invent_all_block_id"
textField=
"param1Field"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"spec"
cname=
"规格"
width=
"120"
columnTemplate=
"#=param2Field#"
itemTemplate=
"#=param2Field#"
blockName=
"invent_all_block_id"
textField=
"param2Field"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"material"
cname=
"材质"
width=
"120"
columnTemplate=
"#=param3Field#"
itemTemplate=
"#=param3Field#"
blockName=
"invent_all_block_id"
textField=
"param3Field"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFComboColumn
ename=
"unit"
cname=
"单位"
width=
"120"
columnTemplate=
"#=param4Field#"
itemTemplate=
"#=param4Field#"
blockName=
"invent_all_block_id"
textField=
"param4Field"
valueField=
"valueField"
align=
"center"
filter=
"contains"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时刻"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"更新人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"更新时刻"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
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