fieldset 的collapsible属性改为ture可以折叠
{#sys.orgNum#} 部门
var sql = "select * from (select BUSI_DATE,ENTITY_ID,DATA_C, nvl(INDEX_VALUE,'') as INDEX_VALUE, COMMENT_TEXT,CREATE_TIME,CREATE_USER,UPDATE_USER,UPDATE_TIME,PK_ID ,row_number() over(partition by entity_id,data_code,group_id,busi_date,index_id order by create_time desc) as rn from S_IND where ({?INDEX_ID?} is null or INDEX_IDE?} >= busi_date) and is_delete = '0') where rn = 1";
app.output(sql, {
dictTableNames: 'T_SR,WB_ALL_FIELD',
jndi: ''
});
selType 改为checkboxmodel 是多选
修改页面内容
var id = app.finEditWin.queryById('label2').id; //获取当前点击的label
var html ="<span style='margin-left:20px'>利率信息:</span> <span id=> "+
"<a onclick=\"app.detailContInfo('" + id + "','" + app.readOnlyFlag + "');\" href=\"javascript:void(0);\">【无】</a>"+
"</span> ";
app.finEditWin.queryById('label2').update(html);
Wb.decode(resp.responseText).rows[0].BATCH_ID
根据选择的数据控制字段显隐以及datagrid字段的隐藏
var deptid = app.mainPanel.queryById('I_DEPT_ID').getValue();
var instrument = app.mainPanel.queryById('I_INSTRUMENT_CODE').getValue();
if(deptid == '1006' && (instrument == 'D0001' || instrument == 'D0002' || instrument == 'D0003')){
app.finPanel.queryById('I_IS_ENTRUST').hide();
app.finPanel.queryById('label2').colspan = '2';
app.finDataGrid.queryById('IS_ENTRUST_Col').hide();
} else
{
app.finPanel.queryById('I_IS_ENTRUST').show();
app.finPanel.queryById('label2').colspan = '1';
app.finDataGrid.queryById('IS_ENTRUST_Col').show();
}
下拉框可以用combo获取
Wb.setValue(app.addWin,{I_INSTRUMENT_NAME:combo.valueModels[0].raw.INSTRUMENT_NAME});
var rec, recs = app.xwl1.dataGrid.getSelection();
延迟触发
Ext.defer(function(){
app.xwl3.seekBtn.fireEvent('click');
},300);
使用{?query?}替代{#query#}可以使用变量。
select t.DEPT_ID,T.DISPLAY_NAME,T.USER_NAME,T.DEPT_ID,T.USER_NAME||'-'||T.DISPLAY_NAME AS NAME from wolf.wb_user t where instr(t.user_name,{?querya?}) >0 or instr(t.display_name,{?querya?}) >0
store组件的beforeload变量可以设置,以下是替换replace函数。
operation.params.querya=Wb.getVal(app.panel_seek,'I_CREATE_USER').replace(/'/g, '');
最后于 2023-10-26
被admin编辑
,原因: 添加