Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
8da7ccbf
Commit
8da7ccbf
authored
Mar 31, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料/产品接口数据修改 数据字典转EASYSEARCH控件
parent
b33f1ed6
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
74 additions
and
44 deletions
+74
-44
nonProdApplyClass.js
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyClass.js
+4
-1
nonProdApplyCost.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyCost.js
+4
-1
nonProdApplyFinancial.js
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyFinancial.js
+4
-1
nonProdApplyMRP.js
...ain/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.js
+4
-1
nonProdApplyMRP.jsp
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
+2
-2
nonProdApplyMass.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.js
+5
-2
nonProdApplyMass.jsp
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.jsp
+2
-1
nonProdApplyProduce.js
...webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.js
+5
-1
nonProdApplyPurchase.js
...ebapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.js
+8
-4
nonProdApplyPurchase.jsp
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.jsp
+1
-1
nonProdApplySale.js
...in/webapp/biz/topsun/sap/nonProdApply/nonProdApplySale.js
+4
-1
nonProdApplyStore.js
...n/webapp/biz/topsun/sap/nonProdApply/nonProdApplyStore.js
+4
-1
nonProdApplyWarehouse.js
...bapp/biz/topsun/sap/nonProdApply/nonProdApplyWarehouse.js
+4
-1
suppliersDataDetail.js
...in/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
+2
-2
ResourceSearchController.java
...om/huigou/topsun/controller/ResourceSearchController.java
+21
-24
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyClass.js
View file @
8da7ccbf
...
@@ -184,7 +184,10 @@ function saveForm(status) {
...
@@ -184,7 +184,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
//_self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyCost.js
View file @
8da7ccbf
...
@@ -185,7 +185,10 @@ function saveForm(status) {
...
@@ -185,7 +185,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
// _self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyFinancial.js
View file @
8da7ccbf
...
@@ -201,7 +201,10 @@ function saveForm(status) {
...
@@ -201,7 +201,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
//_self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.js
View file @
8da7ccbf
...
@@ -237,7 +237,10 @@ function saveForm(status) {
...
@@ -237,7 +237,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
// _self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMRP.jsp
View file @
8da7ccbf
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<x:inputC
name=
"bstmi"
label=
"最小批量"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"bstmi"
label=
"最小批量"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"mabst"
label=
"最大存货水平"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"mabst"
label=
"最大存货水平"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"bstrf"
label=
"舍入值"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"bstrf"
label=
"舍入值"
labelCol=
"1"
fieldCol=
"2"
/>
<x:selectC
name=
"beskz"
label=
"获取类型"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"beskz"
/>
<x:selectC
name=
"beskz"
label=
"获取类型"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"beskz"
required=
"true"
/>
<x:inputC
name=
"sobsl"
label=
"特殊获取方式"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"sobsl"
label=
"特殊获取方式"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"lgproName"
label=
"默认生产库存地"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"lgproName"
label=
"默认生产库存地"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"lgpro"
/>
<x:hidden
name=
"lgpro"
/>
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<x:inputC
name=
"dzeit"
label=
"自制时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"dzeit"
label=
"自制时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"plifz"
label=
"外部采购交货时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"plifz"
label=
"外部采购交货时间"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"fhori"
label=
"排程边际码"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"fhori"
label=
"排程边际码"
labelCol=
"1"
fieldCol=
"2"
required=
"false"
/>
<x:inputC
name=
"eisbe"
label=
"安全库存"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"eisbe"
label=
"安全库存"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
/>
<x:inputC
name=
"eislo"
label=
"最小安全库存"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"eislo"
label=
"最小安全库存"
labelCol=
"1"
fieldCol=
"2"
/>
<x:selectC
name=
"strgr"
label=
"策略组"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"strgr"
/>
<x:selectC
name=
"strgr"
label=
"策略组"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"strgr"
/>
<x:selectC
name=
"mtvfp"
label=
"可用性检查组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"mtvfp"
/>
<x:selectC
name=
"mtvfp"
label=
"可用性检查组"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
dictionary=
"mtvfp"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.js
View file @
8da7ccbf
...
@@ -107,7 +107,7 @@ function loadGrid() {
...
@@ -107,7 +107,7 @@ function loadGrid() {
$
(
"#specifications"
).
attr
(
"disabled"
,
true
);
$
(
"#specifications"
).
attr
(
"disabled"
,
true
);
$
(
"#materialUsage"
).
attr
(
"disabled"
,
true
);
$
(
"#materialUsage"
).
attr
(
"disabled"
,
true
);
UICtrl
.
disable
(
$
(
"#werks"
));
UICtrl
.
disable
(
$
(
"#werks
Name
"
));
UICtrl
.
disable
(
$
(
"#materialUsage"
));
UICtrl
.
disable
(
$
(
"#materialUsage"
));
UICtrl
.
disable
(
$
(
"#baseUnit"
));
UICtrl
.
disable
(
$
(
"#baseUnit"
));
UICtrl
.
disable
(
$
(
"#itemAttributes"
));
UICtrl
.
disable
(
$
(
"#itemAttributes"
));
...
@@ -184,7 +184,10 @@ function saveForm(status) {
...
@@ -184,7 +184,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
// _self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyMass.jsp
View file @
8da7ccbf
...
@@ -78,7 +78,8 @@
...
@@ -78,7 +78,8 @@
<x:title
title=
"维护质量信息"
name=
"group"
/>
<x:title
title=
"维护质量信息"
name=
"group"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"werks"
label=
"工厂"
labelCol=
"1"
fieldCol=
"2"
/>
<x:hidden
name=
"werks"
/>
<x:inputC
name=
"werksName"
label=
"工厂"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"kzdkz"
label=
"文档要求"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
/>
<x:inputC
name=
"kzdkz"
label=
"文档要求"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
/>
<x:inputC
name=
"art"
label=
"检验类型"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
/>
<x:inputC
name=
"art"
label=
"检验类型"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
/>
<x:selectC
name=
"aktiv"
label=
"激活标识"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"suppliesType"
required=
"true"
/>
<x:selectC
name=
"aktiv"
label=
"激活标识"
labelCol=
"1"
fieldCol=
"2"
dictionary=
"suppliesType"
required=
"true"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyProduce.js
View file @
8da7ccbf
...
@@ -188,6 +188,7 @@ function saveForm(status) {
...
@@ -188,6 +188,7 @@ function saveForm(status) {
$
(
"#active"
).
val
(
status
)
$
(
"#active"
).
val
(
status
)
//alert($("#businessCode").val());
//alert($("#businessCode").val());
let
extendedData
=
getExtendedData
();
let
extendedData
=
getExtendedData
();
if
(
!
extendedData
)
return
false
;
if
(
!
extendedData
)
return
false
;
var
_self
=
this
;
var
_self
=
this
;
$
(
'#submitForm'
).
ajaxSubmit
({
$
(
'#submitForm'
).
ajaxSubmit
({
...
@@ -196,7 +197,10 @@ function saveForm(status) {
...
@@ -196,7 +197,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
//_self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.js
View file @
8da7ccbf
...
@@ -112,7 +112,8 @@ function loadGrid() {
...
@@ -112,7 +112,8 @@ function loadGrid() {
UICtrl
.
disable
(
$
(
"#businessUsage"
));
UICtrl
.
disable
(
$
(
"#businessUsage"
));
UICtrl
.
disable
(
$
(
"#baseUnit"
));
UICtrl
.
disable
(
$
(
"#baseUnit"
));
UICtrl
.
disable
(
$
(
"#itemAttributes"
));
UICtrl
.
disable
(
$
(
"#itemAttributes"
));
let
coRowNum
=
$
(
"#businessUsage"
).
val
().
replace
(
/,/g
,
''
)
+
1
;
// let coRowNum = $("#businessUsage").val().replace(/,/g, '') + 1;
// let length = dept.length;
// let length = dept.length;
// let dept=$("#businessUsage").val().split(",");
// let dept=$("#businessUsage").val().split(",");
// let a=(dept.length+1)*37.5;
// let a=(dept.length+1)*37.5;
...
@@ -155,12 +156,12 @@ function loadGrid() {
...
@@ -155,12 +156,12 @@ function loadGrid() {
],
],
dataAction
:
"server"
,
dataAction
:
"server"
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/slicedDeptList.ajax'
,
url
:
web_app
.
name
+
'/sapNonProdApplyNext/slicedDeptList.ajax'
,
parms
:
{
dept
:
$
(
"#businessUsage"
).
val
(),
id
:
$
(
"#applyDeptI
d"
).
val
()},
parms
:
{
dept
:
$
(
"#businessUsage"
).
val
(),
deptId
:
$
(
"#applyDeptId"
).
val
(),
id
:
$
(
"#i
d"
).
val
()},
pageSize
:
20
,
pageSize
:
20
,
usePager
:
false
,
usePager
:
false
,
enabledEdit
:
true
,
enabledEdit
:
true
,
width
:
"100%"
,
width
:
"100%"
,
height
:
coRowNum
*
37.5
,
height
:
"80%"
,
//
coRowNum * 37.5,
heightDiff
:
-
8
,
heightDiff
:
-
8
,
fixedCellHeight
:
true
,
fixedCellHeight
:
true
,
selectRowButtonOnly
:
true
,
selectRowButtonOnly
:
true
,
...
@@ -185,7 +186,10 @@ function saveForm(status) {
...
@@ -185,7 +186,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
// _self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyPurchase.jsp
View file @
8da7ccbf
...
@@ -78,8 +78,8 @@
...
@@ -78,8 +78,8 @@
<x:title
title=
"维护采购信息"
name=
"group"
/>
<x:title
title=
"维护采购信息"
name=
"group"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"werksName"
label=
"工厂"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"werks"
/>
<x:hidden
name=
"werks"
/>
<x:inputC
name=
"werksName"
label=
"工厂"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"bstmeName"
label=
"采购计量单位"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:inputC
name=
"bstmeName"
label=
"采购计量单位"
labelCol=
"1"
fieldCol=
"2"
wrapper=
"select"
/>
<x:hidden
name=
"bstme"
/>
<x:hidden
name=
"bstme"
/>
<x:inputC
name=
"umrenPurch"
label=
"转换分母"
labelCol=
"1"
fieldCol=
"2"
/>
<x:inputC
name=
"umrenPurch"
label=
"转换分母"
labelCol=
"1"
fieldCol=
"2"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplySale.js
View file @
8da7ccbf
...
@@ -216,7 +216,10 @@ function saveForm(status) {
...
@@ -216,7 +216,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
// _self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyStore.js
View file @
8da7ccbf
...
@@ -211,7 +211,10 @@ function saveForm(status) {
...
@@ -211,7 +211,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
//_self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/nonProdApply/nonProdApplyWarehouse.js
View file @
8da7ccbf
...
@@ -190,7 +190,10 @@ function saveForm(status) {
...
@@ -190,7 +190,10 @@ function saveForm(status) {
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
$
(
"#applyDeptId"
).
val
(
data
.
applyDeptId
);
Public
.
successTip
(
"保存成功!"
);
Public
.
successTip
(
"保存成功!"
);
_self
.
close
();
//_self.close();
if
(
status
==
1
)
{
$
(
"#buttonBox"
).
remove
();
}
UICtrl
.
reloadTabById
(
'homepage'
);
UICtrl
.
reloadTabById
(
'homepage'
);
}
}
});
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
View file @
8da7ccbf
...
@@ -390,9 +390,9 @@ function loadSuppliersBankListGrid() {
...
@@ -390,9 +390,9 @@ function loadSuppliersBankListGrid() {
required
:
true
,
type
:
"select"
,
required
:
true
,
type
:
"select"
,
data
:
{
data
:
{
type
:
'system'
,
type
:
'system'
,
name
:
"
count
rySelect"
,
name
:
"
dictiona
rySelect"
,
getParam
:
function
(
item
)
{
getParam
:
function
(
item
)
{
return
{
fieldName
:
"
name
"
}
return
{
fieldName
:
"
country"
,
displayNames
:
"国家"
,
displayLens
:
"180
"
}
},
},
// checkbox:true,
// checkbox:true,
// checkboxIndex:'value',
// checkboxIndex:'value',
...
...
topsun/src/main/java/com/huigou/topsun/controller/ResourceSearchController.java
View file @
8da7ccbf
...
@@ -155,15 +155,16 @@ public class ResourceSearchController {
...
@@ -155,15 +155,16 @@ public class ResourceSearchController {
return
model
;
return
model
;
}
}
@EasySearch
(
queryName
=
"
count
rySelect"
)
@EasySearch
(
queryName
=
"
dictiona
rySelect"
)
public
Map
<
String
,
Object
>
count
rySelect
(
SDO
sdo
)
throws
IOException
{
public
Map
<
String
,
Object
>
dictiona
rySelect
(
SDO
sdo
)
throws
IOException
{
String
param
=
sdo
.
getString
(
"paramValue"
);
String
param
=
sdo
.
getString
(
"paramValue"
);
String
filterValue
=
sdo
.
getString
(
"filterValue"
);
String
filterValue
=
sdo
.
getString
(
"filterValue"
);
SapDialogQuery
queryRequest
=
sdo
.
toObject
(
SapDialogQuery
.
class
);
String
fieldName
=
sdo
.
getString
(
"fieldName"
);
queryRequest
.
setWerks
(
filterValue
);
String
[]
displayName
=
sdo
.
getString
(
"displayNames"
).
split
(
","
);
Map
maps
=
dictionaryApplication
.
querySysDictionaryDetailsByCode
(
"country"
);
String
[]
displayLen
=
sdo
.
getString
(
"displayLens"
).
split
(
","
);
// List<Map<String,String>> mapList =(List<Map<String,String>>)maps.get("Rows");
// SapDialogQuery queryRequest = sdo.toObject(SapDialogQuery.class);
// List<Map<String,String>> mapList = sapMaterialApplication.getSapMaterial(queryRequest);
// queryRequest.setWerks(filterValue);
Map
maps
=
dictionaryApplication
.
querySysDictionaryDetailsByCode
(
fieldName
);
ObjectMapper
objectMapper
=
SAPUtils
.
objectMapper
();
ObjectMapper
objectMapper
=
SAPUtils
.
objectMapper
();
List
<
Map
<
String
,
String
>>
mapList
=
objectMapper
.
readValue
(
JSONUtil
.
toString
(
maps
.
get
(
"Rows"
)),
new
TypeReference
<
List
<
Map
<
String
,
String
>>>()
{});
List
<
Map
<
String
,
String
>>
mapList
=
objectMapper
.
readValue
(
JSONUtil
.
toString
(
maps
.
get
(
"Rows"
)),
new
TypeReference
<
List
<
Map
<
String
,
String
>>>()
{});
...
@@ -187,24 +188,20 @@ public class ResourceSearchController {
...
@@ -187,24 +188,20 @@ public class ResourceSearchController {
Integer
pageSize
=
sdo
.
getInteger
(
"pageSize"
,
10
);
Integer
pageSize
=
sdo
.
getInteger
(
"pageSize"
,
10
);
PageRequest
pageRequest
=
new
PageRequest
(
intPage
-
1
,
pageSize
);
PageRequest
pageRequest
=
new
PageRequest
(
intPage
-
1
,
pageSize
);
EasySearchParse
easySearchParse
=
new
EasySearchParse
();
EasySearchParse
easySearchParse
=
new
EasySearchParse
();
List
<
QuerySchemeField
>
fields
=
List
<
QuerySchemeField
>
fields
=
new
ArrayList
<>();
Arrays
.
asList
(
fields
.
add
(
new
QuerySchemeField
(
displayName
[
0
],
"name"
,
"string"
,
Long
.
valueOf
(
displayLen
[
0
])));
// new QuerySchemeField("工厂", "WERKS", "string", 100L),
if
(
displayName
.
length
>
1
){
new
QuerySchemeField
(
"国家"
,
"name"
,
"string"
,
200L
),
fields
.
add
(
new
QuerySchemeField
(
displayName
[
1
],
"value"
,
"string"
,
Long
.
valueOf
(
displayLen
[
1
])));
new
QuerySchemeField
(
"代码"
,
"value"
,
"string"
,
200L
)
}
else
{
// new QuerySchemeField("物料名称", "MAKTX", "string", 200L),
fields
.
add
(
new
QuerySchemeField
(
""
,
"value"
,
"hidden"
,
0L
));
// new QuerySchemeField("库存地点", "LGFSB", "string", 100L),
}
// new QuerySchemeField("库存地点名称", "LGOBE", "string", 200L),
// new QuerySchemeField("物料组", "MATKL", "string", 100L),
Long
widths
=
0L
;
// new QuerySchemeField("物料组名称", "WGBEZ", "string", 200L),
for
(
int
u
=
0
;
u
<
displayLen
.
length
;
u
++){
// new QuerySchemeField("基本计量单位", "MEINS", "string", 100L),
widths
+=
Long
.
valueOf
(
displayLen
[
u
]);
// new QuerySchemeField("基本计量单位名称", "MSEHL", "string", 100L),
}
// new QuerySchemeField("采购组", "EKGRP", "string", 100L),
// new QuerySchemeField("采购组名称", "EKNAM", "string", 200L),
// new QuerySchemeField("价格基数", "PEINH", "string", 100L)
);
easySearchParse
.
setFields
(
fields
);
easySearchParse
.
setFields
(
fields
);
easySearchParse
.
setWidth
(
450L
);
easySearchParse
.
setWidth
(
widths
);
MemEasySearcher
<
Map
<
String
,
String
>>
memEasySearcher
=
new
MemEasySearcherImpl
<>();
MemEasySearcher
<
Map
<
String
,
String
>>
memEasySearcher
=
new
MemEasySearcherImpl
<>();
Map
<
String
,
Object
>
model
=
memEasySearcher
.
search
(
mapList
,
easySearchParse
,
pageRequest
,
null
);
Map
<
String
,
Object
>
model
=
memEasySearcher
.
search
(
mapList
,
easySearchParse
,
pageRequest
,
null
);
return
model
;
return
model
;
...
...
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