需求:在当前页面的pageButtonBar中有一个下拉选择框,选择框中的值集根据某些条件有不同。

public class SupplierInfoReviewCO extends OAControllerImpl
{
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%"); String spacerStr = "-------------------";
LinkedList actionListText = new LinkedList();
LinkedList actionListValue = new LinkedList(); /**
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
*/
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean); populateBuyerActions(pageContext, webBean);
} public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processFormRequest(pageContext, webBean); Integer integer = Integer.valueOf(0);
if (pageContext.getParameter("GoBtn") != null) {
try {
integer =
Integer.valueOf(Integer.parseInt(pageContext.getParameter("ActionList")));
} catch (Exception localException1) {
integer = Integer.valueOf(-1);
}
} if (integer.intValue() == 210)
{
//your code return;
} if (integer.intValue() == 220)
{
//your code
return;
}
} private void populateBuyerActions(OAPageContext pageContext, OAWebBean webBean)
{ String wfStatus = pageContext.getParameter("WfStatus");
String suppResponseStatus = pageContext.getParameter("SuppResponseStatus"); addAction(this.spacerStr, -1);
addAction(pageContext.getMessage("POS", "POS_SUPP_CANCEL_ACTN", null), 40); if("SUPP_RESPONSED".equals(suppResponseStatus)){
addAction(pageContext.getMessage("CUX", "CUX_POST_LEADER_APPROVER", null), 210);
} if("PREPARATORY".equals(wfStatus)){
addAction(pageContext.getMessage("CUX", "CUX_CREATE_ADMIT_CATEGORY", null), 220);
removeAction(pageContext.getMessage("CUX", "CUX_POST_LEADER_APPROVER", null), 210);
} } private void addAction(String paramString, int paramInt)
{
if (!this.actionListText.contains(paramString))
{
this.actionListText.add(paramString);
this.actionListValue.add(Integer.toString(paramInt));
}
} private void removeAction(String paramString, int paramInt)
{
if (this.actionListText.contains(paramString))
{
this.actionListText.remove(paramString);
this.actionListValue.remove(Integer.toString(paramInt));
}
} }

最新文章

  1. R语言基础:数组&列表&向量&矩阵&因子&数据框
  2. WPF杂难解 奇怪的DisconnectedItem
  3. ARM map(Program size)
  4. Char Varchar Nvarchar区别
  5. date命令使用总结【转载】
  6. 转:C# 中的委托和事件
  7. 用python发送GET和POST请求
  8. 一份关于组建.NET Core开源团队的倡议书
  9. linux mysql添加、删除用户、用户权限及mysql最大字段数量
  10. mqtt服务器apollo的搭建和测试工具paho的使用
  11. fiddler主要图标说明
  12. Java通过NIO实现快速文件拷贝的代码
  13. python 如何编写一个自己的包
  14. TT-付款方式
  15. Eclipse配置C++时的三个关键环境变量
  16. P1481 魔族密码 (LIS)
  17. Scrapy框架学习笔记
  18. ftp通用类1
  19. 交叉验证(CrossValidation)方法思想简介[zz]
  20. 用python实现一个简单的聊天功能,tcp,udp,socketserver版本

热门文章

  1. 为什么采用4~20mA的电流来传输模拟量?(转)
  2. CentOS7防火墙之firewalld
  3. 20145225《网络对抗》Exp7 网络欺诈技术防范
  4. Win7远程桌面出现凭据不正确的解决办法
  5. Python3基础 tuple 通过拆分元素 把元组的数据删除
  6. MySQL 5.7.18 解压版安装
  7. MariaDB学习记录
  8. Java课程设计—拿火柴小游戏
  9. 关于在iBatis中配置Oracle以及MySQL 自增字段
  10. Error: Checksum mismatch.