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
5070c837
Commit
5070c837
authored
Oct 10, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.去掉页面上的公司信息,页面页数调整为默认500
parent
3c17b7f9
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
106 additions
and
371 deletions
+106
-371
ServiceHGWD001E.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001E.java
+19
-0
foot.jsp
...n/resources/META-INF/resources/WEB-INF/fragments/foot.jsp
+5
-0
HGSC101.js
src/main/webapp/HG/SC/HGSC101.js
+2
-2
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+5
-35
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+2
-29
HGWD001A.js
src/main/webapp/HG/WD/HGWD001A.js
+3
-14
HGWD001A.jsp
src/main/webapp/HG/WD/HGWD001A.jsp
+2
-13
HGWD001B.js
src/main/webapp/HG/WD/HGWD001B.js
+2
-2
HGWD001B.jsp
src/main/webapp/HG/WD/HGWD001B.jsp
+2
-4
HGWD001C.js
src/main/webapp/HG/WD/HGWD001C.js
+1
-1
HGWD001C.jsp
src/main/webapp/HG/WD/HGWD001C.jsp
+2
-4
HGWD001E.js
src/main/webapp/HG/WD/HGWD001E.js
+7
-68
HGWD001E.jsp
src/main/webapp/HG/WD/HGWD001E.jsp
+7
-17
HGWD001F.js
src/main/webapp/HG/WD/HGWD001F.js
+7
-55
HGWD001F.jsp
src/main/webapp/HG/WD/HGWD001F.jsp
+2
-12
HGWD001G.js
src/main/webapp/HG/WD/HGWD001G.js
+6
-68
HGWD001G.jsp
src/main/webapp/HG/WD/HGWD001G.jsp
+3
-12
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+1
-2
HGWD002.jsp
src/main/webapp/HG/WD/HGWD002.jsp
+3
-3
HGWD003.js
src/main/webapp/HG/WD/HGWD003.js
+4
-0
HGWD003.jsp
src/main/webapp/HG/WD/HGWD003.jsp
+2
-2
HGWD003A.js
src/main/webapp/HG/WD/HGWD003A.js
+2
-2
HGWD003A.jsp
src/main/webapp/HG/WD/HGWD003A.jsp
+1
-1
HGWD003B.js
src/main/webapp/HG/WD/HGWD003B.js
+2
-2
HGWD003B.jsp
src/main/webapp/HG/WD/HGWD003B.jsp
+1
-1
HGWD004.js
src/main/webapp/HG/WD/HGWD004.js
+2
-3
HGWD004.jsp
src/main/webapp/HG/WD/HGWD004.jsp
+2
-14
HGWD009.js
src/main/webapp/HG/WD/HGWD009.js
+4
-0
HGWD009.jsp
src/main/webapp/HG/WD/HGWD009.jsp
+2
-2
HGWD009A.js
src/main/webapp/HG/WD/HGWD009A.js
+2
-2
HGWD009A.jsp
src/main/webapp/HG/WD/HGWD009A.jsp
+1
-1
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001E.java
View file @
5070c837
...
...
@@ -8,12 +8,15 @@ import com.baosight.hggp.core.dao.DaoUtils;
import
com.baosight.hggp.core.enums.OrgTypeEnum
;
import
com.baosight.hggp.core.tools.Iplat4jTools
;
import
com.baosight.hggp.hg.constant.HGConstant
;
import
com.baosight.hggp.hg.sc.domain.HGSC001
;
import
com.baosight.hggp.hg.sc.tools.HGSCTools
;
import
com.baosight.hggp.hg.wd.constant.HgWdConstant
;
import
com.baosight.hggp.hg.wd.domain.HGWD001
;
import
com.baosight.hggp.hg.wd.domain.HGWD001A
;
import
com.baosight.hggp.hg.wd.domain.HGWD005
;
import
com.baosight.hggp.hg.wd.tools.HGWDTools
;
import
com.baosight.hggp.hg.xs.domain.Org
;
import
com.baosight.hggp.util.AssertUtils
;
import
com.baosight.hggp.util.CommonMethod
;
import
com.baosight.hggp.util.LogUtils
;
import
com.baosight.hggp.util.contants.ACConstants
;
...
...
@@ -74,6 +77,8 @@ public class ServiceHGWD001E extends ServiceEPBase {
HGWD001
hgwd001
=
new
HGWD001
();
hgwd001
.
fromMap
(
resultRow
);
hgwd001
.
setStatus
(
HgWdConstant
.
FileStatus
.
S_0
);
// 设置项目信息
this
.
setProjectInfo
(
hgwd001
);
if
(
hgwd001
.
getId
()
==
null
||
hgwd001
.
getId
()
==
0
)
{
this
.
add
(
hgwd001
);
}
else
{
...
...
@@ -147,4 +152,18 @@ public class ServiceHGWD001E extends ServiceEPBase {
inInfo
.
addBlock
(
productBlock
);
return
inInfo
;
}
/**
* 设置项目信息
*
* @param fWd001
*/
private
void
setProjectInfo
(
HGWD001
fWd001
)
{
AssertUtils
.
isEmpty
(
fWd001
.
getProjCode
(),
"项目不能为空"
);
HGSC001
dbSc001
=
HGSCTools
.
Hgsc001
.
queryByCode
(
fWd001
.
getProjCode
());
AssertUtils
.
isNull
(
dbSc001
,
String
.
format
(
"项目【%s】不存在"
,
fWd001
.
getProjCode
()));
fWd001
.
setProjName
(
dbSc001
.
getProjName
());
fWd001
.
setProjType
(
dbSc001
.
getProjType
());
}
}
src/main/resources/META-INF/resources/WEB-INF/fragments/foot.jsp
View file @
5070c837
...
...
@@ -25,3 +25,8 @@
<script src="${ctx}/common/js/common.js"></script>
<script src="${ctx}/common/js/jsUtils.js"></script>
<EF:EFInput cname="parentFormEname" ename="efParentFormEname" type="hidden"/>
<style>
.k-pager-sm .k-pager-info {
display: inline;
}
</style>
src/main/webapp/HG/SC/HGSC101.js
View file @
5070c837
...
...
@@ -4,8 +4,8 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSizes
:
[
20
,
100
,
250
,
500
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
500
],
},
columns
:
[{
field
:
"operator"
,
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
5070c837
$
(
function
()
{
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"companyBox_block_id"
).
getMappedRows
();
var
projCodeBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
const
init
=
()
=>
{
...
...
@@ -107,7 +106,6 @@ $(function () {
$
(
"[name = 'inqu_status-0-fileId']"
).
val
(
eNameValue
);
$
(
"[name = 'inqu_status-0-leafLevel']"
).
val
(
_data
.
leafLevel
==
null
?
0
:
_data
.
leafLevel
);
$
(
"[name = 'inqu_status-0-projCode']"
).
val
(
_data
.
projCode
);
$
(
"[name = 'inqu_status-0-companyCode']"
).
val
(
_data
.
companyCode
);
$
(
"[name = 'inqu_status-0-type']"
).
val
(
typeValue
);
$
(
"[name = 'inqu_status-0-fileName']"
).
val
(
_data
.
text
);
$
(
"[name = 'inqu_status-0-leafType']"
).
val
(
_data
.
leafType
);
...
...
@@ -204,32 +202,19 @@ $(function () {
$
(
"#add"
).
on
(
"click"
,
()
=>
{
const
parentId
=
$
(
"#inqu_status-0-parentId"
).
val
();
let
projCode
=
$
(
"#inqu_status-0-projCode"
).
val
();
let
companyCode
=
$
(
"#inqu_status-0-companyCode"
).
val
();
let
leafLevel
=
parseInt
(
$
(
"#inqu_status-0-leafLevel"
).
val
())
+
1
;
let
type
=
$
(
"#inqu_status-0-type"
).
val
();
if
(
null
==
parentId
||
""
===
parentId
)
{
message
(
"请在文档目录树选择任意节点后新增文档目录"
);
return
}
/*if (type == "company"){
let params = "&inqu_status-0-parentId=" + parentId+"&inqu_status-0-companyCode="+companyCode+"" +
"&inqu_status-0-projCode="+projCode+"&inqu_status-0-leafLevel="+leafLevel;
JSColorbox.open({
href: "HGWD001G?methodName=initLoad" + params,
title: "<div style='text-align: center;'>新增项目</div>",
width: "70%",
height: "70%",
callbackName: addCallback
});
}*/
let
params
=
"&inqu_status-0-parentId="
+
parentId
+
""
+
"&inqu_status-0-companyCode="
+
companyCode
+
""
+
"&inqu_status-0-projCode="
+
projCode
+
"&inqu_status-0-leafLevel="
+
leafLevel
;
JSColorbox
.
open
({
href
:
"HGWD001E?methodName=initLoad"
+
params
,
title
:
"<div style='text-align: center;'>新增文件</div>"
,
width
:
"
70
%"
,
height
:
"
70
%"
,
width
:
"
85
%"
,
height
:
"
85
%"
,
callbackName
:
addCallback
});
...
...
@@ -299,7 +284,6 @@ $(function () {
$
(
"#edit"
).
on
(
"click"
,
()
=>
{
const
orgId
=
$
(
"#inqu_status-0-parentId"
).
val
();
let
projCode
=
$
(
"#inqu_status-0-projCode"
).
val
();
let
companyCode
=
$
(
"#inqu_status-0-companyCode"
).
val
();
let
leafLevel
=
parseInt
(
$
(
"#inqu_status-0-leafLevel"
).
val
())
+
1
;
let
type
=
$
(
"#inqu_status-0-type"
).
val
();
if
(
null
==
orgId
||
""
===
orgId
||
"root"
===
orgId
)
{
...
...
@@ -310,7 +294,7 @@ $(function () {
message2
(
"提示"
,
"项目无法编辑!"
);
return
}
let
params
=
"&inqu_status-0-fileId="
+
orgId
+
"&inqu_status-0-
companyCode="
+
companyCode
+
"&inqu_status-0-
projCode="
+
projCode
;
let
params
=
"&inqu_status-0-fileId="
+
orgId
+
"&inqu_status-0-projCode="
+
projCode
;
JSColorbox
.
open
({
href
:
"HGWD001F?methodName=initLoad"
+
params
,
title
:
"<div style='text-align: center;'>编辑文件</div>"
,
...
...
@@ -318,16 +302,6 @@ $(function () {
height
:
"70%"
,
callbackName
:
editCallback
});
/*if (leafLevel == "2"){
let params = "&inqu_status-0-fileId="+orgId+"&inqu_status-0-companyCode="+companyCode+"&inqu_status-0-projCode="+projCode;
JSColorbox.open({
href: "HGWD001G?methodName=initLoad" + params,
title: "<div style='text-align: center;'>编辑项目</div>",
width: "70%",
height: "70%",
callbackName: addCallback
});
}*/
})
$
(
"#categoryTree"
).
mousedown
(
function
(
e
)
{
...
...
@@ -358,7 +332,6 @@ $(function () {
// 设置当前选中的节点信息
$
(
"[name = 'inqu_status-0-parentId']"
).
val
(
orgId
);
$
(
"[name = 'inqu_status-0-projCode']"
).
val
(
data
.
projCode
);
$
(
"[name = 'inqu_status-0-companyCode']"
).
val
(
data
.
companyCode
);
$
(
"[name = 'inqu_status-0-type']"
).
val
(
data
.
type
);
/*$("[name = 'inqu_status-0-fileId']").val(data.ename);*/
$
(
"[name = 'inqu_status-0-fileName']"
).
val
(
data
.
text
);
...
...
@@ -401,12 +374,11 @@ $(function () {
}
};
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
pageable
:
{
pageSize
:
2
0
,
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
loadComplete
:
function
(
grid
)
{
...
...
@@ -912,7 +884,6 @@ function saveFunc() {
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
$
(
"#selectOrgWindow"
).
data
(
"kendoWindow"
).
close
()
$
(
"#inqu_status1-0-companyCode"
).
val
(
''
);
$
(
"#inqu_status1-0-projName"
).
val
(
''
);
$
(
"#inqu_status1-0-fileType"
).
val
(
''
);
$
(
"#inqu_status1-0-fileName"
).
val
(
''
);
...
...
@@ -964,7 +935,6 @@ function saveProtFunc() {
if
(
ei
.
getStatus
()
>=
0
)
{
try
{
$
(
"#selectProjWindow"
).
data
(
"kendoWindow"
).
close
()
$
(
"#inqu_status2-0-companyCode"
).
val
(
''
);
$
(
"#inqu_status2-0-projName"
).
val
(
''
);
const
tree
=
$
(
'#categoryTree'
).
data
(
'kendoTreeView'
);
// 刷新树节点
...
...
src/main/webapp/HG/WD/HGWD001.jsp
View file @
5070c837
...
...
@@ -51,7 +51,6 @@
<div
id=
"right-pane"
class=
"i-fit-height"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"公司代码"
ename=
"companyCode"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"项目代码"
ename=
"projCode"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"文档库id"
ename=
"parentId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"文档库id"
ename=
"fileId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
...
...
@@ -68,8 +67,8 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
personal=
"true"
sort=
"all"
serviceName=
"HGWD099"
queryMethod=
"query
"
deleteMethod=
"delete"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"no"
showCount=
"true"
height=
"74vh"
sort=
"all
"
serviceName=
"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=
"140"
align=
"center"
sort=
"false"
/>
...
...
@@ -108,10 +107,6 @@
<EF:EFWindow
id=
"selectOrgWindow"
width=
"70%"
height=
"70%"
title=
"选择文档"
>
<EF:EFRegion
id=
"inqu1"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFSelect
blockId=
"inqu_status1"
row=
"0"
ename=
"companyCode"
cname=
"公司名称"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"companyBox_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFInput
blockId=
"inqu_status1"
row=
"0"
ename=
"projName"
cname=
"项目名称"
colWidth=
"3"
placeholder=
"模糊查询项目名称"
/>
<EF:EFSelect
blockId=
"inqu_status1"
row=
"0"
ename=
"fileType"
cname=
"文件类型"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
...
...
@@ -124,15 +119,6 @@
<EF:EFGrid
blockId=
"result1"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
queryMethod=
"query1"
>
<EF:EFColumn
ename=
"id"
primaryKey=
"true"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"parentId"
cname=
"上级ID"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
readonly=
"true"
width=
"160"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"companyBox_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"160"
enable=
"true"
readonly=
"true"
align=
"center"
required=
"true"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"projCode"
cname=
"项目名称"
blockName=
"proj_record_block_id"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
...
...
@@ -156,10 +142,6 @@
<EF:EFWindow
id=
"selectProjWindow"
width=
"70%"
height=
"70%"
title=
"选择文档"
>
<EF:EFRegion
id=
"inqu2"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFSelect
blockId=
"inqu_status2"
row=
"0"
ename=
"companyCode"
cname=
"公司名称"
colWidth=
"3"
filter=
"contains"
>
<EF:EFOption
label=
"全部"
value=
""
/>
<EF:EFOptions
blockId=
"companyBox_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFSelect>
<EF:EFInput
blockId=
"inqu_status2"
row=
"0"
ename=
"projName"
cname=
"项目名称"
colWidth=
"3"
placeholder=
"模糊查询项目名称"
/>
</div>
...
...
@@ -168,15 +150,6 @@
<EF:EFGrid
blockId=
"result2"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"single"
queryMethod=
"query2"
>
<EF:EFColumn
ename=
"id"
primaryKey=
"true"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"parentId"
cname=
"上级ID"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"companyCode"
cname=
"公司名称"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
maxLength=
"16"
readonly=
"true"
width=
"160"
required=
"true"
align=
"center"
filter=
"contains"
sort=
"true"
>
<EF:EFOptions
blockId=
"companyBox_block_id"
textField=
"textField"
valueField=
"valueField"
/>
</EF:EFComboColumn>
<EF:EFColumn
ename=
"companyName"
cname=
"公司名称"
width=
"160"
enable=
"true"
readonly=
"true"
align=
"center"
required=
"true"
hidden=
"true"
/>
<EF:EFComboColumn
ename=
"projCode"
cname=
"项目名称"
blockName=
"proj_record_block_id"
columnTemplate=
"#=textField#"
itemTemplate=
"#=textField#"
textField=
"textField"
valueField=
"valueField"
...
...
src/main/webapp/HG/WD/HGWD001A.js
View file @
5070c837
...
...
@@ -4,21 +4,10 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
1
0
,
pageSizes
:
[
20
,
50
,
100
,
2
0
0
,
500
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
2
5
0
,
500
],
},
columns
:
[
/*{
field: "operator",
title: "操作",
template: function (model) {
let template = '';
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showQueryRecord(\'' + model.fileId + '\')" >预览记录</a>';
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showDownloadRecord(\'' + model.fileId + '\')" >下载记录</a>';
return template;
}
}, */
{
columns
:
[{
field
:
"changeStart"
,
template
:
function
(
item
)
{
let
template
=
item
[
"changeStart"
]
...
...
src/main/webapp/HG/WD/HGWD001A.jsp
View file @
5070c837
...
...
@@ -20,10 +20,6 @@
<EF:EFPage title="变更记录">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFSelect blockId="inqu_status" row="0" ename="projCode" cname="项目名称" colWidth="3" filter="contains" readonly="true">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="proj_record_block_id" textField="textField" valueField="valueField"/>
...
...
@@ -39,16 +35,9 @@
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息
">
<EF:EFGrid blockId="result" autoDraw="override
" isFloat="true">
<EF:EFRegion id="result" title="明细信息" fitHeight="true
">
<EF:EFGrid blockId="result" autoDraw="override" showCount="true" height="73vh
" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="160" required="false"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="projName" cname="所属项目" width="160" enable="true" readonly="false" align="center" required="false"/>
<%-- <EF:EFComboColumn ename="projCode" cname="所属项目" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
...
...
src/main/webapp/HG/WD/HGWD001B.js
View file @
5070c837
...
...
@@ -4,8 +4,8 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSizes
:
[
20
,
50
,
100
,
2
0
0
,
500
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
2
5
0
,
500
],
},
columns
:
[],
loadComplete
:
function
(
grid
)
{
...
...
src/main/webapp/HG/WD/HGWD001B.jsp
View file @
5070c837
...
...
@@ -10,8 +10,6 @@
<EF:EFInput
cname=
"文件ID"
ename=
"fileId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
cname=
"附件ID"
ename=
"docId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
<div
class=
"row"
>
<EF:EFInput
cname=
"公司名称"
ename=
"companyName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"6"
ratio=
"2:10"
readonly=
"true"
/>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"6"
ratio=
"2:10"
readonly=
"true"
/>
</div>
...
...
@@ -25,8 +23,8 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
showCount=
"true"
height=
"73vh"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"fileId"
cname=
"文件ID"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"附件ID"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
...
...
src/main/webapp/HG/WD/HGWD001C.js
View file @
5070c837
...
...
@@ -4,7 +4,7 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
columns
:
[],
...
...
src/main/webapp/HG/WD/HGWD001C.jsp
View file @
5070c837
...
...
@@ -10,8 +10,6 @@
<EF:EFInput
cname=
"文件ID"
ename=
"fileId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
<EF:EFInput
cname=
"附件ID"
ename=
"docId"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
type=
"hidden"
/>
<div
class=
"row"
>
<EF:EFInput
cname=
"公司名称"
ename=
"companyName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"6"
ratio=
"2:10"
readonly=
"true"
/>
<EF:EFInput
cname=
"项目名称"
ename=
"projName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"6"
ratio=
"2:10"
readonly=
"true"
/>
</div>
...
...
@@ -25,8 +23,8 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
showCount=
"true"
height=
"73vh"
isFloat=
"true"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"内码"
hidden=
"true"
/>
<EF:EFColumn
ename=
"fileId"
cname=
"文件ID"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"附件ID"
enable=
"false"
width=
"100"
align=
"center"
hidden=
"true"
/>
...
...
src/main/webapp/HG/WD/HGWD001E.js
View file @
5070c837
$
(
function
()
{
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"companyBox_block_id"
).
getMappedRows
();
var
projCodeBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
$
(
"#QUERY"
).
on
(
"click"
,
query
);
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
1
0
,
pageSizes
:
[
10
,
20
,
50
,
1
00
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
5
00
],
},
columns
:
[
/*{
field: "operator",
title: "操作",
template: function (item) {
let auditStatus = item.deviceStatus;
let template = '';
if (item.id) {
/!*template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="uploadFile(' + item.id + ')" >附件上传</a>';*!/
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showDetail(' + item.id + ',\''+item.companyCode+'\')" >变更记录</a>';
}
return template;
}
},*/
{
field
:
"companyCode"
,
title
:
"公司名称"
,
filter
:
function
(
option
)
{
return
_
.
filter
(
option
.
values
,
function
(
item
)
{
return
item
[
"param1Field"
]
!=
"root"
;
})
},
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
]){
dataItem
[
'companyName'
]
=
companyCodeBox
[
i
][
'textField'
]
return
companyCodeBox
[
i
][
'textField'
];
}
}
return
dataItem
[
"companyCode"
];
}
},
{
columns
:
[{
field
:
"projCode"
,
title
:
"所属项目"
,
filter
:
function
(
option
)
{
let
companyCode
=
option
[
'companyCode'
];
if
(
companyCode
){
return
_
.
filter
(
option
.
values
,
function
(
item
)
{
return
item
[
"param1Field"
]
=
companyCode
;
})
}
return
option
.
values
;
},
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
projCodeBox
.
length
;
i
++
)
{
if
(
projCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'projCode'
])
{
if
(
projCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'projCode'
])
{
dataItem
[
'projName'
]
=
projCodeBox
[
i
][
'textField'
]
return
projCodeBox
[
i
][
'textField'
];
}
...
...
@@ -119,16 +78,6 @@ $(function () {
for
(
let
i
=
0
;
i
<
projCodeBox
.
length
;
i
++
)
{
if
(
projCodeBox
[
i
][
"valueField"
]
===
item
[
"projCode"
])
{
resultGrid
.
setCellValue
(
item
,
'projName'
,
projCodeBox
[
i
][
"textField"
]);
if
(
isBlank
(
item
[
"companyCode"
]))
{
resultGrid
.
setCellValue
(
item
,
'companyCode'
,
projCodeBox
[
i
][
"param1Field"
]
==
"null"
?
""
:
projCodeBox
[
i
][
"param1Field"
]
);
resultGrid
.
setCellValue
(
item
,
'companyName'
,
projCodeBox
[
i
][
"param2Field"
]
==
"null"
?
""
:
projCodeBox
[
i
][
"param2Field"
]
);
}
break
;
}
}
...
...
@@ -137,11 +86,7 @@ $(function () {
},
onAdd
:
function
(
e
)
{
$
.
each
(
e
.
items
,
function
(
index
,
item
)
{
let
companyCode
=
$
(
"#inqu_status-0-companyCode"
).
val
();
let
projCode
=
$
(
"#inqu_status-0-projCode"
).
val
();
if
(
!
isBlank
(
companyCode
)){
item
[
'companyCode'
]
=
companyCode
;
}
if
(
!
isBlank
(
projCode
)){
item
[
'projCode'
]
=
projCode
;
}
...
...
@@ -195,13 +140,7 @@ let save = function (btnNode) {
}
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
companyCode
=
item
.
get
(
"companyCode"
);
let
projCode
=
item
.
get
(
"projCode"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
projCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
所属项目
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -229,8 +168,8 @@ let save = function (btnNode) {
/**
* 显示详情
*/
function
showDetail
(
id
,
companyCode
)
{
let
url
=
"HGWD001A?methodName=initLoad&inqu_status-0-matId="
+
id
+
"&inqu_status-0-companyCode="
+
companyCode
;
function
showDetail
(
id
)
{
let
url
=
"HGWD001A?methodName=initLoad&inqu_status-0-matId="
+
id
;
JSColorbox
.
open
({
href
:
url
,
title
:
"<div style='text-align: center;'>变更记录</div>"
,
...
...
src/main/webapp/HG/WD/HGWD001E.jsp
View file @
5070c837
...
...
@@ -22,33 +22,23 @@
<div class="row">
<EF:EFInput cname="上级组织Id" blockId="inqu_status" ename="parentId" row="0" type="hidden"/>
<EF:EFInput cname="上级组织编码" blockId="inqu_status" ename="fileId" row="0" type="hidden"/>
<EF:EFInput cname="公司代码" blockId="inqu_status" ename="companyCode" row="0" type="hidden"/>
<EF:EFInput cname="项目代码" blockId="inqu_status" ename="projCode" row="0" type="hidden"/>
<EF:EFInput cname="层级" blockId="inqu_status" ename="leafLevel" row="0" type="hidden"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="fileType" cname="
文件
类型" colWidth="3" filter="contains">
<EF:EFSelect blockId="inqu_status" row="0" ename="fileType" cname="
目录
类型" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.hgwd.fileType"/>
</EF:EFSelect>
<EF:EFInput blockId="inqu_status" row="0" ename="fileName" cname="
文件
名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFInput blockId="inqu_status" row="0" ename="fileName" cname="
目录
名称" placeholder="模糊查询" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override
" isFloat="true" checkMode="row">
<EF:EFRegion id="result" title="明细信息"
fitHeight="true"
>
<EF:EFGrid blockId="result" autoDraw="override" showCount="true" height="73vh
" isFloat="true" checkMode="row">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<%--<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="160" align="center"/>--%>
<EF:EFColumn ename="parentId" cname="上级ID" hidden="true"/>
<EF:EFComboColumn ename="status" cname="状态" enable="false" width="80" align="center" defaultValue="0" hidden="true">
<EF:EFCodeOption codeName="hggp.hgwd.status"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="160" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="companyName" cname="公司名称" width="160" enable="true" readonly="true" align="center"
required="true" hidden="true"/>
<EF:EFComboColumn ename="projCode" cname="所属项目" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
...
...
@@ -56,13 +46,13 @@
align="left" filter="contains" sort="true"/>
<EF:EFColumn ename="projName" cname="所属项目" width="160" enable="true" readonly="true" align="center"
required="true" hidden="true"/>
<EF:EFComboColumn ename="fileType" cname="
文件
类型" width="100" align="center" readonly="false" required="true"
<EF:EFComboColumn ename="fileType" cname="
目录
类型" width="100" align="center" readonly="false" required="true"
defaultValue="20">
<EF:EFCodeOption codeName="hggp.hgwd.fileType"/>
</EF:EFComboColumn>
<EF:EFColumn ename="fileName" cname="
文件
名称" width="160" enable="true" readonly="false" align="left"
<EF:EFColumn ename="fileName" cname="
目录
名称" width="160" enable="true" readonly="false" align="left"
required="true"/>
<EF:EFColumn ename="fileId" cname="
文件
号" width="100" enable="false" readonly="true" align="center"
<EF:EFColumn ename="fileId" cname="
目录
号" width="100" enable="false" readonly="true" align="center"
required="false"/>
<EF:EFColumn ename="createdName" cname="创建人" align="center" width="100" readonly="true" required="false"
enable="false"/>
...
...
src/main/webapp/HG/WD/HGWD001F.js
View file @
5070c837
$
(
function
()
{
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"companyBox_block_id"
).
getMappedRows
();
var
projCodeBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
$
(
"#QUERY"
).
on
(
"click"
,
query
);
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
1
0
,
pageSizes
:
[
10
,
20
,
50
,
1
00
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
5
00
],
},
columns
:
[
/*{
field: "operator",
title: "操作",
template: function (item) {
let auditStatus = item.deviceStatus;
let template = '';
if (item.id) {
/!*template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="uploadFile(' + item.id + ')" >附件上传</a>';*!/
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showDetail(' + item.id + ',\''+item.companyCode+'\')" >变更记录</a>';
}
return template;
}
},*/
{
field
:
"companyCode"
,
title
:
"公司名称"
,
filter
:
function
(
option
)
{
return
_
.
filter
(
option
.
values
,
function
(
item
)
{
return
item
[
"param1Field"
]
!=
"root"
;
})
},
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
]){
dataItem
[
'companyName'
]
=
companyCodeBox
[
i
][
'textField'
]
return
companyCodeBox
[
i
][
'textField'
];
}
}
return
dataItem
[
"companyCode"
];
}
},
{
field
:
"fileName"
,
columns
:
[{
field
:
"fileName"
,
editor
:
function
(
container
,
options
)
{
var
grid
=
container
.
closest
(
".k-grid"
).
data
(
"kendoGrid"
);
var
cellIndex
=
grid
.
cellIndex
(
container
);
...
...
@@ -99,16 +67,6 @@ $(function () {
for
(
let
i
=
0
;
i
<
projCodeBox
.
length
;
i
++
)
{
if
(
projCodeBox
[
i
][
"valueField"
]
===
item
[
"projCode"
])
{
resultGrid
.
setCellValue
(
item
,
'projName'
,
projCodeBox
[
i
][
"textField"
]);
if
(
isBlank
(
item
[
"companyCode"
]))
{
resultGrid
.
setCellValue
(
item
,
'companyCode'
,
projCodeBox
[
i
][
"param1Field"
]
==
"null"
?
""
:
projCodeBox
[
i
][
"param1Field"
]
);
resultGrid
.
setCellValue
(
item
,
'companyName'
,
projCodeBox
[
i
][
"param2Field"
]
==
"null"
?
""
:
projCodeBox
[
i
][
"param2Field"
]
);
}
break
;
}
}
...
...
@@ -163,13 +121,7 @@ let save = function (btnNode) {
}
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
companyCode
=
item
.
get
(
"companyCode"
);
let
projCode
=
item
.
get
(
"projName"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
projCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
所属项目
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -226,8 +178,8 @@ function updateRelease() {
/**
* 显示详情
*/
function
showDetail
(
id
,
companyCode
)
{
let
url
=
"HGWD001A?methodName=initLoad&inqu_status-0-matId="
+
id
+
"&inqu_status-0-companyCode="
+
companyCode
;
function
showDetail
(
id
)
{
let
url
=
"HGWD001A?methodName=initLoad&inqu_status-0-matId="
+
id
;
JSColorbox
.
open
({
href
:
url
,
title
:
"<div style='text-align: center;'>变更记录</div>"
,
...
...
src/main/webapp/HG/WD/HGWD001F.jsp
View file @
5070c837
...
...
@@ -22,7 +22,6 @@
<div class="row">
<EF:EFInput cname="上级组织编码" blockId="inqu_status" ename="parentId" row="0" type="hidden"/>
<EF:EFInput cname="组织编码" blockId="inqu_status" ename="fileId" row="0" type="hidden"/>
<EF:EFInput cname="公司代码" blockId="inqu_status" ename="companyCode" row="0" type="hidden"/>
<EF:EFInput cname="项目代码" blockId="inqu_status" ename="projCode" row="0" type="hidden"/>
<EF:EFInput cname="层级" blockId="inqu_status" ename="leafLevel" row="0" type="hidden"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="fileType" cname="文件类型" colWidth="3" filter="contains">
...
...
@@ -32,22 +31,13 @@
<EF:EFInput blockId="inqu_status" row="0" ename="fileName" cname="文件名称" placeholder="模糊查询" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row
">
<EF:EFRegion id="result" title="明细信息"
fitHeight="true"
>
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row" showCount="true" height="73vh
">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<%--<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="160" align="center"/>
<EF:EFComboColumn ename="status" cname="状态" enable="false" width="80" align="center" defaultValue="0">
<EF:EFCodeOption codeName="hggp.hgwd.status"/>
</EF:EFComboColumn>--%>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="160" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="companyName" cname="所属项目" width="160" enable="true" readonly="true" align="center"
required="true" hidden="true"/>
<EF:EFComboColumn ename="projCode" cname="所属项目" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
...
...
src/main/webapp/HG/WD/HGWD001G.js
View file @
5070c837
$
(
function
()
{
var
companyCodeBox
=
__eiInfo
.
getBlock
(
"companyBox_block_id"
).
getMappedRows
();
var
projCodeBox
=
__eiInfo
.
getBlock
(
"proj_record_block_id"
).
getMappedRows
();
$
(
"#QUERY"
).
on
(
"click"
,
query
);
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
1
0
,
pageSizes
:
[
10
,
20
,
50
,
1
00
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
5
00
],
},
columns
:
[
/*{
field: "operator",
title: "操作",
template: function (item) {
let auditStatus = item.deviceStatus;
let template = '';
if (item.id) {
/!*template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="uploadFile(' + item.id + ')" >附件上传</a>';*!/
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showDetail(' + item.id + ',\''+item.companyCode+'\')" >变更记录</a>';
}
return template;
}
},*/
{
field
:
"companyCode"
,
title
:
"公司名称"
,
filter
:
function
(
option
)
{
return
_
.
filter
(
option
.
values
,
function
(
item
)
{
return
item
[
"param1Field"
]
!=
"root"
;
})
},
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
companyCodeBox
.
length
;
i
++
)
{
if
(
companyCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'companyCode'
]){
dataItem
[
'companyName'
]
=
companyCodeBox
[
i
][
'textField'
]
return
companyCodeBox
[
i
][
'textField'
];
}
}
return
dataItem
[
"companyCode"
];
}
},
{
columns
:
[{
field
:
"projCode"
,
title
:
"所属项目"
,
filter
:
function
(
option
)
{
let
companyCode
=
option
[
'companyCode'
];
if
(
companyCode
){
return
_
.
filter
(
option
.
values
,
function
(
item
)
{
return
item
[
"param1Field"
]
=
companyCode
;
})
}
return
option
.
values
;
},
template
:
function
(
dataItem
)
{
for
(
let
i
=
0
;
i
<
projCodeBox
.
length
;
i
++
)
{
if
(
projCodeBox
[
i
][
'valueField'
]
===
dataItem
[
'projCode'
]){
...
...
@@ -86,16 +44,6 @@ $(function () {
for
(
let
i
=
0
;
i
<
projCodeBox
.
length
;
i
++
)
{
if
(
projCodeBox
[
i
][
"valueField"
]
===
item
[
"projCode"
])
{
resultGrid
.
setCellValue
(
item
,
'projName'
,
projCodeBox
[
i
][
"textField"
]);
if
(
isBlank
(
item
[
"companyCode"
]))
{
resultGrid
.
setCellValue
(
item
,
'companyCode'
,
projCodeBox
[
i
][
"param1Field"
]
==
"null"
?
""
:
projCodeBox
[
i
][
"param1Field"
]
);
resultGrid
.
setCellValue
(
item
,
'companyName'
,
projCodeBox
[
i
][
"param2Field"
]
==
"null"
?
""
:
projCodeBox
[
i
][
"param2Field"
]
);
}
break
;
}
}
...
...
@@ -104,11 +52,7 @@ $(function () {
},
onAdd
:
function
(
e
)
{
$
.
each
(
e
.
items
,
function
(
index
,
item
)
{
let
companyCode
=
$
(
"#inqu_status-0-companyCode"
).
val
();
let
projCode
=
$
(
"#inqu_status-0-projCode"
).
val
();
if
(
!
isBlank
(
companyCode
)){
item
[
'companyCode'
]
=
companyCode
;
}
if
(
!
isBlank
(
projCode
)){
item
[
'projCode'
]
=
projCode
;
}
...
...
@@ -162,13 +106,7 @@ let save = function (btnNode) {
}
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
let
companyCode
=
item
.
get
(
"companyCode"
);
let
projCode
=
item
.
get
(
"projCode"
);
if
(
isBlank
(
companyCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
isBlank
(
projCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
所属项目
\"
,不能为空!"
);
flag
=
false
;
...
...
@@ -217,8 +155,8 @@ function updateRelease() {
/**
* 显示详情
*/
function
showDetail
(
id
,
companyCode
)
{
let
url
=
"HGWD001A?methodName=initLoad&inqu_status-0-matId="
+
id
+
"&inqu_status-0-companyCode="
+
companyCode
;
function
showDetail
(
id
)
{
let
url
=
"HGWD001A?methodName=initLoad&inqu_status-0-matId="
+
id
;
JSColorbox
.
open
({
href
:
url
,
title
:
"<div style='text-align: center;'>变更记录</div>"
,
...
...
src/main/webapp/HG/WD/HGWD001G.jsp
View file @
5070c837
...
...
@@ -22,28 +22,19 @@
<div class="row">
<EF:EFInput cname="上级组织Id" blockId="inqu_status" ename="parentId" row="0" type="hidden"/>
<EF:EFInput cname="上级组织编码" blockId="inqu_status" ename="fileId" row="0" type="hidden"/>
<EF:EFInput cname="公司代码" blockId="inqu_status" ename="companyCode" row="0" type="hidden"/>
<EF:EFInput cname="项目名称" blockId="inqu_status" ename="projName" row="0" placeholder="模糊查询项目"/>
<EF:EFInput cname="层级" blockId="inqu_status" ename="leafLevel" row="0" type="hidden"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row">
<EF:EFRegion id="result" title="明细信息" fitHeight="true">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" checkMode="row" showCount="true" height="73vh">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<%--<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="160" align="center"/>--%>
<EF:EFColumn ename="parentId" cname="上级ID" hidden="true"/>
<EF:EFComboColumn ename="status" cname="状态" enable="false" width="80" align="center" defaultValue="0" hidden="true">
<EF:EFCodeOption codeName="hggp.hgwd.status"/>
</EF:EFComboColumn>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="true" width="160" required="true"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="companyName" cname="所属项目" width="160" enable="true" readonly="true" align="center"
required="true" hidden="true"/>
<EF:EFComboColumn ename="projCode" cname="所属项目" blockName="proj_record_block_id"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
5070c837
...
...
@@ -101,7 +101,6 @@ $(function () {
$
(
"[name = 'inqu_status-0-fileId']"
).
val
(
_data
.
id
);
$
(
"[name = 'inqu_status-0-leafLevel']"
).
val
(
_data
.
leafLevel
==
null
?
0
:
_data
.
leafLevel
);
$
(
"[name = 'inqu_status-0-projCode']"
).
val
(
_data
.
projCode
);
$
(
"[name = 'inqu_status-0-companyCode']"
).
val
(
_data
.
companyCode
);
$
(
"[name = 'inqu_status-0-type']"
).
val
(
typeValue
);
$
(
"[name = 'inqu_status-0-fileName']"
).
val
(
_data
.
text
);
resultGrid
.
dataSource
.
page
(
1
);
...
...
@@ -162,7 +161,7 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSize
:
5
0
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
columns
:
[{
...
...
src/main/webapp/HG/WD/HGWD002.jsp
View file @
5070c837
...
...
@@ -20,7 +20,6 @@
<div
id=
"right-pane"
class=
"i-fit-height"
>
<EF:EFRegion
id=
"inqu"
title=
"查询条件"
>
<div
class=
"row"
>
<EF:EFInput
cname=
"公司代码"
ename=
"companyCode"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"项目代码"
ename=
"projCode"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"文档库id"
ename=
"parentId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
<EF:EFInput
cname=
"文档库id"
ename=
"fileId"
blockId=
"inqu_status"
row=
"0"
type=
"hidden"
/>
...
...
@@ -39,8 +38,9 @@
</div>
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"明细信息"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
queryMethod=
"query"
sort=
"setted"
checkMode=
"row"
>
<EF:EFRegion
id=
"result"
title=
"明细信息"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
showCount=
"true"
height=
"73vh"
queryMethod=
"query"
sort=
"setted"
checkMode=
"row"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"fileId"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"200"
align=
"center"
sort=
"false"
...
...
src/main/webapp/HG/WD/HGWD003.js
View file @
5070c837
...
...
@@ -48,6 +48,10 @@ $(function () {
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
500
,
pageSizes
:
[
20
,
50
,
100
,
250
,
500
],
},
loadComplete
:
function
(
grid
)
{
}
}
...
...
src/main/webapp/HG/WD/HGWD003.jsp
View file @
5070c837
...
...
@@ -35,8 +35,8 @@
<EF:EFInput
cname=
"用户姓名"
ename=
"userName"
blockId=
"inqu_status"
row=
"0"
colWidth=
"3"
/>
</div>
</EF:EFRegion>
<EF:EFRegion
title=
"已授权用户结果集"
id=
"result"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
>
<EF:EFRegion
title=
"已授权用户结果集"
id=
"result"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
showCount=
"true"
height=
"73vh"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"orgCname"
cname=
"部门名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"userId"
cname=
"用户账号"
enable=
"false"
width=
"100"
align=
"center"
/>
...
...
src/main/webapp/HG/WD/HGWD003A.js
View file @
5070c837
...
...
@@ -4,8 +4,8 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSizes
:
[
20
,
50
,
100
,
15
0
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
50
0
],
},
loadComplete
:
function
(
grid
)
{
}
...
...
src/main/webapp/HG/WD/HGWD003A.jsp
View file @
5070c837
...
...
@@ -16,7 +16,7 @@
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
height=
"69vh"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
showCount=
"true"
height=
"69vh"
>
<EF:EFColumn
ename=
"userId"
cname=
"用户ID"
hidden=
"true"
primaryKey=
"true"
/>
<EF:EFColumn
ename=
"depName"
cname=
"部门名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"loginName"
cname=
"用户账号"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
src/main/webapp/HG/WD/HGWD003B.js
View file @
5070c837
...
...
@@ -4,8 +4,8 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSizes
:
[
20
,
50
,
100
,
15
0
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
50
0
],
},
loadComplete
:
function
(
grid
)
{
}
...
...
src/main/webapp/HG/WD/HGWD003B.jsp
View file @
5070c837
...
...
@@ -15,7 +15,7 @@
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
height=
"69vh"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
showCount=
"true"
height=
"69vh"
>
<EF:EFColumn
ename=
"fileId"
cname=
"目录ID"
hidden=
"true"
primaryKey=
"true"
/>
<EF:EFColumn
ename=
"projCode"
cname=
"项目编号"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"projName"
cname=
"项目名称"
enable=
"false"
width=
"180"
align=
"left"
/>
...
...
src/main/webapp/HG/WD/HGWD004.js
View file @
5070c837
...
...
@@ -6,11 +6,10 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
columns
:
[
{
columns
:
[{
field
:
"changeStartCode"
,
hidden
:
true
,
template
:
function
(
item
)
{
...
...
src/main/webapp/HG/WD/HGWD004.jsp
View file @
5070c837
...
...
@@ -20,29 +20,17 @@
<EF:EFPage title="回收站">
<EF:EFRegion id="inqu" title="查询条件">
<div class="row">
<EF:EFSelect blockId="inqu_status" row="0" ename="companyCode" cname="公司名称" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFSelect>
<EF:EFInput blockId="inqu_status" row="0" ename="projName" cname="项目名称" placeholder="模糊查询" colWidth="3"/>
<EF:EFDateSpan startCname="删除开始日期" endCname="删除结束日期" blockId="inqu_status" row="0" colWidth="3"
startName="createdTimeFrom" endName="createdTimeTo" role="date"
format="yyyy-MM-dd" satrtRatio="4:8" endRatio="4:8"/>
<EF:EFInput blockId="inqu_status" row="0" ename="changeContent" cname="文件名称" placeholder="模糊查询" colWidth="3"/>
</div>
</EF:EFRegion>
<EF:EFRegion id="result" title="明细信息
">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true
">
<EF:EFRegion id="result" title="明细信息" fitHeight="true
">
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true" showCount="true" height="74vh
">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFComboColumn ename="companyCode" cname="公司名称"
columnTemplate="#=textField#" itemTemplate="#=textField#"
textField="textField" valueField="valueField"
maxLength="16" readonly="false" width="160" required="false"
align="center" filter="contains" sort="true">
<EF:EFOptions blockId="companyBox_block_id" textField="textField" valueField="valueField"/>
</EF:EFComboColumn>
<EF:EFColumn ename="projName" cname="项目名称" width="160" enable="true" readonly="false" align="left" required="false"/>
<EF:EFColumn ename="changeContent" cname="文件名称" width="160" enable="true" readonly="true" align="left" required="false"/>
<%--<EF:EFColumn ename="changeStartCode" cname="附件ID" width="160" enable="true" readonly="false" align="center" required="false"/>--%>
...
...
src/main/webapp/HG/WD/HGWD009.js
View file @
5070c837
...
...
@@ -3,6 +3,10 @@ $(function () {
IPLATUI
.
EFGrid
=
{
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
500
,
pageSizes
:
[
20
,
50
,
100
,
200
,
500
],
},
loadComplete
:
function
(
grid
)
{
}
}
...
...
src/main/webapp/HG/WD/HGWD009.jsp
View file @
5070c837
...
...
@@ -14,8 +14,8 @@
</div>
</EF:EFRegion>
<EF:EFRegion
title=
"结果集"
id=
"result"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
>
<EF:EFRegion
title=
"结果集"
id=
"result"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
showCount=
"true"
height=
"74vh"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"orgCname"
cname=
"部门名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"userId"
cname=
"用户账号"
enable=
"false"
width=
"100"
align=
"center"
/>
...
...
src/main/webapp/HG/WD/HGWD009A.js
View file @
5070c837
...
...
@@ -4,8 +4,8 @@ $(function () {
"result"
:
{
exportGrid
:
false
,
// 隐藏右侧自定义导出按钮
pageable
:
{
pageSize
:
2
0
,
pageSizes
:
[
20
,
50
,
100
,
15
0
],
pageSize
:
50
0
,
pageSizes
:
[
20
,
50
,
100
,
250
,
50
0
],
},
loadComplete
:
function
(
grid
)
{
}
...
...
src/main/webapp/HG/WD/HGWD009A.jsp
View file @
5070c837
...
...
@@ -15,7 +15,7 @@
</EF:EFRegion>
<EF:EFRegion
id=
"result"
title=
"记录集"
fitHeight=
"true"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
height=
"69vh"
>
<EF:EFGrid
blockId=
"result"
autoDraw=
"override"
checkMode=
"row"
showCount=
"true"
height=
"69vh"
>
<EF:EFColumn
ename=
"userId"
cname=
"用户ID"
hidden=
"true"
primaryKey=
"true"
/>
<EF:EFColumn
ename=
"depName"
cname=
"部门名称"
enable=
"false"
width=
"120"
align=
"center"
/>
<EF:EFColumn
ename=
"loginName"
cname=
"用户账号"
enable=
"false"
width=
"120"
align=
"center"
/>
...
...
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