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
ce0c662f
Commit
ce0c662f
authored
Aug 03, 2024
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跨工厂转移明细必填;查询工单接口
parent
04531c43
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
58 additions
and
8 deletions
+58
-8
addPurchaseInfoRecordDetail.jsp
...un/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.jsp
+1
-1
purchaseInfoRecordDetail.js
...topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
+1
-1
sapStockTransfersDetail.js
...ebapp/biz/topsun/sap/transfers/sapStockTransfersDetail.js
+3
-3
ResourceSearchController.java
...om/huigou/topsun/controller/ResourceSearchController.java
+6
-2
SapPurchaseInfoRecordApplicationImpl.java
...pplication/impl/SapPurchaseInfoRecordApplicationImpl.java
+23
-0
SapPurchaseInfoRecordItemApplicationImpl.java
...cation/impl/SapPurchaseInfoRecordItemApplicationImpl.java
+3
-0
SapDictionaryApplication.java
.../sapApplication/application/SapDictionaryApplication.java
+1
-0
SapDictionaryApplicationImpl.java
...cation/application/impl/SapDictionaryApplicationImpl.java
+17
-0
SapStockTransfersApplicationImpl.java
...rs/application/impl/SapStockTransfersApplicationImpl.java
+3
-1
No files found.
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/addPurchaseInfoRecordDetail.jsp
View file @
ce0c662f
...
...
@@ -50,7 +50,7 @@
</div>
<div
class=
"hg-form-row"
>
<x:hidden
name=
"meins"
/>
<x:selectC
name=
"mwskz"
label=
"销售/购买税代码"
labelCol=
"2"
fieldCol=
"1"
required=
"true"
dictionary=
"
m
wskz"
/>
<x:selectC
name=
"mwskz"
label=
"销售/购买税代码"
labelCol=
"2"
fieldCol=
"1"
required=
"true"
dictionary=
"
purchaseM
wskz"
/>
<x:inputC
name=
"norbm"
label=
"标准采购订单数量"
labelCol=
"2"
fieldCol=
"1"
required=
"true"
mask=
"99999999.99"
/>
<x:inputC
name=
"umren"
label=
"单位转换分母"
labelCol=
"1"
fieldCol=
"2"
required=
"true"
mask=
"99999999.99"
/>
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/purchaseInfoRecord/purchaseInfoRecordDetail.js
View file @
ce0c662f
...
...
@@ -290,7 +290,7 @@ function getGridColumns() {
},
{
display
:
"销售/购买税代码"
,
name
:
"mwskz"
,
width
:
"40"
,
align
:
"left"
,
type
:
"string"
,
hide
:
"true"
},
{
display
:
"销售/购买税代码"
,
name
:
"mwskzTextView"
,
width
:
"1
0
0"
,
align
:
"left"
,
type
:
"string"
{
display
:
"销售/购买税代码"
,
name
:
"mwskzTextView"
,
width
:
"1
5
0"
,
align
:
"left"
,
type
:
"string"
/*,editor: {
type: 'dictionary',
data: {name: 'mwskz'},
...
...
topsun-xt/src/main/webapp/biz/topsun/sap/transfers/sapStockTransfersDetail.js
View file @
ce0c662f
...
...
@@ -140,7 +140,7 @@ function loadGrid() {
},
{
display
:
"单位"
,
name
:
"meinsName"
,
width
:
120
,
minWidth
:
60
,
type
:
"string"
,
align
:
"left"
,
editor
:
{
required
:
fals
e
,
type
:
"select"
,
required
:
tru
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
@@ -156,11 +156,11 @@ function loadGrid() {
},
{
display
:
"日期"
,
name
:
"eeind"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
fals
e
,
type
:
"date"
}
editor
:
{
required
:
tru
e
,
type
:
"date"
}
},
{
display
:
"库存地点"
,
name
:
"lgort"
,
width
:
"100"
,
align
:
"left"
,
type
:
"string"
,
editor
:
{
required
:
fals
e
,
type
:
"select"
,
required
:
tru
e
,
type
:
"select"
,
data
:
{
type
:
'system'
,
name
:
"dictionary"
,
...
...
topsun/src/main/java/com/huigou/topsun/controller/ResourceSearchController.java
View file @
ce0c662f
...
...
@@ -409,9 +409,13 @@ public class ResourceSearchController {
String
noContain
=
sdo
.
getString
(
"noContain"
);
String
notNull
=
sdo
.
getString
(
"notNull"
);
List
<
Map
<
String
,
String
>>
mapList
=
new
ArrayList
<>();
mapList
=
sapDictionaryApplication
.
getSapDictionary
(
fieldName
);
if
(
"AUFNR"
.
equals
(
fieldName
)){
mapList
=
sapDictionaryApplication
.
getSapDictionary
(
fieldName
,
param
);
}
else
{
mapList
=
sapDictionaryApplication
.
getSapDictionary
(
fieldName
);
}
List
<
QuerySchemeField
>
fields
=
new
ArrayList
<>();
Long
totalWidths
=
1
00L
;
Long
totalWidths
=
2
00L
;
if
(
CollectionUtil
.
isNotEmpty
(
mapList
)){
if
(
StringUtil
.
isNotBlank
(
filterValue
)){
//固定条件过滤,比如选了工厂后,只能读取改工厂下的物料组
String
[]
split
=
filterValue
.
split
(
","
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/application/impl/SapPurchaseInfoRecordApplicationImpl.java
View file @
ce0c662f
...
...
@@ -13,6 +13,7 @@ import com.huigou.topsun.base.coderule.repository.CodeRuleRepository;
import
com.huigou.topsun.sap.common.HttpClient
;
import
com.huigou.topsun.sap.common.application.SapMutualEpLogApplication
;
import
com.huigou.topsun.sap.costReimbursement.domain.SapCostReimbursement
;
import
com.huigou.topsun.sap.purchase.domain.SapPurchase
;
import
com.huigou.topsun.sap.purchaseInfoRecord.application.SapPurchaseInfoRecordApplication
;
import
com.huigou.topsun.sap.purchaseInfoRecord.application.SapPurchaseInfoRecordItemApplication
;
import
com.huigou.topsun.sap.purchaseInfoRecord.domain.SapPurchaseInfoRecord
;
...
...
@@ -78,7 +79,28 @@ public class SapPurchaseInfoRecordApplicationImpl extends FlowBroker implements
}
/**
* 设置任务名称
*/
@Override
protected
void
setTaskDescription
(
DelegateTask
delegateTask
)
{
String
bizId
=
delegateTask
.
getExecution
().
getProcessBusinessKey
();
delegateTask
.
setDescription
(
this
.
getApprovalSubjectName
(
bizId
));
}
/**
* 获取任务标题
*
* @param bizId
* @return
*/
private
String
getApprovalSubjectName
(
String
bizId
)
{
SapPurchaseInfoRecord
infoRecord
=
this
.
sapPurchaseInfoRecordRepository
.
findOne
(
bizId
);
//查询 单据日期
String
fillinDateStr
=
DateUtil
.
getDateFormat
(
"yyyy-MM-dd HH:mm:ss"
,
infoRecord
.
getFillinDate
());
//设置标题
return
String
.
format
(
"%s-%s(%s)"
,
"采购信息记录"
,
infoRecord
.
getBillCode
(),
fillinDateStr
);
}
@Override
protected
Map
<
String
,
Object
>
getProcessBizParams
(
String
bizId
)
{
// 返回业务数据给流程实例,
...
...
@@ -258,6 +280,7 @@ public class SapPurchaseInfoRecordApplicationImpl extends FlowBroker implements
queryModel
.
putDictionary
(
"status"
,
BizBillStatus
.
getMap
());
queryModel
.
putDictionary
(
"urzla"
,
DictUtil
.
getDictionary
(
"country"
));
queryModel
.
putDictionary
(
"loekz"
,
DictUtil
.
getDictionary
(
"loekz"
));
queryModel
.
putDictionary
(
"mwskz"
,
DictUtil
.
getDictionary
(
"purchaseMwskz"
));
queryModel
.
addCriteria
(
" order by fillin_date desc "
);
return
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/purchaseInfoRecord/application/impl/SapPurchaseInfoRecordItemApplicationImpl.java
View file @
ce0c662f
...
...
@@ -45,6 +45,7 @@ public class SapPurchaseInfoRecordItemApplicationImpl extends BaseApplication im
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"sapPurchaseInfoRecordItems"
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
queryRequest
);
queryModel
.
putDictionary
(
"urzla"
,
DictUtil
.
getDictionary
(
"country"
));
queryModel
.
putDictionary
(
"mwskz"
,
DictUtil
.
getDictionary
(
"purchaseMwskz"
));
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
}
return
map
;
...
...
@@ -54,6 +55,7 @@ public class SapPurchaseInfoRecordItemApplicationImpl extends BaseApplication im
public
Map
<
String
,
Object
>
querySapPurchaseInfoRecordItemByIds
(
SapPurchaseInfoRecordQueryRequest
request
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"sapPurchaseInfoRecordItemByIds"
);
QueryModel
queryModel
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
request
);
queryModel
.
putDictionary
(
"mwskz"
,
DictUtil
.
getDictionary
(
"purchaseMwskz"
));
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
queryModel
);
return
map
;
}
...
...
@@ -61,6 +63,7 @@ public class SapPurchaseInfoRecordItemApplicationImpl extends BaseApplication im
public
List
<
SapPurchaseInfoRecordItem
>
querySapPurchaseInfoRecordItemByMaytkl
(
SapPurchaseInfoRecordQueryRequest
query
)
{
QueryDescriptor
queryDescriptor
=
this
.
sqlExecutorDao
.
getQuery
(
QUERY_XML_FILE_PATH
,
"querySapPurchaseInfoRecordItemByMaytkl"
);
QueryModel
model
=
this
.
sqlExecutorDao
.
getQueryModel
(
queryDescriptor
,
query
);
model
.
putDictionary
(
"mwskz"
,
DictUtil
.
getDictionary
(
"purchaseMwskz"
));
model
.
setPageIndex
(
1
);
model
.
setPageSize
(
10
);
Map
<
String
,
Object
>
map
=
this
.
sqlExecutorDao
.
executeSlicedQuery
(
model
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/sapApplication/application/SapDictionaryApplication.java
View file @
ce0c662f
...
...
@@ -13,6 +13,7 @@ import java.util.Map;
*/
public
interface
SapDictionaryApplication
{
List
<
Map
<
String
,
String
>>
getSapDictionary
(
String
fieldName
)
throws
IOException
;
List
<
Map
<
String
,
String
>>
getSapDictionary
(
String
fieldName
,
String
fieldValue
)
throws
IOException
;
public
Map
<
String
,
Object
>
initEasySearchModel
(
List
<
Map
<
String
,
String
>>
mapList
,
String
param
,
SDO
sdo
);
...
...
topsun/src/main/java/com/huigou/topsun/sap/sapApplication/application/impl/SapDictionaryApplicationImpl.java
View file @
ce0c662f
...
...
@@ -54,6 +54,23 @@ public class SapDictionaryApplicationImpl implements SapDictionaryApplication {
return
mapList
;
}
@Override
public
List
<
Map
<
String
,
String
>>
getSapDictionary
(
String
fieldName
,
String
fieldValue
)
throws
IOException
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"FIELDNAME"
,
fieldName
);
map
.
put
(
"VALUE"
,
fieldValue
);
String
url
=
SystemCache
.
getParameter
(
"sap.service.dictionary.url"
,
String
.
class
);
String
execute
=
null
;
try
{
execute
=
httpClient
.
execute
(
map
,
url
);
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
String
.
format
(
"查询“%s“数据字典出错”。"
,
fieldName
));
}
ObjectMapper
objectMapper
=
SAPUtils
.
objectMapper
();
List
<
Map
<
String
,
String
>>
mapList
=
objectMapper
.
readValue
(
execute
,
new
TypeReference
<
List
<
Map
<
String
,
String
>>>()
{});
return
mapList
;
}
@Override
public
Map
<
String
,
Object
>
initEasySearchModel
(
List
<
Map
<
String
,
String
>>
mapList
,
String
param
,
SDO
sdo
){
List
<
QuerySchemeField
>
fields
=
new
ArrayList
<>();
...
...
topsun/src/main/java/com/huigou/topsun/sap/transfers/application/impl/SapStockTransfersApplicationImpl.java
View file @
ce0c662f
...
...
@@ -128,7 +128,9 @@ public class SapStockTransfersApplicationImpl extends FlowBroker implements SapS
for
(
SapStockTransfersItem
item:
itemList
){
SapStockTransfersItemVO
sapStockTransfersItemVO
=
new
SapStockTransfersItemVO
();
BeanUtil
.
copyProperties
(
item
,
sapStockTransfersItemVO
);
sapStockTransfersItemVO
.
setEeind
(
sdf
.
format
(
item
.
getEeind
()));
if
(
item
.
getEeind
()
!=
null
){
sapStockTransfersItemVO
.
setEeind
(
sdf
.
format
(
item
.
getEeind
()));
}
sapStockTransfersItemVO
.
setWerks
(
stockTransfers
.
getWerks
());
newItemList
.
add
(
sapStockTransfersItemVO
);
}
...
...
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