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

📄 updateaccattribute.java

📁 电信的网厅的整站代码
💻 JAVA
字号:
package com.doone.fj1w.fjmgr.sysmgr;

import javax.servlet.http.HttpServletRequest;
import com.doone.data.DataTable;
import com.doone.fj1w.fjmgr.order.CommonMethod;

public class updateAccAttribute {

	private HttpServletRequest request = null;
	
	private String userId="";

	private String accountId = "";

	private String accountName = "";

	private String cityCode = "0590";

	private String areaCode = "059000";

	private String cityName = "";
	
	private String email="";

	private int relateNbr = 0;

	private int unrelateNbr = 0;
	
	private String actionName = "";
	
	private String actionID = "";

	private DataTable _dtRelate = null;

	private DataTable _dtUnRelate = null;

	private boolean isExistRelate = false;

	private boolean isExistUnRelate = false;
	
	private boolean isState = false;
	
	String[] statu = new String[] { "A","N","L","D"};
	
	String[] statuName = new String[] {"激活","待激活", "过期","注销" };

	public DataTable get_dtRelate() {
		return _dtRelate;
	}

	public void set_dtRelate(DataTable relate) {
		_dtRelate = relate;
	}

	public DataTable get_dtUnRelate() {
		return _dtUnRelate;
	}

	public void set_dtUnRelate(DataTable unRelate) {
		_dtUnRelate = unRelate;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}
	
	public String getUserId() {
		return userId;
	}
	
	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}
	
	public String getAreaCode() {
		return areaCode;
	}
	
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getCityName() {
		return cityName;
	}

	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	
	public String getEmail() {
		return email;
	}
	
	public void setEmail(String email) {
		this.email = email;
	}

	public int getRelateNbr() {
		return relateNbr;
	}

	public void setRelateNbr(int relateNbr) {
		this.relateNbr = relateNbr;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

	public int getUnrelateNbr() {
		return unrelateNbr;
	}

	public void setUnrelateNbr(int unrelateNbr) {
		this.unrelateNbr = unrelateNbr;
	}

	public updateAccAttribute() {
	}

	public void regist(HttpServletRequest request) {
		this.request = request;
		init();
	}

	private void init() {
		this.setAccountId(request.getParameter("accountid"));
		this.setAccountName(request.getParameter("accountname"));
		this.setEmail(request.getParameter("email"));
		this.setUserId(request.getParameter("userid"));
		this.setCityCode(request.getParameter("citycode"));		
		this.setAreaCode(request.getParameter("areacode"));		
		ForgetCihper fc = new ForgetCihper();
		this.set_dtRelate(fc.getRelaListByAcct(this.getAccountId(), "E"));
		this.set_dtUnRelate(fc.getRelaListByAcct(this.getAccountId(), "D"));
		if (this.get_dtRelate() != null
				&& this.get_dtRelate().getRows().getCount() > 0) {
			this.setRelateNbr(this.get_dtRelate().getRows().getCount());
			this.setExistRelate(true);
		}
		if (this.get_dtUnRelate() != null
				&& this.get_dtUnRelate().getRows().getCount() > 0) {
			this.setUnrelateNbr(this.get_dtUnRelate().getRows().getCount());
			this.setExistUnRelate(true);
		}
		
		if (this.isExistRelate) {
			this.setCityCode(get_dtRelate().getRow(0).getString("citycode"));
		} else if (this.isExistUnRelate) {
			this.setCityCode(get_dtUnRelate().getRow(0).getString("citycode"));
		}
		this.setCityName(CommonMethod.getCityName(this.getCityCode()));

		this.setActionID(request.getParameter("action"));
		
		if(this.getActionID() == null || this.getActionID().equals("")){
			this.setActionID("N");
		}
		
		for (int i = 0; i < this.statu.length; i++) {
			if(this.getActionID().equals(statu[i]))
				this.setActionName(this.statuName[i]);
		}
		//为激活状态的帐号才能操作
		if(this.getActionID().equals("A"))
			this.isState = true;
		
	}

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public boolean isExistRelate() {
		return isExistRelate;
	}

	public boolean isExistUnRelate() {
		return isExistUnRelate;
	}

	public void setExistRelate(boolean isExistRelate) {
		this.isExistRelate = isExistRelate;
	}

	public void setExistUnRelate(boolean isExistUnRelate) {
		this.isExistUnRelate = isExistUnRelate;
	}

	
	
	public String getBecause(){
		return (String)this.request.getSession().getAttribute("can_becaues");
	}

	public String getActionID() {
		return actionID;
	}

	public void setActionID(String actionID) {
		this.actionID = actionID;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	public boolean isState() {
		return isState;
	}
}

⌨️ 快捷键说明

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