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

📄 manageform.java

📁 反ajax原代码
💻 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:   ManageForm.java

package com.laoer.bbscs.web.form;

import com.laoer.comm.util.Util;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public class ManageForm extends ActionForm
{

    private String action;
    private String blackUserName;
    private String bulletin;
    private String canInUserName;
    private int day;
    private int month;
    private String reason;
    private int year;
    private long bid;

    public ManageForm()
    {
    }

    public String getAction()
    {
        return action;
    }

    public void setAction(String action)
    {
        this.action = action;
    }

    public String getBlackUserName()
    {
        return blackUserName;
    }

    public void setBlackUserName(String blackUserName)
    {
        this.blackUserName = blackUserName;
    }

    public String getBulletin()
    {
        return bulletin;
    }

    public void setBulletin(String bulletin)
    {
        this.bulletin = bulletin;
    }

    public String getCanInUserName()
    {
        return canInUserName;
    }

    public void setCanInUserName(String canInUserName)
    {
        this.canInUserName = canInUserName;
    }

    public int getDay()
    {
        return day;
    }

    public void setDay(int day)
    {
        this.day = day;
    }

    public int getMonth()
    {
        return month;
    }

    public void setMonth(int month)
    {
        this.month = month;
    }

    public String getReason()
    {
        return reason;
    }

    public void setReason(String reason)
    {
        this.reason = reason;
    }

    public int getYear()
    {
        return year;
    }

    public void setYear(int year)
    {
        this.year = year;
    }

    public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest)
    {
        ActionErrors errors = new ActionErrors();
        if(action == null || action.length() == 0)
            errors.add("error.parametererror", new ActionError("error.parametererror"));
        if(action.equals("add"))
        {
            if(blackUserName == null || blackUserName.length() == 0)
                errors.add("error.nullerror", new ActionError("error.nullerror"));
            if(Util.Date2Long(year, month, day) <= Util.getLongTime())
                errors.add("error.bull.endtime", new ActionError("error.bull.endtime"));
        }
        if(action.equals("del") && (blackUserName == null || blackUserName.length() == 0))
            errors.add("error.nullerror", new ActionError("error.nullerror"));
        return errors;
    }

    public void reset(ActionMapping actionmapping, HttpServletRequest httpservletrequest)
    {
    }

    public long getBid()
    {
        return bid;
    }

    public void setBid(long bid)
    {
        this.bid = bid;
    }
}

⌨️ 快捷键说明

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