extjs数据显示

lixionggangpo lixionggangpo 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

else if(helper_request.htlx=="分包合同")
{
var gysds = new Ext.data.Store({
// load using HTTP
proxy: new Ext.data.HttpProxy({url: '../../ExtUtil/getxmldata_xml.aspx'}),
baseParams: {cfgpath:'../ext1.1/budget/finishbalance_def.xml',sqlid: jssqlid,condition:"1=1" },
// the return will be XML, so lets set up a reader
reader: new Ext.data.XmlReader({
// records will have an "Item" tag
record: 'Table',
id: 'autoid',totalRecords: 'total'
}, ['autoid','ht_gid','ht_code','ht_name','ht_statid','ht_statstyle','ht_statdate','ht_statman','ht_statprice','ht_unit1','ht_statamount','ht_unit2',
'ht_statmoney','ht_isfinally','ht_id','jsdw','cbssbje','sjbl','wfstate','spcz','effectivedirect','rowindex','shzt','yfgck','bqyfgck'
])
});
var gyscm = new Ext.grid.ColumnModel([
{header: '序号',dataIndex: 'rowindex', width: 35,align:'center'},
{header: '合同名称',dataIndex: 'ht_name', width: 80},
{header: '结算单号',dataIndex: 'ht_statid', width: 80},
{header: '填报类型',dataIndex: 'effectivedirect', width: 60,renderer:transferdirect,hidden:true},
{header: '审批状态',dataIndex: 'wfstate', width: 60,renderer:transfershenpi,hidden:true},
{header: '结算时间',dataIndex: 'ht_statdate', width: 80},
// 2011-03-17 edit ------
{header: '本期完成产值',dataIndex: 'spcz', align:'right', width: 90,renderer:renderAmountZJ},
{header: '预付工程款',dataIndex: 'yfgck', align:'right', width: 90,renderer:renderAmountZJ},
{header: '本期应付工程款',dataIndex: 'bqyfgck', align:'right', width: 90,renderer:renderAmountZJ},
{header: '本期实际应付款',dataIndex: 'ht_statmoney', align:'right', width: 90,renderer:renderAmountZJ},
//-------------end---------------
{header: '分包单位',dataIndex: 'jsdw', width: 80},
{header: '提交状态',dataIndex: 'shzt', width: 80}

/*shzt是数据库查询出来的值,我想要当shzt为0时显示已删除,为1时显示已提交,为2时显示未提交*/
]);
}

...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部