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. LucaCanali --DTRACE AND SYSTEMTAP 脚本工具

    https://github.com/LucaCanali http://cern.ch/canali/

  2. Java开发中的几种对象的说明(PO,VO,DTO,BO,POJO,DAO,SAO等)

    一.PO :(persistant object ),持久对象 可以看成是与数据库中的表相映射的java对象.使用Hibernate来生成PO是不错的选择. 二.VO :(value object) ...

  3. OpenCV使用说明

    我在这边大概说一下OpenCV的使用,具体环境配置参考下面我给出的两个链接. 1. 对于目前OpenCV来说,安装变的简单了很多,现在官方已经给出了预编译文件,不要重新编译.具体使用可以参考http: ...

  4. [MongoDB]mongo命令行工具

    1.use dbname 自动创建 2.db.user.find() 空 show collections 空 show dbs 3.db.user.save({name:'',age:20}) db ...

  5. WinCE:在Win7上连接WinCE手持设备

    当我们通过usb将WinCE 手持设备与Win7 PC连接后,我们通常希望通过Windows Mobile Center软件与手持设备实现同步.方法很简单,从下列列表中选择适合自己操作系统的Windo ...

  6. clear out all variables without closing terminal

    clear out all variables without closing terminal https://unix.stackexchange.com/questions/172655/cle ...

  7. C语言之基本算法40—字符串删除元音字母倒序输出

    //字符串,数组 /* ================================================================== 题目: 输入一行字符,将辅音字母按反序输出 ...

  8. java中statickeyword

    1.static变量 依照是否静态的对类成员变量进行分类可分两种:一种是被static修饰的变量,叫静态变量或类变量:还有一种是没有被static修饰的变量,叫实例变量. 两者的差别是: 对于静态变量 ...

  9. 垃圾回收GC:.Net自己主动内存管理 上(二)内存算法

    垃圾回收GC:.Net自己主动内存管理 上(二)内存算法 垃圾回收GC:.Net自己主动内存管理 上(一)内存分配 垃圾回收GC:.Net自己主动内存管理 上(二)内存算法 垃圾回收GC:.Net自己 ...

  10. iOS刷新某个cell时候crash

    //一个section刷新     NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];     [tableview reloadSec ...