zoukankan      html  css  js  c++  java
  • eas之action的创建

    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();  
    }  
     
    承接钉钉定制;网站服务定制; 联系qq:1655119603
  • 相关阅读:
    一网友推荐的书:框架设计(第2版):CLR Via C#
    线程与WinForm设计,防冻结,卡住窗体
    通用数据库操作辅助类DbHelper
    高级着色器语言(High Level Shader Language,简称HLSL)
    无法将 匿名方法 转换为类型“System.Delegate”,因为它不是委托类型
    根据RGB,计算灰度值
    温故而知新:WinForm/Silverlight多线程编程中如何更新UI控件的值
    [原创视频]PHP在netbeans中的简单使用
    自己封装的ASP.NET的SQLITE数据库的操作类
    《JavaScript征途》读后感
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963577.html
Copyright © 2011-2022 走看看