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
ffa92ce7
Commit
ffa92ce7
authored
Jan 10, 2024
by
YG9635
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'库存预警值档案'
parent
c176b254
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
780 additions
and
0 deletions
+780
-0
Thppz008.java
...main/java/com/baosight/iplat4j/hp/pz/domain/Thppz008.java
+413
-0
ServiceHPPZ008.java
...va/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ008.java
+132
-0
HPPZ008.xml
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ008.xml
+171
-0
HPPZ008.js
src/main/webapp/HP/PZ/HPPZ008.js
+16
-0
HPPZ008.jsp
src/main/webapp/HP/PZ/HPPZ008.jsp
+48
-0
No files found.
src/main/java/com/baosight/iplat4j/hp/pz/domain/Thppz008.java
0 → 100644
View file @
ffa92ce7
/**
* Generate time : 2024-01-09 16:02:58
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.DateUtils
;
import
java.sql.Timestamp
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baosight.iplat4j.core.util.StringUtils
;
/**
* THppz008
*
*/
public
class
Thppz008
extends
DaoEPBase
{
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
Integer
whType
=
0
;
/* 仓库类型*/
private
String
whCode
=
" "
;
/* 仓库编码*/
private
String
whName
=
" "
;
/* 仓库名称*/
private
Integer
inventType
=
0
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货编码*/
private
String
inventName
=
" "
;
/* 存货名称*/
private
String
spec
=
" "
;
/* 规格*/
private
String
mat
=
" "
;
/* 材质*/
private
String
uint
=
" "
;
/* 单位*/
private
String
alertValue
=
" "
;
/* 预警值*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdTime
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedTime
;
/* 更新时间*/
private
String
depCode
;
/* 部门编码*/
/**
* initialize the metadata
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
"id"
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"companyCode"
);
eiColumn
.
setDescName
(
"企业编码 预留"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"whType"
);
eiColumn
.
setDescName
(
"仓库类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"whCode"
);
eiColumn
.
setDescName
(
"仓库编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"whName"
);
eiColumn
.
setDescName
(
"仓库名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventType"
);
eiColumn
.
setDescName
(
"存货类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventCode"
);
eiColumn
.
setDescName
(
"存货编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventName"
);
eiColumn
.
setDescName
(
"存货名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"spec"
);
eiColumn
.
setDescName
(
"规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"mat"
);
eiColumn
.
setDescName
(
"材质"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"uint"
);
eiColumn
.
setDescName
(
"单位"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"alertValue"
);
eiColumn
.
setDescName
(
"预警值"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdTime"
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedBy"
);
eiColumn
.
setDescName
(
"更新人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"updatedTime"
);
eiColumn
.
setDescName
(
"更新时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"depCode"
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor
*/
public
Thppz008
()
{
initMetaData
();
}
/**
* get the id
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the companyCode - 企业编码 预留
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码 预留
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the whType - 仓库类型
* @return the whType
*/
public
Integer
getWhType
()
{
return
this
.
whType
;
}
/**
* set the whType - 仓库类型
*/
public
void
setWhType
(
Integer
whType
)
{
this
.
whType
=
whType
;
}
/**
* get the whCode - 仓库编码
* @return the whCode
*/
public
String
getWhCode
()
{
return
this
.
whCode
;
}
/**
* set the whCode - 仓库编码
*/
public
void
setWhCode
(
String
whCode
)
{
this
.
whCode
=
whCode
;
}
/**
* get the whName - 仓库名称
* @return the whName
*/
public
String
getWhName
()
{
return
this
.
whName
;
}
/**
* set the whName - 仓库名称
*/
public
void
setWhName
(
String
whName
)
{
this
.
whName
=
whName
;
}
/**
* get the inventType - 存货类型
* @return the inventType
*/
public
Integer
getInventType
()
{
return
this
.
inventType
;
}
/**
* set the inventType - 存货类型
*/
public
void
setInventType
(
Integer
inventType
)
{
this
.
inventType
=
inventType
;
}
/**
* get the inventCode - 存货编码
* @return the inventCode
*/
public
String
getInventCode
()
{
return
this
.
inventCode
;
}
/**
* set the inventCode - 存货编码
*/
public
void
setInventCode
(
String
inventCode
)
{
this
.
inventCode
=
inventCode
;
}
/**
* get the inventName - 存货名称
* @return the inventName
*/
public
String
getInventName
()
{
return
this
.
inventName
;
}
/**
* set the inventName - 存货名称
*/
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
}
/**
* get the spec - 规格
* @return the spec
*/
public
String
getSpec
()
{
return
this
.
spec
;
}
/**
* set the spec - 规格
*/
public
void
setSpec
(
String
spec
)
{
this
.
spec
=
spec
;
}
/**
* get the mat - 材质
* @return the mat
*/
public
String
getMat
()
{
return
this
.
mat
;
}
/**
* set the mat - 材质
*/
public
void
setMat
(
String
mat
)
{
this
.
mat
=
mat
;
}
/**
* get the uint - 单位
* @return the uint
*/
public
String
getUint
()
{
return
this
.
uint
;
}
/**
* set the uint - 单位
*/
public
void
setUint
(
String
uint
)
{
this
.
uint
=
uint
;
}
/**
* get the alertValue - 预警值
* @return the alertValue
*/
public
String
getAlertValue
()
{
return
this
.
alertValue
;
}
/**
* set the alertValue - 预警值
*/
public
void
setAlertValue
(
String
alertValue
)
{
this
.
alertValue
=
alertValue
;
}
/**
* get the createdBy - 创建人
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdTime - 创建时间
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 更新人
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 更新人
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedTime - 更新时间
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 更新时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the depCode - 部门编码
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* get the value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setWhType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"whType"
)),
whType
));
setWhCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"whCode"
)),
whCode
));
setWhName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"whName"
)),
whName
));
setInventType
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
"inventType"
)),
inventType
));
setInventCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventCode"
)),
inventCode
));
setInventName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventName"
)),
inventName
));
setSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"spec"
)),
spec
));
setMat
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"mat"
)),
mat
));
setUint
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"uint"
)),
uint
));
setAlertValue
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"alertValue"
)),
alertValue
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedTime
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedTime
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"depCode"
)),
depCode
));
}
/**
* set the value to Map
*/
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
"id"
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
"id"
)));
map
.
put
(
"companyCode"
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
"companyCode"
)));
map
.
put
(
"whType"
,
StringUtils
.
toString
(
whType
,
eiMetadata
.
getMeta
(
"whType"
)));
map
.
put
(
"whCode"
,
StringUtils
.
toString
(
whCode
,
eiMetadata
.
getMeta
(
"whCode"
)));
map
.
put
(
"whName"
,
StringUtils
.
toString
(
whName
,
eiMetadata
.
getMeta
(
"whName"
)));
map
.
put
(
"inventType"
,
StringUtils
.
toString
(
inventType
,
eiMetadata
.
getMeta
(
"inventType"
)));
map
.
put
(
"inventCode"
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
"inventCode"
)));
map
.
put
(
"inventName"
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
"inventName"
)));
map
.
put
(
"spec"
,
StringUtils
.
toString
(
spec
,
eiMetadata
.
getMeta
(
"spec"
)));
map
.
put
(
"mat"
,
StringUtils
.
toString
(
mat
,
eiMetadata
.
getMeta
(
"mat"
)));
map
.
put
(
"uint"
,
StringUtils
.
toString
(
uint
,
eiMetadata
.
getMeta
(
"uint"
)));
map
.
put
(
"alertValue"
,
StringUtils
.
toString
(
alertValue
,
eiMetadata
.
getMeta
(
"alertValue"
)));
map
.
put
(
"createdBy"
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
"createdBy"
)));
map
.
put
(
"createdTime"
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
"createdTime"
)));
map
.
put
(
"updatedBy"
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
"updatedBy"
)));
map
.
put
(
"updatedTime"
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
"updatedTime"
)));
map
.
put
(
"depCode"
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
"depCode"
)));
return
map
;
}
}
\ No newline at end of file
src/main/java/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ008.java
0 → 100644
View file @
ffa92ce7
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
service
;
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.web.threadlocal.UserSession
;
import
com.baosight.iplat4j.hp.pz.domain.Thppz008
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Map
;
/**
*
*/
public
class
ServiceHPPZ008
extends
ServiceBase
{
/**
* 画面初始化.
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
Thppz008
hppz008
=
new
Thppz008
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
hppz008
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hppz008
.
eiMetadata
);
return
inInfo
;
}
/**
* 查询操作.
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
/* 调用EI查询方法.*/
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPPZ008.query"
,
new
Thppz008
());
return
outInfo
;
}
/**
* 新增操作.
*/
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
Thppz008
hppz008
=
new
Thppz008
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz008
.
fromMap
(
map
);
hppz008
.
setCreatedBy
(
UserSession
.
getLoginName
());
hppz008
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
hppz008
.
setUpdatedBy
(
null
);
hppz008
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPPZ008.insert"
,
hppz008
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
}
catch
(
PlatException
e
)
{
e
.
printStackTrace
();
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"新增失败!原因参见详细错误描述!"
);
inInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"新增失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
inInfo
;
}
/**
* 修改操作.
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
Thppz008
hppz008
=
new
Thppz008
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz008
.
fromMap
(
map
);
hppz008
.
setUpdatedBy
(
UserSession
.
getLoginName
());
hppz008
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
this
.
dao
.
update
(
"HPPZ008.update"
,
hppz008
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"修改成功!"
);
}
catch
(
PlatException
e
)
{
inInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
inInfo
.
setMsg
(
"操作失败!原因参见详细错误描述!"
);
inInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"修改失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
query
(
inInfo
);
}
/**
* 删除操作.
*/
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
Thppz008
hppz008
=
new
Thppz008
();
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
try
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz008
.
fromMap
(
map
);
this
.
dao
.
delete
(
"HPPZ008.delete"
,
hppz008
.
toMap
());
}
}
catch
(
PlatException
e
)
{
eiInfo
.
setStatus
(
EiConstant
.
STATUS_FAILURE
);
eiInfo
.
setMsg
(
"删除失败,原因参见详细错误描述!"
);
eiInfo
.
setDetailMsg
(
e
.
getMessage
());
logError
(
"删除失败!"
,
e
.
getMessage
());
return
eiInfo
;
}
eiInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
eiInfo
.
setMsg
(
"删除成功!"
);
return
eiInfo
;
}
}
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ008.xml
0 → 100644
View file @
ffa92ce7
<?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">
<!-- table information
Generate time : 2024-01-09 16:02:58
Version : 1.0
tableName :hpjx.t_hppz008
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
WH_TYPE TINYINT,
WH_CODE VARCHAR,
WH_NAME VARCHAR,
INVENT_TYPE TINYINT,
INVENT_CODE VARCHAR,
INVENT_NAME VARCHAR,
SPEC VARCHAR,
MAT VARCHAR,
UINT VARCHAR,
ALERT_VALUE VARCHAR,
CREATED_BY VARCHAR,
CREATED_TIME DATETIME,
UPDATED_BY VARCHAR,
UPDATED_TIME DATETIME
-->
<sqlMap
namespace=
"HPPZ008"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.pz.domain.Thppz008"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
WH_TYPE as "whType",
<!-- 仓库类型 -->
WH_CODE as "whCode",
<!-- 仓库编码 -->
WH_NAME as "whName",
<!-- 仓库名称 -->
INVENT_TYPE as "inventType",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货编码 -->
INVENT_NAME as "inventName",
<!-- 存货名称 -->
SPEC as "spec",
<!-- 规格 -->
MAT as "mat",
<!-- 材质 -->
UINT as "uint",
<!-- 单位 -->
ALERT_VALUE as "alertValue",
<!-- 预警值 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
FROM hpjx.t_hppz008 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whType"
>
WH_TYPE = #whType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"whName"
>
WH_NAME = #whName#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
CREATED_TIME desc
</isNotEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.t_hppz008 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whType">
WH_TYPE = #whType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whCode">
WH_CODE = #whCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="whName">
WH_NAME = #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="spec">
SPEC = #spec#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="mat">
MAT = #mat#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="uint">
UINT = #uint#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="alertValue">
ALERT_VALUE = #alertValue#
</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>
-->
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hppz008 (ID,
COMPANY_CODE,
<!-- 企业编码 预留 -->
WH_TYPE,
<!-- 仓库类型 -->
WH_CODE,
<!-- 仓库编码 -->
WH_NAME,
<!-- 仓库名称 -->
INVENT_TYPE,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货编码 -->
INVENT_NAME,
<!-- 存货名称 -->
SPEC,
<!-- 规格 -->
MAT,
<!-- 材质 -->
UINT,
<!-- 单位 -->
ALERT_VALUE,
<!-- 预警值 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME
<!-- 更新时间 -->
)
VALUES (#id#, #companyCode#, #whType#, #whCode#, #whName#, #inventType#, #inventCode#, #inventName#, #spec#, #mat#, #uint#, #alertValue#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
</insert>
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz008 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hppz008
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
WH_TYPE = #whType#,
<!-- 仓库类型 -->
WH_CODE = #whCode#,
<!-- 仓库编码 -->
WH_NAME = #whName#,
<!-- 仓库名称 -->
INVENT_TYPE = #inventType#,
<!-- 存货类型 -->
INVENT_CODE = #inventCode#,
<!-- 存货编码 -->
INVENT_NAME = #inventName#,
<!-- 存货名称 -->
SPEC = #spec#,
<!-- 规格 -->
MAT = #mat#,
<!-- 材质 -->
UINT = #uint#,
<!-- 单位 -->
ALERT_VALUE = #alertValue#,
<!-- 预警值 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
WHERE
ID = #id#
</update>
</sqlMap>
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ008.js
0 → 100644
View file @
ffa92ce7
$
(
function
()
{
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
});
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
50
,
70
,
100
],
},
}
});
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ008.jsp
0 → 100644
View file @
ffa92ce7
<!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}"
/>
<head>
<
%
--
<
link
rel=
"stylesheet"
href=
"${ctx}/css/simulatedOperation.css"
/>
--%>
</head>
<EF:EFPage
title=
"库存预警值档案"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
<div
class=
"row"
>
<
%
--
blockId=
"inqu_status"
row=
"0"
--
%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"whName"
cname=
"仓库名称:"
row=
"0"
/>
<EF:EFInput
blockId=
"inqu_status"
ename=
"whType"
cname=
"仓库类型:"
row=
"0"
/>
</div>
<EF:EFButton
ename=
"QUERY"
cname=
"查询"
row=
"1"
class=
"btn-align-right"
></EF:EFButton>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whType"
required=
'true'
cname=
"仓库类型"
/>
<EF:EFColumn
ename=
"whCode"
required=
'true'
cname=
"仓库编码"
/>
<EF:EFColumn
ename=
"whName"
required=
'true'
cname=
"仓库名称"
/>
<EF:EFColumn
ename=
"inventType"
required=
'true'
cname=
"存货类型"
/>
<EF:EFColumn
ename=
"inventCode"
required=
'true'
cname=
"存货编码"
/>
<EF:EFColumn
ename=
"inventName"
required=
'true'
cname=
"存货名称"
/>
<EF:EFColumn
ename=
"spec"
cname=
"规格"
/>
<EF:EFColumn
ename=
"mat"
cname=
"材质"
/>
<EF:EFColumn
ename=
"uint"
cname=
"单位"
/>
<EF:EFColumn
ename=
"alertValue"
required=
'true'
cname=
"预警值"
/>
<EF:EFColumn
ename=
"createdBy"
enable=
"false"
cname=
"创建时间"
/>
<EF:EFColumn
ename=
"createdTime"
enable=
"false"
cname=
"创建人"
/>
<EF:EFColumn
ename=
"updatedBy"
enable=
"false"
cname=
"修改时间"
/>
<EF:EFColumn
ename=
"updatedTime"
enable=
"false"
cname=
"修改人"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HP/PZ/HPPZ008.js"
></script>
\ No newline at end of file
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