Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊智
/
scm-gc-src
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
988faa21
authored
Jan 25, 2024
by
熊智
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
国采改造
parent
4ac86e0d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
128 additions
and
381 deletions
com/kingdee/eas/hse/scm/planandorder/app/EntrustBillControllerBean.java
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI.java
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI.properties
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI_l2.properties
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI_l3.properties
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillEditUICTEx.java
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillListUI.java
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillUnitEditUI.java
com/kingdee/eas/hse/scm/purchasemanager/client/PurcharseOrderEditUI.java
com/kingdee/eas/hse/scm/purchasemanager/client/PurcharseOrderListUI.java
com/kingdee/eas/hse/scm/salemanager/app/PostRequistionBillControllerBean.java
com/kingdee/eas/hse/scm/service/FundManager.java
com/kingdee/eas/hse/scm/settlemanager/client/ArChargeSettleEditUI.java
com/kingdee/eas/hse/scm/planandorder/app/EntrustBillControllerBean.java
View file @
988faa21
...
...
@@ -307,17 +307,6 @@ public class EntrustBillControllerBean extends AbstractEntrustBillControllerBean
throw
XZAppUtil
.
diyEASBizException
(
"取号与订单抬头不一致,无法提交保存"
);
}
}
if
(
entrustNo
.
startsWith
(
"E"
))
{
EntrustBillClassifyEntryCollection
entrys
=
info
.
getClassifyEntrys
();
if
(
entrys
!=
null
&&
entrys
.
size
()
>
0
)
{
CurrencyInfo
currency
=
entrys
.
get
(
0
).
getCurrency
();
if
(
currency
!=
null
&&
!
"人民币"
.
equals
(
currency
.
getName
()))
{
if
(
StringUtils
.
isEmpty
(
info
.
getCustomerBillNumber
()))
{
throw
XZAppUtil
.
diyEASBizException
(
"国采外币下单时,请填写“报关委托单号”"
);
}
}
}
}
}
/**
...
...
@@ -923,7 +912,7 @@ public class EntrustBillControllerBean extends AbstractEntrustBillControllerBean
arTotal
=
invoiceAmount
.
subtract
(
totalAmount
);
}
}
else
if
(
number
.
contains
(
"ACI"
))
{
// 普通采购
rate
=
BigDecimal
.
ONE
;
rate
=
getCustomsRate
(
ctx
,
currencyId
,
rmbId
,
info
.
getBizDate
());
// 海关汇率
for
(
int
i
=
0
;
i
<
info
.
getClassifyEntrys
().
size
();
i
++)
{
EntrustBillClassifyEntryInfo
cfyInfo
=
info
.
getClassifyEntrys
().
get
(
i
);
BigDecimal
amount
=
DCUtil
.
emptyToValue
(
cfyInfo
.
getAmount2
(),
BigDecimal
.
ZERO
);
...
...
@@ -1060,10 +1049,6 @@ public class EntrustBillControllerBean extends AbstractEntrustBillControllerBean
private
void
checktotalAmount
(
Context
ctx
,
EntrustBillInfo
info
)
throws
EASBizException
,
BOSException
{
// 20230724 委托单默认报 双抬头
String
isDoubleHeaderStr
=
DCUtil
.
getInitSysValueByParamNumber
(
ctx
,
"isDoubleHeader"
);
if
(
"true"
.
equals
(
isDoubleHeaderStr
))
{
info
.
setVirtualAgant
(
true
);
}
else
{
// 假代理 当总金额大于假代理金额时 假代理字段自动打勾
BigDecimal
fakeAmount
=
new
BigDecimal
(
DCUtil
.
getInitSysValueByParamNumber
(
ctx
,
"fakeAgent"
,
"0"
));
String
currencyId
=
info
.
getClassifyEntrys
().
get
(
0
).
getCurrency
().
getId
().
toString
();
...
...
@@ -1095,7 +1080,6 @@ public class EntrustBillControllerBean extends AbstractEntrustBillControllerBean
}
}
}
}
private
void
checkServiceNumber
(
Context
ctx
,
IObjectValue
model
)
throws
EASBizException
,
BOSException
{
EntrustBillInfo
info
=
(
EntrustBillInfo
)
model
;
...
...
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI.java
View file @
988faa21
...
...
@@ -46,15 +46,10 @@ import com.kingdee.bos.appframework.uip.UINavigator;
public
abstract
class
AbstractEntrustBillUnitEditUI
extends
com
.
kingdee
.
eas
.
framework
.
client
.
CoreUI
{
private
static
final
Logger
logger
=
CoreUIObject
.
getLogger
(
AbstractEntrustBillUnitEditUI
.
class
);
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
contUnit
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
contTradUnit
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
contBGEntrustNo
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDWorkButton
btnComfirm
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDWorkButton
btnCancel
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
kDLabelContainer1
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDCheckBox
isUpdate
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDComboBox
unit
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDComboBox
tradUnit
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDTextField
txtNoOriginTaxCode
;
protected
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDTextField
txtBGEntrustNo
;
/**
* output class constructor
*/
...
...
@@ -73,24 +68,14 @@ public abstract class AbstractEntrustBillUnitEditUI extends com.kingdee.eas.fram
{
this
.
resHelper
=
new
ResourceBundleHelper
(
AbstractEntrustBillUnitEditUI
.
class
.
getName
());
this
.
setUITitle
(
resHelper
.
getString
(
"this.title"
));
this
.
contUnit
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
();
this
.
contTradUnit
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
();
this
.
contBGEntrustNo
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
();
this
.
btnComfirm
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDWorkButton
();
this
.
btnCancel
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDWorkButton
();
this
.
kDLabelContainer1
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDLabelContainer
();
this
.
isUpdate
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDCheckBox
();
this
.
unit
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDComboBox
();
this
.
tradUnit
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDComboBox
();
this
.
txtNoOriginTaxCode
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDTextField
();
this
.
contUnit
.
setName
(
"contUnit"
);
this
.
contTradUnit
.
setName
(
"contTradUnit"
);
this
.
txtBGEntrustNo
=
new
com
.
kingdee
.
bos
.
ctrl
.
swing
.
KDTextField
();
this
.
contBGEntrustNo
.
setName
(
"contBGEntrustNo"
);
this
.
btnComfirm
.
setName
(
"btnComfirm"
);
this
.
btnCancel
.
setName
(
"btnCancel"
);
this
.
kDLabelContainer1
.
setName
(
"kDLabelContainer1"
);
this
.
isUpdate
.
setName
(
"isUpdate"
);
this
.
unit
.
setName
(
"unit"
);
this
.
tradUnit
.
setName
(
"tradUnit"
);
this
.
txtNoOriginTaxCode
.
setName
(
"txtNoOriginTaxCode"
);
this
.
txtBGEntrustNo
.
setName
(
"txtBGEntrustNo"
);
// CoreUI
this
.
btnPageSetup
.
setVisible
(
false
);
this
.
btnCloud
.
setVisible
(
false
);
...
...
@@ -101,12 +86,9 @@ public abstract class AbstractEntrustBillUnitEditUI extends com.kingdee.eas.fram
this
.
menuItemCloudScreen
.
setVisible
(
false
);
this
.
menuItemCloudShare
.
setVisible
(
false
);
this
.
kdSeparatorFWFile1
.
setVisible
(
false
);
// contUnit
this
.
contUnit
.
setBoundLabelText
(
resHelper
.
getString
(
"contUnit.boundLabelText"
));
this
.
contUnit
.
setBoundLabelLength
(
85
);
// contTradUnit
this
.
contTradUnit
.
setBoundLabelText
(
resHelper
.
getString
(
"contTradUnit.boundLabelText"
));
this
.
contTradUnit
.
setBoundLabelLength
(
85
);
// contBGEntrustNo
this
.
contBGEntrustNo
.
setBoundLabelText
(
resHelper
.
getString
(
"contBGEntrustNo.boundLabelText"
));
this
.
contBGEntrustNo
.
setBoundLabelLength
(
85
);
// btnComfirm
this
.
btnComfirm
.
setText
(
resHelper
.
getString
(
"btnComfirm.text"
));
this
.
btnComfirm
.
addActionListener
(
new
java
.
awt
.
event
.
ActionListener
()
{
...
...
@@ -135,14 +117,7 @@ public abstract class AbstractEntrustBillUnitEditUI extends com.kingdee.eas.fram
}
}
});
// kDLabelContainer1
this
.
kDLabelContainer1
.
setBoundLabelText
(
resHelper
.
getString
(
"kDLabelContainer1.boundLabelText"
));
this
.
kDLabelContainer1
.
setBoundLabelLength
(
84
);
// isUpdate
this
.
isUpdate
.
setText
(
resHelper
.
getString
(
"isUpdate.text"
));
// unit
// tradUnit
// txtNoOriginTaxCode
// txtBGEntrustNo
//Register control's property binding
registerBindings
();
registerUIState
();
...
...
@@ -167,26 +142,16 @@ public abstract class AbstractEntrustBillUnitEditUI extends com.kingdee.eas.fram
*/
public
void
initUIContentLayout
()
{
this
.
setBounds
(
new
Rectangle
(
10
,
10
,
290
,
14
0
));
this
.
setBounds
(
new
Rectangle
(
10
,
10
,
290
,
7
0
));
this
.
setLayout
(
null
);
contUnit
.
setBounds
(
new
Rectangle
(
13
,
14
,
270
,
19
));
this
.
add
(
contUnit
,
null
);
contTradUnit
.
setBounds
(
new
Rectangle
(
12
,
46
,
270
,
19
));
this
.
add
(
contTradUnit
,
null
);
btnComfirm
.
setBounds
(
new
Rectangle
(
144
,
110
,
61
,
19
));
contBGEntrustNo
.
setBounds
(
new
Rectangle
(
13
,
14
,
270
,
19
));
this
.
add
(
contBGEntrustNo
,
null
);
btnComfirm
.
setBounds
(
new
Rectangle
(
144
,
46
,
61
,
19
));
this
.
add
(
btnComfirm
,
null
);
btnCancel
.
setBounds
(
new
Rectangle
(
221
,
110
,
61
,
19
));
btnCancel
.
setBounds
(
new
Rectangle
(
221
,
46
,
61
,
19
));
this
.
add
(
btnCancel
,
null
);
kDLabelContainer1
.
setBounds
(
new
Rectangle
(
80
,
78
,
202
,
19
));
this
.
add
(
kDLabelContainer1
,
null
);
isUpdate
.
setBounds
(
new
Rectangle
(
8
,
79
,
81
,
19
));
this
.
add
(
isUpdate
,
null
);
//contUnit
contUnit
.
setBoundEditor
(
unit
);
//contTradUnit
contTradUnit
.
setBoundEditor
(
tradUnit
);
//kDLabelContainer1
kDLabelContainer1
.
setBoundEditor
(
txtNoOriginTaxCode
);
//contBGEntrustNo
contBGEntrustNo
.
setBoundEditor
(
txtBGEntrustNo
);
}
...
...
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI.properties
View file @
988faa21
this.title
=
\u
59D4
\u6258\u5355\u
4FEE
\u6539
contUnit.boundLabelText
=
\u5355\u
4F4D
\u
FF1A
contTradUnit.boundLabelText
=
\u6210\u
4EA4
\u5355\u
4F4D
\u
FF1A
contBGEntrustNo.boundLabelText
=
\u
62A5
\u5173\u
59D4
\u6258\u5355\u
53F7
\u
FF1A
btnComfirm.text
=
\u
786E
\u
8BA4
btnCancel.text
=
\u
53D6
\u
6D88
\ No newline at end of file
kDLabelContainer1.boundLabelText
=
\u
514D
\u
4EA7
\u5730\u
7A0E
\u
7F16
\u7801\u
FF1A
isUpdate.text
=
\u
662F
\u5426\u
66F4
\u
65B0
\ No newline at end of file
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI_l2.properties
View file @
988faa21
this.title
=
\u
59D4
\u6258\u5355\u
4FEE
\u6539
contUnit.boundLabelText
=
\u5355\u
4F4D
\u
FF1A
contTradUnit.boundLabelText
=
\u6210\u
4EA4
\u5355\u
4F4D
\u
FF1A
contBGEntrustNo.boundLabelText
=
\u
62A5
\u5173\u
59D4
\u6258\u5355\u
53F7
\u
FF1A
btnComfirm.text
=
\u
786E
\u
8BA4
btnCancel.text
=
\u
53D6
\u
6D88
\ No newline at end of file
kDLabelContainer1.boundLabelText
=
\u
514D
\u
4EA7
\u5730\u
7A0E
\u
7F16
\u7801\u
FF1A
isUpdate.text
=
\u
662F
\u5426\u
66F4
\u
65B0
\ No newline at end of file
com/kingdee/eas/hse/scm/planandorder/client/AbstractEntrustBillUnitEditUI_l3.properties
View file @
988faa21
this.title
=
\u
59D4
\u
8A17
\u
55AE
\u
4FEE
\u6539
contUnit.boundLabelText
=
\u
55AE
\u
4F4D
\u
FF1A
contTradUnit.boundLabelText
=
\u6210\u
4EA4
\u
55AE
\u
4F4D
\u
FF1A
contBGEntrustNo.boundLabelText
=
\u5831\u
95DC
\u
59D4
\u
8A17
\u
55AE
\u
865F
\u
FF1A
btnComfirm.text
=
\u
78BA
\u
8A8D
btnCancel.text
=
\u
53D6
\u
6D88
\ No newline at end of file
kDLabelContainer1.boundLabelText
=
\u
514D
\u7522\u5730\u
7A05
\u
7DE8
\u
78BC
\u
FF1A
isUpdate.text
=
\u
662F
\u5426\u
66F4
\u
65B0
\ No newline at end of file
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillEditUICTEx.java
View file @
988faa21
...
...
@@ -88,7 +88,7 @@ public class EntrustBillEditUICTEx extends EntrustBillEditUI {
if
(!
StringUtils
.
isEmpty
(
value
))
{
HashSet
<
String
>
userNos
=
new
HashSet
<
String
>(
Arrays
.
asList
(
value
.
split
(
";"
)));
if
(
userNos
.
contains
(
userNo
))
{
KDWorkButton
btnEditUnit
=
new
KDWorkButton
(
"
委托单修改
"
);
KDWorkButton
btnEditUnit
=
new
KDWorkButton
(
"
编辑报关委托单号
"
);
btnEditUnit
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
e
)
{
btnEditUnit_actionPerformed
(
e
);
...
...
@@ -136,16 +136,12 @@ public class EntrustBillEditUICTEx extends EntrustBillEditUI {
* @description
*/
protected
void
btnEditUnit_actionPerformed
(
ActionEvent
e
)
{
XZClientUtil
.
checkSelected
(
this
.
kdtClassifyEntrys
);
Object
[]
ids
=
DCUtil
.
getSelectedRowsValue
(
this
.
kdtClassifyEntrys
,
"id"
);
if
(
UIRuleUtil
.
isNull
(
ids
))
{
if
(
StringUtils
.
isEmpty
(
this
.
editData
.
getString
(
"id"
)))
{
MsgBox
.
showWarning
(
"请先保存单据!"
);
SysUtil
.
abort
();
}
HashSet
<
String
>
entryIDs
=
new
HashSet
(
Arrays
.
asList
(
ids
));
UIContext
uiCtx
=
new
UIContext
(
this
);
uiCtx
.
put
(
"id"
,
this
.
editData
.
getString
(
"id"
));
uiCtx
.
put
(
"entryID"
,
entryIDs
);
DCUtil
.
openUI
(
EntrustBillUnitEditUI
.
class
.
getName
(),
uiCtx
,
UIFactoryName
.
MODEL
,
OprtState
.
VIEW
);
}
...
...
@@ -537,6 +533,10 @@ public class EntrustBillEditUICTEx extends EntrustBillEditUI {
}
}
public
void
setBGEntrustNo
(
String
bgEntrustNo
)
{
this
.
txtcustomerBillNumber
.
setText
(
bgEntrustNo
);
}
/**
* @param string
* @return
...
...
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillListUI.java
View file @
988faa21
...
...
@@ -217,7 +217,7 @@ public class EntrustBillListUI extends AbstractEntrustBillListUI {
menuItemSwitchView
.
setSelected
(
true
);
btnLogistics
=
new
KDWorkButton
(
"
物流信息
"
);
btnLogistics
=
new
KDWorkButton
(
"
编辑报关委托单号
"
);
btnLogistics
.
setIcon
(
EASResource
.
getIcon
(
"imgTbtn_changecontainer"
));
this
.
toolBar
.
add
(
btnLogistics
);
btnLogistics
.
addActionListener
(
new
ActionListener
()
{
...
...
@@ -226,11 +226,11 @@ public class EntrustBillListUI extends AbstractEntrustBillListUI {
}
});
addSendEmailFunction
();
//
addSendEmailFunction();
// 批量关联生成采购订单
addBatchAssociCreate
();
//
addBatchAssociCreate();
addExport
();
//
addExport();
}
/**
...
...
@@ -550,9 +550,8 @@ public class EntrustBillListUI extends AbstractEntrustBillListUI {
}
String
id
=
tblMain
.
getCell
(
rows
[
0
],
"id"
).
getValue
().
toString
();
Map
map
=
new
UIContext
(
this
);
map
.
put
(
"entrustId"
,
id
);
// 单据IDs
String
uiName
=
"com.kingdee.eas.custom.newbill.client.EntrustBillLogisticsDetaileEditUI"
;
IUIWindow
ui
=
DCUtil
.
openUI
(
uiName
,
map
,
UIFactoryName
.
MODEL
,
OprtState
.
ADDNEW
);
map
.
put
(
"id"
,
id
);
// 单据IDs
DCUtil
.
openUI
(
EntrustBillUnitEditUI
.
class
.
getName
(),
map
,
UIFactoryName
.
MODEL
,
OprtState
.
VIEW
);
}
private
void
fillDate
(
String
number
,
String
pk
)
{
...
...
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillUnitEditUI.java
View file @
988faa21
This diff is collapsed.
Click to expand it.
com/kingdee/eas/hse/scm/purchasemanager/client/PurcharseOrderEditUI.java
View file @
988faa21
...
...
@@ -40,7 +40,6 @@ import com.kingdee.eas.camel.XZUtil;
import
com.kingdee.eas.camel.client.UpdateTitleUtil
;
import
com.kingdee.eas.camel.client.XZClientUtil
;
import
com.kingdee.eas.common.client.OprtState
;
import
com.kingdee.eas.custom.SCMCommonUtil
;
import
com.kingdee.eas.fm.common.FMIsqlFacadeFactory
;
import
com.kingdee.eas.hse.basedata.RateTypeInfo
;
import
com.kingdee.eas.hse.common.F7ListenerTypeEnum
;
...
...
@@ -81,44 +80,6 @@ public class PurcharseOrderEditUI extends AbstractPurcharseOrderEditUI {
checkSvisionCd
();
}
@Override
public
void
actionEdit_actionPerformed
(
ActionEvent
e
)
throws
Exception
{
String
entrustNo
=
this
.
editData
.
getServiceNumber
();
if
(!
StringUtils
.
isEmpty
(
entrustNo
))
{
Object
[]
objs
=
SCMCommonUtil
.
checkPurOrderExistChangeBill
(
null
,
entrustNo
);
if
(!(
Boolean
)
objs
[
0
])
{
MsgBox
.
showWarning
(
objs
[
1
]
+
""
);
return
;
// int flag = MsgBox.showConfirm2("该入仓号 " + entrustNo + objs[1] + ",是否执行修改?");
// if (flag == MsgBox.YES) {
// SCMCommonUtil.insertChangeBillRecord(entrustNo, "修改");
// } else {
// return;
// }
}
}
super
.
actionEdit_actionPerformed
(
e
);
}
@Override
public
void
actionRemove_actionPerformed
(
ActionEvent
e
)
throws
Exception
{
String
entrustNo
=
this
.
editData
.
getServiceNumber
();
if
(!
StringUtils
.
isEmpty
(
entrustNo
))
{
Object
[]
objs
=
SCMCommonUtil
.
checkPurOrderExistChangeBill
(
null
,
entrustNo
);
if
(!(
Boolean
)
objs
[
0
])
{
MsgBox
.
showWarning
(
objs
[
1
]
+
""
);
return
;
// int flag = MsgBox.showConfirm2("该入仓号 " + entrustNo + objs[1] + ",是否执行删除?");
// if (flag == MsgBox.YES) {
// SCMCommonUtil.insertChangeBillRecord(entrustNo, "删除");
// } else {
// return;
// }
}
}
super
.
actionRemove_actionPerformed
(
e
);
}
public
void
actionPrint_actionPerformed
(
ActionEvent
e
)
throws
Exception
{
super
.
actionPrint_actionPerformed
(
e
);
PurcharseOrderFactory
.
getRemoteInstance
().
orderPrint
(
this
.
editData
);
...
...
com/kingdee/eas/hse/scm/purchasemanager/client/PurcharseOrderListUI.java
View file @
988faa21
...
...
@@ -3,7 +3,6 @@ package com.kingdee.eas.hse.scm.purchasemanager.client;
import
java.awt.event.ActionEvent
;
import
java.awt.event.ActionListener
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Map
;
...
...
@@ -30,7 +29,6 @@ import com.kingdee.eas.camel.client.XZClientUtil;
import
com.kingdee.eas.common.client.OprtState
;
import
com.kingdee.eas.common.client.UIContext
;
import
com.kingdee.eas.common.client.UIFactoryName
;
import
com.kingdee.eas.custom.SCMCommonUtil
;
import
com.kingdee.eas.hse.common.HSEBillStatusEnum
;
import
com.kingdee.eas.hse.common.client.DcClientUtil
;
import
com.kingdee.eas.hse.common.util.DCUtil
;
...
...
@@ -187,54 +185,6 @@ public class PurcharseOrderListUI extends AbstractPurcharseOrderListUI {
MsgBox
.
showInfo
(
"没有可查看的PI附件"
);
}
@Override
public
void
actionEdit_actionPerformed
(
ActionEvent
e
)
throws
Exception
{
checkSelected
();
String
id
=
getSelectedKeyValue
();
IPurcharseOrder
iFactory
=
PurcharseOrderFactory
.
getRemoteInstance
();
PurcharseOrderInfo
info
=
iFactory
.
getPurcharseOrderInfo
(
"select principalId.id, serviceNumber where id = '"
+
id
+
"'"
);
String
entrustNo
=
info
.
getServiceNumber
();
if
(!
StringUtils
.
isEmpty
(
entrustNo
))
{
Object
[]
objs
=
SCMCommonUtil
.
checkPurOrderExistChangeBill
(
null
,
entrustNo
);
if
(!(
Boolean
)
objs
[
0
])
{
MsgBox
.
showWarning
(
objs
[
1
]
+
""
);
return
;
// int flag = MsgBox.showConfirm2("该入仓号 " + entrustNo + objs[1] + ",是否执行修改?");
// if (flag == MsgBox.YES) {
// SCMCommonUtil.insertChangeBillRecord(entrustNo, "修改");
// } else {
// return;
// }
}
}
super
.
actionEdit_actionPerformed
(
e
);
}
@Override
public
void
actionRemove_actionPerformed
(
ActionEvent
e
)
throws
Exception
{
checkSelected
();
ArrayList
ids
=
getSelectedIdValues
();
IPurcharseOrder
iFactory
=
PurcharseOrderFactory
.
getRemoteInstance
();
for
(
int
i
=
0
,
size
=
ids
.
size
();
i
<
size
;
i
++)
{
PurcharseOrderInfo
info
=
iFactory
.
getPurcharseOrderInfo
(
"select principalId.id, serviceNumber where id = '"
+
ids
.
get
(
i
)
+
"'"
);
String
entrustNo
=
info
.
getServiceNumber
();
if
(!
StringUtils
.
isEmpty
(
entrustNo
))
{
Object
[]
objs
=
SCMCommonUtil
.
checkPurOrderExistChangeBill
(
null
,
entrustNo
);
if
(!(
Boolean
)
objs
[
0
])
{
MsgBox
.
showWarning
(
objs
[
1
]
+
""
);
return
;
// int flag = MsgBox.showConfirm2("该入仓号 " + entrustNo + objs[1] + ",是否执行删除?");
// if (flag == MsgBox.YES) {
// SCMCommonUtil.insertChangeBillRecord(entrustNo, "删除");
// } else {
// return;
// }
}
}
}
super
.
actionRemove_actionPerformed
(
e
);
}
/**
* @param e
* @author xiongzhi
...
...
com/kingdee/eas/hse/scm/salemanager/app/PostRequistionBillControllerBean.java
View file @
988faa21
...
...
@@ -43,14 +43,19 @@ import com.kingdee.eas.basedata.master.cssp.CustomerLinkManCollection;
import
com.kingdee.eas.basedata.master.cssp.CustomerLinkManFactory
;
import
com.kingdee.eas.basedata.master.cssp.CustomerLinkManInfo
;
import
com.kingdee.eas.basedata.master.cssp.ICustomerLinkMan
;
import
com.kingdee.eas.basedata.org.CompanyOrgUnitFactory
;
import
com.kingdee.eas.basedata.org.CompanyOrgUnitInfo
;
import
com.kingdee.eas.basedata.person.PersonInfo
;
import
com.kingdee.eas.camel.XZUtil
;
import
com.kingdee.eas.camel.app.XZAppUtil
;
import
com.kingdee.eas.common.EASBizException
;
import
com.kingdee.eas.custom.newbill.IchuntCustomTaskFacadeFactory
;
import
com.kingdee.eas.custom.newbill.InventoryManagementFacadeFactory
;
import
com.kingdee.eas.hse.basedata.ServeProjectFactory
;
import
com.kingdee.eas.hse.basedata.ServeProjectInfo
;
import
com.kingdee.eas.hse.basedata.SysParameterCollection
;
import
com.kingdee.eas.hse.basedata.SysParameterInfo
;
import
com.kingdee.eas.hse.common.DCConstant
;
import
com.kingdee.eas.hse.common.HSEBillStatusEnum
;
import
com.kingdee.eas.hse.common.dflModeEnum
;
import
com.kingdee.eas.hse.common.util.DCCallBotpUtil
;
...
...
@@ -85,11 +90,15 @@ import com.kingdee.eas.hse.scm.salemanager.SalesOrderEntryFactory;
import
com.kingdee.eas.hse.scm.salemanager.SalesOrderEntryInfo
;
import
com.kingdee.eas.hse.scm.salemanager.SalesOrderInfo
;
import
com.kingdee.eas.hse.scm.salemanager.SignStatus
;
import
com.kingdee.eas.hse.scm.service.IScsfundPool
;
import
com.kingdee.eas.hse.scm.service.ScsfundPoolFactory
;
import
com.kingdee.eas.hse.scm.service.ScsfundPoolInfo
;
import
com.kingdee.eas.hse.scm.warehousemanager.IInventoryMananger
;
import
com.kingdee.eas.hse.scm.warehousemanager.InventoryManangerCollection
;
import
com.kingdee.eas.hse.scm.warehousemanager.InventoryManangerFactory
;
import
com.kingdee.eas.hse.scm.warehousemanager.InventoryManangerInfo
;
import
com.kingdee.eas.hse.scm.warehousemanager.WareHouseIO
;
import
com.kingdee.eas.hse.settle.app.ArApType
;
import
com.kingdee.eas.util.app.DbUtil
;
import
com.kingdee.jdbc.rowset.IRowSet
;
import
com.kingdee.util.NumericExceptionSubItem
;
...
...
@@ -702,7 +711,7 @@ public class PostRequistionBillControllerBean extends AbstractPostRequistionBill
String
entrustNo
=
postReqInfo
.
getServiceNumber
();
if
(
entrustNo
.
startsWith
(
"E"
))
{
IEntrustBill
iFactory
=
EntrustBillFactory
.
getLocalInstance
(
ctx
);
String
oql
=
"where number = '"
+
entrustNo
+
"'"
;
String
oql
=
"
select *, customer.*, ClassifyEntrys.*, ClassifyEntrys.currency.*
where number = '"
+
entrustNo
+
"'"
;
if
(
iFactory
.
exists
(
oql
))
{
EntrustBillInfo
info
=
iFactory
.
getEntrustBillInfo
(
oql
);
EntrustBillClassifyEntryCollection
entrys
=
info
.
getClassifyEntrys
();
...
...
@@ -716,6 +725,7 @@ public class PostRequistionBillControllerBean extends AbstractPostRequistionBill
}
String
scmWSDLUrl
=
DCUtil
.
getInitSysValueByParamNumber
(
ctx
,
"scmWSDLUrl"
);
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"entrustNo"
,
customerBillNo
);
HashMap
<
String
,
Object
>
params
=
XZUtil
.
APIWSCtx
(
scmWSDLUrl
,
"getGCDatas"
,
json
.
toJSONString
());
String
rs
=
XZAppUtil
.
callAPI
(
ctx
,
params
);
reloadInitData
(
ctx
,
postReqInfo
,
info
,
rs
);
...
...
@@ -732,11 +742,14 @@ public class PostRequistionBillControllerBean extends AbstractPostRequistionBill
* @author 熊智
* @param info
* @param postReqInfo
* @throws BOSException
* @throws EASBizException
* @date 2024-1-23 下午02:21:50
*/
private
void
reloadInitData
(
Context
ctx
,
PostRequistionBillInfo
postReqInfo
,
EntrustBillInfo
info
,
String
rs
)
{
private
void
reloadInitData
(
Context
ctx
,
PostRequistionBillInfo
postReqInfo
,
EntrustBillInfo
info
,
String
rs
)
throws
EASBizException
,
BOSException
{
if
(!
StringUtils
.
isEmpty
(
rs
))
{
JSONArray
jsons
=
JSONObject
.
parseArray
(
rs
);
IScsfundPool
iFactory
=
ScsfundPoolFactory
.
getLocalInstance
(
ctx
);
for
(
int
i
=
0
;
i
<
jsons
.
size
();
i
++)
{
JSONObject
json
=
jsons
.
getJSONObject
(
i
);
String
poolID
=
json
.
getString
(
"poolID"
);
...
...
@@ -744,9 +757,48 @@ public class PostRequistionBillControllerBean extends AbstractPostRequistionBill
String
serveProject
=
json
.
getString
(
"serveProject"
);
BigDecimal
amt
=
json
.
getBigDecimal
(
"amt"
);
String
bizDate
=
json
.
getString
(
"bizDate"
);
String
contractNo
=
json
.
getString
(
"contractNo"
);
String
oql
=
"where innerBillBack = '"
+
poolID
+
"'"
;
if
(!
iFactory
.
exists
(
oql
))
{
ScsfundPoolInfo
fInfo1
=
new
ScsfundPoolInfo
();
fInfo1
.
setInnerBillBack
(
poolID
);
fInfo1
.
setServiceInnerCode
(
poolNo
);
fInfo1
.
setBizFlow
(
info
.
getBizFlow
());
fInfo1
.
setBizSubFlow
(
info
.
getBizSubFlow
());
fInfo1
.
setServiceNumber
(
info
.
getNumber
());
fInfo1
.
setBizDate
(
XZUtil
.
StringToDate
(
bizDate
,
"yyyy-MM-dd"
));
//业务日期 - 申报日期
fInfo1
.
setPredictType
(
DCUtil
.
getSysParameterInfoByNumber
(
ctx
,
"CUSTOMER"
));
//往来单位类型 供应商
fInfo1
.
setPredictId
(
info
.
getCustomer
().
getId
().
toString
());
//往来单位ID - 供应商
fInfo1
.
setPredictNumber
(
info
.
getCustomer
().
getNumber
());
//往来单位编码
fInfo1
.
setPredictName
(
info
.
getCustomer
().
getName
());
//往来单位名称
fInfo1
.
setArap
(
ArApType
.
ar
);
//收付类型 - 收
ServeProjectInfo
infoSp
=
null
;
if
(
"进口增值税"
.
equals
(
serveProject
))
{
infoSp
=
ServeProjectFactory
.
getLocalInstance
(
ctx
).
getServeProjectInfo
(
" where number = '"
+
DCConstant
.
serviceProjecttarrfiAmount
+
"'"
);
//增值税
}
else
{
infoSp
=
ServeProjectFactory
.
getLocalInstance
(
ctx
).
getServeProjectInfo
(
" where number = '"
+
DCConstant
.
serviceProjectvatAmount
+
"'"
);
//关税
}
fInfo1
.
setGroupSP
(
infoSp
.
getGroup
());
//计费项目组别
fInfo1
.
setServerProject
(
infoSp
);
//计费项目
fInfo1
.
setOrgCurrency
(
DCUtil
.
getCurrencyRMB_Abs
(
ctx
));
//RMB
fInfo1
.
setSettleCurrency
(
fInfo1
.
getOrgCurrency
());
//RMB
fInfo1
.
setRate
(
BigDecimal
.
ONE
);
//汇率
fInfo1
.
setOrgAmount
(
amt
);
//原币金额
fInfo1
.
setSettleAmount
(
amt
);
//结算金额
fInfo1
.
setSourceBillNumber
(
postReqInfo
.
getNumber
());
//来源单据编码
fInfo1
.
setSourceBillId
(
postReqInfo
.
getId
().
toString
());
//来源单据ID
fInfo1
.
setSourceBillEntryId
(
null
);
//来源单据分录ID
fInfo1
.
setSourceFunction
(
DCUtil
.
getEntityName
(
ctx
,
postReqInfo
.
getBOSType
().
toString
()));
//来源单据类型
fInfo1
.
setPrincipal
(
info
.
getPrincipal
());
//委托方
fInfo1
.
setIsDK
(
info
.
isIsDKs
());
CompanyOrgUnitInfo
cInfo
=
postReqInfo
.
getCompany
();
fInfo1
.
setCompany
(
cInfo
);
//出口经营单位 公司
fInfo1
.
setCU
(
cInfo
.
getCU
());
//出口经营单位 对应的CU
fInfo1
.
setDealPerson
(
postReqInfo
.
getDealPerson
());
//处理人
fInfo1
.
setCreateTime
(
DCUtil
.
DateToTimestamp
(
XZUtil
.
StringToDate
(
bizDate
,
"yyyy-MM-dd"
)));
//审核日期
fInfo1
.
setCustomsBrokerContractsNum
(
contractNo
);
iFactory
.
save
(
fInfo1
);
}
}
}
}
...
...
com/kingdee/eas/hse/scm/service/FundManager.java
View file @
988faa21
...
...
@@ -6006,10 +6006,10 @@ public class FundManager implements IServiceManager {
fInfo
.
setGroupSP
(
infoSp
.
getGroup
());
//计费项目组别
fInfo
.
setServerProject
(
infoSp
);
//计费项目
fInfo
.
setOrgCurrency
(
info
.
getCurrency
());
//原币别 -结算币别
fInfo
.
setSettleCurrency
(
info
.
getCurrency
(
));
//结算币别 -结算币别
fInfo
.
setSettleCurrency
(
DCUtil
.
getCurrencyRMB
(
cmd
.
getContext
()
));
//结算币别 -结算币别
fInfo
.
setOrgAmount
(
totalAmount
);
//原币金额
fInfo
.
setSettleAmount
(
totalAmount
);
//结算金额
fInfo
.
setRate
(
BigDecimal
.
ONE
);
//客户汇率
fInfo
.
setSettleAmount
(
totalAmount
.
multiply
(
info
.
getRate
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
)
);
//结算金额
fInfo
.
setRate
(
info
.
getRate
()
);
//客户汇率
fInfo
.
setSourceBillNumber
(
info
.
getNumber
());
//来源单据编码
fInfo
.
setSourceBillId
(
info
.
getId
().
toString
());
//来源单据ID
fInfo
.
setSourceBillEntryId
(
info
.
getId
().
toString
());
//来源单据分录ID
...
...
@@ -6040,13 +6040,14 @@ public class FundManager implements IServiceManager {
CurrencyInfo
currency
=
null
;
if
(
classifyEntryInfo1
!=
null
){
fEntryInfo
.
setPrice
(
classifyEntryInfo1
.
getPrice2
());
fEntryInfo
.
setSettleAmount
(
classifyEntryInfo1
.
getPrice2
().
multiply
(
eInfo
.
getOutStockQty
()).
setScale
(
DCUtil
.
getAmountPrecision
(),
RoundingMode
.
HALF_UP
));
fEntryInfo
.
setSettleAmount
(
classifyEntryInfo1
.
getPrice2
().
multiply
(
eInfo
.
getOutStockQty
()).
multiply
(
info
.
getRate
()).
setScale
(
DCUtil
.
getAmountPrecision
(),
RoundingMode
.
HALF_UP
));
fEntryInfo
.
setOrgAmount
(
classifyEntryInfo1
.
getPrice2
().
multiply
(
eInfo
.
getOutStockQty
()).
setScale
(
DCUtil
.
getAmountPrecision
(),
RoundingMode
.
HALF_UP
));
currency
=
classifyEntryInfo1
.
getCurrency
();
}
fEntryInfo
.
setSettleCurrency
(
currency
);
fEntryInfo
.
setSettleCurrency
(
fInfo
.
getSettleCurrency
());
fEntryInfo
.
setCurrency
(
currency
);
fEntryInfo
.
setRate
(
BigDecimal
.
ONE
);
fEntryInfo
.
setRate
(
info
.
getRate
()
);
fEntryInfo
.
setUnit
(
classifyEntryInfo1
.
getUnit
());
fEntryInfo
.
setQty
(
eInfo
.
getOutStockQty
());
fEntryInfo
.
setContractsNum
(
info
.
getNumber
());
...
...
com/kingdee/eas/hse/scm/settlemanager/client/ArChargeSettleEditUI.java
View file @
988faa21
...
...
@@ -2991,6 +2991,19 @@ public class ArChargeSettleEditUI extends AbstractArChargeSettleEditUI
info
.
setTTLAmount
(
orignAmount
.
multiply
(
newRate
));
info
.
setAdjSAT
(
BigDecimal
.
ZERO
);
}
else
{
if
(
"13"
.
equals
(
editData
.
getBizFlow
().
getNumber
())
&&
!
detailInfo
.
getString
(
"FOrgCurrencyID"
).
equals
(
SettlementCurrency
.
getId
().
toString
()))
{
BigDecimal
rate
=
BigDecimal
.
ONE
;
try
{
rate
=
DCUtil
.
getCustomsRate
(
null
,
detailInfo
.
getString
(
"FOrgCurrencyID"
),
detailInfo
.
getDate
(
"ebFBizdate"
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
// 海关汇率
info
.
setExchangeRate
(
rate
);
info
.
setSettlementAmount
(
orignAmount
.
multiply
(
rate
));
info
.
setTTLAmount
(
orignAmount
.
multiply
(
rate
));
info
.
setAdjSAT
(
BigDecimal
.
ZERO
);
}
else
{
BigDecimal
rate
=
DCUtil
.
gethseExRateDay
(
detailInfo
.
getString
(
"FOrgCurrencyID"
),
SettlementCurrency
.
getId
().
toString
(),
detailInfo
.
getDate
(
"ebFBizdate"
)
,
forExRate
.
卖出价
);
info
.
setExchangeRate
(
rate
);
info
.
setSettlementAmount
(
orignAmount
.
multiply
(
rate
));
...
...
@@ -2999,6 +3012,7 @@ public class ArChargeSettleEditUI extends AbstractArChargeSettleEditUI
}
}
}
}
info
.
setBalanceAmount
(
detailInfo
.
getBigDecimal
(
"FInnerOrgAmount"
));
info
.
setTTLAmount
(
info
.
getSettlementAmount
());
//设置默认值
...
...
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