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
e19a741e
Commit
e19a741e
authored
Jan 09, 2024
by
徐澳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
存货类型/供应商档案
parent
c94f6ab8
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
769 additions
and
34 deletions
+769
-34
THppz002.java
...main/java/com/baosight/iplat4j/hp/pz/domain/THppz002.java
+16
-16
THppz004.java
...main/java/com/baosight/iplat4j/hp/pz/domain/THppz004.java
+284
-0
ServiceHPPZ002.java
...va/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ002.java
+6
-5
ServiceHPPZ004.java
...va/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ004.java
+123
-0
HPPZ002.xml
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ002.xml
+6
-1
HPPZ004.xml
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ004.xml
+135
-0
HPPZ002.js
src/main/webapp/HP/PZ/HPPZ002.js
+1
-0
HPPZ002.jsp
src/main/webapp/HP/PZ/HPPZ002.jsp
+22
-12
HPPZ004.js
src/main/webapp/HP/PZ/HPPZ004.js
+133
-0
HPPZ004.jsp
src/main/webapp/HP/PZ/HPPZ004.jsp
+43
-0
No files found.
src/main/java/com/baosight/iplat4j/hp/pz/domain/THppz002.java
View file @
e19a741e
/**
* Generate time : 2024-01-09 1
4:40:53
* Generate time : 2024-01-09 1
9:08:59
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
domain
;
...
...
@@ -22,7 +22,7 @@ public class THppz002 extends DaoEPBase {
private
String
custCode
=
" "
;
/* 供应商编码*/
private
String
custName
=
" "
;
/* 供应商名称*/
private
String
address
=
" "
;
/* 地址*/
private
Boolean
status
;
/* 状态 0禁用 1启用*/
private
int
status
;
/* 状态 0禁用 1启用*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
...
...
@@ -59,7 +59,7 @@ EiColumn eiColumn;
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"status"
);
eiColumn
.
setDescName
(
"状态 0
禁
用 1启用"
);
eiColumn
.
setDescName
(
"状态 0
未启
用 1启用"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"createdBy"
);
...
...
@@ -171,20 +171,20 @@ initMetaData();
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
/**
* get the status - 状态 0禁
用 1启用
* @return the status
*/
public
Boolean
getStatus
()
{
/**
* get the status - 状态 0未启
用 1启用
* @return the status
*/
public
int
getStatus
()
{
return
this
.
status
;
}
}
/**
* set the status - 状态 0禁
用 1启用
*/
public
void
setStatus
(
Boolean
status
)
{
/**
* set the status - 状态 0未启
用 1启用
*/
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
}
/**
* get the createdBy - 创建人
* @return the createdBy
...
...
@@ -252,7 +252,7 @@ public void fromMap(Map map) {
setCustCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custCode"
)),
custCode
));
setCustName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custName"
)),
custName
));
setAddress
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"address"
)),
address
));
setStatus
(
NumberUtils
.
to
Boolean
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setStatus
(
NumberUtils
.
to
int
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
...
...
@@ -271,7 +271,7 @@ Map map = new HashMap();
map
.
put
(
"custCode"
,
StringUtils
.
toString
(
custCode
,
eiMetadata
.
getMeta
(
"custCode"
)));
map
.
put
(
"custName"
,
StringUtils
.
toString
(
custName
,
eiMetadata
.
getMeta
(
"custName"
)));
map
.
put
(
"address"
,
StringUtils
.
toString
(
address
,
eiMetadata
.
getMeta
(
"address"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
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"
)));
...
...
src/main/java/com/baosight/iplat4j/hp/pz/domain/THppz004.java
0 → 100644
View file @
e19a741e
/**
* Generate time : 2024-01-09 19:25:19
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
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
;
/**
* THppz004
*
*/
public
class
THppz004
extends
DaoEPBase
{
private
Integer
id
=
0
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
inventName
=
" "
;
/* 存货类型*/
private
String
inventCode
=
" "
;
/* 存货类型编码*/
private
String
inventFatherName
=
" "
;
/* 上级存货类型*/
private
String
inventFatherCode
=
" "
;
/* 上级存货类型编码*/
private
int
status
;
/* 状态 0禁用 1启用*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
/**
* 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
(
"inventName"
);
eiColumn
.
setDescName
(
"存货类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventCode"
);
eiColumn
.
setDescName
(
"存货类型编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventFatherName"
);
eiColumn
.
setDescName
(
"上级存货类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"inventFatherCode"
);
eiColumn
.
setDescName
(
"上级存货类型编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"status"
);
eiColumn
.
setDescName
(
"状态 0未启用 1启用"
);
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
);
}
/**
* the constructor
*/
public
THppz004
()
{
initMetaData
();
}
/**
* get the id
* @return the id
*/
public
Integer
getId
()
{
return
this
.
id
;
}
/**
* set the id
*/
public
void
setId
(
Integer
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 inventName - 存货类型
* @return the inventName
*/
public
String
getInventName
()
{
return
this
.
inventName
;
}
/**
* set the inventName - 存货类型
*/
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
}
/**
* 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 inventFatherName - 上级存货类型
* @return the inventFatherName
*/
public
String
getInventFatherName
()
{
return
this
.
inventFatherName
;
}
/**
* set the inventFatherName - 上级存货类型
*/
public
void
setInventFatherName
(
String
inventFatherName
)
{
this
.
inventFatherName
=
inventFatherName
;
}
/**
* get the inventFatherCode - 上级存货类型编码
* @return the inventFatherCode
*/
public
String
getInventFatherCode
()
{
return
this
.
inventFatherCode
;
}
/**
* set the inventFatherCode - 上级存货类型编码
*/
public
void
setInventFatherCode
(
String
inventFatherCode
)
{
this
.
inventFatherCode
=
inventFatherCode
;
}
/**
* get the status - 状态 0未启用 1启用
* @return the status
*/
public
int
getStatus
()
{
return
this
.
status
;
}
/**
* set the status - 状态 0未启用 1启用
*/
public
void
setStatus
(
int
status
)
{
this
.
status
=
status
;
}
/**
* 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 value from Map
*/
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toInteger
(
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
));
setInventFatherName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherName"
)),
inventFatherName
));
setInventFatherCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"inventFatherCode"
)),
inventFatherCode
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdBy"
)),
createdBy
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"createdTime"
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedBy"
)),
updatedBy
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
}
/**
* 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
(
"inventName"
,
StringUtils
.
toString
(
inventName
,
eiMetadata
.
getMeta
(
"inventName"
)));
map
.
put
(
"inventCode"
,
StringUtils
.
toString
(
inventCode
,
eiMetadata
.
getMeta
(
"inventCode"
)));
map
.
put
(
"inventFatherName"
,
StringUtils
.
toString
(
inventFatherName
,
eiMetadata
.
getMeta
(
"inventFatherName"
)));
map
.
put
(
"inventFatherCode"
,
StringUtils
.
toString
(
inventFatherCode
,
eiMetadata
.
getMeta
(
"inventFatherCode"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
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"
)));
return
map
;
}
}
\ No newline at end of file
src/main/java/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ002.java
View file @
e19a741e
...
...
@@ -21,10 +21,10 @@ public class ServiceHPPZ002 extends ServiceBase {
* 画面初始化.
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
THppz002
HPPZ
002
=
new
THppz002
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPPZ002
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
)
.
addBlockMeta
(
HPPZ002
.
eiMetadata
)
;
outInfo
.
setBlock
(
CompanyTypeEnum
.
generatorEiBlock
()
);
THppz002
hppz
002
=
new
THppz002
();
EiInfo
outInfo
=
new
EiInfo
(
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
);
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hppz002
.
eiMetadata
);
return
outInfo
;
}
...
...
@@ -52,7 +52,8 @@ public class ServiceHPPZ002 extends ServiceBase {
// for (int i = 0; i < eiBlock.getRowCount(); i++) {
// Map<?, ?> map = eiBlock.getRow(i);
// hppz002.fromMap(map);
// this.dao.insertBatch()//insert("HPPZ002.insert", hppz002.toMap());
//
// this.dao.insert("HPPZ002.insert", hppz002.toMap());
// }
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
...
...
src/main/java/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ004.java
0 → 100644
View file @
e19a741e
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.hp.pz.domain.THppz004
;
import
com.baosight.iplat4j.util.CommonMethod
;
import
java.util.Map
;
/**
* @author xuao
* @date 2024年01月09日 19:35
*/
public
class
ServiceHPPZ004
extends
ServiceBase
{
/**
* 画面初始化.
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
THppz004
hppz004
=
new
THppz004
();
EiInfo
outInfo
=
new
EiInfo
();
outInfo
.
addBlock
(
EiConstant
.
resultBlock
);
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hppz004
.
eiMetadata
);
return
outInfo
;
}
/**
* 查询操作.
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
/* 调用EI查询方法.*/
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPPZ004.query"
,
new
THppz004
());
return
outInfo
;
}
/**
* 新增操作.
*/
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
CommonMethod
.
creatorInfo
(
inInfo
,
EiConstant
.
resultBlock
);
super
.
insert
(
inInfo
,
"HPPZ004.insert"
);
// THppz002 hppz002 = new THppz002();
// EiBlock eiBlock = inInfo.getBlock(EiConstant.resultBlock);
// for (int i = 0; i < eiBlock.getRowCount(); i++) {
// Map<?, ?> map = eiBlock.getRow(i);
// hppz002.fromMap(map);
//
// this.dao.insert("HPPZ002.insert", hppz002.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
)
{
try
{
THppz004
HPPZ004
=
new
THppz004
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPPZ004
.
fromMap
(
map
);
this
.
dao
.
update
(
"HPPZ004.update"
,
HPPZ004
.
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
)
{
THppz004
HPPZ004
=
new
THppz004
();
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
try
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
HPPZ004
.
fromMap
(
map
);
this
.
dao
.
delete
(
"HPPZ004.delete"
,
HPPZ004
.
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/HPPZ002.xml
View file @
e19a741e
...
...
@@ -22,7 +22,6 @@
resultClass=
"com.baosight.iplat4j.hp.pz.domain.THppz002"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
CUST_TYPE as "custType",
<!-- 供应商类型 1 国企 : 2 民营 -->
CUST_CODE as "custCode",
<!-- 供应商编码 -->
...
...
@@ -37,6 +36,12 @@
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"custType"
>
CUST_TYPE = #custType#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
...
...
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ004.xml
0 → 100644
View file @
e19a741e
<?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 19:25:19
Version : 1.0
tableName :hpjx.t_hppz004
ID INTEGER NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
INVENT_NAME VARCHAR NOT NULL,
INVENT_CODE VARCHAR NOT NULL,
INVENT_FATHER_NAME VARCHAR NOT NULL,
INVENT_FATHER_CODE VARCHAR NOT NULL,
STATUS TINYINT NOT NULL,
CREATED_BY VARCHAR,
CREATED_TIME VARCHAR,
UPDATED_BY VARCHAR,
UPDATED_TIME VARCHAR
-->
<sqlMap
namespace=
"HPPZ004"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.pz.domain.THppz004"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
INVENT_NAME as "inventName",
<!-- 存货类型 -->
INVENT_CODE as "inventCode",
<!-- 存货类型编码 -->
INVENT_FATHER_NAME as "inventFatherName",
<!-- 上级存货类型 -->
INVENT_FATHER_CODE as "inventFatherCode",
<!-- 上级存货类型编码 -->
STATUS as "status",
<!-- 状态 0未启用 1启用 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
FROM hpjx.t_hppz004 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"inventName"
>
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.t_hppz004 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="inventName">
INVENT_NAME = #inventName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventFatherName">
INVENT_FATHER_NAME = #inventFatherName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventFatherCode">
INVENT_FATHER_CODE = #inventFatherCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="status">
STATUS = #status#
</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_hppz004 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
INVENT_NAME,
<!-- 存货类型 -->
INVENT_CODE,
<!-- 存货类型编码 -->
INVENT_FATHER_NAME,
<!-- 上级存货类型 -->
INVENT_FATHER_CODE,
<!-- 上级存货类型编码 -->
STATUS,
<!-- 状态 0未启用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME
<!-- 更新时间 -->
)
VALUES (#companyCode#, #inventName#, #inventCode#, #inventFatherName#, #inventFatherCode#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
</insert>
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz004 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hppz004
SET
INVENT_NAME = #inventName#,
<!-- 存货类型 -->
INVENT_CODE = #inventCode#,
<!-- 存货类型编码 -->
INVENT_FATHER_NAME = #inventFatherName#,
<!-- 上级存货类型 -->
INVENT_FATHER_CODE = #inventFatherCode#,
<!-- 上级存货类型编码 -->
STATUS = #status#,
<!-- 状态 0未启用 1启用 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
WHERE
ID = #id#
</update>
</sqlMap>
\ No newline at end of file
src/main/webapp/HP/PZ/HPPZ002.js
View file @
e19a741e
...
...
@@ -6,6 +6,7 @@ $(function() {
});
IPLATUI
.
EFGrid
=
{
"result"
:
{
loadComplete
:
function
(
grid
)
{
...
...
src/main/webapp/HP/PZ/HPPZ002.jsp
View file @
e19a741e
...
...
@@ -10,6 +10,16 @@
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"inqu_status-0-custName"
cname=
"供应商名称"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFSelect
ename=
"inqu_status-0-custType"
cname=
"供应商类型"
colWidth=
"4"
>
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"国企"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"民营"
value=
"2"
></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>
<EF:EFOption
label=
"禁用"
value=
"0"
></EF:EFOption>
</EF:EFSelect>
</div>
</EF:EFRegion>
...
...
@@ -18,27 +28,27 @@
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"custType"
cname=
"供应商类型"
align=
"center"
blockName=
"company_type_block_id"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
>
valueField=
"valueField"
width=
"100"
required=
"true"
>
<EF:EFOption
label=
"--请选择--"
value=
""
></EF:EFOption>
<EF:EFOption
label=
"国企"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"民营"
value=
"2"
></EF:EFOption>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"custCode"
cname=
"供应商编码"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
<EF:EFColumn
ename=
"custName"
cname=
"供应商名称"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"address"
cname=
"地址"
width=
"100"
readonly=
"false"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
>
<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#-#=valueField#"
optionLabel=
" "
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:EFOption
label=
"禁用"
value=
"0"
></EF:EFOption>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
width=
"100"
readonly=
"
fals
e"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
width=
"100"
readonly=
"
true"
disabled=
"tru
e"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"更新时间"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"更新人"
width=
"100"
readonly=
"
fals
e"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"更新人"
width=
"100"
readonly=
"
true"
disabled=
"tru
e"
/>
</EF:EFGrid>
</EF:EFRegion>
...
...
src/main/webapp/HP/PZ/HPPZ004.js
0 → 100644
View file @
e19a741e
$
(
function
()
{
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
// 点击查询按钮,从第1页开始查询
});
IPLATUI
.
EFGrid
=
{
"result"
:
{
loadComplete
:
function
(
grid
)
{
// 新增
$
(
"#BTN_INSERT"
).
on
(
"click"
,
function
()
{
var
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HPPZ004"
),
"HPPZ004"
,
"insert"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
// 绑定grid
resultGrid
.
setEiInfo
(
ei
);
NotificationUtil
({
msg
:
'新增成功'
});
}
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
resultGrid
.
dataSource
.
page
(
1
);
},
onFail
:
function
(
ei
)
{
// onFail 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
// 修改
$
(
"#UPDATE"
).
on
(
"click"
,
function
()
{
var
rowCount
=
resultGrid
.
getCheckedRows
();
// 检验是否选中数据
if
(
rowCount
==
null
||
rowCount
==
""
)
{
NotificationUtil
({
msg
:
'请选择一条或多条数据'
},
"warning"
);
return
false
;
}
var
btnNode
=
$
(
this
);
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HPPZ004"
),
"HPPZ004"
,
"update"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
NotificationUtil
({
msg
:
'修改成功'
});
// 绑定grid
resultGrid
.
setEiInfo
(
ei
);
}
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
},
onFail
:
function
(
ei
)
{
// onFail 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
//删除
$
(
"#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
(
$
(
"#HPPZ004"
),
"HPPZ004"
,
"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
)
{
// onFail
// 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
}
},
};
});
src/main/webapp/HP/PZ/HPPZ004.jsp
0 → 100644
View file @
e19a741e
<!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:EFInput
ename=
"inqu_status-0-inventName"
cname=
"存货类型"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFSelect
ename=
"inqu_status-0-status"
cname=
"状态"
colWidth=
"4"
>
<EF:EFOption
label=
"--请选择--"
value=
""
/>
<EF:EFOption
label=
"启用"
value=
"1"
></EF:EFOption>
<EF:EFOption
label=
"未启用"
value=
"0"
></EF:EFOption>
</EF:EFSelect>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"false"
isFloat=
"true"
autoFit=
"true"
>
<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=
"inventFatherName"
cname=
"上级名称"
width=
"100"
readonly=
"false"
required=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
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:EFOption
label=
"禁用"
value=
"0"
></EF:EFOption>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"更新时间"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"更新人"
width=
"100"
readonly=
"true"
disabled=
"true"
/>
</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