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
60866d60
Commit
60866d60
authored
Mar 01, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过账指标统计
parent
36e36d7a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
14 deletions
+54
-14
statsIndicators.js
.../webapp/biz/topsun/sap/statsIndicators/statsIndicators.js
+22
-11
statsIndicators.jsp
...webapp/biz/topsun/sap/statsIndicators/statsIndicators.jsp
+3
-3
SapStatsIndicatorsDetailApplication.java
...tors/application/SapStatsIndicatorsDetailApplication.java
+3
-0
SapStatsIndicatorsApplicationImpl.java
...s/application/impl/SapStatsIndicatorsApplicationImpl.java
+2
-0
SapStatsIndicatorsDetailApplicationImpl.java
...ication/impl/SapStatsIndicatorsDetailApplicationImpl.java
+12
-0
SapStatsIndicatorsController.java
...tsIndicators/controller/SapStatsIndicatorsController.java
+12
-0
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/statsIndicators/statsIndicators.js
View file @
60866d60
...
...
@@ -3,6 +3,7 @@ var gridManager = null;
$
(
document
).
ready
(
function
()
{
initialize
();
loadStatsIndicatorsDetailListGrid
();
bindEvent
();
});
function
initialize
(){
let
isDetailPage
=
(
$
(
"#isDetailPage"
).
val
()
===
"true"
);
...
...
@@ -11,20 +12,34 @@ function initialize(){
}
}
function
bindEvent
(){
var
code
=
$
(
"#submitForm #billCode"
).
val
();
$
(
"#bltxt"
).
val
(
code
);
}
function
loadStatsIndicatorsDetailListGrid
()
{
var
toolbarOptions
=
UICtrl
.
getDefaultToolbarOptions
({
addHandler
:
function
()
{
UICtrl
.
addGridRow
(
gridManager
,{
zlenr
:
gridManager
.
getData
().
length
+
1
});
},
deleteHandler
:
function
()
{
gridManager
.
deleteSelectedRow
();
var
_grid
=
UICtrl
.
getGridManager
(
'#statsIndicatorsDetailGrid'
);
DataUtil
.
delSelectedRows
({
action
:
'sapStatsIndicators/deleteStatsIndicatorDetails.ajax'
,
param
:
{},
gridManager
:
_grid
,
idFieldName
:
'statsIndicatorsDetailId'
,
onSuccess
:
function
()
{
reloadGrid
();
}
});
}
});
gridManager
=
UICtrl
.
grid
(
"#statsIndicatorsDetailGrid"
,
{
columns
:
[
{
display
:
"行号"
,
name
:
"zlenr"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
//
editor: { type: 'spinner', min: 1, max: 100, mask: 'nnn'}
editor
:
{
type
:
'spinner'
,
min
:
1
,
max
:
100
,
mask
:
'nnn'
}
},
{
display
:
"成本中心"
,
name
:
"kostl"
,
width
:
140
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
...
...
@@ -57,13 +72,6 @@ function loadStatsIndicatorsDetailListGrid() {
},
{
display
:
"统计指标"
,
name
:
"stagr"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
/*editor: {
required: true,
type: 'dictionary',
data: {name:'sex'} ,
textField:'stagrTextView',
valueField:'sex'
}*/
editor
:
{
required
:
true
,
type
:
'text'
...
...
@@ -121,6 +129,10 @@ function getId() {
return
$
(
"#id"
).
val
()
||
""
;
}
function
reloadGrid
()
{
gridManager
.
loadData
();
}
function
getExtendedData
(
processAction
)
{
//回退、打回、转交时,不需要验证必填项是否已经填写;
if
(
processAction
==
ProcessAction
.
BACK
...
...
@@ -129,13 +141,12 @@ function getExtendedData(processAction) {
//不验证
$
(
'#submitForm'
).
attr
(
'check'
,
false
);
}
const
isAllData
=
$
(
'#oldId'
)
||
!
getId
();
var
extendedData
=
{};
var
_grid
=
UICtrl
.
getGridManager
(
'#statsIndicatorsDetailGrid'
);
if
(
_grid
)
{
var
datas
=
DataUtil
.
getGridData
({
gridManager
:
_grid
,
isAllData
:
isAllData
isAllData
:
true
});
if
(
!
datas
)
{
return
false
;
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/statsIndicators/statsIndicators.jsp
View file @
60866d60
...
...
@@ -24,8 +24,8 @@
<x:hidden
name=
"personMemberName"
/>
<div
class=
"hg-form-cols"
>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"kokrs"
required=
"true"
label=
"成本控制范围"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"usnam"
required=
"true"
label=
"SAP用户名"
labelCol=
"2"
fieldCol=
"2"
/>
<x:inputC
name=
"kokrs"
required=
"true"
readonly=
"true"
label=
"成本控制范围"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
/>
<x:inputC
name=
"usnam"
required=
"true"
readonly=
"true"
label=
"SAP用户名"
labelCol=
"2"
fieldCol=
"2"
/>
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"budat"
required=
"true"
label=
"过账日期"
labelCol=
"2"
maxLength=
"64"
fieldCol=
"2"
...
...
@@ -34,7 +34,7 @@
wrapper=
"date"
/>
</div>
<div
class=
"hg-form-row"
>
<x:inputC
name=
"bltxt"
required=
"true"
label=
"凭证文本"
labelCol=
"2"
fieldCol=
"6"
/>
<x:inputC
name=
"bltxt"
required=
"
fasle"
readonly=
"
true"
label=
"凭证文本"
labelCol=
"2"
fieldCol=
"6"
/>
</div>
</div>
<div
class=
"blank_div clearfix"
></div>
...
...
topsun/src/main/java/com/huigou/topsun/sap/statsIndicators/application/SapStatsIndicatorsDetailApplication.java
View file @
60866d60
...
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.statsIndicators.application;
import
com.huigou.topsun.sap.statsIndicators.domain.query.SapStatsIndicatorsDetailQueryRequest
;
import
java.util.List
;
import
java.util.Map
;
public
interface
SapStatsIndicatorsDetailApplication
{
...
...
@@ -9,4 +10,6 @@ public interface SapStatsIndicatorsDetailApplication {
String
QUERY_XML_FILE_PATH
=
"config/topsun/sap/statsIndicators/statsIndicators.xml"
;
Map
<
String
,
Object
>
slicedStatsIndicatorsDetailQuery
(
SapStatsIndicatorsDetailQueryRequest
query
);
void
deleteStatsIndicatorsDetail
(
List
<
String
>
ids
);
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/sap/statsIndicators/application/impl/SapStatsIndicatorsApplicationImpl.java
View file @
60866d60
...
...
@@ -200,6 +200,8 @@ public class SapStatsIndicatorsApplicationImpl extends FlowBroker implements Sap
}
//封装参数
for
(
SapStatsIndicatorsDetail
sapStatsIndicatorsDetail
:
all
)
{
String
stagr
=
sapStatsIndicatorsDetail
.
getStagr
();
sapStatsIndicatorsDetail
.
setStagr
(
stagr
.
toUpperCase
());
Map
<
String
,
Object
>
detailMap
=
MyBaseUtil
.
convertToMap
(
sapStatsIndicatorsDetail
,
true
);
list
.
add
(
detailMap
);
}
...
...
topsun/src/main/java/com/huigou/topsun/sap/statsIndicators/application/impl/SapStatsIndicatorsDetailApplicationImpl.java
View file @
60866d60
...
...
@@ -3,17 +3,29 @@ package com.huigou.topsun.sap.statsIndicators.application.impl;
import
com.huigou.data.query.model.QueryDescriptor
;
import
com.huigou.topsun.sap.statsIndicators.application.SapStatsIndicatorsDetailApplication
;
import
com.huigou.topsun.sap.statsIndicators.domain.query.SapStatsIndicatorsDetailQueryRequest
;
import
com.huigou.topsun.sap.statsIndicators.repository.SapStatsIndicatorsDetailRepository
;
import
com.huigou.uasp.bmp.common.application.BaseApplication
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Map
;
@Service
public
class
SapStatsIndicatorsDetailApplicationImpl
extends
BaseApplication
implements
SapStatsIndicatorsDetailApplication
{
@Autowired
private
SapStatsIndicatorsDetailRepository
sapStatsIndicatorsDetailRepository
;
@Override
public
Map
<
String
,
Object
>
slicedStatsIndicatorsDetailQuery
(
SapStatsIndicatorsDetailQueryRequest
query
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"slicedStatsIndicatorsDetailQuery"
);
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryDescriptor
,
query
);
}
@Override
public
void
deleteStatsIndicatorsDetail
(
List
<
String
>
ids
)
{
ids
.
forEach
(
id
->{
sapStatsIndicatorsDetailRepository
.
delete
(
id
);
});
}
}
topsun/src/main/java/com/huigou/topsun/sap/statsIndicators/controller/SapStatsIndicatorsController.java
View file @
60866d60
...
...
@@ -2,6 +2,7 @@ package com.huigou.topsun.sap.statsIndicators.controller;
import
com.huigou.cache.SystemCache
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.topsun.sap.statsIndicators.application.SapStatsIndicatorsApplication
;
...
...
@@ -47,6 +48,10 @@ public class SapStatsIndicatorsController extends CommonController {
sapStatsIndicators
.
setStatusId
(
BizBillStatus
.
APPLYING
.
getId
());
Operator
operator
=
getOperator
();
//获取当前操作员的详情信息
sapStatsIndicators
.
setDefaultValues
(
new
OrgUnit
(
operator
.
getFullId
(),
operator
.
getFullName
()));
String
kokrs
=
SystemCache
.
getParameter
(
"statsIndicators.kokrs"
,
String
.
class
);
String
usnam
=
SystemCache
.
getParameter
(
"statsIndicators.usnam"
,
String
.
class
);
sapStatsIndicators
.
setKokrs
(
kokrs
);
sapStatsIndicators
.
setUsnam
(
usnam
);
return
forward
(
"statsIndicators"
,
sapStatsIndicators
);
}
...
...
@@ -89,6 +94,13 @@ public class SapStatsIndicatorsController extends CommonController {
return
success
();
}
public
String
deleteStatsIndicatorDetails
(){
SDO
sdo
=
this
.
getSDO
();
List
<
String
>
ids
=
sdo
.
getIds
();
sapStatsIndicatorsDetailApplication
.
deleteStatsIndicatorsDetail
(
ids
);
return
success
();
}
/**
* 手动发送数据到sap
* @return
...
...
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