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
27968fa5
authored
Feb 20, 2024
by
熊智
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
迭代
parent
0ad586ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
58 deletions
com/kingdee/eas/custom/newbill/app/ArVerificationRecordControllerBean.java
com/kingdee/eas/hse/scm/planandorder/app/EntrustBillControllerBean.java
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillEditUICTEx.java
com/kingdee/eas/custom/newbill/app/ArVerificationRecordControllerBean.java
View file @
27968fa5
...
...
@@ -91,9 +91,12 @@ public class ArVerificationRecordControllerBean extends AbstractArVerificationRe
String
formula
=
verifyAmt
+
"*"
+
rate
+
"/100*"
+
diffDays
;
createDLfFundPool
(
ctx
,
info
,
billInfo
,
DCConstant
.
serviceProjectdlfGoodAmount
,
dlfAmt
,
formula
);
}
if
(
zdDlfAmt
.
compareTo
(
dlfAmt
)
>
0
)
{
String
formula
=
zdDlfAmt
+
"-"
+
dlfAmt
;
createDLfFundPool
(
ctx
,
info
,
billInfo
,
DCConstant
.
serviceProjectLowdlfGoodAmount
,
zdDlfAmt
.
subtract
(
dlfAmt
),
formula
);
ServeProjectInfo
recServeProject
=
entry
.
getRecServeProject
();
if
(
"crYAAAJeQECIb4YR"
.
equals
(
recServeProject
.
getString
(
"id"
)))
{
if
(
zdDlfAmt
.
compareTo
(
dlfAmt
)
>
0
)
{
String
formula
=
zdDlfAmt
+
"-"
+
dlfAmt
;
createDLfFundPool
(
ctx
,
info
,
billInfo
,
DCConstant
.
serviceProjectLowdlfGoodAmount
,
zdDlfAmt
.
subtract
(
dlfAmt
),
formula
);
}
}
}
...
...
@@ -117,9 +120,14 @@ public class ArVerificationRecordControllerBean extends AbstractArVerificationRe
BigDecimal
zdDlfAmt
=
bussPlan
.
getDflLowAmount2
();
String
formula
=
verifyAmt
+
"*"
+
rate
+
"/100"
;
createDLfFundPool
(
ctx
,
info
,
billInfo
,
DCConstant
.
serviceProjectdlfGoodAmount
,
dlfAmt
,
formula
);
if
(
zdDlfAmt
.
compareTo
(
dlfAmt
)
>
0
)
{
formula
=
zdDlfAmt
+
"-"
+
dlfAmt
;
createDLfFundPool
(
ctx
,
info
,
billInfo
,
DCConstant
.
serviceProjectLowdlfGoodAmount
,
zdDlfAmt
.
subtract
(
dlfAmt
),
formula
);
ServeProjectInfo
recServeProject
=
entry
.
getRecServeProject
();
if
(
"crYAAAJeQECIb4YR"
.
equals
(
recServeProject
.
getString
(
"id"
)))
{
// 只有垫款才需要最低代理费
if
(
zdDlfAmt
.
compareTo
(
dlfAmt
)
>
0
)
{
formula
=
zdDlfAmt
+
"-"
+
dlfAmt
;
createDLfFundPool
(
ctx
,
info
,
billInfo
,
DCConstant
.
serviceProjectLowdlfGoodAmount
,
zdDlfAmt
.
subtract
(
dlfAmt
),
formula
);
}
}
}
...
...
@@ -142,8 +150,6 @@ public class ArVerificationRecordControllerBean extends AbstractArVerificationRe
int
diffDays
=
XZUtil
.
getDiffDate
(
recBizDate
,
recedBizDate
,
DateType
.
Day
);
BigDecimal
rate
=
BigDecimal
.
ZERO
;
BigDecimal
dlfAmt
=
BigDecimal
.
ZERO
;
BigDecimal
zdDlfAmt
=
bussPlan
.
getDflLowAmount2
();
if
(
diffDays
>=
0
)
{
TFProtocolEntryE8Collection
e8s
=
bussPlan
.
getE8
();
for
(
int
i
=
0
;
i
<
e8s
.
size
();
i
++)
{
...
...
com/kingdee/eas/hse/scm/planandorder/app/EntrustBillControllerBean.java
View file @
27968fa5
...
...
@@ -2108,6 +2108,9 @@ public class EntrustBillControllerBean extends AbstractEntrustBillControllerBean
selector
.
add
(
new
SelectorItemInfo
(
"AuditDate"
));
_updatePartial
(
ctx
,
entrustInfo
,
selector
);
// (
serviceController
.
execCommand
(
new
Command
(
ctx
,
"classfiyAudit"
,
(
SCSBillBaseInfo
)
entrustInfo
));
// 生成付汇申请单
createPaymentBill
(
ctx
,
entrustInfo
);
createNextBill
(
ctx
,
entrustInfo
);
String
log
=
XZAppUtil
.
getUserInfo
(
ctx
).
getName
()
+
XZUtil
.
formatDate
(
new
Date
())
+
"操作单号:"
+
entrustInfo
.
getNumber
();
XZUtil
.
logInfo
(
"委托单"
,
"审核"
,
"info"
,
entrustBillLogger
,
log
,
getJsonString
(
entrustInfo
));
...
...
@@ -2124,8 +2127,6 @@ public class EntrustBillControllerBean extends AbstractEntrustBillControllerBean
new
Thread
(
new
Runnable
()
{
public
void
run
()
{
try
{
// 生成付汇申请单
createPaymentBill
(
ctx
,
entrustInfo
);
// 生成采购订单,收货通知单
createBotpPurOrder
(
ctx
,
entrustInfo
);
// 生成发货通知单
...
...
com/kingdee/eas/hse/scm/planandorder/client/EntrustBillEditUICTEx.java
View file @
27968fa5
...
...
@@ -438,7 +438,7 @@ public class EntrustBillEditUICTEx extends EntrustBillEditUI {
*/
private
void
personalFunction
()
throws
Exception
{
// synPaymentPanel();
//
addPersonalTabUI();
addPersonalTabUI
();
// 增加原始资料页签分录上下移动按钮
addMoveBtn
();
// 加载附件
...
...
@@ -453,21 +453,21 @@ public class EntrustBillEditUICTEx extends EntrustBillEditUI {
* @date 2020-2-14 上午09:33:27
*/
private
void
addPersonalTabUI
()
throws
Exception
{
ExecutionPlanUI
planUI
=
new
ExecutionPlanUI
();
if
(
this
.
editData
.
getId
()
!=
null
&&
this
.
editData
.
getBussPlan
()
!=
null
)
{
planUI
.
getUIContext
().
put
(
"bussPlanID"
,
this
.
editData
.
getBussPlan
().
getString
(
"id"
));
}
planUI
.
initUIContentLayout
();
planUI
.
onLoad
();
this
.
tabPanelMain
.
add
(
planUI
,
"执行方案"
);
MainCashFlowUI
flowUI
=
new
MainCashFlowUI
();
if
(
this
.
editData
.
getId
()
!=
null
)
{
flowUI
.
getUIContext
().
put
(
"sourceBillID"
,
this
.
editData
.
getString
(
"id"
));
}
flowUI
.
initUIContentLayout
();
flowUI
.
onLoad
();
this
.
tabPanelMain
.
add
(
flowUI
,
"主资金流"
);
//
ExecutionPlanUI planUI = new ExecutionPlanUI();
//
if (this.editData.getId() != null && this.editData.getBussPlan() != null) {
//
planUI.getUIContext().put("bussPlanID", this.editData.getBussPlan().getString("id"));
//
}
//
planUI.initUIContentLayout();
//
planUI.onLoad();
//
this.tabPanelMain.add(planUI, "执行方案");
//
MainCashFlowUI flowUI = new MainCashFlowUI();
//
if (this.editData.getId() != null) {
//
flowUI.getUIContext().put("sourceBillID", this.editData.getString("id"));
//
}
//
flowUI.initUIContentLayout();
//
flowUI.onLoad();
//
this.tabPanelMain.add(flowUI, "主资金流");
F7FeightManagerListUI
feightManagerUI
=
new
F7FeightManagerListUI
();
feightManagerUI
.
getUIContext
().
put
(
"srcUI"
,
this
);
...
...
@@ -480,38 +480,38 @@ public class EntrustBillEditUICTEx extends EntrustBillEditUI {
this
.
tabPanelMain
.
add
(
feightManagerUI
,
"应收费用"
);
// 香港交货方式 、国内物流信息
EntrustBillExEditUI
hkDeliveryUI
=
new
EntrustBillExEditUI
();
EntrustBillEx2EditUI
inlandDeliveryUI
=
new
EntrustBillEx2EditUI
();
EntrustBillExInfo
exInfo
=
null
;
if
(
UIRuleUtil
.
isNotNull
(
this
.
editData
.
getId
()))
{
IEntrustBillEx
iFactory
=
EntrustBillExFactory
.
getRemoteInstance
();
String
oql
=
"select * where description = '"
+
this
.
editData
.
getId
()
+
"'"
;
if
(
iFactory
.
exists
(
oql
))
{
exInfo
=
iFactory
.
getEntrustBillExCollection
(
oql
).
get
(
0
);
}
}
if
(
UIRuleUtil
.
isNotNull
(
exInfo
))
{
hkDeliveryUI
.
getUIContext
().
put
(
"ID"
,
exInfo
.
getString
(
"id"
));
hkDeliveryUI
.
setOprtState
(
"VIEW"
);
inlandDeliveryUI
.
getUIContext
().
put
(
"ID"
,
exInfo
.
getString
(
"id"
));
inlandDeliveryUI
.
setOprtState
(
"VIEW"
);
}
else
{
exInfo
=
(
EntrustBillExInfo
)
hkDeliveryUI
.
createNewData
();
hkDeliveryUI
.
setOprtState
(
"ADDNEW"
);
inlandDeliveryUI
.
setOprtState
(
"ADDNEW"
);
}
hkDeliveryUI
.
editData
=
exInfo
;
inlandDeliveryUI
.
editData
=
exInfo
;
hkDeliveryUI
.
initUIContentLayout
();
hkDeliveryUI
.
onLoad
();
hkDeliveryUI
.
loadFields
();
this
.
ctnHKDelivery
.
getContentPane
().
add
(
hkDeliveryUI
,
BorderLayout
.
CENTER
);
inlandDeliveryUI
.
initUIContentLayout
();
inlandDeliveryUI
.
onLoad
();
inlandDeliveryUI
.
loadFields
();
this
.
ctnInlandDelivery
.
getContentPane
().
add
(
inlandDeliveryUI
,
BorderLayout
.
CENTER
);
//
EntrustBillExEditUI hkDeliveryUI = new EntrustBillExEditUI();
//
EntrustBillEx2EditUI inlandDeliveryUI = new EntrustBillEx2EditUI();
//
EntrustBillExInfo exInfo = null;
//
if (UIRuleUtil.isNotNull(this.editData.getId())) {
//
IEntrustBillEx iFactory = EntrustBillExFactory.getRemoteInstance();
//
String oql = "select * where description = '" + this.editData.getId() + "'";
//
if (iFactory.exists(oql)) {
//
exInfo = iFactory.getEntrustBillExCollection(oql).get(0);
//
}
//
}
//
if (UIRuleUtil.isNotNull(exInfo)) {
//
hkDeliveryUI.getUIContext().put("ID", exInfo.getString("id"));
//
hkDeliveryUI.setOprtState("VIEW");
//
inlandDeliveryUI.getUIContext().put("ID", exInfo.getString("id"));
//
inlandDeliveryUI.setOprtState("VIEW");
//
} else {
//
exInfo = (EntrustBillExInfo) hkDeliveryUI.createNewData();
//
hkDeliveryUI.setOprtState("ADDNEW");
//
inlandDeliveryUI.setOprtState("ADDNEW");
//
}
//
hkDeliveryUI.editData = exInfo;
//
inlandDeliveryUI.editData = exInfo;
//
//
hkDeliveryUI.initUIContentLayout();
//
hkDeliveryUI.onLoad();
//
hkDeliveryUI.loadFields();
//
this.ctnHKDelivery.getContentPane().add(hkDeliveryUI, BorderLayout.CENTER);
//
//
inlandDeliveryUI.initUIContentLayout();
//
inlandDeliveryUI.onLoad();
//
inlandDeliveryUI.loadFields();
//
this.ctnInlandDelivery.getContentPane().add(inlandDeliveryUI, BorderLayout.CENTER);
}
@Override
...
...
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