12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- var grid = null;
- //var params = { "listId" :'414',"condition" : " IS_DEL=0 AND WAREHOUSESPACE = '3' "} ;
- var params = {} ;
- function initComplete(){
- if((window.location.href).indexOf('?')>-1){
- var str = (window.location.href).split('?')[1];
- var fd_id = str.split("&")[0] ;
- var title = str.split("&")[1] ;
- $("#titleShow").html(title + "库存信息") ;
- params = {
- "listId" : '414',
- "condition" : "IS_DEL=0 AND WAREHOUSESPACE = '" + fd_id + "'"
- };
- }
- grid = $("#stockInfo").quiGrid({
- columns:[
- {name: 'FD_OBJECTID414', hide : true,width:"0%"},
- {display:"名称", name:"NAME_414", align:"center", width:"10%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- {display:"物料用途", name:"MATERIALUSES_414", align:"center", width:"20%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- {display:"规格型号", name:"MODEL_414", align:"center", width:"10%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- {display:"计量单位", name:"MEASUREMENTUNIT_414", align:"center", width:"5%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- {display:"数量", name:"AMOUT_414", align:"center", width:"10%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- {display:"管理单位", name:"ADMINISTRATIVEDEPT_414", align:"center", width:"20%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- {display:"供应商", name:"SUPPLIERS_414", align:"center", width:"15%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }
- },
- /*{display:"仓库仓位信息", name:"WAREHOUSESPACE_414_SHOW", align:"center", width:"10%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + value + "</span>" ;
- }*/
- {display:"仓库仓位信息", name:"WAREHOUSESPACE_414_SHOW", align:"center", width:"10%",
- render : function(rowdata, rowindex, value, column){
- return "<span style='color:#FFFFFF;'>" + "</span>" ;
- }
- }] ,
- url: $.pathname() + '/ws/crud/CRUDService/queryQui',
- "params":params,
- pageSize: 15,
- width:"100%",
- height:"100%",
- showTitle:true,
- showPageInfo:false,
- fixedCellHeight:true,
- alternatingRow: false,
- rowHeight:35,
- pageSizeOptions:[5,10,15,20,25,30,35,40,45,50],
- rowAttrRender: function(rowdata, rowindex, rowid){
- return rowdata["__index"] % 2 == 0 ? "style='background-color:#212749;'" : "style='background-color:#2C3A54;'" ;
- }
- });
- };
|