Exemplo n.º 1
0
 /**
  * 內部聯絡函
  *
  * @param local_factNo
  * @param local_billNo
  * @param local_visaSort
  * @throws IOException
  */
 public void addVisabillsAndEmail2(
     String local_factNo,
     String local_billNo,
     String local_visaSort,
     KyVisabillm vbm,
     ApplicationContext ac)
     throws IOException {
   /** 打印 */
   this.print_KyzContactletter(local_factNo, local_billNo, local_visaSort, vbm, ac);
   /** 發郵件 由於要給所有人(包括不要審核的)發送郵件,所以要重新從數據庫中獲取,而不能使用上面已有的list_visa */
   GlobalMethod.sendEmailB(local_factNo, local_billNo, local_visaSort, vbm, ac);
 }
Exemplo n.º 2
0
 @Override
 protected void executeInternal(JobExecutionContext arg0) throws JobExecutionException {
   // TODO Auto-generated method stub
   try {
     List<String> ips = GlobalMethod.findIp2();
     if (ips.size() == 0) {
       this.init();
     } else {
       for (int i = 0; i < ips.size(); i++) {
         if (ips.get(i).equals("192.168.199.101")) {
           this.init();
           break;
         } else if (i == ips.size() - 1) {
           System.out.println("本機不需要發送Email");
         }
       }
     }
     // this.init();
   } catch (Exception e) {
     System.out.println(e);
   }
 }