Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
b4d8cb6d
Commit
b4d8cb6d
authored
Oct 24, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.生产领料操作增加添加人员功能
parent
59288395
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
821 additions
and
14 deletions
+821
-14
HGKC008C.java
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC008C.java
+421
-0
ServiceHGKC008C.java
...java/com/baosight/hggp/hg/kc/service/ServiceHGKC008C.java
+141
-0
HGKC008C.xml
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC008C.xml
+122
-0
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+1
-0
HGKC008.js
src/main/webapp/HG/KC/HGKC008.js
+21
-1
HGKC008.jsp
src/main/webapp/HG/KC/HGKC008.jsp
+1
-1
HGKC008C.js
src/main/webapp/HG/KC/HGKC008C.js
+71
-0
HGKC008C.jsp
src/main/webapp/HG/KC/HGKC008C.jsp
+32
-0
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+4
-5
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+5
-5
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+2
-2
No files found.
src/main/java/com/baosight/hggp/hg/kc/domain/HGKC008C.java
0 → 100644
View file @
b4d8cb6d
package
com
.
baosight
.
hggp
.
hg
.
kc
.
domain
;
import
com.baosight.iplat4j.core.data.DaoEPBase
;
import
com.baosight.iplat4j.core.ei.EiColumn
;
import
com.baosight.iplat4j.core.util.NumberUtils
;
import
com.baosight.iplat4j.core.util.StringUtils
;
import
java.util.HashMap
;
import
java.util.Map
;
/**
* Project: <br>
* Title:Hgkc008a.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-09-29 13:48:32 create
*/
public
class
HGKC008C
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_ID
=
"id"
;
/* 主键id*/
public
static
final
String
FIELD_ACCOUNT_CODE
=
"accountCode"
;
/* 账套*/
public
static
final
String
FIELD_DEP_CODE
=
"depCode"
;
/* 部门编码*/
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_DELETE_FLAG
=
"deleteFlag"
;
/* 是否删除 0-否1-是*/
public
static
final
String
FIELD_STATUS
=
"status"
;
/* 0.未提交*/
public
static
final
String
FIELD_APPLY_CODE
=
"applyCode"
;
/* 领料单号*/
public
static
final
String
FIELD_APPLY_USER_ID
=
"applyUserId"
;
/* 领料人ID*/
public
static
final
String
FIELD_APPLY_USER_NAME
=
"applyUserName"
;
/* 领料人名称*/
public
static
final
String
FIELD_REMARK
=
"remark"
;
/* 备注*/
public
static
final
String
COL_ID
=
"ID"
;
/* 主键id*/
public
static
final
String
COL_ACCOUNT_CODE
=
"ACCOUNT_CODE"
;
/* 账套*/
public
static
final
String
COL_DEP_CODE
=
"DEP_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_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_DELETE_FLAG
=
"DELETE_FLAG"
;
/* 是否删除 0-否1-是*/
public
static
final
String
COL_STATUS
=
"STATUS"
;
/* 0.未提交*/
public
static
final
String
COL_APPLY_CODE
=
"APPLY_CODE"
;
/* 领料单号*/
public
static
final
String
COL_APPLY_USER_ID
=
"APPLY_USER_ID"
;
/* 领料人ID*/
public
static
final
String
COL_APPLY_USER_NAME
=
"APPLY_USER_NAME"
;
/* 领料人名称*/
public
static
final
String
COL_REMARK
=
"REMARK"
;
/* 备注*/
public
static
final
String
QUERY
=
"HGKC008C.query"
;
public
static
final
String
COUNT
=
"HGKC008C.count"
;
public
static
final
String
INSERT
=
"HGKC008C.insert"
;
public
static
final
String
UPDATE
=
"HGKC008C.update"
;
public
static
final
String
DELETE
=
"HGKC008C.delete"
;
private
Long
id
=
new
Long
(
0
);
/* 主键id*/
private
String
accountCode
=
" "
;
/* 账套*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
Integer
deleteFlag
=
new
Integer
(
0
);
/* 是否删除 0-否1-是*/
private
Integer
status
=
new
Integer
(
0
);
/* 0.未提交*/
private
String
applyCode
=
" "
;
/* 领料单号*/
private
String
applyUserId
=
" "
;
/* 领料人ID*/
private
String
applyUserName
=
" "
;
/* 领料人名称*/
private
String
remark
=
" "
;
/* 备注*/
/**
* 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_ACCOUNT_CODE
);
eiColumn
.
setDescName
(
"账套"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_DEP_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_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_DELETE_FLAG
);
eiColumn
.
setDescName
(
"是否删除 0-否1-是"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_STATUS
);
eiColumn
.
setDescName
(
"0.未提交"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_CODE
);
eiColumn
.
setDescName
(
"领料单号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_USER_ID
);
eiColumn
.
setDescName
(
"领料人ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_APPLY_USER_NAME
);
eiColumn
.
setDescName
(
"领料人名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_REMARK
);
eiColumn
.
setDescName
(
"备注"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGKC008C
()
{
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 accountCode - 账套.
* @return the accountCode
*/
public
String
getAccountCode
()
{
return
this
.
accountCode
;
}
/**
* set the accountCode - 账套.
*
* @param accountCode - 账套
*/
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
/**
* get the depCode - 部门编码.
* @return the depCode
*/
public
String
getDepCode
()
{
return
this
.
depCode
;
}
/**
* set the depCode - 部门编码.
*
* @param depCode - 部门编码
*/
public
void
setDepCode
(
String
depCode
)
{
this
.
depCode
=
depCode
;
}
/**
* 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 deleteFlag - 是否删除 0-否1-是.
* @return the deleteFlag
*/
public
Integer
getDeleteFlag
()
{
return
this
.
deleteFlag
;
}
/**
* set the deleteFlag - 是否删除 0-否1-是.
*
* @param deleteFlag - 是否删除 0-否1-是
*/
public
void
setDeleteFlag
(
Integer
deleteFlag
)
{
this
.
deleteFlag
=
deleteFlag
;
}
/**
* get the status - 0.未提交,1-已提交,2.质检中.
* @return the status
*/
public
Integer
getStatus
()
{
return
this
.
status
;
}
/**
* set the status - 0.未提交,1-已提交,2.质检中.
*
* @param status - 0.未提交,1-已提交,2.质检中
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
/**
* get the applyCode - 领料单号.
* @return the applyCode
*/
public
String
getApplyCode
()
{
return
this
.
applyCode
;
}
/**
* set the applyCode - 领料单号.
*
* @param applyCode - 领料单号
*/
public
void
setApplyCode
(
String
applyCode
)
{
this
.
applyCode
=
applyCode
;
}
public
String
getApplyUserId
()
{
return
applyUserId
;
}
public
void
setApplyUserId
(
String
applyUserId
)
{
this
.
applyUserId
=
applyUserId
;
}
public
String
getApplyUserName
()
{
return
applyUserName
;
}
public
void
setApplyUserName
(
String
applyUserName
)
{
this
.
applyUserName
=
applyUserName
;
}
public
String
getRemark
()
{
return
remark
;
}
public
void
setRemark
(
String
remark
)
{
this
.
remark
=
remark
;
}
/**
* 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
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_ACCOUNT_CODE
)),
accountCode
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DEP_CODE
)),
depCode
));
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
));
setDeleteFlag
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_DELETE_FLAG
)),
deleteFlag
));
setStatus
(
NumberUtils
.
toInteger
(
StringUtils
.
toString
(
map
.
get
(
FIELD_STATUS
)),
status
));
setApplyCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_CODE
)),
applyCode
));
setApplyUserId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_USER_ID
)),
applyUserId
));
setApplyUserName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_APPLY_USER_NAME
)),
applyUserName
));
setRemark
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_REMARK
)),
remark
));
}
/**
* 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_ACCOUNT_CODE
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_ACCOUNT_CODE
)));
map
.
put
(
FIELD_DEP_CODE
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_DEP_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_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_DELETE_FLAG
,
StringUtils
.
toString
(
deleteFlag
,
eiMetadata
.
getMeta
(
FIELD_DELETE_FLAG
)));
map
.
put
(
FIELD_STATUS
,
StringUtils
.
toString
(
status
,
eiMetadata
.
getMeta
(
FIELD_STATUS
)));
map
.
put
(
FIELD_APPLY_CODE
,
StringUtils
.
toString
(
applyCode
,
eiMetadata
.
getMeta
(
FIELD_APPLY_CODE
)));
map
.
put
(
FIELD_APPLY_USER_ID
,
StringUtils
.
toString
(
applyUserId
,
eiMetadata
.
getMeta
(
FIELD_APPLY_USER_ID
)));
map
.
put
(
FIELD_APPLY_USER_NAME
,
StringUtils
.
toString
(
applyUserName
,
eiMetadata
.
getMeta
(
FIELD_APPLY_USER_NAME
)));
map
.
put
(
FIELD_REMARK
,
StringUtils
.
toString
(
remark
,
eiMetadata
.
getMeta
(
FIELD_REMARK
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008C.java
0 → 100644
View file @
b4d8cb6d
package
com
.
baosight
.
hggp
.
hg
.
kc
.
service
;
import
com.baosight.hggp.aspect.annotation.OperationLogAnnotation
;
import
com.baosight.hggp.core.constant.CommonConstant
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.kc.domain.HGKC008C
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.MapUtils
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
import
com.baosight.iplat4j.core.exception.PlatException
;
import
com.baosight.iplat4j.core.service.impl.ServiceBase
;
import
java.util.List
;
import
java.util.Map
;
/**
* 生产领料人员
*
* @author:songx
* @date:2024/9/24,17:47
*/
public
class
ServiceHGKC008C
extends
ServiceBase
{
/**
* 画面初始化
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"售后维修"
,
operType
=
"查询"
,
operDesc
=
"初始化"
)
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
inInfo
.
addBlock
(
EiConstant
.
resultBlock
).
addBlockMeta
(
new
HGKC008C
().
eiMetadata
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
/**
* 查询操作.
*/
@Override
@OperationLogAnnotation
(
operModul
=
"售后维修"
,
operType
=
"查询"
)
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
inInfo
=
super
.
query
(
inInfo
,
HGKC008C
.
QUERY
,
new
HGKC008C
());
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
/**
* 保存操作.
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"客户回访"
,
operType
=
"保存"
,
operDesc
=
"保存"
)
public
EiInfo
save
(
EiInfo
inInfo
)
{
try
{
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
applyCode
=
MapUtils
.
getString
(
queryMap
,
HGKC008C
.
FIELD_APPLY_CODE
);
AssertUtils
.
isEmpty
(
applyCode
,
"请选择领料单"
);
List
<
HGKC008C
>
fKc008Cs
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGKC008C
.
class
);
for
(
HGKC008C
fKc008C
:
fKc008Cs
)
{
if
(
fKc008C
.
getId
()
==
null
||
fKc008C
.
getId
()
==
0
)
{
fKc008C
.
setApplyCode
(
applyCode
);
this
.
add
(
fKc008C
);
}
else
{
this
.
modify
(
fKc008C
);
}
}
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
fKc008Cs
.
size
()
+
"]条数据保存成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
return
inInfo
;
}
/**
* 新增
*
* @param fKc008C
*/
private
void
add
(
HGKC008C
fKc008C
)
{
fKc008C
.
setStatus
(
HGConstant
.
DealStatus
.
S0
);
fKc008C
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
NO_0
);
DaoUtils
.
insert
(
HGKC008C
.
INSERT
,
fKc008C
);
}
/**
* 修改数据
*
* @param fKc008C
*/
private
void
modify
(
HGKC008C
fKc008C
)
{
DaoUtils
.
update
(
HGKC008C
.
UPDATE
,
fKc008C
);
}
/**
* 删除操作
*
* @param inInfo
* @return
*/
@OperationLogAnnotation
(
operModul
=
"客户回访"
,
operType
=
"删除"
)
public
EiInfo
remove
(
EiInfo
inInfo
)
{
try
{
List
<
HGKC008C
>
fKc008Cs
=
MapUtils
.
toDaoEPBases
(
inInfo
,
HGKC008C
.
class
);
// 保存数据
this
.
removeData
(
fKc008Cs
);
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
fKc008Cs
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
/**
* 数据保存
*
* @param fKc008Cs
*/
private
void
removeData
(
List
<
HGKC008C
>
fKc008Cs
)
{
for
(
HGKC008C
fKc008C
:
fKc008Cs
)
{
fKc008C
.
setDeleteFlag
(
CommonConstant
.
YesNo
.
YES_1
);
DaoUtils
.
update
(
HGKC008C
.
DELETE
,
fKc008C
.
toMap
());
}
}
}
src/main/java/com/baosight/hggp/hg/kc/sql/HGKC008C.xml
0 → 100644
View file @
b4d8cb6d
<?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">
<sqlMap
namespace=
"HGKC008C"
>
<sql
id=
"column"
>
ID as "id",
<!-- 主键id -->
ACCOUNT_CODE as "accountCode",
<!-- 账套 -->
DEP_CODE as "depCode",
<!-- 部门编码 -->
CREATED_BY as "createdBy",
<!-- 创建人 -->
CREATED_NAME as "createdName",
<!-- 创建人名称 -->
CREATED_TIME as "createdTime",
<!-- 创建时间 -->
UPDATED_BY as "updatedBy",
<!-- 修改人 -->
UPDATED_NAME as "updatedName",
<!-- 修改人名称 -->
UPDATED_TIME as "updatedTime",
<!-- 修改时间 -->
DELETE_FLAG as "deleteFlag",
<!-- 是否删除 0-否1-是 -->
STATUS as "status",
<!-- 0.未提交,1-已提交,2.质检中 -->
APPLY_CODE as "applyCode",
<!-- 领料单号 -->
APPLY_USER_ID as "applyUserId",
<!-- 领料人ID -->
APPLY_USER_NAME as "applyUserName",
<!-- 领料人名称 -->
REMARK as "remark"
<!-- 备注 -->
</sql>
<sql
id=
"condition"
>
AND DELETE_FLAG = 0
<include
refid=
"idCondition"
/>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"createdBy"
>
CREATED_BY = #createdBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"createdName"
>
CREATED_NAME = #createdName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedBy"
>
UPDATED_BY = #updatedBy#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"updatedName"
>
UPDATED_NAME = #updatedName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyUserName"
>
APPLY_USER_NAME LIKE CONCAT('%', #applyUserName#, '%')
</isNotEmpty>
</sql>
<sql
id=
"idCondition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
ID = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"ids"
>
ID IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyCode"
>
APPLY_CODE = #applyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"applyCodes"
>
APPLY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"applyCodes"
>
#applyCodes[]#
</iterate>
</isNotEmpty>
</sql>
<sql
id=
"orderBy"
>
<dynamic
prepend=
"ORDER BY"
>
<isNotEmpty
property=
"orderBy"
>
$orderBy$
</isNotEmpty>
<isEmpty
property=
"orderBy"
>
ID DESC
</isEmpty>
</dynamic>
</sql>
<!-- 查询 -->
<select
id=
"query"
resultClass=
"com.baosight.hggp.hg.kc.domain.HGKC008C"
>
SELECT
<include
refid=
"column"
/>
FROM ${hggpSchema}.HGKC008c WHERE 1=1
<include
refid=
"condition"
/>
<include
refid=
"orderBy"
/>
</select>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*) FROM ${hggpSchema}.HGKC008C WHERE 1=1
<include
refid=
"condition"
/>
</select>
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGKC008C (
ACCOUNT_CODE,
<!-- 账套 -->
DEP_CODE,
<!-- 部门编码 -->
CREATED_BY,
<!-- 创建人 -->
CREATED_NAME,
<!-- 创建人名称 -->
CREATED_TIME,
<!-- 创建时间 -->
UPDATED_BY,
<!-- 修改人 -->
UPDATED_NAME,
<!-- 修改人名称 -->
UPDATED_TIME,
<!-- 修改时间 -->
DELETE_FLAG,
<!-- 是否删除 0-否1-是 -->
STATUS,
<!-- 0.未提交,1-已提交,2.质检中 -->
APPLY_CODE,
<!-- 领料单号 -->
APPLY_USER_ID,
<!-- 领料人ID -->
APPLY_USER_NAME,
<!-- 领料人名称 -->
REMARK
<!-- 备注 -->
) VALUES (
#accountCode#, #depCode#, #createdBy#, #createdName#, #createdTime#,
#updatedBy#, #updatedName#, #updatedTime#, #deleteFlag#, #status#,
#applyCode#, #applyUserId#, #applyUserName#, #remark#
)
</insert>
<delete
id=
"delete"
>
UPDATE ${hggpSchema}.HGKC008C
SET DELETE_FLAG = 1
WHERE ID = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGKC008C
SET
APPLY_USER_ID = #applyUserId#,
APPLY_USER_NAME = #applyUserName#,
REMARK = #remark#,
<include
refid=
"SqlBase.updateRevise"
/>
WHERE ID = #id#
</update>
</sqlMap>
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
b4d8cb6d
...
...
@@ -59,6 +59,7 @@
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC007A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC008.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC008A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC008C.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC010.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC010A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/kc/sql/HGKC011.xml"
/>
...
...
src/main/webapp/HG/KC/HGKC008.js
View file @
b4d8cb6d
...
...
@@ -33,8 +33,10 @@ $(function (){
+
'onclick="showDetail('
+
item
.
id
+
',
\'
'
+
item
.
whCode
+
'
\'
,
\'
'
+
item
.
companyCode
+
'
\'
,
\'
'
+
item
.
status
+
'
\'
,
\'
'
+
item
.
applyCode
+
'
\'
)" >领料详情</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showApplyUser(
\'
'
+
item
.
applyCode
+
'
\'
)" >添加人员</a>'
;
if
(
status
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<
br/><
a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',
\'
'
+
item
.
applyCode
+
'
\'
)" >提交</a>'
;
}
}
...
...
@@ -282,6 +284,24 @@ function showDetail(id, whCode, companyCode, status, applyCode) {
});
}
/**
* 添加人员
*
* @param applyCode
*/
let
showApplyUser
=
function
(
applyCode
){
let
params
=
{
"inqu_status-0-applyCode"
:
applyCode
,
}
JSColorbox
.
open
({
href
:
"HGKC008C"
,
title
:
"<div style='text-align: center;'>添加人员</div>"
,
width
:
"90%"
,
height
:
"90%"
,
params
:
params
});
}
function
loadChange
(
grid
,
e
,
field
)
{
var
cell_label
=
field
,
that
=
grid
;
// locked 表示是否为固定列
...
...
src/main/webapp/HG/KC/HGKC008.jsp
View file @
b4d8cb6d
...
...
@@ -43,7 +43,7 @@
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
isFloat=
"true"
copyToAdd=
"false"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"1
20"
align=
"center
"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"false"
width=
"1
40"
align=
"left
"
/>
<EF:EFComboColumn
cname=
"类型"
ename=
"receiveType"
width=
"80"
align=
"center"
required=
"false"
enable=
"false"
>
<EF:EFCodeOption
codeName=
"hggp.receiveType"
/>
</EF:EFComboColumn>
...
...
src/main/webapp/HG/KC/HGKC008C.js
0 → 100644
View file @
b4d8cb6d
$
(
function
()
{
IPLATUI
.
EFGrid
=
{
"result"
:
{
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
20
,
50
,
100
,
200
],
},
columns
:
[]
}
}
// 查询
$
(
"#QUERY"
).
on
(
"click"
,
query
);
// 保存
$
(
"#SAVE"
).
on
(
"click"
,
save
);
// 删除
$
(
"#REMOVE"
).
on
(
"click"
,
remove
);
// 键盘按键
downKeyUp
();
});
/**
* 页面加载完成
*/
$
(
window
).
load
(
function
()
{
// 查询
query
();
});
/**
* 查询
*/
let
query
=
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
}
/**
* 保存
*/
function
save
()
{
let
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
return
;
}
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
let
row
=
rows
[
i
];
if
(
isBlank
(
row
[
'applyUserName'
]))
{
message
(
"勾选的第"
+
(
i
+
1
)
+
"行
\"
领料人名称
\"
不能为空"
);
return
;
}
}
JSUtils
.
submitGridsData
(
"result"
,
"HGKC008C"
,
"save"
,
true
);
}
/**
* 删除
*/
function
remove
()
{
var
rows
=
resultGrid
.
getCheckedRows
();
if
(
rows
.
length
==
0
)
{
message
(
"请先勾选数据!"
);
return
;
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
删除
\"
操作?"
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HGKC008C"
,
"remove"
,
true
);
}
})
}
src/main/webapp/HG/KC/HGKC008C.jsp
0 → 100644
View file @
b4d8cb6d
<!DOCTYPE html>
<
%@
page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<EF:EFPage
title=
"领料人员"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"applyCode"
cname=
"领料单号"
blockId=
"inqu_status"
row=
"0"
readonly=
"true"
/>
<EF:EFInput
ename=
"applyUserName"
cname=
"领料人名称"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
enable=
"false"
hidden=
"true"
/>
<EF:EFColumn
ename=
"applyUserId"
cname=
"领料人ID"
enable=
"false"
width=
"120"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"applyUserName"
cname=
"领料人名称"
width=
"120"
align=
"center"
required=
"true"
/>
<EF:EFColumn
ename=
"remark"
cname=
"备注"
width=
"220"
align=
"left"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建时间"
enable=
"false"
width=
"150"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
<EF:EFColumn
ename=
"updatedName"
cname=
"修改人"
enable=
"false"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"修改时间"
enable=
"false"
width=
"150"
align=
"center"
editType=
"datetime"
parseFormats=
"['yyyyMMddHHmmss']"
dateFormat=
"yyyy-MM-dd HH:mm:ss"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
\ No newline at end of file
src/main/webapp/HG/WD/HGWD001.js
View file @
b4d8cb6d
...
...
@@ -22,7 +22,7 @@ $(function () {
(
function
()
{
splitter
=
$
(
"#splitter"
).
kendoSplitter
({
panes
:
[
{
size
:
"
30
%"
,
min
:
"25%"
,
max
:
"75%"
,
collapsible
:
true
},
{
size
:
"
25
%"
,
min
:
"25%"
,
max
:
"75%"
,
collapsible
:
true
},
{},
{
collapsible
:
true
}
]
...
...
@@ -37,7 +37,7 @@ $(function () {
if
(
document
.
getElementById
(
"splitter"
).
getElementsByClassName
(
"k-splitbar"
).
length
!==
1
)
{
$
(
"#splitter"
).
kendoSplitter
({
panes
:
[
{
size
:
"
30
%"
,
min
:
"25%"
,
max
:
"75%"
,
collapsible
:
true
},
{
size
:
"
25
%"
,
min
:
"25%"
,
max
:
"75%"
,
collapsible
:
true
},
{},
{
collapsible
:
true
}
]
...
...
@@ -482,7 +482,6 @@ $(function () {
deleteFunc
();
},
columns
:
[{
field
:
"operator"
,
title
:
"操作"
,
readonly
:
true
,
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
...
...
@@ -493,8 +492,8 @@ $(function () {
+
'onclick="changeFile(
\'
'
+
model
.
docId
+
'
\'
,
\'
'
+
model
.
bizId
+
'
\'
)" target="_blank">变更</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFileRecords(
\'
'
+
item
.
id
+
'
\'
,
\'
'
+
item
.
docId
+
'
\'
,
\'
'
+
item
.
docName
+
'
\'
)" target="_blank">变更记录</a>'
;
+
'onclick="changeFileRecords(
\'
'
+
model
.
id
+
'
\'
,
\'
'
+
model
.
docId
+
'
\'
,
\'
'
+
model
.
docName
+
'
\'
)" target="_blank">变更记录</a>'
;
return
template
;
}
},
{
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
b4d8cb6d
...
...
@@ -16,7 +16,7 @@
<div
id=
"left-pane"
class=
"i-fit-height"
>
<EF:EFRegion
title=
"文档目录树"
id=
"tree"
fitHeight=
"true"
>
<div
class=
"row"
style=
"display: block"
>
<div
class=
"col-md-
12
"
style=
"display:flex;align-items: center"
>
<div
class=
"col-md-
8
"
style=
"display:flex;align-items: center"
>
<
%
--
<
EF:EFInput
ename=
"searchText"
colWidth=
"8"
inline=
"true"
/>
<EF:EFButton
ename=
"search"
class=
"fa fa-search"
layout=
"2"
/>
--%>
<div
style=
"display: none"
>
...
...
@@ -77,12 +77,12 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
autoBind=
"false"
showCount=
"true"
sort=
"all
"
serviceName=
"HGWD099"
queryMethod=
"query"
deleteMethod=
"delete"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
autoBind=
"false"
showCount=
"true"
checkMode=
"row
"
s
ort=
"single"
s
erviceName=
"HGWD099"
queryMethod=
"query"
deleteMethod=
"delete"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"180"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"1
2
0"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"docName"
cname=
"附件名称"
enable=
"false"
width=
"
18
0"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"1
4
0"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"docName"
cname=
"附件名称"
enable=
"false"
width=
"
20
0"
/>
<EF:EFColumn
ename=
"docType"
cname=
"附件类型"
enable=
"false"
width=
"110"
align=
"center"
/>
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"90"
align=
"center"
sort=
"true"
/>
<EF:EFComboColumn
ename=
"status"
cname=
"状态"
enable=
"false"
width=
"100"
align=
"center"
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
b4d8cb6d
...
...
@@ -16,7 +16,7 @@ $(function () {
(
function
()
{
splitter
=
$
(
"#splitter"
).
kendoSplitter
({
panes
:
[
{
size
:
"
30
%"
,
min
:
"25%"
,
max
:
"75%"
,
collapsible
:
true
},
{
size
:
"
25
%"
,
min
:
"25%"
,
max
:
"75%"
,
collapsible
:
true
},
{},
{
collapsible
:
true
}
]
...
...
@@ -31,7 +31,7 @@ $(function () {
if
(
document
.
getElementById
(
"splitter"
).
getElementsByClassName
(
"k-splitbar"
).
length
!==
1
)
{
$
(
"#splitter"
).
kendoSplitter
({
panes
:
[
{
size
:
"25%"
,
min
:
"2
0%"
,
max
:
"80
%"
,
collapsible
:
true
},
{
size
:
"25%"
,
min
:
"2
5%"
,
max
:
"75
%"
,
collapsible
:
true
},
{},
{
collapsible
:
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