⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 systemmanager.java

📁 shopping home JSP system
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   SystemManager.java

package com.keyshop.shop.system.manager;

import com.keyshop.pub.util.*;
import com.keyshop.shop.product.model.Product;
import com.keyshop.shop.product.util.ProductHelper;
import com.keyshop.shop.system.bo.*;
import com.keyshop.shop.system.model.*;
import com.keyshop.shop.system.util.SystemConst;
import com.keyshop.shop.user.model.User;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class SystemManager
{

    public SystemManager()
    {
    }

    public static void updateMailConfig(HttpServletRequest request, MailConfig mailconfig)
        throws Exception
    {
        SystemConfigBO bo = new SystemConfigBO();
        SystemConfig config = (SystemConfig)bo.get("mail");
        if(config != null)
        {
            String cs = XMLHelper.marshalMailConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_MAIL), mailconfig);
            config.setConfig(cs);
            bo.updateBean(config);
        } else
        {
            config = new SystemConfig();
            config.setId("mail");
            bo.addBean(config);
        }
    }

    public static void updateCapInfoConfig(HttpServletRequest request, PayConfig capInfoConfig)
        throws Exception
    {
        SystemConfigBO bo = new SystemConfigBO();
        SystemConfig config = (SystemConfig)bo.get("capInfo");
        if(config != null)
        {
            String cs = XMLHelper.marshalPayConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_PAYCONFIG), capInfoConfig);
            config.setConfig(cs);
            bo.updateBean(config);
        } else
        {
            config = new SystemConfig();
            config.setId("capInfo");
            bo.addBean(config);
        }
    }

    public static void updateCncardConfig(HttpServletRequest request, PayConfig capInfoConfig)
        throws Exception
    {
        SystemConfigBO bo = new SystemConfigBO();
        SystemConfig config = (SystemConfig)bo.get("cncard");
        if(config != null)
        {
            String cs = XMLHelper.marshalPayConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_PAYCONFIG), capInfoConfig);
            config.setConfig(cs);
            bo.updateBean(config);
        } else
        {
            config = new SystemConfig();
            config.setId("cncard");
            String cs = XMLHelper.marshalPayConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_PAYCONFIG), capInfoConfig);
            config.setConfig(cs);
            bo.addBean(config);
        }
    }

    public static void updateChinabankInfoConfig(HttpServletRequest request, PayConfig chinabankInfoConfig)
        throws Exception
    {
        SystemConfigBO bo = new SystemConfigBO();
        SystemConfig config = (SystemConfig)bo.get("chinabankInfo");
        if(config != null)
        {
            String cs = XMLHelper.marshalPayConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_PAYCONFIG), chinabankInfoConfig);
            config.setConfig(cs);
            bo.updateBean(config);
        } else
        {
            config = new SystemConfig();
            config.setId("chinabankInfo");
            bo.addBean(config);
        }
    }

    public static void updateAlipayInfoConfig(HttpServletRequest request, PayConfig alipayInfoConfig)
        throws Exception
    {
        SystemConfigBO bo = new SystemConfigBO();
        SystemConfig config = (SystemConfig)bo.get("alipayInfo");
        if(config != null)
        {
            String cs = XMLHelper.marshalPayConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_PAYCONFIG), alipayInfoConfig);
            config.setConfig(cs);
            bo.updateBean(config);
        } else
        {
            config = new SystemConfig();
            config.setId("alipayInfo");
            bo.addBean(config);
        }
    }

    public static void updateOrderConfig(HttpServletRequest request, OrderConfig orderConfig)
        throws Exception
    {
        SystemConfigBO bo = new SystemConfigBO();
        SystemConfig config = (SystemConfig)bo.get("order");
        if(config != null)
        {
            String cs = XMLHelper.marshalOrderConfig(request.getRealPath(SystemConst.SYSTEMCONFIG_ORDER), orderConfig);
            config.setConfig(cs);
            bo.updateBean(config);
        } else
        {
            config = new SystemConfig();
            config.setId("capInfo");
            bo.addBean(config);
        }
    }

    public static MailConfig getMailConfig(HttpServletRequest request)
    {

        return null;
    }

    public static PayConfig getCapInfoConfig(HttpServletRequest request)
    {
     
        return null;
    }

    public static PayConfig getChinabankInfoConfig(HttpServletRequest request)
    {
       
        return null;
    }

    public static PayConfig getAlipayInfoConfig(HttpServletRequest request)
    {
        
        return null;
    }

    public static PayConfig getCnCardConfig(HttpServletRequest request)
    {
       
        return null;
    }

    public static OrderConfig getOrderConfig(HttpServletRequest request)
    {
       
        return null;
    }

    public static Provider getProvider(String providerId)
    {
       
        return null;
    }

    public static void updateViewConfig(HttpServletRequest request, ViewConfig viewConfig)
        throws Exception
    {
     
    }

    public static ViewConfig getViewConfig(HttpServletRequest request)
    {
       
        return null;
    }

    public static void addAcLog(HttpServletRequest request, String channelId)
        throws Exception
    {
       
    }

    public static int getPerDayCount()
        throws Exception
    {
        
            return 0;
    }

    public static int getPerMonthCount()
        throws Exception
    {
       
            return 0;
    }

    public static int getTotalCount()
        throws Exception
    {
        
            return 0;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -