adduser.securityDegree1=null;
adduser.securityDegree = new Ext.form.ComboBox( {
store : new Ext.data.Store( {
proxy : new Ext.data.HttpProxy( {
url : '../JSON/groups_GroupsRemote.getSecurityDegree'
}),
reader : new Ext.data.JsonReader( {
totalProperty : 'totalProperty',
root : 'root'
}, [ {
name : 'id'
}, {
name : 'name'
} ])
}),
fieldLabel : "密级"',
hiddenName : 'securityDegree',
valueField : "id",
displayField : "name",
mode : 'remote',
allowBlank : true,
disabled : false,
forceSelection : true,
editable : false,
triggerAction : 'all',
emptyText : 请选择密级*...,
labelStyle : 'padding:5px 0px 5px 0px',
listeners : {
select : function(combo, record, index) {
adduser.securityDegree1 = record.get('id');
},
beforequery : function(qe) {
delete qe.combo.lastQuery;
}
},
style : 'margin-bottom: 5px;',
width : 175
});
后台用JSONArray和JSONObject返回数据:
JSONObject obj = null;
JSONArray ary = new JSONArray();
for(Grops g:list){
obj = new JSONObject();
obj.put("id",g.getItemID());
obj.put("name",g.getItemName());
ary.add(obj);
}
obj = new JSONObject();
obj.put(”totalProperty",ary.size());
obj.put("root",ary);
return obj.toString();
obj.put("tatalProperty",ary.size());
obj.put("root",ary);
{
xtype : 'combo',
anchor : "90%",
store : new Ext.data.Store({
proxy : new Ext.data.HttpProxy({
url : '../JSON/maintenance_deptype_deptypeService.getDeptypeName'
}),
reader : new Ext.data.JsonReader({
totalProperty : 'totalProperty',
root : 'results'
}, [{
name : 'typename'
}, {
name : 'deptypeid'
}]),
baseParams : {
deptypeid : kind
}
}),
valueField : "deptypeid",
displayField : "typename",
mode : 'remote',
forceSelection : true,
hiddenName : 'kind',
editable : false,
triggerAction : 'all',
fieldLabel : '' + getResource('resourceParam686') + '',
blankText : '' + getResource('resourceParam683') + '',
name : 'kind',
emptyText : '' + getResource('resourceParam684') + '',
allowBlank : false
}
分享到:
相关推荐
成果库修改: 要求主题列表随成果类型改变而改变 网上查询资料后开工,在成果类型下拉框添加change()事件触发Dwr,查询主题集合——动态创建/编辑Table 概要代码如下:JS 代码如下://动态获取主题数据 function ...
Extjs4.0动态填充combobox数据 Extjs4中up()和down()的用法 ExtJS4学习笔记(一)---window的创建 ExtJS4学习笔记(七)---带搜索的Grid(SearchGrid) ExtJS4学习笔记(三)---VBox的使用 ExtJS4学习笔记(九)---ExtJS4 ...
4. 按钮式录入:录入式录入式即下拉框样式,比起平铺式和收折式,录入式能够在空间利用率和信息获取效率上取得较好的平衡。 四、设计思考维度 在设计数据检索功能时,需要从以下几个维度思考: 1. 用户认知:体验...
动态调用对象的属性和方法——性能和灵活性兼备的方法 消除由try/catch语句带来的warning 微软的应试题完整版(附答案) 一个时间转换的问题,顺便谈谈搜索技巧 .net中的正则表达式使用高级技巧 (一) C#静态成员和...
15.4.5 获取列的数据类型 257 15.4.6 获取列的长度 257 15.4.7 获取列的标志 257 15.4.8 一个完整的查看表中各列属性 15.4.8 的实例 258 15.5 常见问题与解决方案 259 15.6 小结 261 第16章 数据库中的程序逻辑 262 ...
实例64 获取磁盘空间数据 实例65 判别并定位到光驱(软驱) 实例66 递归法遍历磁盘目录 实例67 获得文件属性 实例68 删除不为空的目录 实例69 快速检索指定文件 实例70 拷贝、删除和...
// 获取子菜单xml数据 var subMenuData = obj.all.tags("xml")(0).XMLDocument; // 根据子菜单xml数据和当前xsl文档生成HTML var sHtml = subMenuData.transformNode(stylesheet); // 将解析...
6.下拉框:10、20、50、100表示查询前多少位中的数据,10即前10以内;100即前100以内; ==================================== 软件操作说明 ======================================== ==========================...
你的不满这时候产生了:你既想使用Windows的True Button,可也嫌它的界面不够好看,譬如,你喜欢用蓝色的粗体表达你对CFan的无限情怀(正如图2那样)——人心不足,有办法吗?有的。 3 美化界面之实现篇 Windows还是...