Parcourir la source

跳转报表处理

zhouger il y a 6 mois
Parent
commit
3ed59964db

+ 1 - 19
src/main/java/fi/ar/formplugin/AcctagerptPlugin.java

@@ -30,34 +30,16 @@ public class AcctagerptPlugin extends AbstractReportFormPlugin implements Plugin
         super.afterCreateNewData(e);
         // 获取自定义参数
         FormShowParameter formShowParameter = this.getView().getFormShowParameter();
-        Object text = formShowParameter.getCustomParam("parentid");
         Object flag = formShowParameter.getCustomParam("flag");
-        if (flag.equals("1")) {
+        if (("1").equals(flag)) {
             Object qAsstacttype = formShowParameter.getCustomParam("q_asstacttype");
             if (!("").equals(qAsstacttype)) {
                 this.getModel().setValue("q_asstacttype",qAsstacttype);
-                this.getModel().setValue("standard","bizdate");
-
             }
         }
     }
 
 
-
-    @Override
-    public void propertyChanged(PropertyChangedArgs e){
-        super.beforePropertyChanged(e);
-        String name=e.getProperty().getName();
-        if (name.equals("standard"))
-        {
-            ChangeData[] changeData = e.getChangeSet();
-            Object newValue = changeData[0].getNewValue();
-            Object oldValue = changeData[0].getOldValue();
-            String str= (String) this.getModel().getValue("standard");
-            System.out.println(str);
-        }
-    }
-
     @Override
     public void afterBindData(EventObject e) {
         super.afterBindData(e);

+ 2 - 2
src/main/java/fi/ar/formplugin/FinarbillFormPlugin.java

@@ -19,7 +19,7 @@ import java.util.EventObject;
 /**
  * @author cjz
  * @date 2024/10/11 14:50
- * @description:跳转到报表
+ * @description:应收挂账跳转到报表
  */
 public class FinarbillFormPlugin extends AbstractFormPlugin implements Plugin {
 
@@ -29,7 +29,7 @@ public class FinarbillFormPlugin extends AbstractFormPlugin implements Plugin {
     public void afterBindData(EventObject e) {
         super.afterBindData(e);
         Object flag = this.getView().getFormShowParameter().getCustomParam("flag");
-        Object asstacttype=this.getView().getFormShowParameter().getCustomParam("asstacttype").toString();
+        Object asstacttype=this.getView().getFormShowParameter().getCustomParam("asstacttype");
         //如果为预警跳转的页面则自动点击跳转按钮到报表
         if (("1").equals(flag)) {
             //获取当前单据