8wDlpd.png
8wDFp9.png
8wDEOx.png
8wDMfH.png
8wDKte.png
前台设置可读或者赋值 V8
admin 2023-1-10

var date_type = app.I_DATE_TYPE.getValue();
Cs.info(date_type);
if (date_type == '2') {
  app.panel1.queryById('I_END_DATE').setDisabled(true);
}else if(date_type == '3') {
  app.panel1.queryById('I_END_DATE').setDisabled(true);
}else{
  app.panel1.queryById('I_END_DATE').setDisabled(false);
}

var begin_date = newValue;
var date_type = app.I_DATE_TYPE.getValue();
Cs.info(begin_date);
Cs.info(date_type);
if (date_type == '2') {
  app.panel1.queryById('I_END_DATE').setValue(begin_date);
}
else if(date_type == '3'){
  app.panel1.queryById('I_END_DATE').setValue(begin_date);
}

打开新的页面作为新的窗口

var win = new Ext.window.Window({
  modal: true,
  width: 500,
  height: 500,
  layout: 'fit',
  title: '金融资产表'
});
Wb.run({
  url: 'm?xwl=test/test',
  params: {
    user_name: 'aaa',
    url: 'bbb'
  },
  success: function(scope) {
    scope.panel.queryById('user_name').setValue('aaaaa');
    Cs.info(scope.panel);
    
    win.show();
    win.add(scope.panel);
 }
});

 

设置可读

Wb.setReadOnly(app.addwin,['',''],true);

设置自动换行

autoWrap:Boolean
最后于 10月前 被admin编辑 ,原因: 添加标签
最新回复 (1)
    • 朕弟分享 | 专注小众,乐于分享!
      3
          
返回
发新帖 搜索 反馈 回顶部