金蝶BOS 获取dep在界面上做的控件的值
来源:互联网 发布:http默认端口号多少 编辑:程序博客网 时间:2024/05/22 04:50
//获取dep新增的控件
public static void findComponent(Component comp,String[] controls,Hashtable<String, Component> found){
Container con=null;
boolean nameEquals =false;
String CompName = null;
if (comp instanceof Container) {
CompName = comp.getName();
if (CompName!=null ){
System.out.println(CompName);
for(int i = 0;i<controls.length;i++){
if(CompName.equals(controls[i])){
if( !found.containsKey(CompName)){
System.out.println(CompName + " not contain++++");
found.put(CompName,comp);
System.out.println("find:"+CompName);
nameEquals = true;
break;
}else{
System.out.println("contain++++");
}
}
}
}
if (found.size() != controls.length /*&& !nameEquals*/){
System.out.println("container:" + comp.getName());
con = (Container)comp;
int count = con.getComponentCount();
for (int i = 0;i<count;i++){
findComponent(con.getComponent(i),controls,found);
if(found.size() == controls.length) return;
}
}
}else{
System.out.println("component:" + comp.getName());
}
}
main(){
Hashtable hs = new Hashtable();
String prtypeId = CommonFacadeFactory.getRemoteInstance().getPurReturnsTypeId(this.editData.getId()==null?null:this.editData.getId().toString());
PurReturnTypeInfo ptInfo = PurReturnTypeFactory.getRemoteInstance().getPurReturnTypeInfo(new ObjectUuidPK(prtypeId));
System.out.println(this.editData.keys());
findComponent(this.contsuttle.getParent(),new String[]{"prmtptType"},hs);
if (hs.size() > 0) {
Object oo = hs.get("prmtptType");
if (oo != null) {
kp = (KDBizPromptBox)oo;
kp.setValue(ptInfo);
}
}
}
- 金蝶BOS 获取dep在界面上做的控件的值
- EAS获取DEP所加的控件
- EAS BOS 界面控件的状态设定
- dep加的字段在UI界面的处理
- 金蝶BOS 获取列表界面所选择的行数的ID
- 获取控件在对话框上的坐标
- Jni获取Android界面上的控件信息
- 获取互联网上的图片并显示在界面上
- 获取前台界面各种控件的值
- 关于在JSP界面获取action里的值,来做判断显示内容的取值法
- Qt 在布局好的界面上显示一个控件
- 金蝶BOS 弹出界面
- 做界面时使两控件对齐的方法
- EAS BOS 在list界面增加过滤、排序及删除默认的过滤条件
- 金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码
- 金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码
- 金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码
- 金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码
- 关于FLEX中的反射
- linux下gcc编译器的使用(网上转载)
- winfrom、asp.net连接access数据库
- CreateMutex 创建一个互斥体
- paltform
- 金蝶BOS 获取dep在界面上做的控件的值
- How to measure Index Selectivity (索引区分度)
- Linux用户态和内核态的区别
- 如何开启/关闭oracle的归档
- DevExpress.XtraGrid Execl导入导出
- 应用JUnit实施单元测试(原创作者:eric )
- QT学习记录
- 员工逼我加薪,不加就走人,怎么办?
- 在PHP中获取IP来源地址并且插入数据库