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
a29560b8
Commit
a29560b8
authored
Jan 10, 2024
by
YG6494
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HPKC008页面修改
parent
2a69c567
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
194 additions
and
499 deletions
+194
-499
HPKC008.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC008.java
+3
-3
ServiceHPKC008.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
+7
-9
package-info.java
...in/java/com/baosight/hpjx/hp/kc/service/package-info.java
+0
-2
HPKC008.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC008.xml
+1
-3
package-info.java
src/main/java/com/baosight/hpjx/hp/kc/sql/package-info.java
+0
-2
HPZL001.java
src/main/java/com/baosight/hpjx/hp/zl/domain/HPZL001.java
+13
-13
package-info.java
...ain/java/com/baosight/hpjx/hp/zl/domain/package-info.java
+0
-2
ServiceHPZL001.java
.../java/com/baosight/hpjx/hp/zl/service/ServiceHPZL001.java
+10
-13
package-info.java
...in/java/com/baosight/hpjx/hp/zl/service/package-info.java
+0
-2
HPZL001.xml
src/main/java/com/baosight/hpjx/hp/zl/sql/HPZL001.xml
+12
-18
package-info.java
src/main/java/com/baosight/hpjx/hp/zl/sql/package-info.java
+0
-2
HPKC008.java
src/main/java/com/baosight/iplat4j/hp/kc/domain/HPKC008.java
+0
-399
HPKC008.js
src/main/webapp/HP/KC/HPKC008.js
+123
-5
HPZL001.js
src/main/webapp/HP/ZL/HPZL001.js
+4
-4
HPZL001.jsp
src/main/webapp/HP/ZL/HPZL001.jsp
+21
-22
No files found.
src/main/java/com/baosight/hpjx/hp/kc/domain/
Thpkc
008.java
→
src/main/java/com/baosight/hpjx/hp/kc/domain/
HPKC
008.java
View file @
a29560b8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* Generate time : 2024-01-09 18:54:54
* Generate time : 2024-01-09 18:54:54
* Version : 1.0
* Version : 1.0
*/
*/
package
com
.
baosight
.
iplat4j
.
hp
.
kc
.
domain
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
...
@@ -15,7 +15,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
...
@@ -15,7 +15,7 @@ import com.baosight.iplat4j.core.util.StringUtils;
* Thpkc008
* Thpkc008
*
*
*/
*/
public
class
Thpkc
008
extends
DaoEPBase
{
public
class
HPKC
008
extends
DaoEPBase
{
private
Long
id
=
0L
;
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
...
@@ -113,7 +113,7 @@ EiColumn eiColumn;
...
@@ -113,7 +113,7 @@ EiColumn eiColumn;
/**
/**
* the constructor
* the constructor
*/
*/
public
Thpkc
008
()
{
public
HPKC
008
()
{
initMetaData
();
initMetaData
();
}
}
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC008.java
View file @
a29560b8
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
import
com.baosight.hpjx.
common.CompanyTypeEnum
;
import
com.baosight.hpjx.
hp.kc.domain.HPKC008
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.hp.kc.domain.Thpkc008
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.CommonMethod
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* @author
xuao
* @author
zjh
* @date 2024年01月09日 10:18
* @date 2024年01月09日 10:18
*/
*/
public
class
ServiceHPKC008
extends
ServiceBase
{
public
class
ServiceHPKC008
extends
ServiceBase
{
...
@@ -21,11 +20,10 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -21,11 +20,10 @@ public class ServiceHPKC008 extends ServiceBase {
* 画面初始化.
* 画面初始化.
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
Thpkc008
HPKC008
=
new
Thpkc
008
();
HPKC008
HPKC008
=
new
HPKC
008
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC008
);
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPKC008
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
HPKC008
.
eiMetadata
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
HPKC008
.
eiMetadata
);
outInfo
.
setBlock
(
CompanyTypeEnum
.
generatorEiBlock
());
return
inInfo
;
return
outInfo
;
}
}
/**
/**
...
@@ -34,7 +32,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -34,7 +32,7 @@ public class ServiceHPKC008 extends ServiceBase {
@Override
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
public
EiInfo
query
(
EiInfo
inInfo
)
{
/* 调用EI查询方法.*/
/* 调用EI查询方法.*/
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPKC008.query"
,
new
Thpkc
008
());
EiInfo
outInfo
=
super
.
query
(
inInfo
,
"HPKC008.query"
,
new
HPKC
008
());
return
outInfo
;
return
outInfo
;
}
}
...
@@ -74,7 +72,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -74,7 +72,7 @@ public class ServiceHPKC008 extends ServiceBase {
*/
*/
public
EiInfo
update
(
EiInfo
inInfo
)
{
public
EiInfo
update
(
EiInfo
inInfo
)
{
try
{
try
{
Thpkc008
HPKC008
=
new
Thpkc
008
();
HPKC008
HPKC008
=
new
HPKC
008
();
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
EiBlock
eiBlock
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
Map
<?,
?>
map
=
eiBlock
.
getRow
(
i
);
...
@@ -98,7 +96,7 @@ public class ServiceHPKC008 extends ServiceBase {
...
@@ -98,7 +96,7 @@ public class ServiceHPKC008 extends ServiceBase {
* 删除操作.
* 删除操作.
*/
*/
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
public
EiInfo
delete
(
EiInfo
eiInfo
)
{
Thpkc008
HPKC008
=
new
Thpkc
008
();
HPKC008
HPKC008
=
new
HPKC
008
();
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
EiBlock
eiBlock
=
eiInfo
.
getBlock
(
EiConstant
.
resultBlock
);
try
{
try
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
for
(
int
i
=
0
;
i
<
eiBlock
.
getRowCount
();
i
++)
{
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/package-info.java
deleted
100644 → 0
View file @
2a69c567
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
service
;
\ No newline at end of file
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC008.xml
View file @
a29560b8
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<sqlMap
namespace=
"HPKC008"
>
<sqlMap
namespace=
"HPKC008"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.
iplat4j.hp.kc.domain.Thpkc
008"
>
resultClass=
"com.baosight.
hpjx.hp.kc.domain.HPKC
008"
>
SELECT
SELECT
ID as "id",
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
...
@@ -153,8 +153,6 @@
...
@@ -153,8 +153,6 @@
PRICE = #price#,
<!-- 单价 -->
PRICE = #price#,
<!-- 单价 -->
TOTAL_PRICE = #totalPrice#,
<!-- 金额 -->
TOTAL_PRICE = #totalPrice#,
<!-- 金额 -->
NOTES = #notes#,
<!-- 备注 -->
NOTES = #notes#,
<!-- 备注 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
WHERE
WHERE
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/package-info.java
deleted
100644 → 0
View file @
2a69c567
package
com
.
baosight
.
hpjx
.
hp
.
kc
.
sql
;
\ No newline at end of file
src/main/java/com/baosight/
iplat4j
/hp/zl/domain/HPZL001.java
→
src/main/java/com/baosight/
hpjx
/hp/zl/domain/HPZL001.java
View file @
a29560b8
/**
/**
* Generate time : 2024-01-10 1
0:58:04
* Generate time : 2024-01-10 1
4:47:08
* Version : 1.0
* Version : 1.0
*/
*/
package
com
.
baosight
.
iplat4j
.
hp
.
zl
.
domain
;
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
...
@@ -23,7 +23,7 @@ public class HPZL001 extends DaoEPBase {
...
@@ -23,7 +23,7 @@ public class HPZL001 extends DaoEPBase {
private
String
itemCode
=
" "
;
/* 项目号*/
private
String
itemCode
=
" "
;
/* 项目号*/
private
String
itemName
=
" "
;
/* 项目名称*/
private
String
itemName
=
" "
;
/* 项目名称*/
private
String
unit
=
" "
;
/* 生产组*/
private
String
unit
=
" "
;
/* 生产组*/
private
String
desc
=
" "
;
/* 质量问题描述*/
private
String
notes
=
" "
;
/* 质量问题描述*/
private
String
princ
=
" "
;
/* 检查人*/
private
String
princ
=
" "
;
/* 检查人*/
private
int
status
;
/* 单据状态 0待审核 1已审核*/
private
int
status
;
/* 单据状态 0待审核 1已审核*/
private
String
affix
=
" "
;
/* 附件*/
private
String
affix
=
" "
;
/* 附件*/
...
@@ -67,7 +67,7 @@ EiColumn eiColumn;
...
@@ -67,7 +67,7 @@ EiColumn eiColumn;
eiColumn
.
setDescName
(
"生产组"
);
eiColumn
.
setDescName
(
"生产组"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"
desc
"
);
eiColumn
=
new
EiColumn
(
"
notes
"
);
eiColumn
.
setDescName
(
"质量问题描述"
);
eiColumn
.
setDescName
(
"质量问题描述"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiMetadata
.
addMeta
(
eiColumn
);
...
@@ -211,18 +211,18 @@ initMetaData();
...
@@ -211,18 +211,18 @@ initMetaData();
this
.
unit
=
unit
;
this
.
unit
=
unit
;
}
}
/**
/**
* get the
desc
- 质量问题描述
* get the
notes
- 质量问题描述
* @return the
desc
* @return the
notes
*/
*/
public
String
get
Desc
()
{
public
String
get
notes
()
{
return
this
.
desc
;
return
this
.
notes
;
}
}
/**
/**
* set the
desc
- 质量问题描述
* set the
notes
- 质量问题描述
*/
*/
public
void
set
Desc
(
String
desc
)
{
public
void
set
notes
(
String
notes
)
{
this
.
desc
=
desc
;
this
.
notes
=
notes
;
}
}
/**
/**
* get the princ - 检查人
* get the princ - 检查人
...
@@ -348,7 +348,7 @@ public void fromMap(Map map) {
...
@@ -348,7 +348,7 @@ public void fromMap(Map map) {
setItemCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"itemCode"
)),
itemCode
));
setItemCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"itemCode"
)),
itemCode
));
setItemName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"itemName"
)),
itemName
));
setItemName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"itemName"
)),
itemName
));
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"unit"
)),
unit
));
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"unit"
)),
unit
));
set
Desc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"desc"
)),
desc
));
set
notes
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"notes"
)),
notes
));
setPrinc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ"
)),
princ
));
setPrinc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"princ"
)),
princ
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setStatus
(
NumberUtils
.
toint
(
StringUtils
.
toString
(
map
.
get
(
"status"
)),
status
));
setAffix
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"affix"
)),
affix
));
setAffix
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"affix"
)),
affix
));
...
@@ -372,7 +372,7 @@ Map map = new HashMap();
...
@@ -372,7 +372,7 @@ Map map = new HashMap();
map
.
put
(
"itemCode"
,
StringUtils
.
toString
(
itemCode
,
eiMetadata
.
getMeta
(
"itemCode"
)));
map
.
put
(
"itemCode"
,
StringUtils
.
toString
(
itemCode
,
eiMetadata
.
getMeta
(
"itemCode"
)));
map
.
put
(
"itemName"
,
StringUtils
.
toString
(
itemName
,
eiMetadata
.
getMeta
(
"itemName"
)));
map
.
put
(
"itemName"
,
StringUtils
.
toString
(
itemName
,
eiMetadata
.
getMeta
(
"itemName"
)));
map
.
put
(
"unit"
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
"unit"
)));
map
.
put
(
"unit"
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
"unit"
)));
map
.
put
(
"
desc"
,
StringUtils
.
toString
(
desc
,
eiMetadata
.
getMeta
(
"desc
"
)));
map
.
put
(
"
notes"
,
StringUtils
.
toString
(
notes
,
eiMetadata
.
getMeta
(
"notes
"
)));
map
.
put
(
"princ"
,
StringUtils
.
toString
(
princ
,
eiMetadata
.
getMeta
(
"princ"
)));
map
.
put
(
"princ"
,
StringUtils
.
toString
(
princ
,
eiMetadata
.
getMeta
(
"princ"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
map
.
put
(
"status"
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
"status"
)));
map
.
put
(
"affix"
,
StringUtils
.
toString
(
affix
,
eiMetadata
.
getMeta
(
"affix"
)));
map
.
put
(
"affix"
,
StringUtils
.
toString
(
affix
,
eiMetadata
.
getMeta
(
"affix"
)));
...
...
src/main/java/com/baosight/hpjx/hp/zl/domain/package-info.java
deleted
100644 → 0
View file @
2a69c567
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
domain
;
\ No newline at end of file
src/main/java/com/baosight/
iplat4j
/hp/zl/service/ServiceHPZL001.java
→
src/main/java/com/baosight/
hpjx
/hp/zl/service/ServiceHPZL001.java
View file @
a29560b8
package
com
.
baosight
.
iplat4j
.
hp
.
zl
.
service
;
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
service
;
import
com.baosight.iplat4j.common.CompanyTypeEnum
;
import
com.baosight.hpjx.hp.zl.domain.HPZL001
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.hp.zl.domain.HPZL001
;
import
com.baosight.iplat4j.util.CommonMethod
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* @author
xuao
* @author
ZJH
* @date 2024年01月09日 10:18
* @date 2024年01月09日 10:18
*/
*/
public
class
ServiceHPZL001
extends
ServiceBase
{
public
class
ServiceHPZL001
extends
ServiceBase
{
...
@@ -23,9 +21,9 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -23,9 +21,9 @@ public class ServiceHPZL001 extends ServiceBase {
*/
*/
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
HPZL001
HPZL001
=
new
HPZL001
();
HPZL001
HPZL001
=
new
HPZL001
();
EiInfo
outInfo
=
super
.
initLoad
(
inInfo
,
HPZL001
);
EiInfo
outInfo
=
new
EiInfo
(
);
outInfo
.
addBlock
(
EiConstant
.
resultBlock
)
.
addBlockMeta
(
HPZL001
.
eiMetadata
)
;
outInfo
.
addBlock
(
EiConstant
.
resultBlock
);
outInfo
.
setBlock
(
CompanyTypeEnum
.
generatorEiBlock
()
);
outInfo
.
getBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
HPZL001
.
eiMetadata
);
return
outInfo
;
return
outInfo
;
}
}
...
@@ -48,12 +46,13 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -48,12 +46,13 @@ public class ServiceHPZL001 extends ServiceBase {
try
{
try
{
CommonMethod
.
creatorInfo
(
inInfo
,
EiConstant
.
resultBlock
);
CommonMethod
.
creatorInfo
(
inInfo
,
EiConstant
.
resultBlock
);
super
.
insert
(
inInfo
,
"HPZL001.insert"
);
super
.
insert
(
inInfo
,
"HPZL001.insert"
);
//
THPZL001 HPZL001 = new T
HPZL001();
//
HPZL001 HPZL001 = new
HPZL001();
// EiBlock eiBlock = inInfo.getBlock(EiConstant.resultBlock);
// EiBlock eiBlock = inInfo.getBlock(EiConstant.resultBlock);
// for (int i = 0; i < eiBlock.getRowCount(); i++) {
// for (int i = 0; i < eiBlock.getRowCount(); i++) {
// Map<?, ?> map = eiBlock.getRow(i);
// Map<?, ?> map = eiBlock.getRow(i);
// HPZL001.fromMap(map);
// HPZL001.fromMap(map);
// this.dao.insertBatch()//insert("HPZL001.insert", HPZL001.toMap());
//
// this.dao.insert("HPZL001.insert", HPZL001.toMap());
// }
// }
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_SUCCESS
);
inInfo
.
setMsg
(
"新增成功!"
);
inInfo
.
setMsg
(
"新增成功!"
);
...
@@ -121,6 +120,4 @@ public class ServiceHPZL001 extends ServiceBase {
...
@@ -121,6 +120,4 @@ public class ServiceHPZL001 extends ServiceBase {
return
eiInfo
;
return
eiInfo
;
}
}
}
}
src/main/java/com/baosight/hpjx/hp/zl/service/package-info.java
deleted
100644 → 0
View file @
2a69c567
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
service
;
\ No newline at end of file
src/main/java/com/baosight/
iplat4j
/hp/zl/sql/HPZL001.xml
→
src/main/java/com/baosight/
hpjx
/hp/zl/sql/HPZL001.xml
View file @
a29560b8
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!DOCTYPE sqlMap PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" "http://www.ibatis.com/dtd/sql-map-2.dtd">
<!-- table information
<!-- table information
Generate time : 2024-01-10 1
0:58:04
Generate time : 2024-01-10 1
4:47:08
Version : 1.0
Version : 1.0
tableName :hpjx.t_hpzl001
tableName :hpjx.t_hpzl001
ID BIGINT NOT NULL primarykey,
ID BIGINT NOT NULL primarykey,
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
UPDATED_TIME VARCHAR,
UPDATED_TIME VARCHAR,
DEP_CODE VARCHAR
DEP_CODE VARCHAR
-->
-->
<sqlMap
namespace=
"
tHpzl
001"
>
<sqlMap
namespace=
"
HPZL
001"
>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.
iplat4j
.hp.zl.domain.HPZL001"
>
resultClass=
"com.baosight.
hpjx
.hp.zl.domain.HPZL001"
>
SELECT
SELECT
ID as "id",
ID as "id",
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 预留 -->
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
ITEM_CODE as "itemCode",
<!-- 项目号 -->
ITEM_CODE as "itemCode",
<!-- 项目号 -->
ITEM_NAME as "itemName",
<!-- 项目名称 -->
ITEM_NAME as "itemName",
<!-- 项目名称 -->
UNIT as "unit",
<!-- 生产组 -->
UNIT as "unit",
<!-- 生产组 -->
DESC as "desc
",
<!-- 质量问题描述 -->
NOTES as "notes
",
<!-- 质量问题描述 -->
PRINC as "princ",
<!-- 检查人 -->
PRINC as "princ",
<!-- 检查人 -->
STATUS as "status",
<!-- 单据状态 0待审核 1已审核 -->
STATUS as "status",
<!-- 单据状态 0待审核 1已审核 -->
AFFIX as "affix",
<!-- 附件 -->
AFFIX as "affix",
<!-- 附件 -->
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
UNIT = #unit#
UNIT = #unit#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="desc">
<isNotEmpty prepend=" AND " property="desc">
DESC = #desc
#
NOTES = #notes
#
</isNotEmpty>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="princ">
<isNotEmpty prepend=" AND " property="princ">
PRINC = #princ#
PRINC = #princ#
...
@@ -116,24 +116,21 @@
...
@@ -116,24 +116,21 @@
-->
-->
<insert
id=
"insert"
>
<insert
id=
"insert"
>
INSERT INTO hpjx.t_hpzl001 (
ID,
INSERT INTO hpjx.t_hpzl001 (
COMPANY_CODE,
<!-- 企业编码 预留 -->
COMPANY_CODE,
<!-- 企业编码 预留 -->
RECEIPT_DATE,
<!-- 单据日期 -->
RECEIPT_DATE,
<!-- 单据日期 -->
CHK_BILLNO,
<!-- 检查单号 -->
CHK_BILLNO,
<!-- 检查单号 -->
ITEM_CODE,
<!-- 项目号 -->
ITEM_CODE,
<!-- 项目号 -->
ITEM_NAME,
<!-- 项目名称 -->
ITEM_NAME,
<!-- 项目名称 -->
UNIT,
<!-- 生产组 -->
UNIT,
<!-- 生产组 -->
DESC
,
<!-- 质量问题描述 -->
NOTES
,
<!-- 质量问题描述 -->
PRINC,
<!-- 检查人 -->
PRINC,
<!-- 检查人 -->
STATUS,
<!-- 单据状态 0待审核 1已审核 -->
STATUS,
<!-- 单据状态 0待审核 1已审核 -->
AFFIX,
<!-- 附件 -->
AFFIX,
<!-- 附件 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_TIME,
<!-- 创建时间 -->
CREATED_TIME
<!-- 创建时间 -->
UPDATED_BY,
<!-- 更新人 -->
UPDATED_TIME,
<!-- 更新时间 -->
DEP_CODE
<!-- 部门编码 -->
)
)
VALUES (#
id#, #companyCode#, #receiptDate#, #chkBillno#, #itemCode#, #itemName#, #unit#, #desc#, #princ#, #status#, #affix#, #createdBy#, #createdTime#, #updatedBy#, #updatedTime#, #depCode#)
VALUES (#
companyCode#, #receiptDate#, #chkBillno#, #itemCode#, #itemName#, #unit#, #notes#, #princ#, #status#, #affix#, #createdBy#, #createdTime#)
</insert>
</insert>
<delete
id=
"delete"
>
<delete
id=
"delete"
>
...
@@ -144,21 +141,18 @@
...
@@ -144,21 +141,18 @@
<update
id=
"update"
>
<update
id=
"update"
>
UPDATE hpjx.t_hpzl001
UPDATE hpjx.t_hpzl001
SET
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 预留 -->
RECEIPT_DATE = #receiptDate#,
<!-- 单据日期 -->
RECEIPT_DATE = #receiptDate#,
<!-- 单据日期 -->
CHK_BILLNO = #chkBillno#,
<!-- 检查单号 -->
CHK_BILLNO = #chkBillno#,
<!-- 检查单号 -->
ITEM_CODE = #itemCode#,
<!-- 项目号 -->
ITEM_CODE = #itemCode#,
<!-- 项目号 -->
ITEM_NAME = #itemName#,
<!-- 项目名称 -->
ITEM_NAME = #itemName#,
<!-- 项目名称 -->
UNIT = #unit#,
<!-- 生产组 -->
UNIT = #unit#,
<!-- 生产组 -->
DESC = #desc#,
<!-- 质量问题描述 -->
NOTES = #notes#,
<!-- 质量问题描述 -->
PRINC = #princ#,
<!-- 检查人 -->
PRINC = #princ#,
<!-- 检查人 -->
STATUS = #status#,
<!-- 单据状态 0待审核 1已审核 -->
STATUS = #status#,
<!-- 单据状态 0待审核 1已审核 -->
AFFIX = #affix#,
<!-- 附件 -->
AFFIX = #affix#,
<!-- 附件 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_BY = #updatedBy#,
<!-- 更新人 -->
UPDATED_TIME = #updatedTime#,
<!-- 更新时间 -->
UPDATED_TIME = #updatedTime#
<!-- 更新时间 -->
DEP_CODE = #depCode#
<!-- 部门编码 -->
WHERE
WHERE
ID = #id#
ID = #id#
</update>
</update>
...
...
src/main/java/com/baosight/hpjx/hp/zl/sql/package-info.java
deleted
100644 → 0
View file @
2a69c567
package
com
.
baosight
.
hpjx
.
hp
.
zl
.
sql
;
\ No newline at end of file
src/main/java/com/baosight/iplat4j/hp/kc/domain/HPKC008.java
deleted
100644 → 0
View file @
2a69c567
/**
* Generate time : 2024-01-10 12:05:36
* Version : 1.0
*/
package
com
.
baosight
.
iplat4j
.
hp
.
kc
.
domain
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
java.math.BigDecimal
;
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
;
/**
* THpkc008
*
*/
public
class
HPKC008
extends
DaoEPBase
{
private
Long
id
=
0L
;
private
String
companyCode
=
" "
;
/* 企业编码 预留*/
private
String
datemonth
=
" "
;
/* 月份*/
private
String
statisticalNumber
=
" "
;
/* 统计单单号*/
private
String
materialCode
=
" "
;
/* 物料编码*/
private
String
materialName
=
" "
;
/* 物料名称*/
private
String
unit
=
" "
;
/* 单位*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 数量*/
private
BigDecimal
price
=
new
BigDecimal
(
"0"
);
/* 单价*/
private
BigDecimal
totalPrice
=
new
BigDecimal
(
"0"
);
/* 金额*/
private
String
notes
=
" "
;
/* 备注*/
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
(
"datemonth"
);
eiColumn
.
setDescName
(
"月份"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"statisticalNumber"
);
eiColumn
.
setDescName
(
"统计单单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"materialCode"
);
eiColumn
.
setDescName
(
"物料编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"materialName"
);
eiColumn
.
setDescName
(
"物料名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"unit"
);
eiColumn
.
setDescName
(
"单位"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"amount"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"数量"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"price"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"单价"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"totalPrice"
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
eiColumn
.
setFieldLength
(
10
);
eiColumn
.
setDescName
(
"金额"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
"notes"
);
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
HPKC008
()
{
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 datemonth - 月份
* @return the datemonth
*/
public
String
getDatemonth
()
{
return
this
.
datemonth
;
}
/**
* set the datemonth - 月份
*/
public
void
setDatemonth
(
String
datemonth
)
{
this
.
datemonth
=
datemonth
;
}
/**
* get the statisticalNumber - 统计单单号
* @return the statisticalNumber
*/
public
String
getStatisticalNumber
()
{
return
this
.
statisticalNumber
;
}
/**
* set the statisticalNumber - 统计单单号
*/
public
void
setStatisticalNumber
(
String
statisticalNumber
)
{
this
.
statisticalNumber
=
statisticalNumber
;
}
/**
* get the materialCode - 物料编码
* @return the materialCode
*/
public
String
getMaterialCode
()
{
return
this
.
materialCode
;
}
/**
* set the materialCode - 物料编码
*/
public
void
setMaterialCode
(
String
materialCode
)
{
this
.
materialCode
=
materialCode
;
}
/**
* get the materialName - 物料名称
* @return the materialName
*/
public
String
getMaterialName
()
{
return
this
.
materialName
;
}
/**
* set the materialName - 物料名称
*/
public
void
setMaterialName
(
String
materialName
)
{
this
.
materialName
=
materialName
;
}
/**
* get the unit - 单位
* @return the unit
*/
public
String
getUnit
()
{
return
this
.
unit
;
}
/**
* set the unit - 单位
*/
public
void
setUnit
(
String
unit
)
{
this
.
unit
=
unit
;
}
/**
* get the amount - 数量
* @return the amount
*/
public
BigDecimal
getAmount
()
{
return
this
.
amount
;
}
/**
* set the amount - 数量
*/
public
void
setAmount
(
BigDecimal
amount
)
{
this
.
amount
=
amount
;
}
/**
* get the price - 单价
* @return the price
*/
public
BigDecimal
getPrice
()
{
return
this
.
price
;
}
/**
* set the price - 单价
*/
public
void
setPrice
(
BigDecimal
price
)
{
this
.
price
=
price
;
}
/**
* get the totalPrice - 金额
* @return the totalPrice
*/
public
BigDecimal
getTotalPrice
()
{
return
this
.
totalPrice
;
}
/**
* set the totalPrice - 金额
*/
public
void
setTotalPrice
(
BigDecimal
totalPrice
)
{
this
.
totalPrice
=
totalPrice
;
}
/**
* get the notes - 备注
* @return the notes
*/
public
String
getNotes
()
{
return
this
.
notes
;
}
/**
* set the notes - 备注
*/
public
void
setNotes
(
String
notes
)
{
this
.
notes
=
notes
;
}
/**
* 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
));
setDatemonth
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"datemonth"
)),
datemonth
));
setStatisticalNumber
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"statisticalNumber"
)),
statisticalNumber
));
setMaterialCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"materialCode"
)),
materialCode
));
setMaterialName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"materialName"
)),
materialName
));
setUnit
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"unit"
)),
unit
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"amount"
)),
amount
));
setPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"price"
)),
price
));
setTotalPrice
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
"totalPrice"
)),
totalPrice
));
setNotes
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
"notes"
)),
notes
));
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
));
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
(
"datemonth"
,
StringUtils
.
toString
(
datemonth
,
eiMetadata
.
getMeta
(
"datemonth"
)));
map
.
put
(
"statisticalNumber"
,
StringUtils
.
toString
(
statisticalNumber
,
eiMetadata
.
getMeta
(
"statisticalNumber"
)));
map
.
put
(
"materialCode"
,
StringUtils
.
toString
(
materialCode
,
eiMetadata
.
getMeta
(
"materialCode"
)));
map
.
put
(
"materialName"
,
StringUtils
.
toString
(
materialName
,
eiMetadata
.
getMeta
(
"materialName"
)));
map
.
put
(
"unit"
,
StringUtils
.
toString
(
unit
,
eiMetadata
.
getMeta
(
"unit"
)));
map
.
put
(
"amount"
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
"amount"
)));
map
.
put
(
"price"
,
StringUtils
.
toString
(
price
,
eiMetadata
.
getMeta
(
"price"
)));
map
.
put
(
"totalPrice"
,
StringUtils
.
toString
(
totalPrice
,
eiMetadata
.
getMeta
(
"totalPrice"
)));
map
.
put
(
"notes"
,
StringUtils
.
toString
(
notes
,
eiMetadata
.
getMeta
(
"notes"
)));
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/webapp/HP/KC/HPKC008.js
View file @
a29560b8
$
(
function
()
{
$
(
function
()
{
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
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
(
$
(
"#HPKC008"
),
"HPKC008"
,
"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
);
resultGrid
.
dataSource
.
page
(
1
);
},
onFail
:
function
(
ei
)
{
// onFail 表示失败回调函数
// 发生异常
console
.
log
(
ei
);
//释放禁用按钮
btnNode
.
attr
(
"disabled"
,
false
);
}
});
});
});
// 修改
$
(
"#BTN_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
(
$
(
"#HPKC008"
),
"HPKC008"
,
"update"
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
}
else
{
NotificationUtil
({
msg
:
'修改成功'
});
IPLATUI
.
EFGrid
.
result
=
{
// 绑定grid
pageable
:
{
resultGrid
.
setEiInfo
(
ei
);
pageSize
:
20
,
}
pageSizes
:
[
10
,
20
,
50
,
70
,
100
],
//释放禁用按钮
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
(
$
(
"#HPKC008"
),
"HPKC008"
,
"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/ZL/HPZL001.js
View file @
a29560b8
...
@@ -14,7 +14,7 @@ $(function() {
...
@@ -14,7 +14,7 @@ $(function() {
var
btnNode
=
$
(
this
);
var
btnNode
=
$
(
this
);
//禁用按钮
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HP
KC008"
),
"HPKC008
"
,
"insert"
,
{
IPLAT
.
submitNode
(
$
(
"#HP
ZL001"
),
"HPZL001
"
,
"insert"
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
NotificationUtil
(
ei
,
"error"
);
...
@@ -39,7 +39,7 @@ $(function() {
...
@@ -39,7 +39,7 @@ $(function() {
});
});
// 修改
// 修改
$
(
"#UPDATE"
).
on
(
"click"
,
function
()
{
$
(
"#
BTN_
UPDATE"
).
on
(
"click"
,
function
()
{
var
rowCount
=
resultGrid
.
getCheckedRows
();
var
rowCount
=
resultGrid
.
getCheckedRows
();
// 检验是否选中数据
// 检验是否选中数据
if
(
rowCount
==
null
||
rowCount
==
""
)
{
if
(
rowCount
==
null
||
rowCount
==
""
)
{
...
@@ -52,7 +52,7 @@ $(function() {
...
@@ -52,7 +52,7 @@ $(function() {
//禁用按钮
//禁用按钮
btnNode
.
attr
(
"disabled"
,
true
);
btnNode
.
attr
(
"disabled"
,
true
);
IPLAT
.
submitNode
(
$
(
"#HP
KC008"
),
"HPKC008
"
,
"update"
,
{
IPLAT
.
submitNode
(
$
(
"#HP
ZL001"
),
"HPZL001
"
,
"update"
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
NotificationUtil
(
ei
,
"error"
);
...
@@ -94,7 +94,7 @@ $(function() {
...
@@ -94,7 +94,7 @@ $(function() {
btnNode
.
attr
(
"disabled"
,
false
);
btnNode
.
attr
(
"disabled"
,
false
);
return
false
;
return
false
;
}
}
IPLAT
.
submitNode
(
$
(
"#HP
KC008"
),
"HPKC008
"
,
"delete"
,
{
IPLAT
.
submitNode
(
$
(
"#HP
ZL001"
),
"HPZL001
"
,
"delete"
,
{
onSuccess
:
function
(
ei
)
{
onSuccess
:
function
(
ei
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
if
(
ei
[
"status"
]
==
-
1
)
{
NotificationUtil
(
ei
,
"error"
);
NotificationUtil
(
ei
,
"error"
);
...
...
src/main/webapp/HP/ZL/HPZL001.jsp
View file @
a29560b8
...
@@ -5,16 +5,21 @@
...
@@ -5,16 +5,21 @@
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<EF:EFPage
title=
"
数据统计
单"
>
<EF:EFPage
title=
"
质量巡检
单"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFDatePicker
ename=
"inqu_status-0-datemonth"
cname=
"单据日期"
<EF:EFDatePicker
ename=
"inqu_status-0-receiptDate"
cname=
"单据日期"
format=
"yyyy-MM"
start=
"year"
depth=
"year"
required=
"true"
/>
format=
"yyyy/MM/dd"
depth=
"year"
required=
"true"
/>
<EF:EFInput
ename=
"inqu_status-0-statisticalNumber"
cname=
"项目名称"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFInput
ename=
"inqu_status-0-itemName"
cname=
"项目名称"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFInput
ename=
"inqu_status-0-statisticalNumber"
cname=
"检查人"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFInput
ename=
"inqu_status-0-princ"
cname=
"检查人"
colWidth=
"4"
readonly=
"false"
/>
<EF:EFInput
ename=
"inqu_status-0-statisticalNumber"
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>
</div>
</EF:EFRegion>
</EF:EFRegion>
...
@@ -22,23 +27,17 @@
...
@@ -22,23 +27,17 @@
<EF:EFGrid
blockId=
"result"
autoDraw=
"false"
isFloat=
"true"
autoFit=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"false"
isFloat=
"true"
autoFit=
"true"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<
%
--
<
EF:EFComboColumn
ename=
"datemonth"
cname=
"月份"
align=
"center"
blockName=
"company_type_block_id"
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
width=
"100"
readonly=
"false"
/>
columnTemplate=
"#=textField#-#=valueField#"
optionLabel=
" "
<EF:EFColumn
ename=
"chkBillno"
cname=
"检查单号"
width=
"100"
readonly=
"false"
/>
itemTemplate=
"#=textField#-#=valueField#"
textField=
"textField"
<EF:EFColumn
ename=
"itemCode"
cname=
"项目号"
width=
"100"
readonly=
"false"
/>
valueField=
"valueField"
width=
"100"
>
<EF:EFColumn
ename=
"itemName"
cname=
"项目名称"
width=
"100"
readonly=
"false"
/>
</EF:EFComboColumn>
--%>
<EF:EFColumn
ename=
"datemonth"
cname=
"单据日期"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"statisticalNumber"
cname=
"检查单号"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"materialCode"
cname=
"项目号"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"materialName"
cname=
"项目名称"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"unit"
cname=
"生产组"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"unit"
cname=
"生产组"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"
amount
"
cname=
"质量问题描述"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"
notes
"
cname=
"质量问题描述"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"pri
ce
"
cname=
"检查人"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"pri
nc
"
cname=
"检查人"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"
totalPrice
"
cname=
"单据状态"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"
status
"
cname=
"单据状态"
width=
"100"
readonly=
"false"
/>
<
EF:EFColumn
ename=
"totalPrice"
cname=
"审核按钮"
width=
"100"
readonly=
"false"
/
>
<
%
--
<
EF:EFColumn
ename=
"valuestatus"
cname=
"审核按钮"
width=
"100"
readonly=
"false"
/>
--%
>
<EF:EFColumn
ename=
"
notes
"
cname=
"附件"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"
affix
"
cname=
"附件"
width=
"100"
readonly=
"false"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false"
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false"
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
hidden =
"true"
/>
parseFormats=
"['yyyyMMddHHmmss']"
editType=
"datetime"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
hidden =
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false"
hidden =
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
readonly=
"true"
width=
"150"
align=
"center"
enable=
"false"
hidden =
"true"
/>
...
...
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