Ver código fonte

业务处理单过滤

xuhao 5 meses atrás
pai
commit
764cd02770

+ 2 - 2
src/main/java/fi/em/formPlugin/BxdBankListtenerFromPlugin.java

@@ -262,7 +262,7 @@ public class BxdBankListtenerFromPlugin extends AbstractListPlugin implements Pl
             reimburseamount=reimburseamount.subtract(onaccountamount);
             reimburseamount=reimburseamount.subtract(yufuamount);
             this.getModel().setValue("nckd_fukuanamountfield", reimburseamount);
-            this.getModel().setValue("expenseamount", reimburseamount, 0);
+            this.getModel().setValue("orireceiveamount", reimburseamount, 0);
             //刷新分录
             this.getView().updateView("expenseentryentity");
         }else if ("nckd_yufuamount".equals(name)) {
@@ -275,7 +275,7 @@ public class BxdBankListtenerFromPlugin extends AbstractListPlugin implements Pl
             reimburseamount=reimburseamount.subtract(onaccountamount);
             reimburseamount=reimburseamount.subtract(yufuamount);
             this.getModel().setValue("nckd_fukuanamountfield", reimburseamount);
-            this.getModel().setValue("expenseamount", reimburseamount, 0);
+            this.getModel().setValue("orireceiveamount", reimburseamount, 0);
             //刷新分录
             this.getView().updateView("expenseentryentity");
         }

+ 7 - 9
src/main/java/fi/em/formPlugin/CostAllocationEditPlugin.java

@@ -144,8 +144,6 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
                                 this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
                             }
                         }
-
-
                     }
                 }
             }
@@ -256,29 +254,29 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
                     DynamicObjectCollection accountentry = this.getModel().getEntryEntity("accountentry");
                     DynamicObject dynamicObject = accountentry.get(0);
                     if(dynamicObject!=null){
-                        this.getModel().setValue("orireceiveamount",new BigDecimal(0),0);
+                        this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
 
                     }
                 } else if (bigDecimal1.compareTo(bigDecimal) == 0) {
                     DynamicObjectCollection accountentry = this.getModel().getEntryEntity("accountentry");
                     DynamicObject dynamicObject = accountentry.get(0);
                     if(dynamicObject!=null){
-                        this.getModel().setValue("orireceiveamount",new BigDecimal(0),0);
+                        this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
                     }
                 }else {
                     DynamicObjectCollection accountentry = this.getModel().getEntryEntity("accountentry");
                     DynamicObject dynamicObject = accountentry.get(0);
                    if(dynamicObject!=null){
-                       String orireceiveamount = this.getModel().getValue("orireceiveamount", 0).toString();
+                       String orireceiveamount = this.getModel().getValue("nckd_orireceiveamount", 0).toString();
                        BigDecimal bigDecimal2 = new BigDecimal(orireceiveamount);
                            if(accountentry.size()==1){
                                bigDecimal=bigDecimal.subtract(bigDecimal1);
-                               this.getModel().setValue("orireceiveamount",bigDecimal,0);
+                               this.getModel().setValue("nckd_orireceiveamount",bigDecimal,0);
                            }else{
                                BigDecimal bigDecimal3 = new BigDecimal(0);
                                for(int i=0;i<accountentry.size();i++){
                                    DynamicObject dynamicObjects = accountentry.get(i);
-                                   BigDecimal nckdUnexporiusedamount = dynamicObjects.getBigDecimal("orireceiveamount");
+                                   BigDecimal nckdUnexporiusedamount = dynamicObjects.getBigDecimal("nckd_orireceiveamount");
                                    if(i>0){
                                        bigDecimal3=bigDecimal3.add(nckdUnexporiusedamount);
                                    }
@@ -287,9 +285,9 @@ public class CostAllocationEditPlugin extends AbstractListPlugin implements Plug
                                BigDecimal con1=bigDecimal.subtract(bigDecimal3);//收款信息第一行的金额
                                con1=con1.subtract(bigDecimal1);
                                if(con1.compareTo(BigDecimal.ZERO) > 0){
-                               this.getModel().setValue("orireceiveamount",con1,0);
+                               this.getModel().setValue("nckd_orireceiveamount",con1,0);
                                }else {
-                                   this.getModel().setValue("orireceiveamount",new BigDecimal(0),0);
+                                   this.getModel().setValue("nckd_orireceiveamount",new BigDecimal(0),0);
                                }
                            }