Commit 27968fa5 by 熊智

迭代

parent 0ad586ae
......@@ -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++) {
......
......@@ -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);
// 生成发货通知单
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment