// 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:   ChannelConfigForm.java

package com.keyshop.shop.channel.controller;

import com.keyshop.pub.controller.PubForm;
import com.keyshop.pub.model.PubBean;
import com.keyshop.shop.channel.model.*;
import java.util.List;
import org.apache.struts.upload.FormFile;

public class ChannelConfigForm extends PubForm
{

    public PubBean bean;
    public List jspModelConfigList;
    public List channelPrdouctCategoryList;
    public List channelContentList;
    public List channelAdList;
    public String contentType;
    public String contentName;
    public String configFlag;
    public ChannelAd channelAd;
    public ChannelContent channelContent;
    public ChannelProductCategory channelPc;
    public FormFile picData;

    public ChannelConfigForm()
    {
        bean = new Channel();
        jspModelConfigList = null;
        channelPrdouctCategoryList = null;
        channelContentList = null;
        channelAdList = null;
        contentType = "";
        contentName = "";
        configFlag = "";
        channelAd = new ChannelAd();
        channelContent = new ChannelContent();
        channelPc = new ChannelProductCategory();
    }

    public void setBean(PubBean bean)
    {
        this.bean = bean;
    }

    public PubBean getBean()
    {
        return bean;
    }

    public void clear()
    {
        super.clear();
        bean = new Channel();
        jspModelConfigList = null;
        channelPrdouctCategoryList = null;
        channelAdList = null;
    }

    public List getChannelAdList()
    {
        return channelAdList;
    }

    public List getChannelPrdouctCategoryList()
    {
        return channelPrdouctCategoryList;
    }

    public List getJspModelConfigList()
    {
        return jspModelConfigList;
    }

    public void setJspModelConfigList(List jspModelConfigList)
    {
        this.jspModelConfigList = jspModelConfigList;
    }

    public void setChannelPrdouctCategoryList(List channelPrdouctCategoryList)
    {
        this.channelPrdouctCategoryList = channelPrdouctCategoryList;
    }

    public void setChannelAdList(List channelAdList)
    {
        this.channelAdList = channelAdList;
    }

    public String getContentType()
    {
        return contentType;
    }

    public void setContentType(String contentType)
    {
        this.contentType = contentType;
    }

    public ChannelProductCategory getChannelProductCategory(String configId)
    {
        if(channelPrdouctCategoryList != null && channelPrdouctCategoryList.size() > 0)
        {
            for(int i = 0; i < channelPrdouctCategoryList.size(); i++)
            {
                ChannelProductCategory c = (ChannelProductCategory)channelPrdouctCategoryList.get(i);
                if(c.getConfigId().equals(configId))
                    return c;
            }

        }
        return null;
    }

    public ChannelAd getChannelAd(String configId)
    {
        if(channelAdList != null && channelAdList.size() > 0)
        {
            for(int i = 0; i < channelAdList.size(); i++)
            {
                ChannelAd c = (ChannelAd)channelAdList.get(i);
                if(c.getConfigId().equals(configId))
                    return c;
            }

        }
        return null;
    }

    public ChannelContent getChannelContent(String configId)
    {
        if(channelContentList != null && channelContentList.size() > 0)
        {
            for(int i = 0; i < channelContentList.size(); i++)
            {
                ChannelContent c = (ChannelContent)channelContentList.get(i);
                if(c.getConfigId().equals(configId))
                    return c;
            }

        }
        return null;
    }

    public String getConfigFlag()
    {
        return configFlag;
    }

    public void setConfigFlag(String configFlag)
    {
        this.configFlag = configFlag;
    }

    public String getContentName()
    {
        return contentName;
    }

    public void setContentName(String contentName)
    {
        this.contentName = contentName;
    }

    public ChannelAd getChannelAd()
    {
        return channelAd;
    }

    public void setChannelAd(ChannelAd channelAd)
    {
        this.channelAd = channelAd;
    }

    public ChannelProductCategory getChannelPc()
    {
        return channelPc;
    }

    public void setChannelPc(ChannelProductCategory channelPc)
    {
        this.channelPc = channelPc;
    }

    public FormFile getPicData()
    {
        return picData;
    }

    public void setPicData(FormFile picData)
    {
        this.picData = picData;
    }

    public ChannelContent getChannelContent()
    {
        return channelContent;
    }

    public void setChannelContent(ChannelContent channelContent)
    {
        this.channelContent = channelContent;
    }

    public List getChannelContentList()
    {
        return channelContentList;
    }

    public void setChannelContentList(List channelContentList)
    {
        this.channelContentList = channelContentList;
    }
}
