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
ba062c73
Commit
ba062c73
authored
Mar 07, 2024
by
yukang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
a54d3302
ae96e624
Show whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
1436 additions
and
106 deletions
+1436
-106
HPDS001.java
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS001.java
+295
-0
HPDS002.java
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS002.java
+452
-0
ServiceHPDS001.java
.../java/com/baosight/hpjx/hp/ds/service/ServiceHPDS001.java
+26
-0
ServiceHPDS002.java
.../java/com/baosight/hpjx/hp/ds/service/ServiceHPDS002.java
+70
-0
HPDS001.xml
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS001.xml
+148
-0
HPDS002.xml
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS002.xml
+213
-0
HPKC011.java
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC011.java
+28
-0
ServiceHPKC001.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
+1
-1
ServiceHPKC002.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
+1
-0
ServiceHPKC004.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
+2
-1
ServiceHPKC004B.java
...java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004B.java
+5
-1
ServiceHPKC011.java
.../java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
+1
-0
HPKC011.xml
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC011.xml
+3
-1
ServiceHPSC002.java
.../java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
+26
-4
ServiceHPSC002A.java
...java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002A.java
+23
-9
HPKC001.js
src/main/webapp/HP/KC/HPKC001.js
+2
-2
HPKC002.jsp
src/main/webapp/HP/KC/HPKC002.jsp
+2
-5
HPKC002A.js
src/main/webapp/HP/KC/HPKC002A.js
+4
-3
HPKC002A.jsp
src/main/webapp/HP/KC/HPKC002A.jsp
+4
-8
HPKC003.jsp
src/main/webapp/HP/KC/HPKC003.jsp
+3
-2
HPKC003A.js
src/main/webapp/HP/KC/HPKC003A.js
+43
-1
HPKC003A.jsp
src/main/webapp/HP/KC/HPKC003A.jsp
+10
-9
HPKC004.jsp
src/main/webapp/HP/KC/HPKC004.jsp
+10
-10
HPKC004A.jsp
src/main/webapp/HP/KC/HPKC004A.jsp
+7
-8
HPKC004B.jsp
src/main/webapp/HP/KC/HPKC004B.jsp
+3
-10
HPKC005.js
src/main/webapp/HP/KC/HPKC005.js
+7
-0
HPKC005A.js
src/main/webapp/HP/KC/HPKC005A.js
+0
-4
HPKC005A.jsp
src/main/webapp/HP/KC/HPKC005A.jsp
+1
-1
HPKC006.js
src/main/webapp/HP/KC/HPKC006.js
+2
-2
HPKC011.jsp
src/main/webapp/HP/KC/HPKC011.jsp
+8
-7
HPKC012.jsp
src/main/webapp/HP/KC/HPKC012.jsp
+1
-1
HPPZ006.js
src/main/webapp/HP/PZ/HPPZ006.js
+0
-13
HPPZ006.jsp
src/main/webapp/HP/PZ/HPPZ006.jsp
+3
-3
HPSC099.js
src/main/webapp/HP/SC/HPSC099.js
+32
-0
No files found.
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS001.java
0 → 100644
View file @
ba062c73
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
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
;
/**
* Project: <br>
* Title:SysOperationLog.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-03-04 15:58:48 create
*/
public
class
HPDS001
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键id*/
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 创建人*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 创建人名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 创建时间*/
public
static
final
String
FIELD_OPER_MODUL
=
"operModul"
;
/* 操作模块*/
public
static
final
String
FIELD_OPER_TYPE
=
"operType"
;
/* 操作类型*/
public
static
final
String
FIELD_OPER_DESC
=
"operDesc"
;
/* 操作说明*/
public
static
final
String
FIELD_OPER_CONTENT
=
"operContent"
;
/* 操作内容*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 创建人*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 创建人名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 创建时间*/
public
static
final
String
COL_OPER_MODUL
=
"OPER_MODUL"
;
/* 操作模块*/
public
static
final
String
COL_OPER_TYPE
=
"OPER_TYPE"
;
/* 操作类型*/
public
static
final
String
COL_OPER_DESC
=
"OPER_DESC"
;
/* 操作说明*/
public
static
final
String
COL_OPER_CONTENT
=
"OPER_CONTENT"
;
/* 操作内容*/
public
static
final
String
QUERY
=
"sys_operation_log.query"
;
public
static
final
String
COUNT
=
"sys_operation_log.count"
;
public
static
final
String
INSERT
=
"sys_operation_log.insert"
;
public
static
final
String
UPDATE
=
"sys_operation_log.update"
;
public
static
final
String
DELETE
=
"sys_operation_log.delete"
;
private
Long
id
=
new
Long
(
0
);
/* 主键id*/
private
String
companyCode
=
" "
;
/* 企业编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
operModul
=
" "
;
/* 操作模块*/
private
String
operType
=
" "
;
/* 操作类型*/
private
String
operDesc
=
" "
;
/* 操作说明*/
private
String
operContent
=
" "
;
/* 操作内容*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"主键id"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"创建人"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"创建人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_MODUL
);
eiColumn
.
setDescName
(
"操作模块"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_TYPE
);
eiColumn
.
setDescName
(
"操作类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_DESC
);
eiColumn
.
setDescName
(
"操作说明"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_OPER_CONTENT
);
eiColumn
.
setDescName
(
"操作内容"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPDS001
()
{
initMetaData
();
}
/**
* get the id - 主键id.
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id - 主键id.
*
* @param id - 主键id
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the createdBy - 创建人.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 创建人.
*
* @param createdBy - 创建人
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 创建人名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 创建人名称.
*
* @param createdName - 创建人名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 创建时间.
*
* @param createdTime - 创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the operModul - 操作模块.
* @return the operModul
*/
public
String
getOperModul
()
{
return
this
.
operModul
;
}
/**
* set the operModul - 操作模块.
*
* @param operModul - 操作模块
*/
public
void
setOperModul
(
String
operModul
)
{
this
.
operModul
=
operModul
;
}
/**
* get the operType - 操作类型.
* @return the operType
*/
public
String
getOperType
()
{
return
this
.
operType
;
}
/**
* set the operType - 操作类型.
*
* @param operType - 操作类型
*/
public
void
setOperType
(
String
operType
)
{
this
.
operType
=
operType
;
}
/**
* get the operDesc - 操作说明.
* @return the operDesc
*/
public
String
getOperDesc
()
{
return
this
.
operDesc
;
}
/**
* set the operDesc - 操作说明.
*
* @param operDesc - 操作说明
*/
public
void
setOperDesc
(
String
operDesc
)
{
this
.
operDesc
=
operDesc
;
}
/**
* get the operContent - 操作内容.
* @return the operContent
*/
public
String
getOperContent
()
{
return
this
.
operContent
;
}
/**
* set the operContent - 操作内容.
*
* @param operContent - 操作内容
*/
public
void
setOperContent
(
String
operContent
)
{
this
.
operContent
=
operContent
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ID
)),
id
));
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setOperModul
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_MODUL
)),
operModul
));
setOperType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_TYPE
)),
operType
));
setOperDesc
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_DESC
)),
operDesc
));
setOperContent
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_OPER_CONTENT
)),
operContent
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_ID
,
StringUtils
.
toString
(
id
,
eiMetadata
.
getMeta
(
FIELD_ID
)));
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_OPER_MODUL
,
StringUtils
.
toString
(
operModul
,
eiMetadata
.
getMeta
(
FIELD_OPER_MODUL
)));
map
.
put
(
FIELD_OPER_TYPE
,
StringUtils
.
toString
(
operType
,
eiMetadata
.
getMeta
(
FIELD_OPER_TYPE
)));
map
.
put
(
FIELD_OPER_DESC
,
StringUtils
.
toString
(
operDesc
,
eiMetadata
.
getMeta
(
FIELD_OPER_DESC
)));
map
.
put
(
FIELD_OPER_CONTENT
,
StringUtils
.
toString
(
operContent
,
eiMetadata
.
getMeta
(
FIELD_OPER_CONTENT
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/ds/domain/HPDS002.java
0 → 100644
View file @
ba062c73
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
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
;
/**
* Project: <br>
* Title:TeudmTemp.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-03-06 16:14:16 create
*/
public
class
HPDS002
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_COMPANY_CODE
=
"companyCode"
;
/* 企业编码*/
public
static
final
String
FIELD_DOC_ID
=
"docId"
;
/* 文件标识*/
public
static
final
String
FIELD_DIR_ID
=
"dirId"
;
/* 目录标识*/
public
static
final
String
FIELD_DOC_NAME
=
"docName"
;
/* 文件名*/
public
static
final
String
FIELD_CHG_NAME
=
"chgName"
;
/* 物理文件名*/
public
static
final
String
FIELD_DOC_SIZE
=
"docSize"
;
/* 文件大小*/
public
static
final
String
FIELD_DOC_TAG
=
"docTag"
;
/* 文件标签*/
public
static
final
String
FIELD_CREATED_BY
=
"createdBy"
;
/* 记录创建者*/
public
static
final
String
FIELD_CREATED_NAME
=
"createdName"
;
/* 记录创建名称*/
public
static
final
String
FIELD_CREATED_TIME
=
"createdTime"
;
/* 记录创建时间*/
public
static
final
String
FIELD_UPDATED_BY
=
"updatedBy"
;
/* 记录修改者*/
public
static
final
String
FIELD_UPDATED_NAME
=
"updatedName"
;
/* 记录修改名称*/
public
static
final
String
FIELD_UPDATED_TIME
=
"updatedTime"
;
/* 记录修改时间*/
public
static
final
String
FIELD_ARCHIVE_FLAG
=
"archiveFlag"
;
/* 同步标记*/
public
static
final
String
FIELD_REAL_PATH
=
"realPath"
;
/* 物理路径*/
public
static
final
String
COL_COMPANY_CODE
=
"COMPANY_CODE"
;
/* 企业编码*/
public
static
final
String
COL_DOC_ID
=
"DOC_ID"
;
/* 文件标识*/
public
static
final
String
COL_DIR_ID
=
"DIR_ID"
;
/* 目录标识*/
public
static
final
String
COL_DOC_NAME
=
"DOC_NAME"
;
/* 文件名*/
public
static
final
String
COL_CHG_NAME
=
"CHG_NAME"
;
/* 物理文件名*/
public
static
final
String
COL_DOC_SIZE
=
"DOC_SIZE"
;
/* 文件大小*/
public
static
final
String
COL_DOC_TAG
=
"DOC_TAG"
;
/* 文件标签*/
public
static
final
String
COL_CREATED_BY
=
"CREATED_BY"
;
/* 记录创建者*/
public
static
final
String
COL_CREATED_NAME
=
"CREATED_NAME"
;
/* 记录创建名称*/
public
static
final
String
COL_CREATED_TIME
=
"CREATED_TIME"
;
/* 记录创建时间*/
public
static
final
String
COL_UPDATED_BY
=
"UPDATED_BY"
;
/* 记录修改者*/
public
static
final
String
COL_UPDATED_NAME
=
"UPDATED_NAME"
;
/* 记录修改名称*/
public
static
final
String
COL_UPDATED_TIME
=
"UPDATED_TIME"
;
/* 记录修改时间*/
public
static
final
String
COL_ARCHIVE_FLAG
=
"ARCHIVE_FLAG"
;
/* 同步标记*/
public
static
final
String
COL_REAL_PATH
=
"REAL_PATH"
;
/* 物理路径*/
public
static
final
String
QUERY
=
"HPDS002.query"
;
public
static
final
String
COUNT
=
"HPDS002.count"
;
public
static
final
String
INSERT
=
"HPDS002.insert"
;
public
static
final
String
UPDATE
=
"HPDS002.update"
;
public
static
final
String
DELETE
=
"HPDS002.delete"
;
public
static
final
String
DELETE_BATCH
=
"HPDS002.deleteByBatch"
;
private
String
companyCode
=
" "
;
/* 企业编码*/
private
String
docId
=
" "
;
/* 文件标识*/
private
String
dirId
=
" "
;
/* 目录标识*/
private
String
docName
=
" "
;
/* 文件名*/
private
String
chgName
=
" "
;
/* 物理文件名*/
private
BigDecimal
docSize
=
new
BigDecimal
(
0
);
/* 文件大小*/
private
String
docTag
=
" "
;
/* 文件标签*/
private
String
createdBy
=
" "
;
/* 记录创建者*/
private
String
createdName
=
" "
;
/* 记录创建名称*/
private
String
createdTime
=
" "
;
/* 记录创建时间*/
private
String
updatedBy
=
" "
;
/* 记录修改者*/
private
String
updatedName
=
" "
;
/* 记录修改名称*/
private
String
updatedTime
=
" "
;
/* 记录修改时间*/
private
String
archiveFlag
=
" "
;
/* 同步标记*/
private
String
realPath
=
" "
;
/* 物理路径*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_COMPANY_CODE
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"企业编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_ID
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
"文件标识"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DIR_ID
);
eiColumn
.
setDescName
(
"目录标识"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_NAME
);
eiColumn
.
setDescName
(
"文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CHG_NAME
);
eiColumn
.
setDescName
(
"物理文件名"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_SIZE
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
0
);
eiColumn
.
setFieldLength
(
16
);
eiColumn
.
setDescName
(
"文件大小"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DOC_TAG
);
eiColumn
.
setDescName
(
"文件标签"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_BY
);
eiColumn
.
setDescName
(
"记录创建者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_NAME
);
eiColumn
.
setDescName
(
"记录创建名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_CREATED_TIME
);
eiColumn
.
setDescName
(
"记录创建时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_BY
);
eiColumn
.
setDescName
(
"记录修改者"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_NAME
);
eiColumn
.
setDescName
(
"记录修改名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_UPDATED_TIME
);
eiColumn
.
setDescName
(
"记录修改时间"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_ARCHIVE_FLAG
);
eiColumn
.
setDescName
(
"同步标记"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REAL_PATH
);
eiColumn
.
setDescName
(
"物理路径"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HPDS002
()
{
initMetaData
();
}
/**
* get the companyCode - 企业编码.
* @return the companyCode
*/
public
String
getCompanyCode
()
{
return
this
.
companyCode
;
}
/**
* set the companyCode - 企业编码.
*
* @param companyCode - 企业编码
*/
public
void
setCompanyCode
(
String
companyCode
)
{
this
.
companyCode
=
companyCode
;
}
/**
* get the docId - 文件标识.
* @return the docId
*/
public
String
getDocId
()
{
return
this
.
docId
;
}
/**
* set the docId - 文件标识.
*
* @param docId - 文件标识
*/
public
void
setDocId
(
String
docId
)
{
this
.
docId
=
docId
;
}
/**
* get the dirId - 目录标识.
* @return the dirId
*/
public
String
getDirId
()
{
return
this
.
dirId
;
}
/**
* set the dirId - 目录标识.
*
* @param dirId - 目录标识
*/
public
void
setDirId
(
String
dirId
)
{
this
.
dirId
=
dirId
;
}
/**
* get the docName - 文件名.
* @return the docName
*/
public
String
getDocName
()
{
return
this
.
docName
;
}
/**
* set the docName - 文件名.
*
* @param docName - 文件名
*/
public
void
setDocName
(
String
docName
)
{
this
.
docName
=
docName
;
}
/**
* get the chgName - 物理文件名.
* @return the chgName
*/
public
String
getChgName
()
{
return
this
.
chgName
;
}
/**
* set the chgName - 物理文件名.
*
* @param chgName - 物理文件名
*/
public
void
setChgName
(
String
chgName
)
{
this
.
chgName
=
chgName
;
}
/**
* get the docSize - 文件大小.
* @return the docSize
*/
public
BigDecimal
getDocSize
()
{
return
this
.
docSize
;
}
/**
* set the docSize - 文件大小.
*
* @param docSize - 文件大小
*/
public
void
setDocSize
(
BigDecimal
docSize
)
{
this
.
docSize
=
docSize
;
}
/**
* get the docTag - 文件标签.
* @return the docTag
*/
public
String
getDocTag
()
{
return
this
.
docTag
;
}
/**
* set the docTag - 文件标签.
*
* @param docTag - 文件标签
*/
public
void
setDocTag
(
String
docTag
)
{
this
.
docTag
=
docTag
;
}
/**
* get the createdBy - 记录创建者.
* @return the createdBy
*/
public
String
getCreatedBy
()
{
return
this
.
createdBy
;
}
/**
* set the createdBy - 记录创建者.
*
* @param createdBy - 记录创建者
*/
public
void
setCreatedBy
(
String
createdBy
)
{
this
.
createdBy
=
createdBy
;
}
/**
* get the createdName - 记录创建名称.
* @return the createdName
*/
public
String
getCreatedName
()
{
return
this
.
createdName
;
}
/**
* set the createdName - 记录创建名称.
*
* @param createdName - 记录创建名称
*/
public
void
setCreatedName
(
String
createdName
)
{
this
.
createdName
=
createdName
;
}
/**
* get the createdTime - 记录创建时间.
* @return the createdTime
*/
public
String
getCreatedTime
()
{
return
this
.
createdTime
;
}
/**
* set the createdTime - 记录创建时间.
*
* @param createdTime - 记录创建时间
*/
public
void
setCreatedTime
(
String
createdTime
)
{
this
.
createdTime
=
createdTime
;
}
/**
* get the updatedBy - 记录修改者.
* @return the updatedBy
*/
public
String
getUpdatedBy
()
{
return
this
.
updatedBy
;
}
/**
* set the updatedBy - 记录修改者.
*
* @param updatedBy - 记录修改者
*/
public
void
setUpdatedBy
(
String
updatedBy
)
{
this
.
updatedBy
=
updatedBy
;
}
/**
* get the updatedName - 记录修改名称.
* @return the updatedName
*/
public
String
getUpdatedName
()
{
return
this
.
updatedName
;
}
/**
* set the updatedName - 记录修改名称.
*
* @param updatedName - 记录修改名称
*/
public
void
setUpdatedName
(
String
updatedName
)
{
this
.
updatedName
=
updatedName
;
}
/**
* get the updatedTime - 记录修改时间.
* @return the updatedTime
*/
public
String
getUpdatedTime
()
{
return
this
.
updatedTime
;
}
/**
* set the updatedTime - 记录修改时间.
*
* @param updatedTime - 记录修改时间
*/
public
void
setUpdatedTime
(
String
updatedTime
)
{
this
.
updatedTime
=
updatedTime
;
}
/**
* get the archiveFlag - 同步标记.
* @return the archiveFlag
*/
public
String
getArchiveFlag
()
{
return
this
.
archiveFlag
;
}
/**
* set the archiveFlag - 同步标记.
*
* @param archiveFlag - 同步标记
*/
@Override
public
void
setArchiveFlag
(
String
archiveFlag
)
{
this
.
archiveFlag
=
archiveFlag
;
}
/**
* get the realPath - 物理路径.
* @return the realPath
*/
public
String
getRealPath
()
{
return
this
.
realPath
;
}
/**
* set the realPath - 物理路径.
*
* @param realPath - 物理路径
*/
public
void
setRealPath
(
String
realPath
)
{
this
.
realPath
=
realPath
;
}
/**
* get the value from Map.
*
* @param map - source data map
*/
@Override
public
void
fromMap
(
Map
map
)
{
setCompanyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_COMPANY_CODE
)),
companyCode
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_ID
)),
docId
));
setDirId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DIR_ID
)),
dirId
));
setDocName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_NAME
)),
docName
));
setChgName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CHG_NAME
)),
chgName
));
setDocSize
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_SIZE
)),
docSize
));
setDocTag
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DOC_TAG
)),
docTag
));
setCreatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_BY
)),
createdBy
));
setCreatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_NAME
)),
createdName
));
setCreatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_CREATED_TIME
)),
createdTime
));
setUpdatedBy
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_BY
)),
updatedBy
));
setUpdatedName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_NAME
)),
updatedName
));
setUpdatedTime
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UPDATED_TIME
)),
updatedTime
));
setArchiveFlag
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ARCHIVE_FLAG
)),
archiveFlag
));
setRealPath
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REAL_PATH
)),
realPath
));
}
/**
* set the value to Map.
*/
@Override
public
Map
toMap
()
{
Map
map
=
new
HashMap
();
map
.
put
(
FIELD_COMPANY_CODE
,
StringUtils
.
toString
(
companyCode
,
eiMetadata
.
getMeta
(
FIELD_COMPANY_CODE
)));
map
.
put
(
FIELD_DOC_ID
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_DOC_ID
)));
map
.
put
(
FIELD_DIR_ID
,
StringUtils
.
toString
(
dirId
,
eiMetadata
.
getMeta
(
FIELD_DIR_ID
)));
map
.
put
(
FIELD_DOC_NAME
,
StringUtils
.
toString
(
docName
,
eiMetadata
.
getMeta
(
FIELD_DOC_NAME
)));
map
.
put
(
FIELD_CHG_NAME
,
StringUtils
.
toString
(
chgName
,
eiMetadata
.
getMeta
(
FIELD_CHG_NAME
)));
map
.
put
(
FIELD_DOC_SIZE
,
StringUtils
.
toString
(
docSize
,
eiMetadata
.
getMeta
(
FIELD_DOC_SIZE
)));
map
.
put
(
FIELD_DOC_TAG
,
StringUtils
.
toString
(
docTag
,
eiMetadata
.
getMeta
(
FIELD_DOC_TAG
)));
map
.
put
(
FIELD_CREATED_BY
,
StringUtils
.
toString
(
createdBy
,
eiMetadata
.
getMeta
(
FIELD_CREATED_BY
)));
map
.
put
(
FIELD_CREATED_NAME
,
StringUtils
.
toString
(
createdName
,
eiMetadata
.
getMeta
(
FIELD_CREATED_NAME
)));
map
.
put
(
FIELD_CREATED_TIME
,
StringUtils
.
toString
(
createdTime
,
eiMetadata
.
getMeta
(
FIELD_CREATED_TIME
)));
map
.
put
(
FIELD_UPDATED_BY
,
StringUtils
.
toString
(
updatedBy
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_BY
)));
map
.
put
(
FIELD_UPDATED_NAME
,
StringUtils
.
toString
(
updatedName
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_NAME
)));
map
.
put
(
FIELD_UPDATED_TIME
,
StringUtils
.
toString
(
updatedTime
,
eiMetadata
.
getMeta
(
FIELD_UPDATED_TIME
)));
map
.
put
(
FIELD_ARCHIVE_FLAG
,
StringUtils
.
toString
(
archiveFlag
,
eiMetadata
.
getMeta
(
FIELD_ARCHIVE_FLAG
)));
map
.
put
(
FIELD_REAL_PATH
,
StringUtils
.
toString
(
realPath
,
eiMetadata
.
getMeta
(
FIELD_REAL_PATH
)));
return
map
;
}
}
src/main/java/com/baosight/hpjx/hp/ds/service/ServiceHPDS001.java
0 → 100644
View file @
ba062c73
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.hp.ds.domain.HPDS001
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
com.baosight.iplat4j.core.service.impl.ServiceEPBase
;
/**
* Title: 历史数据清理 <br>
* @author LiuYang
* @version 1.0 2024/3/4
*/
public
class
ServiceHPDS001
extends
ServiceEPBase
{
@Override
@OperationLogAnnotation
(
operModul
=
"系统操作日志"
,
operType
=
"页面初始化"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
return
super
.
initLoad
(
inInfo
);
}
@OperationLogAnnotation
(
operModul
=
"系统操作日志"
,
operType
=
"删除"
,
operDesc
=
"删除6个月之前的历史数据"
)
public
EiInfo
deleteHistory
(
EiInfo
inInfo
)
{
return
super
.
delete
(
inInfo
,
"HPDS001.deleteHistory"
);
}
}
src/main/java/com/baosight/hpjx/hp/ds/service/ServiceHPDS002.java
0 → 100644
View file @
ba062c73
package
com
.
baosight
.
hpjx
.
hp
.
ds
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.ds.domain.HPDS002
;
import
com.baosight.hpjx.util.DateUtils
;
import
com.baosight.hpjx.util.LogUtils
;
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.service.impl.ServiceEPBase
;
import
com.baosight.iplat4j.core.web.threadlocal.UserSession
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* Title:文件备份 <br>
* @author LiuYang
* @version 1.0 2024/3/5
*/
public
class
ServiceHPDS002
extends
ServiceEPBase
{
@Override
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
return
super
.
initLoad
(
inInfo
);
}
@Override
public
EiInfo
query
(
EiInfo
inInfo
)
{
return
super
.
query
(
inInfo
);
}
@Override
@OperationLogAnnotation
(
operModul
=
"文件备份"
,
operType
=
"删除"
,
operDesc
=
"删除文件备份数据"
)
public
EiInfo
delete
(
EiInfo
inInfo
)
{
return
super
.
delete
(
inInfo
);
}
@Override
@OperationLogAnnotation
(
operModul
=
"文件备份"
,
operType
=
"修改"
,
operDesc
=
"修改文件备份数据"
)
public
EiInfo
update
(
EiInfo
inInfo
)
{
return
super
.
update
(
inInfo
);
}
@Override
@OperationLogAnnotation
(
operModul
=
"文件备份"
,
operType
=
"新增"
,
operDesc
=
"新增文件备份数据"
)
public
EiInfo
insert
(
EiInfo
inInfo
)
{
try
{
EiBlock
block
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
);
for
(
int
i
=
0
;
i
<
block
.
getRowCount
();
i
++)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<
String
,
Object
>(
1
);
map
.
put
(
"docId"
,
block
.
getCellStr
(
i
,
HPDS002
.
FIELD_DOC_ID
));
List
<
Map
<
String
,
Object
>>
list
=
this
.
dao
.
query
(
"EUDM02.query"
,
map
);
HPDS002
hpds002
=
new
HPDS002
();
hpds002
.
fromMap
(
block
.
getRow
(
i
));
hpds002
.
setChgName
(
list
.
get
(
0
).
get
(
"chgName"
).
toString
());
hpds002
.
setDirId
(
list
.
get
(
0
).
get
(
"dirId"
).
toString
());
DaoUtils
.
insert
(
HPDS002
.
INSERT
,
hpds002
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
block
.
getRowCount
()
+
"]条数据新增成功!"
);
}
catch
(
Exception
e
){
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"新增失败"
);
}
return
inInfo
;
}
}
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS001.xml
0 → 100644
View file @
ba062c73
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<!-- table information
Generate time : 2024-03-04 15:58:48
Version : 1.0
schema : hpjx
tableName : SYS_OPERATION_LOG
ID BIGINT NOT NULL primarykey,
COMPANY_CODE VARCHAR NOT NULL,
CREATED_BY VARCHAR,
CREATED_NAME VARCHAR,
CREATED_TIME VARCHAR,
OPER_MODUL VARCHAR,
OPER_TYPE VARCHAR,
OPER_DESC VARCHAR,
OPER_CONTENT VARCHAR
-->
<sqlMap
namespace=
"HPDS001"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operModul"
>
OPER_MODUL = #operModul#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operType"
>
OPER_TYPE = #operType#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operDesc"
>
OPER_DESC = #operDesc#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"operContent"
>
OPER_CONTENT = #operContent#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.ds.domain.HPDS001"
>
SELECT
ID as "id",
<!-- 主键id -->
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
OPER_MODUL as "operModul",
<!-- 操作模块 -->
OPER_TYPE as "operType",
<!-- 操作类型 -->
OPER_DESC as "operDesc",
<!-- 操作说明 -->
OPER_CONTENT as "operContent"
<!-- 操作内容 -->
FROM ${hpjxSchema}.SYS_OPERATION_LOG WHERE 1=1
<include
refid=
"condition"
/>
<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 ${hpjxSchema}.SYS_OPERATION_LOG WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
ID = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operModul">
OPER_MODUL = #operModul#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operType">
OPER_TYPE = #operType#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operDesc">
OPER_DESC = #operDesc#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="operContent">
OPER_CONTENT = #operContent#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.SYS_OPERATION_LOG (ID,
<!-- 主键id -->
COMPANY_CODE,
<!-- 企业编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
OPER_MODUL,
<!-- 操作模块 -->
OPER_TYPE,
<!-- 操作类型 -->
OPER_DESC,
<!-- 操作说明 -->
OPER_CONTENT
<!-- 操作内容 -->
)
VALUES (#id#, #companyCode#, #createdBy#, #createdName#, #createdTime#, #operModul#, #operType#, #operDesc#, #operContent#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.SYS_OPERATION_LOG WHERE
ID = #id#
</delete>
<!--删除6个月以前的历史数据-->
<delete
id=
"deleteHistory"
>
delete from ${hpjxSchema}.SYS_OPERATION_LOG where left(CREATED_TIME,8)
<
= DATE_FORMAT(DATE_SUB(CURDATE(), interval 6 month), '%Y%m%d')
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.SYS_OPERATION_LOG
SET
COMPANY_CODE = #companyCode#,
<!-- 企业编码 -->
CREATED_BY = #createdBy#,
<!-- 创建人 -->
CREATED_NAME = #createdName#,
<!-- 创建人名称 -->
CREATED_TIME = #createdTime#,
<!-- 创建时间 -->
OPER_MODUL = #operModul#,
<!-- 操作模块 -->
OPER_TYPE = #operType#,
<!-- 操作类型 -->
OPER_DESC = #operDesc#,
<!-- 操作说明 -->
OPER_CONTENT = #operContent#
<!-- 操作内容 -->
WHERE
ID = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/ds/sql/HPDS002.xml
0 → 100644
View file @
ba062c73
<?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-03-06 16:14:16
Version : 1.0
schema : hpjx
tableName : TEUDM_TEMP
COMPANY_CODE VARCHAR NOT NULL primarykey,
DOC_ID VARCHAR NOT NULL primarykey,
DIR_ID VARCHAR NOT NULL,
DOC_NAME VARCHAR NOT NULL,
CHG_NAME VARCHAR NOT NULL,
DOC_SIZE DECIMAL NOT NULL,
DOC_TAG VARCHAR NOT NULL,
CREATED_BY VARCHAR NOT NULL,
CREATED_NAME VARCHAR NOT NULL,
CREATED_TIME VARCHAR NOT NULL,
UPDATED_BY VARCHAR NOT NULL,
UPDATED_NAME VARCHAR NOT NULL,
UPDATED_TIME VARCHAR NOT NULL,
ARCHIVE_FLAG VARCHAR NOT NULL,
REAL_PATH VARCHAR
-->
<sqlMap
namespace=
"HPDS002"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docIds"
>
DOC_ID in $docIds$
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"dirId"
>
DIR_ID = #dirId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docName"
>
DOC_NAME = #docName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"chgName"
>
CHG_NAME = #chgName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docSize"
>
DOC_SIZE = #docSize#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docTag"
>
DOC_TAG = #docTag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdTime"
>
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedTime"
>
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"archiveFlag"
>
ARCHIVE_FLAG = #archiveFlag#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"realPath"
>
REAL_PATH = #realPath#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hpjx.hp.ds.domain.HPDS002"
>
SELECT
COMPANY_CODE as "companyCode",
<!-- 企业编码 -->
DOC_ID as "docId",
<!-- 文件标识 -->
DIR_ID as "dirId",
<!-- 目录标识 -->
DOC_NAME as "docName",
<!-- 文件名 -->
CHG_NAME as "chgName",
<!-- 物理文件名 -->
DOC_SIZE as "docSize",
<!-- 文件大小 -->
DOC_TAG as "docTag",
<!-- 文件标签 -->
CREATED_BY as "createdBy",
<!-- 记录创建者 -->
CREATED_NAME as "createdName",
<!-- 记录创建名称 -->
CREATED_TIME as "createdTime",
<!-- 记录创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 记录修改者 -->
UPDATED_NAME as "updatedName",
<!-- 记录修改名称 -->
UPDATED_TIME as "updatedTime",
<!-- 记录修改时间 -->
ARCHIVE_FLAG as "archiveFlag",
<!-- 同步标记 -->
REAL_PATH as "realPath"
<!-- 物理路径 -->
FROM ${hpjxSchema}.TEUDM_TEMP WHERE 1=1
<include
refid=
"condition"
/>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
COMPANY_CODE asc,
DOC_ID asc
</isEmpty>
</dynamic>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hpjxSchema}.TEUDM_TEMP WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="companyCode">
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docId">
DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="dirId">
DIR_ID = #dirId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docName">
DOC_NAME = #docName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="chgName">
CHG_NAME = #chgName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docSize">
DOC_SIZE = #docSize#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docTag">
DOC_TAG = #docTag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdBy">
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdName">
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="createdTime">
CREATED_TIME = #createdTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedBy">
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedName">
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="updatedTime">
UPDATED_TIME = #updatedTime#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="archiveFlag">
ARCHIVE_FLAG = #archiveFlag#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="realPath">
REAL_PATH = #realPath#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hpjxSchema}.TEUDM_TEMP (COMPANY_CODE,
<!-- 企业编码 -->
DOC_ID,
<!-- 文件标识 -->
DIR_ID,
<!-- 目录标识 -->
DOC_NAME,
<!-- 文件名 -->
CHG_NAME,
<!-- 物理文件名 -->
DOC_SIZE,
<!-- 文件大小 -->
DOC_TAG,
<!-- 文件标签 -->
CREATED_BY,
<!-- 记录创建者 -->
CREATED_NAME,
<!-- 记录创建名称 -->
CREATED_TIME,
<!-- 记录创建时间 -->
UPDATED_BY,
<!-- 记录修改者 -->
UPDATED_NAME,
<!-- 记录修改名称 -->
UPDATED_TIME,
<!-- 记录修改时间 -->
ARCHIVE_FLAG,
<!-- 同步标记 -->
REAL_PATH
<!-- 物理路径 -->
)
VALUES (#companyCode#, #docId#, #dirId#, #docName#, #chgName#, #docSize#, #docTag#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #archiveFlag#, #realPath#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hpjxSchema}.TEUDM_TEMP WHERE
COMPANY_CODE = #companyCode#
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
DOC_ID = #docId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docIds"
>
DOC_ID in $docIds$
</isNotEmpty>
</delete>
<update
id=
"update"
>
UPDATE ${hpjxSchema}.TEUDM_TEMP
SET
DIR_ID = #dirId#,
<!-- 目录标识 -->
DOC_NAME = #docName#,
<!-- 文件名 -->
CHG_NAME = #chgName#,
<!-- 物理文件名 -->
DOC_SIZE = #docSize#,
<!-- 文件大小 -->
DOC_TAG = #docTag#,
<!-- 文件标签 -->
CREATED_BY = #createdBy#,
<!-- 记录创建者 -->
CREATED_NAME = #createdName#,
<!-- 记录创建名称 -->
CREATED_TIME = #createdTime#,
<!-- 记录创建时间 -->
UPDATED_BY = #updatedBy#,
<!-- 记录修改者 -->
UPDATED_NAME = #updatedName#,
<!-- 记录修改名称 -->
UPDATED_TIME = #updatedTime#,
<!-- 记录修改时间 -->
ARCHIVE_FLAG = #archiveFlag#,
<!-- 同步标记 -->
REAL_PATH = #realPath#
<!-- 物理路径 -->
WHERE
COMPANY_CODE = #companyCode# AND
DOC_ID = #docId#
</update>
</sqlMap>
src/main/java/com/baosight/hpjx/hp/kc/domain/HPKC011.java
View file @
ba062c73
...
...
@@ -38,6 +38,7 @@ public class HPKC011 extends DaoEPBase {
public
static
final
String
FIELD_LENGTH
=
"length"
;
/* 长*/
public
static
final
String
FIELD_WIDTH
=
"width"
;
/* 宽*/
public
static
final
String
FIELD_THICK
=
"thick"
;
/* 厚*/
public
static
final
String
FIELD_PRDT_SPEC
=
"prdtSpec"
;
/* 产品规格*/
public
static
final
String
FIELD_AMOUNT
=
"amount"
;
/* 数量*/
public
static
final
String
FIELD_UNIT_WEIGHT
=
"unitWeight"
;
/* 单重*/
public
static
final
String
FIELD_WEIGHT
=
"weight"
;
/* 重量*/
...
...
@@ -65,6 +66,7 @@ public class HPKC011 extends DaoEPBase {
public
static
final
String
COL_LENGTH
=
"FIELD_LENGTH"
;
/* 长*/
public
static
final
String
COL_WIDTH
=
"FIELD_WIDTH"
;
/* 宽*/
public
static
final
String
COL_THICK
=
"FIELD_THICK"
;
/* 厚*/
public
static
final
String
COL_PRDT_SPEC
=
"PRDT_SPEC"
;
/* 产品规格*/
public
static
final
String
COL_AMOUNT
=
"FIELD_AMOUNT"
;
/* 数量*/
public
static
final
String
COL_UNIT_WEIGHT
=
"FIELD_UNIT_WEIGHT"
;
/* 单重*/
public
static
final
String
COL_WEIGHT
=
"FIELD_WEIGHT"
;
/* 重量*/
...
...
@@ -98,6 +100,9 @@ public class HPKC011 extends DaoEPBase {
private
BigDecimal
length
=
new
BigDecimal
(
"0"
);
/* 长*/
private
BigDecimal
width
=
new
BigDecimal
(
"0"
);
/* 宽*/
private
BigDecimal
thick
=
new
BigDecimal
(
"0"
);
/* 厚*/
private
String
prdtSpec
=
" "
;
/* 产品规格*/
private
BigDecimal
amount
=
new
BigDecimal
(
"0"
);
/* 数量*/
private
BigDecimal
unitWeight
=
new
BigDecimal
(
"0"
);
/* 单重*/
private
BigDecimal
weight
=
new
BigDecimal
(
"0"
);
/* 重量*/
...
...
@@ -186,6 +191,10 @@ public class HPKC011 extends DaoEPBase {
eiColumn
.
setDescName
(
"厚"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_PRDT_SPEC
);
eiColumn
.
setDescName
(
"产品规格"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_AMOUNT
);
eiColumn
.
setType
(
"N"
);
eiColumn
.
setScaleLength
(
2
);
...
...
@@ -362,6 +371,23 @@ public class HPKC011 extends DaoEPBase {
public
void
setInventName
(
String
inventName
)
{
this
.
inventName
=
inventName
;
}
/**
* get the prdtSpec - 产品规格.
* @return the prdtSpec
*/
public
String
getPrdtSpec
()
{
return
this
.
prdtSpec
;
}
/**
* set the prdtSpec - 产品规格.
*
* @param prdtSpec - 产品规格
*/
public
void
setPrdtSpec
(
String
prdtSpec
)
{
this
.
prdtSpec
=
prdtSpec
;
}
/**
* get the amount - 数量.
* @return the amount
...
...
@@ -610,6 +636,7 @@ public class HPKC011 extends DaoEPBase {
setLength
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_LENGTH
)),
length
));
setWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WIDTH
)),
width
));
setThick
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_THICK
)),
thick
));
setPrdtSpec
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_PRDT_SPEC
)),
prdtSpec
));
setAmount
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_AMOUNT
)),
amount
));
setUnitWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_UNIT_WEIGHT
)),
unitWeight
));
setWeight
(
NumberUtils
.
toBigDecimal
(
StringUtils
.
toString
(
map
.
get
(
FIELD_WEIGHT
)),
weight
));
...
...
@@ -645,6 +672,7 @@ public class HPKC011 extends DaoEPBase {
map
.
put
(
FIELD_LENGTH
,
StringUtils
.
toString
(
length
,
eiMetadata
.
getMeta
(
FIELD_LENGTH
)));
map
.
put
(
FIELD_WIDTH
,
StringUtils
.
toString
(
width
,
eiMetadata
.
getMeta
(
FIELD_WIDTH
)));
map
.
put
(
FIELD_THICK
,
StringUtils
.
toString
(
thick
,
eiMetadata
.
getMeta
(
FIELD_THICK
)));
map
.
put
(
FIELD_PRDT_SPEC
,
StringUtils
.
toString
(
prdtSpec
,
eiMetadata
.
getMeta
(
FIELD_PRDT_SPEC
)));
map
.
put
(
FIELD_AMOUNT
,
StringUtils
.
toString
(
amount
,
eiMetadata
.
getMeta
(
FIELD_AMOUNT
)));
map
.
put
(
FIELD_UNIT_WEIGHT
,
StringUtils
.
toString
(
unitWeight
,
eiMetadata
.
getMeta
(
FIELD_UNIT_WEIGHT
)));
map
.
put
(
FIELD_WEIGHT
,
StringUtils
.
toString
(
weight
,
eiMetadata
.
getMeta
(
FIELD_WEIGHT
)));
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC001.java
View file @
ba062c73
...
...
@@ -203,7 +203,7 @@ public class ServiceHPKC001 extends ServiceBase {
}
/**
* 删除操作
* 删除操作
intCompact = 14040
*
* @param inInfo
* @return
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC002.java
View file @
ba062c73
...
...
@@ -50,6 +50,7 @@ public class ServiceHPKC002 extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_SPEC_BLOCK_ID
),
queryMap
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
SPEC_NAME_BLOCK_ID
),
queryMap
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
null
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
INVENT_ALL_BLOCK_ID
),
queryMap
,
false
);
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HPKC002
().
eiMetadata
);
inInfo
.
setBlock
(
InventTypeEnum
.
generatorEiBlock
());
}
catch
(
PlatException
e
)
{
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004.java
View file @
ba062c73
...
...
@@ -21,6 +21,7 @@ import com.baosight.iplat4j.core.service.impl.ServiceBase;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.MapUtils
;
import
java.math.BigDecimal
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -117,7 +118,7 @@ public class ServiceHPKC004 extends ServiceBase {
// 修改库存
if
(
dbKc004
.
getProdNo
().
equals
(
" "
))
HPKCTools
.
updateStock
(
dbKc004
.
getWhCode
(),
hpkc010
.
getInventRecordId
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
());
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
()
.
multiply
(
new
BigDecimal
(
1000
))
);
else
HPKCTools
.
updateProdStock
(
dbKc004
.
getWhCode
(),
dbKc004
.
getProdNo
(),
dbKc004
.
getAmount
(),
dbKc004
.
getWeight
());
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC004B.java
View file @
ba062c73
...
...
@@ -136,12 +136,16 @@ public class ServiceHPKC004B extends ServiceEPBase {
String
applyRemark
=
MapUtils
.
getString
(
row
,
"applyRemark"
);
String
projCode
=
MapUtils
.
getString
(
row
,
"projCode"
);
Long
kcId
=
MapUtils
.
getLong
(
row
,
"id"
);
HPKC010
dbKc010
=
dbKc010Map
.
get
(
kcId
);
HPKC004
newKc004
=
BeanUtils
.
copy
(
dbKc010
,
HPKC004
.
class
);
BigDecimal
multiply
=
dbKc010
.
getUnitWeight
().
multiply
(
applyAmount
);
newKc004
.
setSaleNo
(
SequenceGenerator
.
getNextSequence
(
HPConstant
.
SequenceId
.
HPKC004_SALE_NO
));
newKc004
.
setReceiptDate
(
DateUtils
.
shortDate
());
newKc004
.
setAmount
(
applyAmount
);
newKc004
.
setWeight
(
dbKc010
.
getUnitWeight
().
multiply
(
applyAmount
));
//转换t
newKc004
.
setWeight
(
multiply
.
divide
(
new
BigDecimal
(
1000
)));
newKc004
.
setUnitWeight
(
newKc004
.
getUnitWeight
().
divide
(
new
BigDecimal
(
1000
)));
newKc004
.
setRemark
(
applyRemark
);
newKc004
.
setKcId
(
kcId
);
newKc004
.
setIsPrint
(
CommonConstant
.
YesNo
.
NO_0
);
...
...
src/main/java/com/baosight/hpjx/hp/kc/service/ServiceHPKC011.java
View file @
ba062c73
...
...
@@ -196,6 +196,7 @@ public class ServiceHPKC011 extends ServiceBase {
hpkc011
.
setLength
(
hpsc005
.
getPartLength
());
hpkc011
.
setWidth
(
hpsc005
.
getPartWidth
());
hpkc011
.
setThick
(
hpsc005
.
getPartThick
());
hpkc011
.
setPrdtSpec
(
hpsc005
.
getPrdtSpec
());
hpkc011
.
setUnitWeight
(
hpsc005
.
getUnitWt
());
hpkc011
.
setRemark
(
hpsc005
.
getRemark1
());
}
catch
(
Exception
e
){
...
...
src/main/java/com/baosight/hpjx/hp/kc/sql/HPKC011.xml
View file @
ba062c73
...
...
@@ -18,6 +18,7 @@
LENGTH as "length",
<!-- 长 -->
WIDTH as "width",
<!-- 宽 -->
THICK as "thick",
<!-- 厚 -->
PRDT_SPEC as "prdtSpec",
<!-- 产品规格 -->
AMOUNT as "amount",
<!-- 数量 -->
UNIT_WEIGHT as "unitWeight",
<!-- 单重 -->
WEIGHT as "weight",
<!-- 重量 -->
...
...
@@ -136,6 +137,7 @@
LENGTH,
<!-- 长 -->
WIDTH,
<!-- 宽 -->
THICK,
<!-- 厚 -->
PRDT_SPEC,
<!-- 产品规格 -->
AMOUNT,
<!-- 数量 -->
UNIT_WEIGHT,
<!-- 单重 -->
WEIGHT,
<!-- 重量 -->
...
...
@@ -149,7 +151,7 @@
VERSION
) VALUES (
#companyCode#, #depCode#, #whCode#, #whName#, #prodNo#, #projCode#, #projName#,
#inventCode#, #inventName#, #subInventCode#, #subInventName#, #length#, #width#, #thick#,
#inventCode#, #inventName#, #subInventCode#, #subInventName#, #length#, #width#, #thick#,
#prdtSpec#,
#amount#, #unitWeight#, #weight#, #remark#,
#createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#,
#updatedTime#, #version#
...
...
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002.java
View file @
ba062c73
...
...
@@ -4,15 +4,14 @@ import com.baosight.hpjx.aspect.annotation.OperationLogAnnotation;
import
com.baosight.hpjx.common.DdynamicEnum
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.core.security.UserSessionUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.ds.domain.HPDS002
;
import
com.baosight.hpjx.hp.kc.tools.HPKCTools
;
import
com.baosight.hpjx.hp.pz.tools.HPPZTools
;
import
com.baosight.hpjx.hp.sc.domain.*
;
import
com.baosight.hpjx.hp.sc.tools.HPSCTools
;
import
com.baosight.hpjx.util.AssertUtils
;
import
com.baosight.hpjx.util.BeanUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.*
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
...
@@ -474,6 +473,9 @@ public class ServiceHPSC002 extends ServiceBase {
for
(
Map
resultRow
:
resultRows
)
{
HPSC002
fSc002
=
new
HPSC002
();
fSc002
.
fromMap
(
resultRow
);
// 删除附件文件
delectDoc
(
fSc002
.
getId
());
DaoUtils
.
update
(
"HPSC002.delete"
,
fSc002
);
// 修改父级节点状态是叶子节点或非叶子节点
this
.
checkTreeNodeLeaf
(
fSc002
.
getParentId
());
...
...
@@ -739,4 +741,24 @@ public class ServiceHPSC002 extends ServiceBase {
}
return
inInfo
;
}
/**
* 删除附件文件
* @param id 文件ID
*/
@OperationLogAnnotation
(
operModul
=
"物料清单"
,
operType
=
"删除"
,
operDesc
=
"删除附件文件"
)
public
void
delectDoc
(
Long
id
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
String
companyCode
=
UserSessionUtils
.
getCompanyCode
();
map
.
put
(
"docIds"
,
"(select DOC_ID from HPJX.T_HPSC002A where MAT_ID in("
+
" select distinct ID from HPJX.T_HPSC002 where COMPANY_CODE = '"
+
companyCode
+
"' and (ID = '"
+
id
+
"' or PARENT_ID = '"
+
id
+
"')))"
);
List
<
HPDS002
>
list
=
this
.
dao
.
query
(
"HPDS002.query"
,
map
);
if
(
list
.
size
()
>
0
)
{
for
(
HPDS002
hpds002:
list
)
{
String
realPath
=
hpds002
.
getRealPath
();
FileUtils
.
deleteFile
(
realPath
);
}
this
.
dao
.
delete
(
HPDS002
.
DELETE
,
map
);
}
}
}
src/main/java/com/baosight/hpjx/hp/sc/service/ServiceHPSC002A.java
View file @
ba062c73
package
com
.
baosight
.
hpjx
.
hp
.
sc
.
service
;
import
com.baosight.hpjx.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hpjx.core.constant.CommonConstant
;
import
com.baosight.hpjx.core.dao.DaoUtils
;
import
com.baosight.hpjx.hp.constant.HPConstant
;
import
com.baosight.hpjx.hp.kc.domain.HPKC002
;
import
com.baosight.hpjx.hp.kc.domain.HPKC005
;
import
com.baosight.hpjx.hp.kc.tools.HPKCTools
;
import
com.baosight.hpjx.hp.ds.domain.HPDS002
;
import
com.baosight.hpjx.hp.sc.domain.HPSC002
;
import
com.baosight.hpjx.hp.sc.domain.HPSC002A
;
import
com.baosight.hpjx.hp.sc.domain.HPSC006
;
import
com.baosight.hpjx.util.BeanUtils
;
import
com.baosight.hpjx.util.CommonMethod
;
import
com.baosight.hpjx.util.EiInfoUtils
;
import
com.baosight.hpjx.util.FileUtils
;
import
com.baosight.hpjx.util.LogUtils
;
import
com.baosight.hpjx.util.ObjectUtils
;
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.ServiceEPBase
;
import
com.baosight.iplat4j.ed.util.SequenceGenerator
;
import
org.apache.commons.collections.CollectionUtils
;
import
java.io.File
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -119,6 +113,9 @@ public class ServiceHPSC002A extends ServiceEPBase {
HPSC002A
fSc002A
=
new
HPSC002A
();
fSc002A
.
fromMap
(
resultRows
.
get
(
i
));
DaoUtils
.
update
(
HPSC002A
.
DELETE
,
fSc002A
);
if
(!
fSc002A
.
getDocId
().
isEmpty
())
{
this
.
delectDoc
(
fSc002A
.
getDocId
());
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
@@ -128,4 +125,21 @@ public class ServiceHPSC002A extends ServiceEPBase {
}
return
inInfo
;
}
/**
* 删除文件
* @param docId 文件ID
*/
@OperationLogAnnotation
(
operModul
=
"附件清单"
,
operType
=
"删除"
,
operDesc
=
"删除附件文件"
)
public
void
delectDoc
(
String
docId
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"docId"
,
docId
);
List
<
HPDS002
>
list
=
this
.
dao
.
query
(
HPDS002
.
QUERY
,
map
);
if
(
list
.
size
()
>
0
)
{
String
realPath
=
list
.
get
(
0
).
getRealPath
();
FileUtils
.
deleteFile
(
realPath
);
this
.
dao
.
delete
(
HPDS002
.
DELETE
,
map
);
}
}
}
src/main/webapp/HP/KC/HPKC001.js
View file @
ba062c73
...
...
@@ -92,12 +92,12 @@ $(function() {
},
{
field
:
"unitWeight"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
return
options
.
unitWeight
==
0
?
"-"
:
options
.
unitWeight
;
}
},
{
field
:
"weight"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
return
options
.
weight
==
0
?
"-"
:
options
.
weight
;
}
},
{
field
:
"length"
,
...
...
src/main/webapp/HP/KC/HPKC002.jsp
View file @
ba062c73
...
...
@@ -68,14 +68,11 @@
blockName=
"invent_spec_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
enable=
"false"
format=
"{0:N0}"
maxLength=
"20"
width=
"100"
align=
"right"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重"
enable=
"false"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重
(KG)
"
enable=
"false"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
align=
"right"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量"
enable=
"false"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
<EF:EFColumn
ename=
"weight"
cname=
"重量
(KG)
"
enable=
"false"
format=
"{0:N3}"
maxLength=
"20"
width=
"100"
align=
"right"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"oldReqNo"
cname=
"原领料单号"
enable=
"false"
width=
"140"
align=
"center"
/>
...
...
src/main/webapp/HP/KC/HPKC002A.js
View file @
ba062c73
let
projNameGlobalData
=
[];
inventAllGlobalData
=
[]
$
(
function
()
{
IPLATUI
.
EFGrid
=
{
"result"
:
{
columns
:
[],
dataBound
:
function
()
{
columns
:
[]
}
}
};
$
(
"#ef_form_head"
).
hide
();
...
...
@@ -26,6 +25,8 @@ $(window).load(function () {
query
();
});
/**
* 查询
*/
...
...
src/main/webapp/HP/KC/HPKC002A.jsp
View file @
ba062c73
...
...
@@ -30,7 +30,7 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFInput
ename=
"inqu_result-0-hpsc006Id"
type=
"hidden"
/>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
autoFit=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"库存ID"
enable=
"false"
width=
"60"
align=
"center"
/>
<EF:EFColumn
ename=
"id"
cname=
"库存ID"
enable=
"false"
width=
"60"
align=
"center"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
enable=
"false"
width=
"10"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
</EF:EFComboColumn>
...
...
@@ -46,21 +46,17 @@
blockName=
"invent_spec_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFComboColumn
ename=
"projCode"
cname=
"项目名称"
width=
"300"
align=
"center"
defaultValue=
""
required=
"true"
filter=
"contains"
>
<EF:EFOptions
blockId=
"proj_record_block_id"
valueField=
"valueField"
textField=
"textField"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"applyAmount"
cname=
"申请数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
required=
"true"
/>
<EF:EFColumn
ename=
"applyRemark"
cname=
"申请说明"
width=
"
15
0"
editType=
"textarea"
copy=
"true"
/>
<EF:EFColumn
ename=
"applyRemark"
cname=
"申请说明"
width=
"
30
0"
editType=
"textarea"
copy=
"true"
/>
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
<EF:EFColumn
ename=
"unitWeight"
cname=
"单量
(KG)
"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量
(KG)
"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
src/main/webapp/HP/KC/HPKC003.jsp
View file @
ba062c73
...
...
@@ -38,9 +38,10 @@
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"documentDate"
cname=
"单据日期"
width=
"100"
align=
"center"
editType=
"date"
readonly=
"true"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
required=
"true"
/>
<
EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
/
>
<
%
--
<
EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
/>
--%
>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFComboColumn
ename=
"whCode"
cname=
"仓库名称"
enable=
"false"
width=
"120"
align=
"center"
blockName=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
...
...
@@ -50,7 +51,7 @@
<EF:EFColumn
ename=
"partName"
cname=
"零件名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"partSpec"
cname=
"零件规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量(
KG
)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量(
T
)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
...
...
src/main/webapp/HP/KC/HPKC003A.js
View file @
ba062c73
let
whNameGlobalData
=
[];
$
(
function
()
{
IPLATUI
.
EFGrid
=
{
"result"
:
{
columns
:
[],
columns
:
[{
field
:
"whCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
whNameGlobalData
.
length
;
i
++
)
{
if
(
whNameGlobalData
[
i
][
'valueField'
]
===
dataItem
[
'whCode'
])
{
return
whNameGlobalData
[
i
][
'textField'
];
}
}
return
""
;
},
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
// 1.原料,2.耗材
inInfo
.
set
(
"inqu_status-0-inventTypes"
,
[
3
]);
inInfo
.
set
(
"inqu_status-0-whType"
,
options
.
model
[
"inventType"
]);
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
false
);
inInfo
.
set
(
"serviceName"
,
"HPPZ007"
);
inInfo
.
set
(
"methodName"
,
"queryComboBox"
);
inInfo
.
set
(
"blockId"
,
"wh_record_block_id"
);
inInfo
.
set
(
"field"
,
options
.
field
);
refreshSelect
(
container
,
inInfo
);
}
},],
dataBound
:
function
()
{
}
}
...
...
@@ -23,9 +46,28 @@ $(function () {
$
(
window
).
load
(
function
()
{
// 初始化查询
query
();
// 仓库名称
initWh
()
});
/**
* 初始化仓库
*/
let
initWh
=
function
()
{
let
inInfo
=
new
EiInfo
();
// 1.原料,2.耗材
inInfo
.
set
(
"inqu_status-0-inventTypes"
,
[
3
]);
inInfo
.
set
(
"inqu_status-0-isSplicingSymbol"
,
false
);
EiCommunicator
.
send
(
"HPPZ007"
,
"queryComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
whNameGlobalData
=
ei
.
getBlock
(
"wh_record_block_id"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
}
/**
* 查询
*/
var
query
=
function
(
e
)
{
...
...
src/main/webapp/HP/KC/HPKC003A.jsp
View file @
ba062c73
...
...
@@ -9,14 +9,14 @@
<EF:EFRegion
id=
"inqu"
title=
"查询区域"
type=
"query"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"生产订单号"
ename=
"prodOrderNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"生产任务号"
ename=
"prodTaskNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<
%
--
<
EF:EFInput
cname=
"生产订单号"
ename=
"prodOrderNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"生产任务号"
ename=
"prodTaskNo"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
--%>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"部件名称"
ename=
"prdtName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
cname=
"零件名称"
ename=
"partName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"厂区名称"
ename=
"factoryName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
<div
class=
"row"
>
<EF:EFInput
cname=
"生产组名称"
ename=
"orgName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
</div>
...
...
@@ -30,23 +30,24 @@
<EF:EFColumn
ename=
"prdtName"
cname=
"部件名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"partName"
cname=
"零件名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"partSpec"
cname=
"零件规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFComboColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
<
%
--
<
EF:EFComboColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
blockName=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
required=
"true"
>
</EF:EFComboColumn>
</EF:EFComboColumn>
--%>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"applyNum"
cname=
"入库数量"
width=
"120"
align=
"right"
format=
"{0:N0}"
required=
"true"
/>
<EF:EFColumn
ename=
"remark1"
cname=
"入库说明"
width=
"150"
/>
<EF:EFColumn
ename=
"completeNum"
cname=
"已入库数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
hidden=
"true"
/>
<EF:EFColumn
ename=
"unCompleteNum"
cname=
"待入库数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"num"
cname=
"任务数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"totalWt"
cname=
"任务重量(
KG
)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"totalWt"
cname=
"任务重量(
T
)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"factoryName"
cname=
"厂区名称"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"orgName"
cname=
"生产组名称"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
<
%
--
<
EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"prodTaskNo"
cname=
"生产任务号"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"prodOrderNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
/
>
<EF:EFColumn
ename=
"prodOrderNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
/>
--%
>
<EF:EFColumn
ename=
"prdtCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"partCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"factoryCode"
cname=
"厂区编码"
enable=
"false"
width=
"150"
hidden=
"true"
/>
...
...
src/main/webapp/HP/KC/HPKC004.jsp
View file @
ba062c73
...
...
@@ -37,6 +37,7 @@
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"saleNo"
cname=
"销售单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"receiptDate"
cname=
"单据日期"
enable=
"false"
width=
"90"
align=
"center"
editType=
"date"
dateFormat=
"yyyy-MM-dd"
parseFormats=
"['yyyyMMdd']"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"center"
/>
...
...
@@ -50,20 +51,19 @@
blockName=
"invent_spec_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
hidden=
"true"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
hidden=
"true"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
hidden=
"true"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重(
KG
)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"总重(
KG
)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重(
T
)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"总重(
T
)"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFComboColumn
ename=
"isPrint"
cname=
"是否打印"
width=
"80"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hpjx.hpjx.isPrint"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"saleNo"
cname=
"销售单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"oldSaleNo"
cname=
"原销售单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"oldSaleNo"
cname=
"原销售单号"
enable=
"false"
width=
"140"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"subInventCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
src/main/webapp/HP/KC/HPKC004A.jsp
View file @
ba062c73
...
...
@@ -9,7 +9,6 @@
<EF:EFRegion
id=
"inqu"
title=
"查询区域"
type=
"query"
>
<div
class=
"row"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"项目号"
ename=
"projCode"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"部件名称"
ename=
"inventName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
<EF:EFInput
cname=
"零件名称"
ename=
"subInventName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
...
...
@@ -19,7 +18,7 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"库存ID"
enable=
"false"
width=
"60"
align=
"center"
/>
<EF:EFColumn
ename=
"id"
cname=
"库存ID"
enable=
"false"
width=
"60"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whName"
cname=
"仓库名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"部件名称"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
@@ -28,12 +27,12 @@
<EF:EFColumn
ename=
"applyRemark"
cname=
"申请说明"
width=
"150"
editType=
"textarea"
copy=
"true"
/>
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库编码"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"subInventCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
hidden=
"true"
/>
<EF:EFColumn
ename=
"whCode"
cname=
"仓库编码"
enable=
"false"
width=
"140"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目号"
enable=
"false"
width=
"140"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"部件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"subInventCode"
cname=
"零件编码"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"prodNo"
cname=
"生产订单号"
enable=
"false"
width=
"140"
align=
"center"
hidden=
"true"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
src/main/webapp/HP/KC/HPKC004B.jsp
View file @
ba062c73
...
...
@@ -8,10 +8,6 @@
<EF:EFPage
title=
"库存查询"
>
<EF:EFRegion
id=
"inqu"
title=
"查询区域"
type=
"query"
>
<div
class=
"row"
>
<EF:EFSelect
cname=
"存货类型"
ename=
"inqu_status-0-inventType"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
condition=
"ITEM_CODE IN ('1', '2')"
/>
</EF:EFSelect>
<EF:EFSelect
cname=
"仓库名称"
ename=
"inqu_status-0-whCode"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"wh_record_block_id"
textField=
"textField"
valueField=
"valueField"
/>
...
...
@@ -29,7 +25,7 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
autoFit=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"库存ID"
enable=
"false"
width=
"60"
align=
"center"
/>
<EF:EFColumn
ename=
"id"
cname=
"库存ID"
enable=
"false"
width=
"60"
align=
"center"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
enable=
"false"
width=
"100"
align=
"center"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
condition=
"ITEM_CODE IN ('2')"
/>
</EF:EFComboColumn>
...
...
@@ -45,9 +41,6 @@
blockName=
"invent_spec_block_id"
textField=
"textField"
valueField=
"valueField"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
enable=
"false"
width=
"20"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFComboColumn
ename=
"projCode"
cname=
"项目名称"
width=
"300"
align=
"center"
defaultValue=
""
required=
"true"
filter=
"contains"
>
<EF:EFOptions
blockId=
"proj_record_block_id"
valueField=
"valueField"
textField=
"textField"
/>
...
...
@@ -56,8 +49,8 @@
<EF:EFColumn
ename=
"applyRemark"
cname=
"申请说明"
width=
"150"
editType=
"textarea"
copy=
"true"
/>
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N0}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
<EF:EFColumn
ename=
"unitWeight"
cname=
"单量
(KG)
"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量
(KG)
"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
</EF:EFGrid>
...
...
src/main/webapp/HP/KC/HPKC005.js
View file @
ba062c73
...
...
@@ -10,6 +10,13 @@ $(function() {
pageSizes
:
[
20
,
50
,
70
,
100
],
},
"result"
:
{
toolbarConfig
:
{
// hidden: false, // true时,不显示功能按钮,但保留setting导出按钮
// add: false, // 不显示新增按钮
add
:
false
,
// 不显示取消按钮
// save: true, // 不显示保存按钮
// delete: true, // 显示删除按钮
},
columns
:
[{
field
:
"receiptDate"
,
attributes
:
{
...
...
src/main/webapp/HP/KC/HPKC005A.js
View file @
ba062c73
...
...
@@ -71,10 +71,6 @@ let select = function () {
message
(
"勾选的第"
+
(
i
+
1
)
+
"行实物数量必须是大于0的整数"
);
return
;
}
if
(
parseFloat
(
entityAmount
)
>
parseFloat
(
amount
))
{
message
(
"第"
+
(
i
+
1
)
+
"行实物数量不能大于库存数量"
);
return
;
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据生成盘点单吗? "
,
{
ok
:
function
()
{
...
...
src/main/webapp/HP/KC/HPKC005A.jsp
View file @
ba062c73
...
...
@@ -51,7 +51,7 @@
sumType=
"all"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量(KG)"
enable=
"false"
width=
"120"
align=
"right"
format=
"{0:N3}"
sumType=
"all"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
enable=
"false"
width=
"150"
hidden=
"true"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
src/main/webapp/HP/KC/HPKC006.js
View file @
ba062c73
...
...
@@ -95,12 +95,12 @@ $(function() {
},
{
field
:
"unitWeight"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
return
options
.
unitWeight
==
0
?
"-"
:
options
.
unitWeight
;
}
},
{
field
:
"weight"
,
template
:
function
(
options
)
{
return
options
.
length
==
0
?
"-"
:
options
.
length
;
return
options
.
weight
==
0
?
"-"
:
options
.
weight
;
}
},
{
field
:
"length"
,
...
...
src/main/webapp/HP/KC/HPKC011.jsp
View file @
ba062c73
...
...
@@ -8,7 +8,7 @@
<EF:EFPage
title=
"产品库存管理"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<
EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
colWidth=
"3"
cname=
"项目编号:"
/
>
<
%
--
<
EF:EFInput
blockId=
"inqu_status"
ename=
"projCode"
colWidth=
"3"
cname=
"项目编号:"
/>
--%
>
<EF:EFInput
blockId=
"inqu_status"
ename=
"projName"
colWidth=
"3"
cname=
"项目名称:"
/>
<
%
--
<
EF:EFInput
blockId=
"inqu_status"
ename=
"prodNo"
colWidth=
"3"
cname=
"生产单号:"
/>
--%>
<EF:EFSelect
ename=
"inqu_status-0-whCode"
cname=
"仓库名称"
colWidth=
"3"
filter=
"contains"
defultValue=
""
>
...
...
@@ -37,17 +37,18 @@
textField=
"textField"
valueField=
"valueField"
align=
"center"
filter=
"contains"
required=
"true"
enable=
"false"
>
</EF:EFComboColumn>
<
EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
width=
"120"
align=
"center"
required=
"true"
enable=
"false"
/
>
<
%
--
<
EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
width=
"120"
align=
"center"
required=
"true"
enable=
"false"
/>
--%
>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
width=
"120"
align=
"center"
required=
"true"
enable=
"false"
/>
<EF:EFColumn
ename=
"inventCode"
cname=
"部件名称"
width=
"120"
align=
"center"
required=
"true"
enable=
"false"
/>
<EF:EFColumn
ename=
"subInventCode"
cname=
"零件名称"
width=
"120"
align=
"center"
required=
"true"
enable=
"false"
/>
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<
%
--
<
EF:EFColumn
ename=
"length"
cname=
"长(MM)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
--%>
<EF:EFColumn
ename=
"prdtSpec"
cname=
"规格"
enable=
"false"
width=
"150"
align=
"center"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
format=
"{0:N0}"
maxLength=
"20"
width=
"90"
align=
"right"
required=
"true"
enable=
"false"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重(
KG
)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量(
KG
)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<
EF:EFColumn
ename=
"remark"
cname=
"备注"
width=
"120"
align=
"center"
enable=
"false"
/
>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重(
T
)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<EF:EFColumn
ename=
"weight"
cname=
"重量(
T
)"
format=
"{0:N3}"
maxLength=
"20"
width=
"90"
align=
"right"
enable=
"false"
/>
<
%
--
<
EF:EFColumn
ename=
"remark"
cname=
"备注"
width=
"120"
align=
"center"
enable=
"false"
/>
--%
>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时刻"
enable=
"false"
width=
"140"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
/>
...
...
src/main/webapp/HP/KC/HPKC012.jsp
View file @
ba062c73
...
...
@@ -55,8 +55,8 @@
<EF:EFColumn
ename=
"spec"
cname=
"规格"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"warnNum"
cname=
"预警值"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"amount"
cname=
"库存数量"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N0}"
/>
<EF:EFColumn
ename=
"weight"
cname=
"库存重量(KG)"
enable=
"false"
width=
"90"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFComboColumn
ename=
"princ"
cname=
"仓库负责人"
width=
"120"
align=
"center"
enable=
"false"
blockName=
"user_block_id"
textField=
"textField"
valueField=
"valueField"
...
...
src/main/webapp/HP/PZ/HPPZ006.js
View file @
ba062c73
...
...
@@ -123,14 +123,6 @@ let save = function () {
message
(
"选中的第"
+
(
i
+
1
)
+
"行
\"
存货名称
\"
,不能为空!"
);
return
false
;
}
if
(
isBlank
(
row
[
"material"
]))
{
message
(
"选中的第"
+
(
i
+
1
)
+
"行
\"
材质
\"
,不能为空!"
);
return
false
;
}
if
(
isBlank
(
row
[
"unit"
]))
{
message
(
"选中的第"
+
(
i
+
1
)
+
"行
\"
单位
\"
,不能为空!"
);
return
false
;
}
if
(
isBlank
(
row
[
"status"
]))
{
message
(
"选中的第"
+
(
i
+
1
)
+
"行
\"
状态
\"
,不能为空!"
);
return
false
;
...
...
@@ -150,11 +142,6 @@ let save = function () {
message
(
"选中的第"
+
(
i
+
1
)
+
"行
\"
厚
\"
,必须是数值!"
);
return
false
;
}
let
coefficient
=
row
[
"coefficient"
];
if
(
!
isBlank
(
coefficient
)
&&
!
isNumber
(
coefficient
))
{
message
(
"选中的第"
+
(
i
+
1
)
+
"行
\"
厚
\"
,必须是数值!"
);
return
false
;
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
...
...
src/main/webapp/HP/PZ/HPPZ006.jsp
View file @
ba062c73
...
...
@@ -25,7 +25,7 @@
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"档案ID"
enable=
"false"
width=
"60"
align=
"center
"
/>
<EF:EFColumn
ename=
"id"
cname=
"档案ID"
hidden=
"true
"
/>
<EF:EFComboColumn
ename=
"inventType"
cname=
"存货类型"
width=
"80"
align=
"center"
required=
"true"
readonly=
"true"
>
<EF:EFCodeOption
codeName=
"hpjx.hpkc.inventType"
/>
...
...
@@ -35,10 +35,10 @@
<EF:EFColumn
ename=
"length"
cname=
"长(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"width"
cname=
"宽(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"thick"
cname=
"厚(MM)"
width=
"100"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"100"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"material"
cname=
"材质"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"coefficient"
cname=
"系数"
width=
"80"
align=
"right"
format=
"{0:N2}"
maxLength=
"10"
defaultValue=
"1"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
width=
"80"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"unit"
cname=
"单位"
width=
"80"
align=
"center"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
align=
"center"
width=
"80"
required=
"true"
defaultValue=
"1"
>
<EF:EFCodeOption
codeName=
"hpjx.hpjx.status"
/>
</EF:EFComboColumn>
...
...
src/main/webapp/HP/SC/HPSC099.js
View file @
ba062c73
...
...
@@ -11,6 +11,7 @@ $(function () {
$
(
"#fileDocId"
).
val
(
docId
);
NotificationUtil
(
"附件上传成功"
);
console
.
log
(
$
(
"#fileDocId"
).
val
())
saveTemp
(
e
);
try
{
parent
.
JSColorbox
.
setValueCallback
(
docId
);
}
catch
(
e
){
...
...
@@ -18,4 +19,35 @@ $(function () {
},
}
};
function
saveTemp
(
e
)
{
let
docId
=
e
.
response
.
docId
;
let
docName
=
e
.
response
.
docName
;
let
docSize
=
e
.
response
.
docSize
;
let
docTag
=
e
.
response
.
docTag
;
let
docUrl
=
e
.
response
.
docUrl
;
let
result
=
new
EiInfo
();
result
.
set
(
"result-0-docId"
,
docId
);
result
.
set
(
"result-0-docName"
,
docName
);
result
.
set
(
"result-0-docSize"
,
docSize
);
result
.
set
(
"result-0-docTag"
,
docTag
);
result
.
set
(
"result-0-realPath"
,
docUrl
);
EiCommunicator
.
send
(
"HPDS002"
,
"insert"
,
result
,
{
onSuccess
:
function
(
ei
)
{
if
(
ei
.
getStatus
()
>=
0
)
{
if
(
ei
.
getStatus
()
==
0
)
{
NotificationUtil
(
ei
,
'warning'
);
}
else
{
NotificationUtil
(
ei
);
}
}
else
{
NotificationUtil
(
ei
,
"error"
);
}
},
onFail
:
function
(
ei
)
{
// 发生异常
NotificationUtil
(
"操作失败,原因["
+
ei
+
"]"
,
"error"
);
}
});
}
});
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