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
5b06b74e
Commit
5b06b74e
authored
Aug 06, 2024
by
江和松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购员不进行公司过滤
parent
5753d915
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
78 deletions
+78
-78
HGCG002.js
src/main/webapp/HG/CG/HGCG002.js
+26
-26
HGCG002B.js
src/main/webapp/HG/CG/HGCG002B.js
+26
-26
HGCG003.js
src/main/webapp/HG/CG/HGCG003.js
+26
-26
No files found.
src/main/webapp/HG/CG/HGCG002.js
View file @
5b06b74e
...
...
@@ -33,33 +33,33 @@ $(function () {
}
}
return
dataItem
[
"purUserName"
];
},
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
inInfo
.
set
(
"field"
,
options
.
field
);
EiCommunicator
.
send
(
"HGSC001"
,
"userByCompanyComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
userByCompany
=
ei
.
getBlock
(
"userByCompany"
).
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
:
userByCompany
,
minLength
:
0
,
dataTextField
:
"userName"
,
dataValueField
:
"userName"
,
optionLabelTemplate
:
"[#:loginName#]#:userName#-#:depName#"
,
valueTemplate
:
"[#:loginName#]#:userName#-#:depName#"
,
template
:
"[#:loginName#]#:userName#-#:depName#"
,
filter
:
"contains"
});
}
// editor: function (container, options) {
// let inInfo = new EiInfo();
// inInfo.set("inqu_status-0-companyCode", options.model["companyCode"]);
// inInfo.set("field", options.field);
// EiCommunicator.send("HGSC001", "userByCompanyComboBox", inInfo, {
// onSuccess: function (ei) {
// userByCompany = ei.getBlock("userByCompany").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: userByCompany,
// minLength: 0,
// dataTextField: "userName",
// dataValueField: "userName",
// optionLabelTemplate: "[#:loginName#]#:userName#-#:depName#",
// valueTemplate: "[#:loginName#]#:userName#-#:depName#",
// template: "[#:loginName#]#:userName#-#:depName#",
// filter: "contains"
// });
// }
}
],
beforeEdit
:
function
(
e
)
{
...
...
src/main/webapp/HG/CG/HGCG002B.js
View file @
5b06b74e
...
...
@@ -21,33 +21,33 @@ $(function () {
}
}
return
dataItem
[
"purUserName"
];
},
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
inInfo
.
set
(
"field"
,
options
.
field
);
EiCommunicator
.
send
(
"HGSC001"
,
"userByCompanyComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
userByCompany
=
ei
.
getBlock
(
"userByCompany"
).
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
:
userByCompany
,
minLength
:
0
,
dataTextField
:
"userName"
,
dataValueField
:
"userName"
,
optionLabelTemplate
:
"[#:loginName#]#:userName#-#:depName#"
,
valueTemplate
:
"[#:loginName#]#:userName#-#:depName#"
,
template
:
"[#:loginName#]#:userName#-#:depName#"
,
filter
:
"contains"
});
}
// editor: function (container, options) {
// let inInfo = new EiInfo();
// inInfo.set("inqu_status-0-companyCode", options.model["companyCode"]);
// inInfo.set("field", options.field);
// EiCommunicator.send("HGSC001", "userByCompanyComboBox", inInfo, {
// onSuccess: function (ei) {
// userByCompany = ei.getBlock("userByCompany").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: userByCompany,
// minLength: 0,
// dataTextField: "userName",
// dataValueField: "userName",
// optionLabelTemplate: "[#:loginName#]#:userName#-#:depName#",
// valueTemplate: "[#:loginName#]#:userName#-#:depName#",
// template: "[#:loginName#]#:userName#-#:depName#",
// filter: "contains"
// });
// }
}
],
beforeEdit
:
function
(
e
)
{
...
...
src/main/webapp/HG/CG/HGCG003.js
View file @
5b06b74e
...
...
@@ -49,33 +49,33 @@ $(function () {
}
}
return
dataItem
[
"purUserName"
];
},
editor
:
function
(
container
,
options
)
{
let
inInfo
=
new
EiInfo
();
inInfo
.
set
(
"inqu_status-0-companyCode"
,
options
.
model
[
"companyCode"
]);
inInfo
.
set
(
"field"
,
options
.
field
);
EiCommunicator
.
send
(
"HGSC001"
,
"userByCompanyComboBox"
,
inInfo
,
{
onSuccess
:
function
(
ei
)
{
userByCompany
=
ei
.
getBlock
(
"userByCompany"
).
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
:
userByCompany
,
minLength
:
0
,
dataTextField
:
"userName"
,
dataValueField
:
"userName"
,
optionLabelTemplate
:
"[#:loginName#]#:userName#-#:depName#"
,
valueTemplate
:
"[#:loginName#]#:userName#-#:depName#"
,
template
:
"[#:loginName#]#:userName#-#:depName#"
,
filter
:
"contains"
});
}
// editor: function (container, options) {
// let inInfo = new EiInfo();
// inInfo.set("inqu_status-0-companyCode", options.model["companyCode"]);
// inInfo.set("field", options.field);
// EiCommunicator.send("HGSC001", "userByCompanyComboBox", inInfo, {
// onSuccess: function (ei) {
// userByCompany = ei.getBlock("userByCompany").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: userByCompany,
// minLength: 0,
// dataTextField: "userName",
// dataValueField: "userName",
// optionLabelTemplate: "[#:loginName#]#:userName#-#:depName#",
// valueTemplate: "[#:loginName#]#:userName#-#:depName#",
// template: "[#:loginName#]#:userName#-#:depName#",
// filter: "contains"
// });
// }
}
],
beforeEdit
:
function
(
e
)
{
...
...
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