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
c03ade8a
Commit
c03ade8a
authored
Jul 01, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目立项优化;
parent
5f7c310b
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
93 additions
and
70 deletions
+93
-70
ServiceHGSC001.java
.../java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
+10
-1
ServiceHGSC001C.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC001C.java
+3
-5
ServiceHGSC001D.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC001D.java
+2
-1
ServiceHGSC001U.java
...java/com/baosight/hggp/hg/sc/service/ServiceHGSC001U.java
+2
-1
HGXSTools.java
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
+14
-0
HGSC001C.js
src/main/webapp/HG/SC/HGSC001C.js
+19
-19
HGSC001C.jsp
src/main/webapp/HG/SC/HGSC001C.jsp
+4
-4
HGSC001D.js
src/main/webapp/HG/SC/HGSC001D.js
+12
-12
HGSC001D.jsp
src/main/webapp/HG/SC/HGSC001D.jsp
+4
-4
HGSC001U.js
src/main/webapp/HG/SC/HGSC001U.js
+19
-19
HGSC001U.jsp
src/main/webapp/HG/SC/HGSC001U.jsp
+4
-4
No files found.
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001.java
View file @
c03ade8a
...
...
@@ -11,6 +11,7 @@ import com.baosight.hggp.hg.sc.tools.HGSCTools;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Dept
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.*
;
import
com.baosight.iplat4j.core.ei.EiConstant
;
import
com.baosight.iplat4j.core.ei.EiInfo
;
...
...
@@ -214,9 +215,17 @@ public class ServiceHGSC001 extends ServiceBase {
public
EiInfo
userByCompanyComboBox
(
EiInfo
inInfo
)
throws
InstantiationException
,
IllegalAccessException
{
String
companyCode
=
inInfo
.
getCellStr
(
EiConstant
.
queryBlock
,
EiConstant
.
STATUS_DEFAULT
,
HGSC001
.
FIELD_company_code
);
EiInfoUtils
.
addBlock
(
inInfo
,
"userByCompany"
,
UserSessionUtils
.
getUserByCompany
(
companyCode
),
User
.
class
);
CommonMethod
.
comboBoxDefaultValue
(
inInfo
,
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
.
getBlockId
(),
"loginName"
,
"userName"
);
return
inInfo
;
}
/**
* 用户下拉框
* @param inInfo
* @return
*/
public
EiInfo
allUserComboBox
(
EiInfo
inInfo
)
throws
InstantiationException
,
IllegalAccessException
{
EiInfoUtils
.
addBlock
(
inInfo
,
"userAll"
,
HGXSTools
.
XsUser
.
listAll
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
return
inInfo
;
}
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001C.java
View file @
c03ade8a
...
...
@@ -6,13 +6,12 @@ import com.baosight.hggp.core.security.UserSessionUtils;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.domain.HGSC001A
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Dept
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
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
;
...
...
@@ -39,8 +38,7 @@ public class ServiceHGSC001C extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
PROJ_TYPE_BLOCK_ID
),
map
,
false
);
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"userAll"
,
HGXSTools
.
XsUser
.
listAll
(
UserSessionUtils
.
getAccountCode
()),
User
.
class
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
catch
(
InstantiationException
e
)
{
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001D.java
View file @
c03ade8a
...
...
@@ -10,6 +10,7 @@ import com.baosight.hggp.hg.sc.tools.HGSCTools;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Dept
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
...
...
@@ -41,7 +42,7 @@ public class ServiceHGSC001D extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"depByCompany"
,
UserSessionUtils
.
getDepByCompany
((
String
)
resultMap
.
get
(
HGSC001
.
FIELD_company_code
)),
Dept
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"user
ByCompany"
,
UserSessionUtils
.
getUserByCompany
((
String
)
resultMap
.
get
(
HGSC001
.
FIELD_company_code
)),
User
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"user
All"
,
HGXSTools
.
XsUser
.
listAll
(
UserSessionUtils
.
getAccountCode
(
)),
User
.
class
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
catch
(
InstantiationException
e
)
{
...
...
src/main/java/com/baosight/hggp/hg/sc/service/ServiceHGSC001U.java
View file @
c03ade8a
...
...
@@ -9,6 +9,7 @@ import com.baosight.hggp.hg.sc.tools.HGSCTools;
import
com.baosight.hggp.hg.xs.domain.Company
;
import
com.baosight.hggp.hg.xs.domain.Dept
;
import
com.baosight.hggp.hg.xs.domain.User
;
import
com.baosight.hggp.hg.xs.tools.HGXSTools
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.EiInfoUtils
;
import
com.baosight.hggp.util.LogUtils
;
...
...
@@ -43,7 +44,7 @@ public class ServiceHGSC001U extends ServiceBase {
CommonMethod
.
initBlock
(
inInfo
,
Arrays
.
asList
(
DdynamicEnum
.
CUSTOMER_RECORD_BLOCK_ID
),
map
,
false
);
EiInfoUtils
.
addBlock
(
inInfo
,
"roleCompany"
,
UserSessionUtils
.
getRoleCompany
(),
Company
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"depByCompany"
,
UserSessionUtils
.
getDepByCompany
((
String
)
resultMap
.
get
(
HGSC001
.
FIELD_company_code
)),
Dept
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"user
ByCompany"
,
UserSessionUtils
.
getUserByCompany
((
String
)
resultMap
.
get
(
HGSC001
.
FIELD_company_code
)),
User
.
class
);
EiInfoUtils
.
addBlock
(
inInfo
,
"user
All"
,
HGXSTools
.
XsUser
.
listAll
(
UserSessionUtils
.
getAccountCode
(
)),
User
.
class
);
}
catch
(
PlatException
e
)
{
LogUtils
.
setDetailMsg
(
inInfo
,
e
,
"初始化失败"
);
}
catch
(
InstantiationException
e
)
{
...
...
src/main/java/com/baosight/hggp/hg/xs/tools/HGXSTools.java
View file @
c03ade8a
...
...
@@ -78,6 +78,20 @@ public class HGXSTools {
queryMap
.
put
(
"loginNames"
,
loginNames
);
return
DaoBase
.
getInstance
().
query
(
HGSqlConstant
.
HgXsUser
.
QUERY
,
queryMap
);
}
/**
* 查询
* @param accountCode
* @return
*/
public
static
List
<
User
>
listAll
(
String
accountCode
)
{
if
(
StringUtils
.
isBlank
(
accountCode
))
{
return
null
;
}
Map
queryMap
=
new
HashMap
();
queryMap
.
put
(
User
.
FIELD_ACCOUNT_CODE
,
accountCode
);
return
DaoBase
.
getInstance
().
query
(
HGSqlConstant
.
HgXsUser
.
QUERY
,
queryMap
);
}
/**
* 查询
...
...
src/main/webapp/HG/SC/HGSC001C.js
View file @
c03ade8a
$
(
function
()
{
var
user
ByCompany
;
//= __eiInfo.getBlock("userByCompany
").getMappedRows();
var
user
All
=
__eiInfo
.
getBlock
(
"userAll
"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
detail
=
{
pageable
:
false
,
columns
:
[{
field
:
"userCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
user
ByCompany
.
length
;
i
++
)
{
if
(
user
ByCompany
[
i
][
'loginName'
]
===
dataItem
[
'userCode'
])
{
dataItem
[
'userName'
]
=
user
ByCompany
[
i
][
'userName'
];
dataItem
[
'userPhone'
]
=
user
ByCompany
[
i
][
'mobile'
];
dataItem
[
'userDepCode'
]
=
user
ByCompany
[
i
][
'depCode'
];
dataItem
[
'userDepName'
]
=
user
ByCompany
[
i
][
'depName'
];
return
user
ByCompany
[
i
][
'userName'
];
for
(
let
i
=
0
;
i
<
user
All
.
length
;
i
++
)
{
if
(
user
All
[
i
][
'loginName'
]
===
dataItem
[
'userCode'
])
{
dataItem
[
'userName'
]
=
user
All
[
i
][
'userName'
];
dataItem
[
'userPhone'
]
=
user
All
[
i
][
'mobile'
];
dataItem
[
'userDepCode'
]
=
user
All
[
i
][
'depCode'
];
dataItem
[
'userDepName'
]
=
user
All
[
i
][
'depName'
];
return
user
All
[
i
][
'userName'
];
}
}
return
dataItem
[
"userName"
];
...
...
@@ -23,7 +23,7 @@ $(function () {
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
dataSource
:
user
ByCompany
,
dataSource
:
user
All
,
minLength
:
0
,
dataTextField
:
"userName"
,
dataValueField
:
"loginName"
,
...
...
@@ -47,13 +47,13 @@ $(function () {
}
});
},
onAdd
:
function
(
e
)
{
if
(
!
userByCompany
){
message
(
"请选择分包方!"
);
e
.
preventDefault
();
return
;
}
},
//
onAdd: function(e) {
// if(!userAll
){
//
message("请选择分包方!");
//
e.preventDefault();
//
return;
//
}
//
},
onDelete
:
function
(
e
)
{
detailGrid
.
removeRows
(
detailGrid
.
getCheckedRowsIndex
())
e
.
preventDefault
();
...
...
@@ -89,11 +89,11 @@ $(function () {
*/
function
loadProjMg
(
companyCode
){
var
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
companyCode
);
EiCommunicator
.
send
(
"HGSC001"
,
"user
ByCompany
ComboBox"
,
inInfo
,
{
//
inInfo.set("inqu_status-0-companyCode",companyCode);
EiCommunicator
.
send
(
"HGSC001"
,
"user
All
ComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
var
input
=
$
(
"#inqu_status-0-groupCode"
);
user
ByCompany
=
ei
.
getBlock
(
"userByCompany
"
).
getMappedRows
();
user
All
=
ei
.
getBlock
(
"userAll
"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
...
...
src/main/webapp/HG/SC/HGSC001C.jsp
View file @
c03ade8a
...
...
@@ -21,13 +21,13 @@
</EF:EFCascadeSelect>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-subcontractName"
cname=
"
分包
方名称"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
分包
方"
ename=
"result-0-subcontractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
>
<EF:EFInput
ename=
"result-0-subcontractName"
cname=
"
甲
方名称"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
甲
方"
ename=
"result-0-subcontractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOptions
blockId=
"roleCompany"
valueField=
"companyCode"
textField=
"companyName"
/>
</EF:EFSelect>
<EF:EFInput
ename=
"result-0-genralContractName"
cname=
"
总包
方名称"
type=
"hidden"
/>
<EF:EFCascadeSelect
cascadeFrom=
"result-0-subcontractCode"
cname=
"
总包
方"
ename=
"result-0-genralContractCode"
<EF:EFInput
ename=
"result-0-genralContractName"
cname=
"
乙
方名称"
type=
"hidden"
/>
<EF:EFCascadeSelect
cascadeFrom=
"result-0-subcontractCode"
cname=
"
乙
方"
ename=
"result-0-genralContractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
defaultValue=
""
serviceName=
"HGSC001"
methodName=
"genralContractComboBox"
resultId=
"customer_record_block_id"
textField=
"textField"
valueField=
"valueField"
>
...
...
src/main/webapp/HG/SC/HGSC001D.js
View file @
c03ade8a
$
(
function
()
{
var
user
ByCompany
=
__eiInfo
.
getBlock
(
"userByCompany
"
).
getMappedRows
();
var
user
All
=
__eiInfo
.
getBlock
(
"userAll
"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
detail
=
{
pageable
:
false
,
columns
:
[{
field
:
"userCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
user
ByCompany
.
length
;
i
++
)
{
if
(
user
ByCompany
[
i
][
'loginName'
]
===
dataItem
[
'userCode'
])
{
dataItem
[
'userName'
]
=
user
ByCompany
[
i
][
'userName'
];
dataItem
[
'userPhone'
]
=
user
ByCompany
[
i
][
'mobile'
];
dataItem
[
'userDepCode'
]
=
user
ByCompany
[
i
][
'depCode'
];
dataItem
[
'userDepName'
]
=
user
ByCompany
[
i
][
'depName'
];
return
user
ByCompany
[
i
][
'userName'
];
for
(
let
i
=
0
;
i
<
user
All
.
length
;
i
++
)
{
if
(
user
All
[
i
][
'loginName'
]
===
dataItem
[
'userCode'
])
{
dataItem
[
'userName'
]
=
user
All
[
i
][
'userName'
];
dataItem
[
'userPhone'
]
=
user
All
[
i
][
'mobile'
];
dataItem
[
'userDepCode'
]
=
user
All
[
i
][
'depCode'
];
dataItem
[
'userDepName'
]
=
user
All
[
i
][
'depName'
];
return
user
All
[
i
][
'userName'
];
}
}
return
dataItem
[
"userName"
];
...
...
@@ -23,7 +23,7 @@ $(function () {
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
dataSource
:
user
ByCompany
,
dataSource
:
user
All
,
minLength
:
0
,
dataTextField
:
"userName"
,
dataValueField
:
"loginName"
,
...
...
@@ -60,7 +60,7 @@ $(function () {
$
(
"#result-0-subcontractCode"
).
change
(
function
()
{
let
textField
=
IPLAT
.
EFSelect
.
text
(
$
(
"#result-0-subcontractCode"
));
$
(
"#result-0-subcontractName"
).
val
(
textField
);
loadProjMg
(
IPLAT
.
EFSelect
.
value
(
$
(
"#result-0-subcontractCode"
)));
//
loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode")));
});
$
(
"#result-0-genralContractCode"
).
change
(
function
()
{
let
textField
=
IPLAT
.
EFSelect
.
text
(
$
(
"#result-0-genralContractCode"
));
...
...
@@ -74,10 +74,10 @@ $(function () {
function
loadProjMg
(
companyCode
){
var
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
companyCode
);
EiCommunicator
.
send
(
"HGSC001"
,
"user
ByCompany
ComboBox"
,
inInfo
,
{
EiCommunicator
.
send
(
"HGSC001"
,
"user
All
ComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
var
input
=
$
(
"#inqu_status-0-groupCode"
);
user
ByCompany
=
ei
.
getBlock
(
"userByCompany
"
).
getMappedRows
();
user
All
=
ei
.
getBlock
(
"userAll
"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
...
...
src/main/webapp/HG/SC/HGSC001D.jsp
View file @
c03ade8a
...
...
@@ -21,13 +21,13 @@
</EF:EFCascadeSelect>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-subcontractName"
cname=
"
分包
方名称"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
分包
方"
ename=
"result-0-subcontractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
>
<EF:EFInput
ename=
"result-0-subcontractName"
cname=
"
甲
方名称"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
甲
方"
ename=
"result-0-subcontractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOptions
blockId=
"roleCompany"
valueField=
"companyCode"
textField=
"companyName"
/>
</EF:EFSelect>
<EF:EFInput
ename=
"result-0-genralContractName"
cname=
"
总包
方名称"
type=
"hidden"
/>
<EF:EFCascadeSelect
cascadeFrom=
"result-0-subcontractCode"
cname=
"
总包
方"
ename=
"result-0-genralContractCode"
<EF:EFInput
ename=
"result-0-genralContractName"
cname=
"
乙
方名称"
type=
"hidden"
/>
<EF:EFCascadeSelect
cascadeFrom=
"result-0-subcontractCode"
cname=
"
乙
方"
ename=
"result-0-genralContractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
defaultValue=
""
serviceName=
"HGSC001"
methodName=
"genralContractComboBox"
resultId=
"customer_record_block_id"
textField=
"textField"
valueField=
"valueField"
>
...
...
src/main/webapp/HG/SC/HGSC001U.js
View file @
c03ade8a
$
(
function
()
{
var
user
ByCompany
=
__eiInfo
.
getBlock
(
"userByCompany
"
).
getMappedRows
();
var
user
All
=
__eiInfo
.
getBlock
(
"userAll
"
).
getMappedRows
();
IPLATUI
.
EFGrid
.
detail
=
{
pageable
:
false
,
columns
:
[{
field
:
"userCode"
,
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
user
ByCompany
.
length
;
i
++
)
{
if
(
user
ByCompany
[
i
][
'loginName'
]
===
dataItem
[
'userCode'
])
{
dataItem
[
'userName'
]
=
user
ByCompany
[
i
][
'userName'
];
dataItem
[
'userPhone'
]
=
user
ByCompany
[
i
][
'mobile'
];
dataItem
[
'userDepCode'
]
=
user
ByCompany
[
i
][
'depCode'
];
dataItem
[
'userDepName'
]
=
user
ByCompany
[
i
][
'depName'
];
return
user
ByCompany
[
i
][
'userName'
];
for
(
let
i
=
0
;
i
<
user
All
.
length
;
i
++
)
{
if
(
user
All
[
i
][
'loginName'
]
===
dataItem
[
'userCode'
])
{
dataItem
[
'userName'
]
=
user
All
[
i
][
'userName'
];
dataItem
[
'userPhone'
]
=
user
All
[
i
][
'mobile'
];
dataItem
[
'userDepCode'
]
=
user
All
[
i
][
'depCode'
];
dataItem
[
'userDepName'
]
=
user
All
[
i
][
'depName'
];
return
user
All
[
i
][
'userName'
];
}
}
return
dataItem
[
"userName"
];
...
...
@@ -23,7 +23,7 @@ $(function () {
input
.
attr
(
"id"
,
options
.
field
);
input
.
appendTo
(
container
);
input
.
kendoDropDownList
({
dataSource
:
user
ByCompany
,
dataSource
:
user
All
,
minLength
:
0
,
dataTextField
:
"userName"
,
dataValueField
:
"loginName"
,
...
...
@@ -47,13 +47,13 @@ $(function () {
}
});
},
onAdd
:
function
(
e
)
{
if
(
!
userByCompany
){
message
(
"请选择分包方!"
);
e
.
preventDefault
();
return
;
}
},
//
onAdd: function(e) {
// if(!userAll
){
//
message("请选择分包方!");
//
e.preventDefault();
//
return;
//
}
//
},
onDelete
:
function
(
e
)
{
detailGrid
.
removeRows
(
detailGrid
.
getCheckedRowsIndex
())
e
.
preventDefault
();
...
...
@@ -71,7 +71,7 @@ $(function () {
$
(
"#result-0-subcontractCode"
).
change
(
function
()
{
let
textField
=
IPLAT
.
EFSelect
.
text
(
$
(
"#result-0-subcontractCode"
));
$
(
"#result-0-subcontractName"
).
val
(
textField
);
loadProjMg
(
IPLAT
.
EFSelect
.
value
(
$
(
"#result-0-subcontractCode"
)));
//
loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode")));
});
$
(
"#result-0-genralContractCode"
).
change
(
function
()
{
let
textField
=
IPLAT
.
EFSelect
.
text
(
$
(
"#result-0-genralContractCode"
));
...
...
@@ -85,10 +85,10 @@ $(function () {
function
loadProjMg
(
companyCode
){
var
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
companyCode
);
EiCommunicator
.
send
(
"HGSC001"
,
"user
ByCompany
ComboBox"
,
inInfo
,
{
EiCommunicator
.
send
(
"HGSC001"
,
"user
All
ComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
var
input
=
$
(
"#inqu_status-0-groupCode"
);
user
ByCompany
=
ei
.
getBlock
(
"userByCompany
"
).
getMappedRows
();
user
All
=
ei
.
getBlock
(
"userAll
"
).
getMappedRows
();
},
onFail
:
function
(
ei
)
{
}
},
{
async
:
false
});
...
...
src/main/webapp/HG/SC/HGSC001U.jsp
View file @
c03ade8a
...
...
@@ -23,13 +23,13 @@
</EF:EFCascadeSelect>
</div>
<div
class=
"row"
>
<EF:EFInput
ename=
"result-0-subcontractName"
cname=
"
分包
方名称"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
分包
方"
ename=
"result-0-subcontractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
>
<EF:EFInput
ename=
"result-0-subcontractName"
cname=
"
甲
方名称"
type=
"hidden"
/>
<EF:EFSelect
cname=
"
甲
方"
ename=
"result-0-subcontractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
>
<EF:EFOption
label=
"-- 请选择 --"
value=
""
/>
<EF:EFOptions
blockId=
"roleCompany"
valueField=
"companyCode"
textField=
"companyName"
/>
</EF:EFSelect>
<EF:EFInput
ename=
"result-0-genralContractName"
cname=
"
总包
方名称"
type=
"hidden"
/>
<EF:EFCascadeSelect
cascadeFrom=
"result-0-subcontractCode"
cname=
"
总包
方"
ename=
"result-0-genralContractCode"
<EF:EFInput
ename=
"result-0-genralContractName"
cname=
"
乙
方名称"
type=
"hidden"
/>
<EF:EFCascadeSelect
cascadeFrom=
"result-0-subcontractCode"
cname=
"
乙
方"
ename=
"result-0-genralContractCode"
colWidth=
"4"
required=
"true"
filter=
"contains"
defaultValue=
""
serviceName=
"HGSC001"
methodName=
"genralContractComboBox"
resultId=
"customer_record_block_id"
textField=
"textField"
valueField=
"valueField"
>
...
...
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