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
51e19abb
Commit
51e19abb
authored
May 15, 2024
by
刘学辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购信息记录编辑改为弹窗
parent
ed3ed85d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
25 deletions
+27
-25
purchaseInfoRecordDetail.js
...topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
+11
-8
purchaseInfoRecordList.js
...z/topsun/sap/purchaseInfoRecord/purchaseInfoRecordList.js
+6
-6
suppliersDataDetail.js
...in/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
+1
-2
DefaultHttpClient.java
.../java/com/huigou/topsun/sap/common/DefaultHttpClient.java
+2
-1
SapPurchaseInfoRecordItemController.java
...ecord/controller/SapPurchaseInfoRecordItemController.java
+7
-8
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
View file @
51e19abb
...
...
@@ -23,6 +23,7 @@ function initItemGrid() {
width
:
1200
,
height
:
860
,
init
:
initShowDialog
,
okVal
:
'确定'
,
ok
:
doSaveDefine
,
close
:
onDialogCloseHandler
});
...
...
@@ -42,7 +43,8 @@ function initItemGrid() {
gridManager
:
_grid
,
idFieldName
:
'id'
,
onSuccess
:
function
()
{
reloadGrid
();
itemGridManager
.
loadData
();
//reloadGrid();
}
});
},
...
...
@@ -133,7 +135,7 @@ function getGridColumns() {
},
} */
},
{
display
:
"供应商
"
,
name
:
"lifnr"
,
width
:
"2
00"
,
align
:
"left"
,
type
:
"string"
{
display
:
"供应商
编码"
,
name
:
"lifnr"
,
width
:
"1
00"
,
align
:
"left"
,
type
:
"string"
/*,editor: {
required: true, type: "select",
data: {
...
...
@@ -149,13 +151,13 @@ function getGridColumns() {
},
} */
},
{
display
:
"
名称1"
,
name
:
"name1"
,
width
:
"3
00"
,
align
:
"left"
,
type
:
"string"
{
display
:
"
供应商名称1"
,
name
:
"name1"
,
width
:
"2
00"
,
align
:
"left"
,
type
:
"string"
// ,editor: {required: false, type: "text"}
},
{
display
:
"供应商物料编码"
,
name
:
"idnlf"
,
width
:
"
20
0"
,
align
:
"left"
,
type
:
"string"
{
display
:
"供应商物料编码"
,
name
:
"idnlf"
,
width
:
"
12
0"
,
align
:
"left"
,
type
:
"string"
// ,editor: {required: false, type: "text"}
},
{
display
:
"物料编码"
,
name
:
"matnr"
,
width
:
"
20
0"
,
align
:
"left"
,
type
:
"string"
,
{
display
:
"物料编码"
,
name
:
"matnr"
,
width
:
"
16
0"
,
align
:
"left"
,
type
:
"string"
,
/*,editor: {
required: true, type: "select",
data: {
...
...
@@ -186,7 +188,7 @@ function getGridColumns() {
//,editor: {required: true, type: "text"}
},
{
display
:
"物料组编号"
,
name
:
"matkl"
,
width
:
"10"
,
align
:
"left"
,
type
:
"string"
,
hide
:
true
},
{
display
:
"物料组"
,
name
:
"matklName"
,
width
:
"
20
0"
,
align
:
"left"
,
type
:
"string"
{
display
:
"物料组"
,
name
:
"matklName"
,
width
:
"
16
0"
,
align
:
"left"
,
type
:
"string"
/*,editor: {
required: true, type: "select",
data: {
...
...
@@ -205,7 +207,7 @@ function getGridColumns() {
}*/
},
{
display
:
"采购信息记录分类编号"
,
name
:
"esokz"
,
width
:
"20"
,
align
:
"left"
,
type
:
"string"
,
hide
:
true
},
{
display
:
"采购信息记录分类"
,
name
:
"esokzTextView"
,
width
:
"
20
0"
,
align
:
"left"
,
type
:
"string"
{
display
:
"采购信息记录分类"
,
name
:
"esokzTextView"
,
width
:
"
14
0"
,
align
:
"left"
,
type
:
"string"
/* ,editor: {
type: 'dictionary',
data: {name: 'esokz'},
...
...
@@ -685,7 +687,7 @@ function viewHandler(data){
//debugger
var
param
=
JSON
.
stringify
(
data
);
var
rowId
=
data
.
__id
;
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
)
{
if
(
$
(
"#isReadOnly"
).
val
()
==
"true"
||
$
(
"#statusId"
).
val
()
!=
0
)
{
UICtrl
.
showAjaxDialog
({
title
:
"添加采购信息记录"
,
url
:
web_app
.
name
+
'/sapPurchaseInfoRecord/addSapPurchaseInfoRecordDetail.load?id='
+
data
.
id
+
'&rowId='
+
rowId
,
...
...
@@ -708,6 +710,7 @@ function viewHandler(data){
width
:
1200
,
height
:
860
,
init
:
initShowDialog
,
okVal
:
'确定'
,
ok
:
doSaveDefine
,
close
:
onDialogCloseHandler
});
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/purchaseInfoRecordList.js
View file @
51e19abb
...
...
@@ -45,20 +45,20 @@ function initPurchaseListGrid() {
});
purchaseInfoRecordGridManager
=
UICtrl
.
grid
(
'#purchaseInfoRecordGrid'
,
{
columns
:
[
{
display
:
"状态"
,
name
:
"statusTextView"
,
width
:
"
10
0"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"状态"
,
name
:
"statusTextView"
,
width
:
"
8
0"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"id"
,
name
:
"id"
,
width
:
"140"
,
align
:
"left"
,
type
:
"string"
,
hide
:
true
},
{
display
:
"
采购信息记录
编号"
,
name
:
"billCode"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
},
{
display
:
"消息类型"
,
name
:
"typeTextView"
,
width
:
1
5
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
},
{
display
:
"
单据
编号"
,
name
:
"billCode"
,
width
:
150
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
},
{
display
:
"消息类型"
,
name
:
"typeTextView"
,
width
:
1
0
0
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
},
{
display
:
"消息文本"
,
name
:
"message"
,
width
:
300
,
minWidth
:
60
,
type
:
"string"
,
align
:
"center"
},
{
display
:
"工厂"
,
name
:
"werksName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"采购组织"
,
name
:
"ekorgName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"供应商"
,
name
:
"lifnr"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"名称1"
,
name
:
"name1"
,
width
:
"300"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"供应商
编号
"
,
name
:
"lifnr"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"
供应商
名称1"
,
name
:
"name1"
,
width
:
"300"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"供应商物料编码"
,
name
:
"idnlf"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"物料编码"
,
name
:
"matnr"
,
width
:
"150"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"物料描述"
,
name
:
"maktx"
,
width
:
"300"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"物料组"
,
name
:
"matklName"
,
width
:
"150"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"采购信息记录分类"
,
name
:
"esokzTextView"
,
width
:
"
20
0"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"采购信息记录分类"
,
name
:
"esokzTextView"
,
width
:
"
14
0"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"采购组"
,
name
:
"ekgrpName"
,
width
:
"200"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"净价"
,
name
:
"netpr"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
},
{
display
:
"货币码"
,
name
:
"waersTextView"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,},
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/suppliers/suppliersDataDetail.js
View file @
51e19abb
...
...
@@ -631,8 +631,7 @@ function bindEvent(){
}
function
reloadGrid
()
{
alert
(
sid
);
sid
=
$
(
"#id"
).
val
();
alert
(
sid
);
sid
=
$
(
"#id"
).
val
();
sapSuppliersPayGridManager
.
loadData
();
sapSuppliersBuyerGridManager
.
loadData
();
sapSuppliersBankGridManager
.
loadData
();
...
...
topsun/src/main/java/com/huigou/topsun/sap/common/DefaultHttpClient.java
View file @
51e19abb
...
...
@@ -62,7 +62,8 @@ public class DefaultHttpClient extends BaseApplication implements HttpClient {
.
append
(
applicationContext
)
.
append
(
url
)
.
append
(
"?"
)
.
append
(
client
);
.
append
(
client
)
.
append
(
"&sap-language=ZH"
);
String
usernameAndPassword
=
username
+
":"
+
password
;
return
this
.
buildHttpClient
(
param
,
String
.
valueOf
(
serverUrl
),
usernameAndPassword
);
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/controller/SapPurchaseInfoRecordItemController.java
View file @
51e19abb
...
...
@@ -9,6 +9,7 @@ import com.huigou.util.StringUtil;
import
org.springframework.stereotype.Controller
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -41,17 +42,15 @@ public class SapPurchaseInfoRecordItemController extends CommonController {
public
String
deleteSapPurchaseInfoRecordItem
(){
SDO
sdo
=
this
.
getSDO
();
List
<
String
>
ids
=
sdo
.
getIds
();
List
<
String
>
newIds
=
new
ArrayList
<>();
for
(
String
id:
ids
){
if
(
id
.
equals
(
"undefined"
)){
ids
.
remove
(
id
);
if
(
ids
.
size
()==
0
){
break
;
}
if
(!
id
.
equals
(
"undefined"
)){
newIds
.
add
(
id
);
}
}
System
.
out
.
println
(
"ids==="
+
i
ds
);
if
(
ids
!=
null
&&
i
ds
.
size
()>
0
)
{
sapPurchaseInfoRecordItemApplication
.
deleteByIds
(
i
ds
);
// System.out.println("newIds==="+newI
ds);
if
(
newIds
!=
null
&&
newI
ds
.
size
()>
0
)
{
sapPurchaseInfoRecordItemApplication
.
deleteByIds
(
newI
ds
);
}
return
success
();
}
...
...
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