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
336d0c9a
Commit
336d0c9a
authored
May 13, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目人员dev;
parent
1840d291
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1664 additions
and
7 deletions
+1664
-7
DdynamicEnum.java
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
+9
-1
HGSC002.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC002.java
+523
-0
HGSC099.java
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC099.java
+346
-0
ServiceHGSC001.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
+1
-1
ServiceHGSC002.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC002.java
+124
-0
HGSC001.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
+21
-0
HGSC001A.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001A.xml
+2
-0
HGSC002.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC002.xml
+239
-0
HGSC099.xml
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC099.xml
+163
-0
HGSCUtil.java
src/main/java/com/baosight/hggp/hg/sc/util/HGSCUtil.java
+38
-0
sqlmap-config.xml
src/main/resources/resources/ibatis/sqlmap-config.xml
+6
-0
HGSC001.js
src/main/webapp/HG/SC/HGSC001.js
+2
-5
HGSC002.js
src/main/webapp/HG/SC/HGSC002.js
+145
-0
HGSC002.jsp
src/main/webapp/HG/SC/HGSC002.jsp
+44
-0
common.js
src/main/webapp/common/js/common.js
+1
-0
No files found.
src/main/java/com/baosight/hggp/common/DdynamicEnum.java
View file @
336d0c9a
...
...
@@ -38,7 +38,6 @@ public enum DdynamicEnum {
CUSTOMER_TYPE_BLOCK_ID
(
"customer_type_block_id"
,
"custType"
,
"custTypeName"
,
"HGPZ001.queryComboBox"
),
/**
* TODO
* 模块:客户档案
* 用途:客户档案下拉框
* 编写:wwl
...
...
@@ -204,6 +203,15 @@ public enum DdynamicEnum {
* 编写:ly
*/
DEVICE_CODE_BOX_BLOCK_ID
(
"deviceCodeBox_block_id"
,
"deviceCode"
,
"deviceName"
,
"deviceType"
,
"companyCode"
,
"HGSB001.queryDeviceCodeBox"
),
//------------------------------------- 生产管理---------------------------------------------------
/**
* 模块:项目档案
* 用途:项目档案下拉框
* 编写:wwl
*/
PROJ_RECORD_BLOCK_ID
(
"proj_record_block_id"
,
"projCode"
,
"projName"
,
"HGSC001.queryComboBox"
),
;
...
...
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC002.java
0 → 100644
View file @
336d0c9a
package
com
.
baosight
.
hggp
.
hg
.
sc
.
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:Hgsc002.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-13 15:26:20 create
*/
public
class
HGSC002
extends
DaoEPBase
{
private
static
final
long
serialVersionUID
=
1L
;
public
static
final
String
FIELD_id
=
"id"
;
public
static
final
String
FIELD_company_code
=
"companyCode"
;
/* 公司编码*/
public
static
final
String
FIELD_company_name
=
"companyName"
;
/* 公司名称*/
public
static
final
String
FIELD_dep_code
=
"depCode"
;
/* 部门编码*/
public
static
final
String
FIELD_dep_name
=
"depName"
;
/* 部门名称*/
public
static
final
String
FIELD_proj_code
=
"projCode"
;
/* 项目编码*/
public
static
final
String
FIELD_proj_name
=
"projName"
;
/* 项目名称*/
public
static
final
String
FIELD_person_dep_name
=
"personDepName"
;
/* 项目人员部门名称*/
public
static
final
String
FIELD_person_name
=
"personName"
;
/* 项目人员名称*/
public
static
final
String
FIELD_person_phone
=
"personPhone"
;
/* 项目人员手机号*/
public
static
final
String
FIELD_person_id_card
=
"personIdCard"
;
/* 项目人员身份证号*/
public
static
final
String
FIELD_account_code
=
"accountCode"
;
/* 帐套*/
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
COL_id
=
"id"
;
public
static
final
String
COL_company_code
=
"company_code"
;
/* 公司编码*/
public
static
final
String
COL_company_name
=
"company_name"
;
/* 公司名称*/
public
static
final
String
COL_dep_code
=
"dep_code"
;
/* 部门编码*/
public
static
final
String
COL_dep_name
=
"dep_name"
;
/* 部门名称*/
public
static
final
String
COL_proj_code
=
"proj_code"
;
/* 项目编码*/
public
static
final
String
COL_proj_name
=
"proj_name"
;
/* 项目名称*/
public
static
final
String
COL_person_dep_name
=
"person_dep_name"
;
/* 项目人员部门名称*/
public
static
final
String
COL_person_name
=
"person_name"
;
/* 项目人员名称*/
public
static
final
String
COL_person_phone
=
"person_phone"
;
/* 项目人员手机号*/
public
static
final
String
COL_person_id_card
=
"person_id_card"
;
/* 项目人员身份证号*/
public
static
final
String
COL_account_code
=
"account_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
QUERY
=
"HGSC002.query"
;
public
static
final
String
COUNT
=
"HGSC002.count"
;
public
static
final
String
INSERT
=
"HGSC002.insert"
;
public
static
final
String
UPDATE
=
"HGSC002.update"
;
public
static
final
String
DELETE
=
"HGSC002.delete"
;
public
static
final
String
BATCH_DELETE
=
"HGSC002.batch_delete"
;
private
Long
id
=
new
Long
(
0
);
private
String
companyCode
=
" "
;
/* 公司编码*/
private
String
companyName
=
" "
;
/* 公司名称*/
private
String
depCode
=
" "
;
/* 部门编码*/
private
String
depName
=
" "
;
/* 部门名称*/
private
String
projCode
=
" "
;
/* 项目编码*/
private
String
projName
=
" "
;
/* 项目名称*/
private
String
personDepName
=
" "
;
/* 项目人员部门名称*/
private
String
personName
=
" "
;
/* 项目人员名称*/
private
String
personPhone
=
" "
;
/* 项目人员手机号*/
private
String
personIdCard
=
" "
;
/* 项目人员身份证号*/
private
String
accountCode
=
" "
;
/* 帐套*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 更新人*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 更新时间*/
/**
* initialize the metadata.
*/
public
void
initMetaData
()
{
EiColumn
eiColumn
;
eiColumn
=
new
EiColumn
(
FIELD_id
);
eiColumn
.
setPrimaryKey
(
true
);
eiColumn
.
setDescName
(
" "
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_company_code
);
eiColumn
.
setDescName
(
"公司编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_company_name
);
eiColumn
.
setDescName
(
"公司名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_dep_code
);
eiColumn
.
setDescName
(
"部门编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_dep_name
);
eiColumn
.
setDescName
(
"部门名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_proj_code
);
eiColumn
.
setDescName
(
"项目编码"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_proj_name
);
eiColumn
.
setDescName
(
"项目名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_person_dep_name
);
eiColumn
.
setDescName
(
"项目人员部门名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_person_name
);
eiColumn
.
setDescName
(
"项目人员名称"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_person_phone
);
eiColumn
.
setDescName
(
"项目人员手机号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_person_id_card
);
eiColumn
.
setDescName
(
"项目人员身份证号"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_account_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
);
}
/**
* the constructor.
*/
public
HGSC002
()
{
initMetaData
();
}
/**
* get the id .
* @return the id
*/
public
Long
getId
()
{
return
this
.
id
;
}
/**
* set the id .
*
* @param 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 companyName - 公司名称.
* @return the companyName
*/
public
String
getCompanyName
()
{
return
this
.
companyName
;
}
/**
* set the companyName - 公司名称.
*
* @param companyName - 公司名称
*/
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
/**
* 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 depName - 部门名称.
* @return the depName
*/
public
String
getDepName
()
{
return
this
.
depName
;
}
/**
* set the depName - 部门名称.
*
* @param depName - 部门名称
*/
public
void
setDepName
(
String
depName
)
{
this
.
depName
=
depName
;
}
/**
* get the projCode - 项目编码.
* @return the projCode
*/
public
String
getProjCode
()
{
return
this
.
projCode
;
}
/**
* set the projCode - 项目编码.
*
* @param projCode - 项目编码
*/
public
void
setProjCode
(
String
projCode
)
{
this
.
projCode
=
projCode
;
}
/**
* get the projName - 项目名称.
* @return the projName
*/
public
String
getProjName
()
{
return
this
.
projName
;
}
/**
* set the projName - 项目名称.
*
* @param projName - 项目名称
*/
public
void
setProjName
(
String
projName
)
{
this
.
projName
=
projName
;
}
/**
* get the personDepName - 项目人员部门名称.
* @return the personDepName
*/
public
String
getPersonDepName
()
{
return
this
.
personDepName
;
}
/**
* set the personDepName - 项目人员部门名称.
*
* @param personDepName - 项目人员部门名称
*/
public
void
setPersonDepName
(
String
personDepName
)
{
this
.
personDepName
=
personDepName
;
}
/**
* get the personName - 项目人员名称.
* @return the personName
*/
public
String
getPersonName
()
{
return
this
.
personName
;
}
/**
* set the personName - 项目人员名称.
*
* @param personName - 项目人员名称
*/
public
void
setPersonName
(
String
personName
)
{
this
.
personName
=
personName
;
}
/**
* get the personPhone - 项目人员手机号.
* @return the personPhone
*/
public
String
getPersonPhone
()
{
return
this
.
personPhone
;
}
/**
* set the personPhone - 项目人员手机号.
*
* @param personPhone - 项目人员手机号
*/
public
void
setPersonPhone
(
String
personPhone
)
{
this
.
personPhone
=
personPhone
;
}
/**
* get the personIdCard - 项目人员身份证号.
* @return the personIdCard
*/
public
String
getPersonIdCard
()
{
return
this
.
personIdCard
;
}
/**
* set the personIdCard - 项目人员身份证号.
*
* @param personIdCard - 项目人员身份证号
*/
public
void
setPersonIdCard
(
String
personIdCard
)
{
this
.
personIdCard
=
personIdCard
;
}
/**
* 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 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 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
));
setCompanyName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_company_name
)),
companyName
));
setDepCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_dep_code
)),
depCode
));
setDepName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_dep_name
)),
depName
));
setProjCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_proj_code
)),
projCode
));
setProjName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_proj_name
)),
projName
));
setPersonDepName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_person_dep_name
)),
personDepName
));
setPersonName
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_person_name
)),
personName
));
setPersonPhone
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_person_phone
)),
personPhone
));
setPersonIdCard
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_person_id_card
)),
personIdCard
));
setAccountCode
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_account_code
)),
accountCode
));
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
));
}
/**
* 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_company_name
,
StringUtils
.
toString
(
companyName
,
eiMetadata
.
getMeta
(
FIELD_company_name
)));
map
.
put
(
FIELD_dep_code
,
StringUtils
.
toString
(
depCode
,
eiMetadata
.
getMeta
(
FIELD_dep_code
)));
map
.
put
(
FIELD_dep_name
,
StringUtils
.
toString
(
depName
,
eiMetadata
.
getMeta
(
FIELD_dep_name
)));
map
.
put
(
FIELD_proj_code
,
StringUtils
.
toString
(
projCode
,
eiMetadata
.
getMeta
(
FIELD_proj_code
)));
map
.
put
(
FIELD_proj_name
,
StringUtils
.
toString
(
projName
,
eiMetadata
.
getMeta
(
FIELD_proj_name
)));
map
.
put
(
FIELD_person_dep_name
,
StringUtils
.
toString
(
personDepName
,
eiMetadata
.
getMeta
(
FIELD_person_dep_name
)));
map
.
put
(
FIELD_person_name
,
StringUtils
.
toString
(
personName
,
eiMetadata
.
getMeta
(
FIELD_person_name
)));
map
.
put
(
FIELD_person_phone
,
StringUtils
.
toString
(
personPhone
,
eiMetadata
.
getMeta
(
FIELD_person_phone
)));
map
.
put
(
FIELD_person_id_card
,
StringUtils
.
toString
(
personIdCard
,
eiMetadata
.
getMeta
(
FIELD_person_id_card
)));
map
.
put
(
FIELD_account_code
,
StringUtils
.
toString
(
accountCode
,
eiMetadata
.
getMeta
(
FIELD_account_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
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/sc/domain/HGSC099.java
0 → 100644
View file @
336d0c9a
package
com
.
baosight
.
hggp
.
hg
.
sc
.
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:Hgsc099.java <br>
* Description: <br>
*
* Copyrigth:Baosight Software LTD.co Copyright (c) 2019. <br>
*
* @version 1.0
* @history 2024-05-13 15:26:20 create
*/
public
class
HGSC099
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_main_id
=
"mainId"
;
/* 主表ID*/
public
static
final
String
FIELD_doc_id
=
"docId"
;
/* 文件ID*/
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_biz_type
=
"bizType"
;
/* 业务类型*/
public
static
final
String
COL_id
=
"id"
;
/* 主键ID*/
public
static
final
String
COL_account_code
=
"account_code"
;
/* 帐套*/
public
static
final
String
COL_main_id
=
"main_id"
;
/* 主表ID*/
public
static
final
String
COL_doc_id
=
"doc_id"
;
/* 文件ID*/
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_biz_type
=
"biz_type"
;
/* 业务类型*/
public
static
final
String
QUERY
=
"HGSC099.query"
;
public
static
final
String
COUNT
=
"HGSC099.count"
;
public
static
final
String
INSERT
=
"HGSC099.insert"
;
public
static
final
String
UPDATE
=
"HGSC099.update"
;
public
static
final
String
DELETE
=
"HGSC099.delete"
;
private
Long
id
=
new
Long
(
0
);
/* 主键ID*/
private
String
accountCode
=
" "
;
/* 帐套*/
private
Long
mainId
=
new
Long
(
0
);
/* 主表ID*/
private
String
docId
=
" "
;
/* 文件ID*/
private
String
createdBy
=
" "
;
/* 创建人*/
private
String
createdName
=
" "
;
/* 创建人名称*/
private
String
createdTime
=
" "
;
/* 创建时间*/
private
String
updatedBy
=
" "
;
/* 修改人*/
private
String
updatedName
=
" "
;
/* 修改人名称*/
private
String
updatedTime
=
" "
;
/* 修改时间*/
private
String
bizType
=
" "
;
/* 业务类型*/
/**
* 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_main_id
);
eiColumn
.
setDescName
(
"主表ID"
);
eiMetadata
.
addMeta
(
eiColumn
);
eiColumn
=
new
EiColumn
(
FIELD_doc_id
);
eiColumn
.
setDescName
(
"文件ID"
);
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_biz_type
);
eiColumn
.
setDescName
(
"业务类型"
);
eiMetadata
.
addMeta
(
eiColumn
);
}
/**
* the constructor.
*/
public
HGSC099
()
{
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 mainId - 主表ID.
* @return the mainId
*/
public
Long
getMainId
()
{
return
this
.
mainId
;
}
/**
* set the mainId - 主表ID.
*
* @param mainId - 主表ID
*/
public
void
setMainId
(
Long
mainId
)
{
this
.
mainId
=
mainId
;
}
/**
* get the docId - 文件ID.
* @return the docId
*/
public
String
getDocId
()
{
return
this
.
docId
;
}
/**
* set the docId - 文件ID.
*
* @param docId - 文件ID
*/
public
void
setDocId
(
String
docId
)
{
this
.
docId
=
docId
;
}
/**
* 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 bizType - 业务类型.
* @return the bizType
*/
public
String
getBizType
()
{
return
this
.
bizType
;
}
/**
* set the bizType - 业务类型.
*
* @param bizType - 业务类型
*/
public
void
setBizType
(
String
bizType
)
{
this
.
bizType
=
bizType
;
}
/**
* 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
));
setMainId
(
NumberUtils
.
toLong
(
StringUtils
.
toString
(
map
.
get
(
FIELD_main_id
)),
mainId
));
setDocId
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_doc_id
)),
docId
));
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
));
setBizType
(
StringUtils
.
defaultIfEmpty
(
StringUtils
.
toString
(
map
.
get
(
FIELD_biz_type
)),
bizType
));
}
/**
* 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_main_id
,
StringUtils
.
toString
(
mainId
,
eiMetadata
.
getMeta
(
FIELD_main_id
)));
map
.
put
(
FIELD_doc_id
,
StringUtils
.
toString
(
docId
,
eiMetadata
.
getMeta
(
FIELD_doc_id
)));
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_biz_type
,
StringUtils
.
toString
(
bizType
,
eiMetadata
.
getMeta
(
FIELD_biz_type
)));
return
map
;
}
}
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
View file @
336d0c9a
...
...
@@ -184,7 +184,7 @@ public class ServiceHGSC001 extends ServiceBase {
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
companyCode
=
MapUtils
.
getString
(
queryMap
,
HGSC001
.
FIELD_subcontract_code
);
Map
map
=
new
HashMap
();
map
.
put
(
"accountCode"
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
// map.put("companyCode", companyCode);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
CommonMethod
.
comboBoxDefaultValue
(
inInfo
,
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
.
getBlockId
());
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC002.java
0 → 100644
View file @
336d0c9a
package
com
.
baosight
.
hggp
.
hg
.
sc
.
service
;
import
com.baosight.hggp.common.DdynamicEnum
;
import
com.baosight.hggp.core.dao.DaoUtils
;
import
com.baosight.hggp.core.security.UserSessionUtils
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.domain.HGSC002
;
import
com.baosight.hggp.hg.sc.util.HGSCUtil
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.util.*
;
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.*
;
import
java.util.stream.Collectors
;
/**
* @Author wwl
* @Date 2024/5/6 19:48
*/
public
class
ServiceHGSC002
extends
ServiceBase
{
public
EiInfo
initLoad
(
EiInfo
inInfo
)
{
try
{
List
<
Company
>
companyList
=
UserSessionUtils
.
getRoleCompany
();
inInfo
=
super
.
query
(
inInfo
,
HGSC002
.
QUERY
,
new
HGSC002
());
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
companyList
,
Company
.
class
);
Map
map
=
new
HashMap
();
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
"companyCodes"
,
Optional
.
ofNullable
(
companyList
).
orElse
(
new
ArrayList
<>()).
stream
()
.
map
(
Company:
:
getCompanyCode
).
collect
(
Collectors
.
toList
()));
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
map
,
false
);
}
catch
(
PlatException
|
InstantiationException
|
IllegalAccessException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
return
inInfo
;
}
public
EiInfo
query
(
EiInfo
inInfo
)
{
try
{
inInfo
=
super
.
query
(
inInfo
,
HGSC002
.
QUERY
,
new
HGSC002
());
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"查询失败"
);
}
return
inInfo
;
}
@Override
public
EiInfo
delete
(
EiInfo
inInfo
)
{
try
{
List
<
Map
>
resultRows
=
inInfo
.
getBlock
(
EiConstant
.
resultBlock
).
getRows
();
// 销售单号
List
<
Long
>
ids
=
ObjectUtils
.
listKey
(
resultRows
,
HGSC002
.
FIELD_id
);
DaoUtils
.
update
(
HGSC002
.
BATCH_DELETE
,
new
HashMap
<
String
,
Object
>(){{
put
(
"ids"
,
ids
);}});
inInfo
=
this
.
query
(
inInfo
);
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"操作成功!本次对["
+
resultRows
.
size
()
+
"]条数据删除成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"删除失败"
);
}
return
inInfo
;
}
public
EiInfo
save
(
EiInfo
inInfo
){
try
{
Map
resultMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
,
EiConstant
.
resultBlock
);
HGSC002
hgsc002
=
new
HGSC002
();
hgsc002
.
fromMap
(
resultMap
);
this
.
checkSaveData
(
hgsc002
);
if
(
Objects
.
nonNull
(
hgsc002
.
getId
())&&
hgsc002
.
getId
()!=
0
){
DaoUtils
.
update
(
HGSC002
.
UPDATE
,
hgsc002
);
}
else
{
DaoUtils
.
insert
(
HGSC002
.
INSERT
,
hgsc002
);
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
inInfo
.
setMsg
(
"保存成功!"
);
}
catch
(
Exception
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"保存失败"
);
}
return
inInfo
;
}
/**
* 校验保存的数据
*
* @param hgsc002
*/
private
void
checkSaveData
(
HGSC002
hgsc002
)
{
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getAccountCode
(),
"当前用户未绑定公司,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
UserSessionUtils
.
getOrgId
(),
"当前用户未绑定部门,无法操作数据,请联系管理员!"
);
AssertUtils
.
isEmpty
(
hgsc002
.
getCompanyCode
(),
"请选择公司!"
);
// AssertUtils.isEmpty(hgsc002.getDepCode(), "请选择部门!");
AssertUtils
.
isEmpty
(
hgsc002
.
getProjCode
(),
"请填写项目编号!"
);
AssertUtils
.
isEmpty
(
hgsc002
.
getProjName
(),
"请填写项目名称!"
);
AssertUtils
.
isEmpty
(
hgsc002
.
getPersonDepName
(),
"请填写所属部门!"
);
AssertUtils
.
isEmpty
(
hgsc002
.
getPersonName
(),
"请填写姓名!"
);
AssertUtils
.
isEmpty
(
hgsc002
.
getPersonPhone
(),
"请填写电话!"
);
AssertUtils
.
isEmpty
(
hgsc002
.
getPersonIdCard
(),
"请填写身份证号!"
);
AssertUtils
.
isTrue
(!
HGSCUtil
.
isValidChineseID
(
hgsc002
.
getPersonIdCard
()),
"请填写正确的身份证号!"
);
}
/**
* 项目档案下拉框
* @param inInfo
* @return
*/
public
EiInfo
projComboBox
(
EiInfo
inInfo
){
Map
queryMap
=
EiInfoUtils
.
getFirstRow
(
inInfo
);
String
companyCode
=
MapUtils
.
getString
(
queryMap
,
HGSC001
.
FIELD_company_code
);
Map
map
=
new
HashMap
();
map
.
put
(
HGSC001
.
FIELD_account_code
,
UserSessionUtils
.
getAccountCode
());
map
.
put
(
HGSC001
.
FIELD_company_code
,
companyCode
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_RECORD_BLOCK_ID
),
map
,
false
);
return
inInfo
;
}
}
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001.xml
View file @
336d0c9a
...
...
@@ -36,6 +36,8 @@
<sqlMap
namespace=
"HGSC001"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
</isNotEmpty>
...
...
@@ -357,4 +359,23 @@
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</update>
<select
id=
"queryComboBox"
parameterClass=
"java.util.HashMap"
resultClass=
"java.util.HashMap"
>
SELECT DISTINCT
PROJ_CODE as "projCode",
PROJ_NAME as "projName"
FROM ${hggpSchema}.HGSC001
WHERE 1=1
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
ACCOUNT_CODE = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
COMPANY_CODE = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCodes"
>
COMPANY_CODE IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"companyCodes"
>
#companyCodes[]#
</iterate>
</isNotEmpty>
ORDER BY PROJ_CODE
</select>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC001A.xml
View file @
336d0c9a
...
...
@@ -24,6 +24,8 @@
<sqlMap
namespace=
"HGSC001A"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
</isNotEmpty>
...
...
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC002.xml
0 → 100644
View file @
336d0c9a
<?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-05-13 15:26:20
Version : 1.0
schema : hggp
tableName : HGSC002
id BIGINT NOT NULL primarykey,
company_code VARCHAR NOT NULL,
company_name VARCHAR NOT NULL,
dep_code VARCHAR,
dep_name VARCHAR,
proj_code VARCHAR,
proj_name VARCHAR,
person_dep_name VARCHAR,
person_name VARCHAR,
person_phone VARCHAR,
person_id_card VARCHAR,
account_code VARCHAR NOT NULL,
created_by VARCHAR,
created_name VARCHAR,
created_time VARCHAR,
updated_by VARCHAR,
updated_name VARCHAR,
updated_time VARCHAR
-->
<sqlMap
namespace=
"HGSC002"
>
<sql
id=
"condition"
>
<include
refid=
"HGXSDataAuth.authCondition"
/>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyCode"
>
company_code = #companyCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"companyName"
>
company_name = #companyName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depCode"
>
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"depName"
>
dep_name = #depName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projCode"
>
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"projName"
>
proj_name = #projName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personDepName"
>
person_dep_name = #personDepName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personName"
>
person_name = #personName#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personPhone"
>
person_phone = #personPhone#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"personIdCard"
>
person_id_card = #personIdCard#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
account_code = #accountCode#
</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>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.sc.domain.HGSC002"
>
SELECT
id as "id",
company_code as "companyCode",
<!-- 公司编码 -->
company_name as "companyName",
<!-- 公司名称 -->
dep_code as "depCode",
<!-- 部门编码 -->
dep_name as "depName",
<!-- 部门名称 -->
proj_code as "projCode",
<!-- 项目编码 -->
proj_name as "projName",
<!-- 项目名称 -->
person_dep_name as "personDepName",
<!-- 项目人员部门名称 -->
person_name as "personName",
<!-- 项目人员名称 -->
person_phone as "personPhone",
<!-- 项目人员手机号 -->
person_id_card as "personIdCard",
<!-- 项目人员身份证号 -->
account_code as "accountCode",
<!-- 帐套 -->
created_by as "createdBy",
<!-- 创建人 -->
created_name as "createdName",
<!-- 创建人名称 -->
created_time as "createdTime",
<!-- 创建时间 -->
updated_by as "updatedBy",
<!-- 更新人 -->
updated_name as "updatedName",
<!-- 修改人名称 -->
updated_time as "updatedTime"
<!-- 更新时间 -->
FROM ${hggpSchema}.HGSC002 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 ${hggpSchema}.HGSC002 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="companyName">
company_name = #companyName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depCode">
dep_code = #depCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="depName">
dep_name = #depName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projCode">
proj_code = #projCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
proj_name = #projName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="personDepName">
person_dep_name = #personDepName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="personName">
person_name = #personName#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="personPhone">
person_phone = #personPhone#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="personIdCard">
person_id_card = #personIdCard#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
account_code = #accountCode#
</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>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGSC002 (id,
company_code,
<!-- 公司编码 -->
company_name,
<!-- 公司名称 -->
dep_code,
<!-- 部门编码 -->
dep_name,
<!-- 部门名称 -->
proj_code,
<!-- 项目编码 -->
proj_name,
<!-- 项目名称 -->
person_dep_name,
<!-- 项目人员部门名称 -->
person_name,
<!-- 项目人员名称 -->
person_phone,
<!-- 项目人员手机号 -->
person_id_card,
<!-- 项目人员身份证号 -->
account_code,
<!-- 帐套 -->
created_by,
<!-- 创建人 -->
created_name,
<!-- 创建人名称 -->
created_time,
<!-- 创建时间 -->
updated_by,
<!-- 更新人 -->
updated_name,
<!-- 修改人名称 -->
updated_time
<!-- 更新时间 -->
)
VALUES (#id#, #companyCode#, #companyName#, #depCode#, #depName#, #projCode#, #projName#, #personDepName#, #personName#, #personPhone#, #personIdCard#, #accountCode#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGSC002 WHERE
id = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGSC002
SET
company_code = #companyCode#,
<!-- 公司编码 -->
company_name = #companyName#,
<!-- 公司名称 -->
dep_code = #depCode#,
<!-- 部门编码 -->
dep_name = #depName#,
<!-- 部门名称 -->
proj_code = #projCode#,
<!-- 项目编码 -->
proj_name = #projName#,
<!-- 项目名称 -->
person_dep_name = #personDepName#,
<!-- 项目人员部门名称 -->
person_name = #personName#,
<!-- 项目人员名称 -->
person_phone = #personPhone#,
<!-- 项目人员手机号 -->
person_id_card = #personIdCard#,
<!-- 项目人员身份证号 -->
account_code = #accountCode#,
<!-- 帐套 -->
created_by = #createdBy#,
<!-- 创建人 -->
created_name = #createdName#,
<!-- 创建人名称 -->
created_time = #createdTime#,
<!-- 创建时间 -->
updated_by = #updatedBy#,
<!-- 更新人 -->
updated_name = #updatedName#,
<!-- 修改人名称 -->
updated_time = #updatedTime#
<!-- 更新时间 -->
WHERE
id = #id#
</update>
<delete
id=
"batch_delete"
>
DELETE FROM ${hggpSchema}.HGSC002 WHERE
id IN
<iterate
close=
")"
open=
"("
conjunction=
","
property=
"ids"
>
#ids[]#
</iterate>
</delete>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/sql/HGSC099.xml
0 → 100644
View file @
336d0c9a
<?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-05-13 15:26:20
Version : 1.0
schema : hggp
tableName : HGSC099
id BIGINT NOT NULL primarykey,
account_code VARCHAR NOT NULL,
main_id BIGINT,
doc_id VARCHAR,
created_by VARCHAR,
created_name VARCHAR,
created_time VARCHAR,
updated_by VARCHAR,
updated_name VARCHAR,
updated_time VARCHAR,
biz_type VARCHAR
-->
<sqlMap
namespace=
"HGSC099"
>
<sql
id=
"condition"
>
<isNotEmpty
prepend=
" AND "
property=
"id"
>
id = #id#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"accountCode"
>
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"mainId"
>
main_id = #mainId#
</isNotEmpty>
<isNotEmpty
prepend=
" AND "
property=
"docId"
>
doc_id = #docId#
</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=
"bizType"
>
biz_type = #bizType#
</isNotEmpty>
</sql>
<select
id=
"query"
parameterClass=
"java.util.HashMap"
resultClass=
"com.baosight.hggp.hg.sc.domain.HGSC099"
>
SELECT
id as "id",
<!-- 主键ID -->
account_code as "accountCode",
<!-- 帐套 -->
main_id as "mainId",
<!-- 主表ID -->
doc_id as "docId",
<!-- 文件ID -->
created_by as "createdBy",
<!-- 创建人 -->
created_name as "createdName",
<!-- 创建人名称 -->
created_time as "createdTime",
<!-- 创建时间 -->
updated_by as "updatedBy",
<!-- 修改人 -->
updated_name as "updatedName",
<!-- 修改人名称 -->
updated_time as "updatedTime",
<!-- 修改时间 -->
biz_type as "bizType"
<!-- 业务类型 -->
FROM ${hggpSchema}.HGSC099 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 ${hggpSchema}.HGSC099 WHERE 1=1
<include
refid=
"condition"
/>
</select>
<!--
<isNotEmpty prepend=" AND " property="id">
id = #id#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="accountCode">
account_code = #accountCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="mainId">
main_id = #mainId#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="docId">
doc_id = #docId#
</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="bizType">
biz_type = #bizType#
</isNotEmpty>
-->
<insert
id=
"insert"
>
INSERT INTO ${hggpSchema}.HGSC099 (id,
<!-- 主键ID -->
account_code,
<!-- 帐套 -->
main_id,
<!-- 主表ID -->
doc_id,
<!-- 文件ID -->
created_by,
<!-- 创建人 -->
created_name,
<!-- 创建人名称 -->
created_time,
<!-- 创建时间 -->
updated_by,
<!-- 修改人 -->
updated_name,
<!-- 修改人名称 -->
updated_time,
<!-- 修改时间 -->
biz_type
<!-- 业务类型 -->
)
VALUES (#id#, #accountCode#, #mainId#, #docId#, #createdBy#, #createdName#, #createdTime#, #updatedBy#, #updatedName#, #updatedTime#, #bizType#)
</insert>
<delete
id=
"delete"
>
DELETE FROM ${hggpSchema}.HGSC099 WHERE
id = #id#
</delete>
<update
id=
"update"
>
UPDATE ${hggpSchema}.HGSC099
SET
account_code = #accountCode#,
<!-- 帐套 -->
main_id = #mainId#,
<!-- 主表ID -->
doc_id = #docId#,
<!-- 文件ID -->
created_by = #createdBy#,
<!-- 创建人 -->
created_name = #createdName#,
<!-- 创建人名称 -->
created_time = #createdTime#,
<!-- 创建时间 -->
updated_by = #updatedBy#,
<!-- 修改人 -->
updated_name = #updatedName#,
<!-- 修改人名称 -->
updated_time = #updatedTime#,
<!-- 修改时间 -->
biz_type = #bizType#
<!-- 业务类型 -->
WHERE
id = #id#
</update>
</sqlMap>
src/main/java/com/baosight/hggp/hg/sc/util/HGSCUtil.java
0 → 100644
View file @
336d0c9a
package
com
.
baosight
.
hggp
.
hg
.
sc
.
util
;
/**
* @Author wwl
* @Date 2024/5/13 20:12
*/
public
class
HGSCUtil
{
public
static
boolean
isValidChineseID
(
String
id
)
{
if
(
id
==
null
||
(
id
.
length
()
!=
18
&&
id
.
length
()
!=
15
))
{
return
false
;
}
String
[]
cityCode
=
{
"11"
,
"12"
,
"13"
,
"14"
,
"15"
,
"21"
,
"22"
,
"23"
,
"31"
,
"32"
,
"33"
,
"34"
,
"35"
,
"36"
,
"37"
,
"41"
,
"42"
,
"43"
,
"44"
,
"45"
,
"46"
,
"50"
,
"51"
,
"52"
,
"53"
,
"54"
,
"61"
,
"62"
,
"63"
,
"64"
,
"65"
,
"71"
,
"81"
,
"82"
,
"91"
};
if
(!
id
.
substring
(
0
,
2
).
matches
(
"("
+
String
.
join
(
"|"
,
cityCode
)
+
")"
))
{
return
false
;
}
if
(
id
.
length
()
==
18
)
{
if
(!
id
.
substring
(
17
).
matches
(
"[0-9Xx]"
))
{
return
false
;
}
int
[]
factor
=
{
7
,
9
,
10
,
5
,
8
,
4
,
2
,
1
,
6
,
3
,
7
,
9
,
10
,
5
,
8
,
4
,
2
};
char
[]
checkCode
=
{
'1'
,
'0'
,
'X'
,
'9'
,
'8'
,
'7'
,
'6'
,
'5'
,
'4'
,
'3'
,
'2'
};
int
sum
=
0
;
for
(
int
i
=
0
;
i
<
17
;
i
++)
{
sum
+=
Integer
.
parseInt
(
String
.
valueOf
(
id
.
charAt
(
i
)))
*
factor
[
i
];
}
char
lastChar
=
checkCode
[
sum
%
11
];
return
lastChar
==
id
.
charAt
(
17
);
}
return
true
;
}
}
src/main/resources/resources/ibatis/sqlmap-config.xml
View file @
336d0c9a
...
...
@@ -16,5 +16,11 @@
<sqlMap
resource=
"com/baosight/hggp/hg/cg/sql/HGCG001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/cg/sql/HGCG002.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/cg/sql/HGCG003.xml"
/>
<!-- 生产 -->
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC001.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC001A.xml"
/>
<sqlMap
resource=
"com/baosight/hggp/hg/sc/sql/HGSC002.xml"
/>
</sqlMapConfig>
src/main/webapp/HG/SC/HGSC001.js
View file @
336d0c9a
...
...
@@ -62,10 +62,6 @@ $(function () {
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
){
query
();
}
},
onAdd
:
function
(
e
)
{
e
.
preventDefault
();
create
();
}
}
});
...
...
@@ -77,7 +73,8 @@ function showInfo(id) {
width
:
"90%"
,
height
:
"90%"
,
callbackName
:
windowCallback
});}
});
}
function
create
()
{
JSColorbox
.
open
({
...
...
src/main/webapp/HG/SC/HGSC002.js
0 → 100644
View file @
336d0c9a
$
(
function
()
{
var
globalCompanyList
=
__eiInfo
.
getBlock
(
"roleCompany"
).
getMappedRows
();
var
globalProjList
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
$
(
"#QUERY"
).
on
(
"click"
,
function
()
{
resultGrid
.
dataSource
.
page
(
1
);
});
IPLATUI
.
EFGrid
.
result
=
{
pageable
:
{
pageSize
:
20
,
pageSizes
:
[
10
,
20
,
50
,
70
,
100
],
},
columns
:
[
{
field
:
"companyCode"
,
template
:
function
(
item
)
{
let
template
=
""
;
if
(
item
.
companyCode
){
for
(
let
i
=
0
;
i
<
globalCompanyList
.
length
;
i
++
){
if
(
item
.
companyCode
===
globalCompanyList
[
i
][
'companyCode'
]){
item
[
'companyName'
]
=
globalCompanyList
[
i
][
'companyName'
];
template
=
globalCompanyList
[
i
][
'companyName'
];
}
}
}
return
template
;
},
editor
:
function
(
container
,
options
)
{
var
input
=
$
(
'<input />'
);
input
.
attr
(
"name"
,
options
.
field
);
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
dataSource
:
globalCompanyList
,
minLength
:
0
,
dataTextField
:
"companyName"
,
dataValueField
:
"companyCode"
,
optionLabelTemplate
:
"#:companyName#"
,
valueTemplate
:
"#:companyName#"
,
template
:
"#:companyName#"
,
filter
:
"contains"
});
}
},
{
field
:
"projCode"
,
template
:
function
(
item
)
{
let
template
=
""
;
if
(
item
.
projCode
){
for
(
let
i
=
0
;
i
<
globalProjList
.
length
;
i
++
){
if
(
item
.
projCode
===
globalProjList
[
i
][
'valueField'
]){
item
[
'projName'
]
=
globalProjList
[
i
][
'textField'
];
template
=
globalProjList
[
i
][
'valueField'
];
}
}
}
return
template
;
},
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
inInfo
.
set
(
"field"
,
options
.
field
);
let
dataSource
;
EiCommunicator
.
send
(
"HGSC002"
,
"projComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
dataSource
=
ei
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
var
input
=
$
(
'<input />'
);
input
.
attr
(
"name"
,
options
.
field
);
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
dataSource
:
dataSource
,
minLength
:
0
,
dataTextField
:
"textField"
,
dataValueField
:
"valueField"
,
optionLabelTemplate
:
"[#:valueField#]#:textField#"
,
valueTemplate
:
"[#:valueField#]#:textField#"
,
template
:
"[#:valueField#]#:textField#"
,
filter
:
"contains"
});
}
},
{
field
:
"operator"
,
template
:
function
(
item
)
{
let
template
=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showFile('
+
item
.
id
+
')" >附件详情</a>'
;
return
template
;
}
}
],
loadComplete
:
function
(
grid
)
{
// 此 grid 对象
// 处理父子级联动,通过监听 change 事件,判断父级节点是否发生变化
grid
.
dataSource
.
bind
(
"change"
,
function
(
e
)
{
// 判断父级节点是否发生变化
if
(
e
.
field
==
"projCode"
)
{
loadChange
(
grid
,
e
,
"projName"
);
}
if
(
e
.
field
==
"companyCode"
)
{
e
.
items
[
0
].
projCode
=
""
;
e
.
items
[
0
].
projName
=
""
;
loadChange
(
grid
,
e
,
"projName"
);
loadChange
(
grid
,
e
,
"projCode"
);
}
});
},
onSave
:
function
(
e
)
{
e
.
preventDefault
();
save
();
},
onSuccess
:
function
(
e
)
{
if
(
e
.
eiInfo
.
extAttr
.
methodName
==
'save'
||
e
.
eiInfo
.
extAttr
.
methodName
==
'delete'
){
query
();
}
}
}
});
/**
* 保存*
*/
function
save
(){
JSUtils
.
confirm
(
"确定对数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGrid
(
"result"
,
"HGSC002"
,
"save"
);
}
});
}
function
showFile
(
id
)
{
// JSColorbox.open({
// href: "HGSC001D?inqu_status-0-id=" + id + "&efParentFormEname=HGSC001",
// title: "<div style='text-align: center;'>查看项目</div>",
// width: "90%",
// height: "90%",
// callbackName: windowCallback
// });
}
src/main/webapp/HG/SC/HGSC002.jsp
0 → 100644
View file @
336d0c9a
<!DOCTYPE html>
<
%@
page
contentType=
"text/html; charset=UTF-8"
%
>
<
%@
taglib
uri=
"http://java.sun.com/jsp/jstl/core"
prefix=
"c"
%
>
<
%@
taglib
prefix=
"EF"
tagdir=
"/WEB-INF/tags/EF"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<script>
var
ctx
=
"${ctx}"
;
</script>
<head>
</head>
<EF:EFPage
title=
"项目人员"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
ename=
"inqu_status-0-companyName"
cname=
"公司名称"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-projName"
cname=
"项目名称"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-personName"
cname=
"姓名"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-personIdCard"
cname=
"身份证号"
colWidth=
"3"
/>
<EF:EFInput
ename=
"inqu_status-0-personPhone"
cname=
"电话"
colWidth=
"3"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
>
<EF:EFColumn
ename=
"id"
cname=
"主键"
hidden=
"true"
/>
<EF:EFColumn
ename=
"createdBy"
cname=
"创建人"
hidden=
"true"
/>
<EF:EFColumn
ename=
"updatedBy"
cname=
"修改人"
hidden=
"true"
/>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
locked=
"true"
enable=
"true"
width=
"100"
align=
"center"
/>
<EF:EFColumn
ename=
"companyCode"
cname=
"公司名称"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编码"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"120"
align=
"center"
readOnly=
"true"
/>
<EF:EFColumn
ename=
"personDepName"
cname=
"所属部门"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"personName"
cname=
"姓名"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"personPhone"
cname=
"电话"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"personIdCard"
cname=
"身份证号"
enable=
"true"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"createdTime"
cname=
"创建日期"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"createdName"
cname=
"创建人"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"updatedTime"
cname=
"修改日期"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"updatedName"
cname=
"修改人"
enable=
"false"
width=
"120"
align=
"center"
/>
</EF:EFGrid>
</EF:EFRegion>
</EF:EFPage>
src/main/webapp/common/js/common.js
View file @
336d0c9a
...
...
@@ -596,3 +596,4 @@ function loadChange(grid,e,field) {
// 触发 td.click 事件,
td
.
trigger
(
"click"
);
}
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