protected KDWorkButton btnFileManage;  
protected ActionFileManage actionFileManage = null;  
  
public void onLoad() throws Exception {  
    super.onLoad();  
  
    this.actionFileManage = new ActionFileManage(this);  
    getActionManager().registerAction("actionFileManage", actionFileManage);  
    this.actionFileManage.addService(new com.kingdee.eas.framework.client.service.PermissionService());  
  
    this.btnFileManage = new KDWorkButton();  
    this.btnFileManage.setEnabled(true);  
    this.btnFileManage.setName("btnFileManage");  
    this.btnFileManage.setAction((IItemAction)ActionProxyFactory.getProxy(actionFileManage, new Class[] { IItemAction.class }, getServiceContext()));         
    this.btnFileManage.setText("档案管理");       
    this.btnFileManage.setIcon(com.kingdee.eas.util.client.EASResource.getIcon("imgTree_layoutproject"));  
  
    this.toolBar.add(btnFileManage);  
          
    this.btnFileManage.setEnabled(true);  
}  
  
protected class ActionFileManage extends ItemAction {  
    public ActionFileManage() {  
        this(null);  
    }  
  
    public ActionFileManage(IUIObject uiObject) {  
        super(uiObject);  
        String _tempStr = null;  
        this.setEnabled(false);  
        _tempStr = "档案管理";  
        this.putValue(ItemAction.SHORT_DESCRIPTION, _tempStr);  
        _tempStr = "档案管理";  
        this.putValue(ItemAction.LONG_DESCRIPTION, _tempStr);  
        _tempStr = "档案管理";  
        this.putValue(ItemAction.NAME, _tempStr);  
    }  
  
    public void actionPerformed(ActionEvent e) {  
        getUIContext().put("ORG.PK", getOrgPK(this));  
        innerActionPerformed("eas", ComFileAssoUI.this, "ActionFileManage", "actionFileManage_actionPerformed", e);  
    }  
}  
  
public void actionFileManage_actionPerformed(ActionEvent e) throws Exception {  
    ComUnitInfo comUnitInfo = this.getComUnit();  
    Map params = new UIContext(this);  
    params.put("comUnit", comUnitInfo);  
    params.put("operate", "manage");  
    if(comUnitInfo != null)  
        params.put("mainId", comUnitInfo.getMainId());  
    uiWindow = UIFactory.createUIFactory(UIFactoryName.MODEL).create(  
                "com.kingdee.eas.zsj.propertymanagementend.client.ComFileManageUI", params, null, OprtState.ADDNEW);  
    uiWindow.show();  
}  
 

eas之action的创建的更多相关文章

  1. Action的创建和配置

    计应134(实验班) 李佳鸿 Action类—Struts组件 在RequestProcessor类预处理请求时,在创建了Action的实例后,就调用自身的processActionPerform() ...

  2. java之struts2的action的创建方式

    首先action是用来处理请求的, 这里struts2中的action的3中创建方式. 1.无侵入性的创建方式. 无侵入性:使用第三方的框架,不直接继承或实现第三方提供的类或者接口就说是无侵入性的. ...

  3. Struts2基础-2 -实现Action接口创建Action控制器

    1.新建一个web项目,目录结构如下,添加jar包到lib文件夹里,并把jar包add 到 buildpath里面 2.web.xml配置 struts2的过滤器类:StrutsPrepareAndE ...

  4. struts2 之 Action的创建方式

    总结:struts2是一个轻量级框架,提供了无侵入性的实现方式,struts2也提供了接口和类来实现action.通过实现接口或者继承类来实现action可以实现struts2提供的相关功能, 1. ...

  5. Struts2之命名空间与Action的三种创建方式

    看到上面的标题,相信大家已经知道我们接下来要探讨的知识了,一共两点:1.package命名空间设置:2.三种Action的创建方式.下面我们开始本篇的内容: 首先我们聊一聊命名空间的知识,namesp ...

  6. Struts2 Action类的创建以及参数传递以及接收

    一.Struts中Action得创建方式 1,直接创建一个简单的Action类 添加Struts.xml,配置转发方法返回转发的页面. 2,实现一个Action类 Strust.xml配置对应的Url ...

  7. [ASP.NET MVC 小牛之路]10 - Controller 和 Action (2)

    继上一篇文章之后,本文将介绍 Controller 和 Action 的一些较高级特性,包括 Controller Factory.Action Invoker 和异步 Controller 等内容. ...

  8. python调用zabbix接口实现Action配置

    要写这篇博客其实我的内心是纠结的,老实说,我对zabbix的了解实在不多.但新公司的需求不容置疑,当我顶着有两个头大的脑袋懵懵转入运维领域时,面前摆着两百多组.上千台机器等着写入zabbix监控的需求 ...

  9. 004. Asp.Net Routing与MVC 之二: 请求如何激活Controller和Action

    上篇讲到 请求到达 MvcRouteHandler ,并且透过 IRouteHandler.GetHttpHandler 获取到了真正的处理程序 MvcHandler 这次我们看看,MvcHandle ...

随机推荐

  1. hdu3371 Connect the Cities (MST)

    Connect the Cities Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Other ...

  2. 系统服务-----Activity服务的获取getSystemService

    android的后台存在非常多service,它们在系统启动的时候被SystemServer开启.来为系统的正常执行做支撑.Activity中要调用这些service就得使用getSystemServ ...

  3. 关于oracle 11g导出数据时 报 ORA 1455错误的处理

    因为导出的该用户的表可能存在空数据表,那么可能就会出现此其异常. 首先:  查看:     SQL>show parameter deferred_segment_creation;  假设为T ...

  4. vsftpd出现“Response: 500 OOPS: cannot change directory”解决方法(转载)

    vsftpd出现“Response: 500 OOPS: cannot change directory”解决方法   笔者用的Linux发行版本为centos当用FTP客户端连接时,出现如下错误提示 ...

  5. linux驱动由浅入深系列:tinyalsa(tinymix/tinycap/tinyplay/tinypcminfo)音频子系统之一【转】

    本文转载自:http://blog.csdn.net/radianceblau/article/details/64125411 目前linux中主流的音频体系结构是ALSA(Advanced Lin ...

  6. 利用存储过程插入50W+数据

    转自:https://www.aliyun.com/jiaocheng/1396184.html 首先,建立部门表和员工表: 部门表:   create table dept(   id int un ...

  7. 74.资金管理-员工工资配置 extjs 页面

    1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8&quo ...

  8. 开启远程MySQL

    安装完MySQL,由于安全原因默认是没有赋予用户远程权限的,所以第一步要首先赋予用户对应的权限 一  授权 mysql> mysql -u用户名 [-pIp地址] -p #登录 mysql> ...

  9. es优化收藏

    Elasticsearch常用优化 https://www.cnblogs.com/zlslch/p/6478773.html Elasticsearch 基础理论 & 配置调优 http:/ ...

  10. Oracle 生成数据字典

    SELECT ROWNUM 序号,A.COLUMN_NAME AS "字段名称",B.comments AS "字段描述", A.DATA_TYPE as 字段 ...