コード例 #1
0
 /** 查看商户支付配置 */
 public String viewTblMchtPaymentConfig() throws Exception {
   TblMchtPaymentConfigManager tblMchtPaymentConfigMgr =
       (TblMchtPaymentConfigManager) SpringContextHolder.getBean(TblMchtPaymentConfig.class);
   tblMchtPaymentConfig =
       tblMchtPaymentConfigMgr.getTblMchtPaymentConfigById(tblMchtPaymentConfig.getId());
   return returnCommand();
 }
コード例 #2
0
 /** 新增/修改保存商户支付配置 */
 public String saveTblMchtPaymentConfig() throws Exception {
   TblMchtPaymentConfigManager tblMchtPaymentConfigMgr =
       (TblMchtPaymentConfigManager) SpringContextHolder.getBean(TblMchtPaymentConfig.class);
   if (super.perExecute(tblMchtPaymentConfig) != null) return returnCommand();
   tblMchtPaymentConfigMgr.saveTblMchtPaymentConfig(tblMchtPaymentConfig);
   super.postExecute(tblMchtPaymentConfig);
   return returnCommand();
 }
コード例 #3
0
  /** 商户支付配置列表 */
  public String tblMchtPaymentConfigList() throws Exception {
    TblMchtPaymentConfigManager tblMchtPaymentConfigMgr =
        (TblMchtPaymentConfigManager) SpringContextHolder.getBean(TblMchtPaymentConfig.class);
    pageInfo = pageInfo == null ? new TblMchtPaymentConfigPageInfo() : pageInfo;
    PageInfo sarchPageInfo = PageInfoUtil.populate(pageInfo, this);

    tblMchtPaymentConfigs =
        tblMchtPaymentConfigMgr.getSecurityTblMchtPaymentConfigList(sarchPageInfo);

    return returnCommand();
  }
コード例 #4
0
  /** 删除指定的某些商户支付配置 */
  public String removeAllTblMchtPaymentConfig() throws Exception {
    TblMchtPaymentConfigManager tblMchtPaymentConfigMgr =
        (TblMchtPaymentConfigManager) SpringContextHolder.getBean(TblMchtPaymentConfig.class);
    if (orderIndexs != null && orderIndexs.length() > 0) {
      String[] ids = orderIndexs.split(",");
      for (int i = 0; i < ids.length; i++) {
        if (ids[i].length() > 0) {
          Integer tblMchtPaymentConfigid = new Integer(ids[i]);
          tblMchtPaymentConfigMgr.removeTblMchtPaymentConfigById(tblMchtPaymentConfigid);
        }
      }
    }

    return returnCommand();
  }