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

📄 customerserviceattribute.java

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

import java.util.Calendar;
import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import com.doone.data.DataTable;
import com.doone.fj1w.fjmgr.order.CommonMethod;
import com.doone.fj1w.fjmgr.order.DisplayPage;

public class CustomerServiceAttribute  extends PageAttribute{

	//	传入工单id.
	private String appealid = "";

	private String outDate = ""; //时限
	
//	审核人员页面属性.
	private String restoreMan = ""; //审核人
	
	private String restoreTime = ""; //审核时间
	
	private String restoreContent = ""; //回复内容
	
	//获取单的状态.
	private String[] statR = null;
	
	private String message = "";
	
	private String bakid = "",newid = "";
	
	private DataTable table = null;
	
	private DataTable review = null;
	
	public CustomerServiceAttribute(HttpServletRequest request) {
		super(request);
	}
	
	public void initail() throws RuntimeException{
		try {
			appealid = request.getParameter("id");
			if (appealid == null || appealid.equals("")) {
				throw new RuntimeException("参数不正确,无法完成请求操作!");
			}
			// 备份.
			bakid = appealid;
			String staffID = (new Long(auth.getUserID())).toString();
			CustomerServiceControl control = 
				new CustomerServiceControl(appealid,staffID,auth.getCityCode());
			table = control.control();
			if (table == null || table.getRows().getCount() == 0) {
				throw new RuntimeException("查询历史记录单失败(没有记录),请重新受理!");
			}
			statR = control.getStatu();
			review = control.lastReviewMessage();
			appealid = control.getChildProdOrderId();
			newid = appealid;
			message = control.getAttention();
			
		} catch (Exception ex) {
			throw new RuntimeException(ex.getMessage());
		}
	}
	
	/**
     * 获取页面属性.
     *
     */
    public void view(){
    	try {
			//获取上一次审核信息.
			if (review != null && review.getRows().getCount() > 0) {
				request.getSession().setAttribute("restoreid",
						review.getRow(0).getString("restoreid"));
				restoreMan = review.getRow(0).getString("RESTOREMAN");
				restoreTime = review.getRow(0).getString("RESTORETIME");
				if(restoreTime == null || restoreTime.equals("")){
					restoreTime = CommonMethod.getCurrentDate();
				}
				outDate = table.getRow(0).getString("OUTDATE");
				restoreContent = review.getRow(0).getString("RESTORECONTENT");
			} else {
				restoreMan = getUserCode();
				Calendar cal = Calendar.getInstance(java.util.Locale.CHINA);
				cal.setTime(new Date());
				restoreTime = CommonMethod.getCurrentDate();
				restoreContent = "";
			}
		} catch (Exception ex) {}
    }
    
    public String getAlertMessage(){
    	return this.message;
    }

	public String[] getStatR() {
		return statR;
	}

	public String getBakid() {
		return DisplayPage.encode(bakid);
	}
    
	public String getNewid() {
		return DisplayPage.encode(newid);
	}
	
	public DataTable getTable() {
		return table;
	}

	public DataTable getReview() {
		return review;
	}
	
	public String getAppealid() {
		return appealid;
	}
	
	public String getRestoreContent() {
		return restoreContent;
	}

	public String getRestoreMan() {
		return restoreMan;
	}

	public String getRestoreTime() {
		return restoreTime;
	}
	
	public String getOutDate() {
		return outDate;
	}
    
	public String getOrderCityCode() {
		return CommonMethod.formatResult(table.getRow(0).getString("CITYCODE"));
	}

	public String getOrderCityName() {//地市名称
		return CommonMethod.formatResult(table.getRow(0).getString("CITYNAME"));
	}
	
	public String getWebOrder() {
		return CommonMethod.formatResult(table.getRow(0).getString("WebOrder"));
	}
	
	public String getThirdOrder() {
		String thirdOrder = CommonMethod.formatResult(table.getRow(0).getString("OTHERORDER"));
		thirdOrder = thirdOrder.equals("") ? "<font color=red>暂无</font>": thirdOrder;
		return thirdOrder;
	}
	 
	public String getProgressState() {
		return table.getRow(0).getString("PROGRESSSTATE")
        +"<font color='red'>("+table.getRow(0).getString("BOSOMPROGRESSSTATE")+")</font>";
	}
	
    public String getAccountNo() {
    	return CommonMethod.formatResult(table.getRow(0).getString("ACCOUNTNO"));
    }
    
    public String getName() {
    	return CommonMethod.formatResult(table.getRow(0).getString("NAME"));
    }
    
    public String getUserId() {
    	return CommonMethod.formatResult(table.getRow(0).getString("USERID"));
    }
    
    public String getSex() {
    	String sex = CommonMethod.formatResult(table.getRow(0).getString("SEX"));
    	if(sex.equals("1")) {
    		sex = "男";
    	}else if(sex.equals("2")) {
    		sex = "女";
    	}else {
    		sex = "保密";
    	}
    	return sex;
    }

    public String getEmail() {
		return CommonMethod.formatResult(table.getRow(0).getString("EMAIL"));
	}
    
    public String getRelationTel() {
		return CommonMethod.formatResult(table.getRow(0).getString("RELATIONTEL"));
	}
    
    public String getAppealMode() {
		return CommonMethod.formatResult(table.getRow(0).getString("APPEALMODE"));
	}
    
    public String getCustLevel() {
    	return "3";
    }
    
    public String getCustImpLevel() {
    	return "01";
    }
    
    public String getAppealTypeId() {
    	return CommonMethod.formatResult(table.getRow(0).getString("APPEALTYPEID"));
    }
    
    public String getAppealTypeName() {
    	return CommonMethod.formatResult(table.getRow(0).getString("APPEALTYPENAME"));
    }

    public String getAppealContent() {
    	return CommonMethod.formatResult(table.getRow(0).getString("APPEACONTENT"));
    }
    
    public String getReQuestTime() {
    	return CommonMethod.formatResult(table.getRow(0).getString("REQURESTTIME"));
    }
    
    public String getAppealOrderNum() {
    	return CommonMethod.formatResult(table.getRow(0).getString("APPEALORDERNUM"));
    }
    
    public String getFaultType() {
    	return CommonMethod.formatResult(table.getRow(0).getString("FAULTTYPE"));
    }
	
}

⌨️ 快捷键说明

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