|
@@ -3,6 +3,8 @@ package tinvoiceapply;
|
|
|
import baseclass.PaoCust;
|
|
import baseclass.PaoCust;
|
|
|
import baseclass.tools.GetFieldsName;
|
|
import baseclass.tools.GetFieldsName;
|
|
|
import baseclass.tools.Math;
|
|
import baseclass.tools.Math;
|
|
|
|
|
+import openapi.base.data.Rows;
|
|
|
|
|
+import openapi.base.data.db.DBConnect;
|
|
|
import p2.pao.PaoRemote;
|
|
import p2.pao.PaoRemote;
|
|
|
import p2.pao.PaoSet;
|
|
import p2.pao.PaoSet;
|
|
|
import p2.pao.PaoSetRemote;
|
|
import p2.pao.PaoSetRemote;
|
|
@@ -345,6 +347,17 @@ public class tinvoiceapply extends PaoCust {
|
|
|
setValue("finvoicetaxnumber", "", 11L);
|
|
setValue("finvoicetaxnumber", "", 11L);
|
|
|
setValue("finvoicename", "", 11L);
|
|
setValue("finvoicename", "", 11L);
|
|
|
setValue("finvoiceaddress", "", 11L);
|
|
setValue("finvoiceaddress", "", 11L);
|
|
|
|
|
+ } else if ("FINVOICETAXNUMBER".equals(fieldname)) {
|
|
|
|
|
+ String finvoicetaxnumber = getString(fieldname);
|
|
|
|
|
+ DBConnect dbConnect = new DBConnect();
|
|
|
|
|
+ Rows rows = dbConnect.runSqlQuery("select fphonenumber,fbankcardid from tagents_invoice where ftaxnumber='" + finvoicetaxnumber + "' and fbankcardid is not null");
|
|
|
|
|
+ if (!rows.isEmpty()) {
|
|
|
|
|
+ setValue("FINVOICEMOBILE", rows.get(0).getString("fphonenumber"));
|
|
|
|
|
+ setValue("FINVOICEBANKANDACCOUNT", rows.get(0).getString("fbankcardid"));
|
|
|
|
|
+ }else{
|
|
|
|
|
+ setValue("FINVOICEMOBILE","");
|
|
|
|
|
+ setValue("FINVOICEBANKANDACCOUNT", "");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|