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
561827af
Commit
561827af
authored
Jan 09, 2024
by
“zhangzhichao_123”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'feat():完成HPPZ003'
parent
6673ca54
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
667 additions
and
23 deletions
+667
-23
THppz003.java
...main/java/com/baosight/iplat4j/hp/pz/domain/THppz003.java
+301
-0
Thppz001.java
...main/java/com/baosight/iplat4j/hp/pz/domain/Thppz001.java
+4
-4
ServiceHPPZ001.java
...va/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ001.java
+5
-7
ServiceHPPZ002.java
...va/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ002.java
+1
-1
ServiceHPPZ003.java
...va/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ003.java
+129
-0
HPPZ003.xml
src/main/java/com/baosight/iplat4j/hp/pz/sql/HPPZ003.xml
+138
-0
HPPZ001.jsp
src/main/webapp/HP/PZ/HPPZ001.jsp
+15
-11
HPPZ003.js
src/main/webapp/HP/PZ/HPPZ003.js
+16
-0
HPPZ003.jsp
src/main/webapp/HP/PZ/HPPZ003.jsp
+58
-0
No files found.
src/main/java/com/baosight/iplat4j/hp/pz/domain/THppz003.java
0 → 100644
View file @
561827af
/**
* Generate time : 2024-01-09 17:46:33
* 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
;
/**
* THppz003
*
*/
public
class
THppz003
extends
DaoEPBase
{
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
int
custType
;
/* 客商类型 1:国企;2:民营;*/
private
String
custCode
=
" "
;
/* 客户编码*/
private
String
custCname
=
" "
;
/* 客户名称*/
private
String
custAddr
=
" "
;
/* 地址*/
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
(
"custType"
);
eiColumn
.
setDescName
(
"客商类型 1:国企;2:民营;"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"custCode"
);
eiColumn
.
setDescName
(
"客户编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"custCname"
);
eiColumn
.
setDescName
(
"客户名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"custAddr"
);
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
THppz003
()
{
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 custType - 客商类型 1:国企;2:民营;
* @return the custType
*/
public
int
getCustType
()
{
return
this
.
custType
;
}
/**
* set the custType - 客商类型 1:国企;2:民营;
*/
public
void
setCustType
(
int
custType
)
{
this
.
custType
=
custType
;
}
/**
* get the custCode - 客户编码
* @return the custCode
*/
public
String
getCustCode
()
{
return
this
.
custCode
;
}
/**
* set the custCode - 客户编码
*/
public
void
setCustCode
(
String
custCode
)
{
this
.
custCode
=
custCode
;
}
/**
* get the custCname - 客户名称
* @return the custCname
*/
public
String
getCustCname
()
{
return
this
.
custCname
;
}
/**
* set the custCname - 客户名称
*/
public
void
setCustCname
(
String
custCname
)
{
this
.
custCname
=
custCname
;
}
/**
* get the custAddr - 地址
* @return the custAddr
*/
public
String
getCustAddr
()
{
return
this
.
custAddr
;
}
/**
* set the custAddr - 地址
*/
public
void
setCustAddr
(
String
custAddr
)
{
this
.
custAddr
=
custAddr
;
}
/**
* 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
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
"id"
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"companyCode"
)),
companyCode
));
setCustType
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"custType"
)),
custType
));
setCustCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custCode"
)),
custCode
));
setCustCname
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custCname"
)),
custCname
));
setCustAddr
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"custAddr"
)),
custAddr
));
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
(
"custType"
,
StringUtils
.
toString
(
custType
,
eiMetadata
.
getMeta
(
"custType"
)));
map
.
put
(
"custCode"
,
StringUtils
.
toString
(
custCode
,
eiMetadata
.
getMeta
(
"custCode"
)));
map
.
put
(
"custCname"
,
StringUtils
.
toString
(
custCname
,
eiMetadata
.
getMeta
(
"custCname"
)));
map
.
put
(
"custAddr"
,
StringUtils
.
toString
(
custAddr
,
eiMetadata
.
getMeta
(
"custAddr"
)));
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/domain/Thppz001.java
View file @
561827af
...
...
@@ -26,9 +26,9 @@ public class Thppz001 extends DaoEPBase {
private
int
custType
;
/* 客商类型 1:国企;2:民营;*/
private
int
status
;
/* 状态 0未启用 1启用*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
createdTime
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
private
String
updatedTime
;
/* 更新时间*/
/**
* initialize the metadata
...
...
@@ -249,9 +249,9 @@ public class Thppz001 extends DaoEPBase {
setCustType
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"custType"
)),
custType
));
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
));
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
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"updatedTime"
)),
updatedTime
));
}
/**
...
...
src/main/java/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ001.java
View file @
561827af
...
...
@@ -10,8 +10,6 @@ import com.baosight.iplat4j.hp.pz.domain.Thppz001;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
...
...
@@ -52,13 +50,13 @@ public class ServiceHPPZ001 extends ServiceBase {
try
{
Thppz001
hppz001
=
new
Thppz001
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz001
.
fromMap
(
map
);
hppz001
.
setCreatedBy
(
UserSession
.
get
LoginName
());
hppz001
.
setCreatedBy
(
UserSession
.
get
UserId
());
hppz001
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
hppz001
.
setUpdatedBy
(
null
);
hppz001
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPPZ001.insert"
,
hppz001
.
toMap
());
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
...
...
@@ -72,7 +70,7 @@ public class ServiceHPPZ001 extends ServiceBase {
logError
(
"新增失败"
,
e
.
getMessage
());
return
inInfo
;
}
return
inInfo
;
return
query
(
inInfo
)
;
}
/**
...
...
@@ -86,7 +84,7 @@ public class ServiceHPPZ001 extends ServiceBase {
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz001
.
fromMap
(
map
);
hppz001
.
setUpdatedBy
(
UserSession
.
get
LoginName
());
hppz001
.
setUpdatedBy
(
UserSession
.
get
UserId
());
hppz001
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
this
.
dao
.
update
(
"HPPZ001.update"
,
hppz001
.
toMap
());
}
...
...
src/main/java/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ002.java
View file @
561827af
package
com
.
baosight
.
iplat4j
.
hp
.
pz
.
service
;
import
com.baosight.iplat4j.common.CompanyTypeEnum
;
import
com.baosight.iplat4j.util.CommonMethod
;
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.THppz002
;
import
com.baosight.iplat4j.util.CommonMethod
;
import
java.util.Map
;
...
...
src/main/java/com/baosight/iplat4j/hp/pz/service/ServiceHPPZ003.java
0 → 100644
View file @
561827af
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.THppz003
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Map
;
/**
*
*/
public
class
ServiceHPPZ003
extends
ServiceBase
{
/**
* 画面初始化.
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
THppz003
hppz003
=
new
THppz003
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
hppz003
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
hppz003
.
eiMetadata
);
return
inInfo
;
}
/**
* 查询操作.
*/
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
/* 调用EI查询方法.*/
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPPZ003.query"
,
new
THppz003
());
return
outInfo
;
}
/**
* 新增操作.
*/
@Override
public
EiInfo
insert
(
EiInfo
inInfo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
THppz003
hppz003
=
new
THppz003
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz003
.
fromMap
(
map
);
hppz003
.
setCreatedBy
(
UserSession
.
getUserId
());
hppz003
.
setCreatedTime
(
sdf
.
format
(
new
Date
()));
hppz003
.
setUpdatedBy
(
null
);
hppz003
.
setUpdatedTime
(
null
);
this
.
dao
.
insert
(
"HPPZ003.insert"
,
hppz003
.
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
query
(
inInfo
);
}
/**
* 修改操作.
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
try
{
THppz003
hppz003
=
new
THppz003
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz003
.
fromMap
(
map
);
hppz003
.
setUpdatedBy
(
UserSession
.
getUserId
());
hppz003
.
setUpdatedTime
(
sdf
.
format
(
new
Date
()));
this
.
dao
.
update
(
"HPPZ003.update"
,
hppz003
.
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
)
{
THppz003
hppz003
=
new
THppz003
();
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
try
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
hppz003
.
fromMap
(
map
);
this
.
dao
.
delete
(
"HPPZ003.delete"
,
hppz003
.
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/HPPZ003.xml
0 → 100644
View file @
561827af
<?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 17:46:33
Version : 1.0
tableName :hpjx.t_hppz003
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
CUST_TYPE TINYINT NOT NULL,
CUST_CODE VARCHAR NOT NULL,
CUST_CNAME VARCHAR NOT NULL,
CUST_ADDR VARCHAR NOT NULL,
STATUS TINYINT NOT NULL,
CREATED_BY VARCHAR,
CREATED_TIME DATETIME,
UPDATED_BY VARCHAR,
UPDATED_TIME DATETIME
-->
<sqlMap
namespace=
"HPPZ003"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.iplat4j.hp.pz.domain.THppz003"
>
SELECT
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
CUST_TYPE as "custType",
<!-- 客商类型 1:国企;2:民营; -->
CUST_CODE as "custCode",
<!-- 客户编码 -->
CUST_CNAME as "custCname",
<!-- 客户名称 -->
CUST_ADDR as "custAddr",
<!-- 地址 -->
STATUS as "status",
<!-- 状态 0未启用 1启用 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 更新人 -->
UPDATED_TIME as "updatedTime"
<!-- 更新时间 -->
FROM hpjx.t_hppz003 WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"custCname"
>
CUST_CNAME LIKE CONCAT('%',CONCAT(#custCname#,'%'))
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"custType"
>
CUST_TYPE = #custType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"status"
>
STATUS = #status#
</isNotEmpty>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
CREATED_TIME DESC
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM hpjx.t_hppz003 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="custType">
CUST_TYPE = #custType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="custCode">
CUST_CODE = #custCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="custCname">
CUST_CNAME = #custCname#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="custAddr">
CUST_ADDR = #custAddr#
</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_hppz003 (ID,
COMPANY_CODE,
<!-- 企业编码 预留 -->
CUST_TYPE,
<!-- 客商类型 1:国企;2:民营; -->
CUST_CODE,
<!-- 客户编码 -->
CUST_CNAME,
<!-- 客户名称 -->
CUST_ADDR,
<!-- 地址 -->
STATUS,
<!-- 状态 0未启用 1启用 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME
<!-- 更新时间 -->
)
VALUES (#id#, #companyCode#, #custType#, #custCode#, #custCname#, #custAddr#, #status#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#)
</insert>
<delete
id=
"delete"
>
DELETE FROM hpjx.t_hppz003 WHERE
ID = #id#
</delete>
<update
id=
"update"
>
UPDATE hpjx.t_hppz003
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
CUST_TYPE = #custType#,
<!-- 客商类型 1:国企;2:民营; -->
CUST_CODE = #custCode#,
<!-- 客户编码 -->
CUST_CNAME = #custCname#,
<!-- 客户名称 -->
CUST_ADDR = #custAddr#,
<!-- 地址 -->
STATUS = #status#,
<!-- 状态 0未启用 1启用 -->
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/HPPZ001.jsp
View file @
561827af
...
...
@@ -7,7 +7,7 @@
<head>
<
%
--
<
link
rel=
"stylesheet"
href=
"${ctx}/css/simulatedOperation.css"
/>
--%>
</head>
<EF:EFPage
title=
"
设备索赔
"
>
<EF:EFPage
title=
"
客商类型
"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
><
%
--
type=
"query"
efRegionShowClear=
"true"
efRegionSave=
"true"
--
%
>
...
...
@@ -28,23 +28,27 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFComboColumn
align=
"center"
ename=
"custClassify"
cname=
"分类"
>
<EF:EFComboColumn
required=
"true"
align=
"center"
ename=
"custClassify"
cname=
"分类"
>
<EF:EFOption
label=
"供应商"
value=
"1"
/>
<EF:EFOption
label=
"客户"
value=
"2"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"custCode"
cname=
"类型编码"
/>
<EF:EFComboColumn
align=
"center"
ename=
"custType"
cname=
"客商类型"
>
<EF:EFColumn
required=
"true"
ename=
"custCode"
cname=
"类型编码"
/>
<EF:EFComboColumn
required=
"true"
align=
"center"
ename=
"custType"
cname=
"客商类型"
>
<EF:EFOption
label=
"民营"
value=
"1"
/>
<EF:EFOption
label=
"国营"
value=
"2"
/>
</EF:EFComboColumn>
<EF:EFComboColumn
align=
"center"
ename=
"status"
cname=
"状态"
>
<EF:EFOption
label=
"启用"
value=
"1"
/>
<EF:EFOption
label=
"停用"
value=
"0"
/>
<EF:EFComboColumn
required=
"true"
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
>
<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=
"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:EFColumn
ename=
"createdBy"
enable=
"false"
cname=
"创建人
"
/>
<EF:EFColumn
ename=
"createdTime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
enable=
"false"
cname=
"创建时间
"
/>
<EF:EFColumn
ename=
"updatedBy"
enable=
"false"
cname=
"修改
人
"
/>
<EF:EFColumn
ename=
"updatedTime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
enable=
"false"
cname=
"修改时间
"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
...
...
src/main/webapp/HP/PZ/HPPZ003.js
0 → 100644
View file @
561827af
$
(
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/HPPZ003.jsp
0 → 100644
View file @
561827af
<!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=
"custCname"
cname=
"客户名称"
row=
"0"
/>
<EF:EFSelect
cname=
"客户类型"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"custType"
row=
"0"
>
<EF:EFOption
label=
"民营"
value=
"1"
/>
<EF:EFOption
label=
"国营"
value=
"2"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"状态"
optionLabel=
"全部"
blockId=
"inqu_status"
ename=
"status"
row=
"0"
>
<EF:EFOption
label=
"启用"
value=
"1"
/>
<EF:EFOption
label=
"停用"
value=
"0"
/>
</EF:EFSelect>
</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:EFComboColumn
required=
"true"
align=
"center"
ename=
"custType"
cname=
"客户类型"
>
<EF:EFOption
label=
"民营"
value=
"1"
/>
<EF:EFOption
label=
"国营"
value=
"2"
/>
</EF:EFComboColumn>
<EF:EFColumn
equired=
"true"
ename=
"custCode"
cname=
"客户编码"
/>
<EF:EFColumn
equired=
"true"
ename=
"custCname"
cname=
"客户名称"
/>
<EF:EFColumn
ename=
"custAddr"
cname=
"地址"
/>
<EF:EFComboColumn
required=
"true"
ename=
"status"
cname=
"状态"
align=
"center"
columnTemplate=
"#=valueField#-#=textField#"
optionLabel=
" "
itemTemplate=
"#=valueField#-#=textField#"
textField=
"textField"
valueField=
"valueField"
width=
"100"
>
<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=
"createdBy"
enable=
"false"
cname=
"创建人"
/>
<EF:EFColumn
ename=
"createdTime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
enable=
"false"
cname=
"创建时间"
/>
<EF:EFColumn
ename=
"updatedBy"
enable=
"false"
cname=
"修改人"
/>
<EF:EFColumn
ename=
"updatedTime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
enable=
"false"
cname=
"修改时间"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
<script>
var
ctx
=
"${ctx}"
;
</script>
<script
src=
"${ctx}/HP/PZ/HPPZ003.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