123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- var fd_id = (window.location.href).split('?')[1];
- var fd_id1 = (window.location.href).split('?')[2];
- var g;
- /**定义变量**/
- var condition="";
- if(fd_id=="0"){
- condition = "FD_OBJECTID = '"+fd_id1+"' ";
- }else{
- condition = "(COLUMN_1='0' AND FD_OBJECTID='"+ fd_id+"') OR (COLUMN_1='"+ fd_id+"') ";
- }
- var loadParams = {
- "listId" : '266',
- "condition" : condition
- };
- function initComplete(){
- g = $("#maingrid").quiGrid({
- columns: [
- //为了解决自定义表格,头上显示的主键ID,先暂时注掉2015-10-10
- {display: '所属单位名称', name: 'COMP_ID_266_SHOW', width: "6%", align: 'center' },
- {display: '装备名称', name: 'NAME_266', width: "6%", align: 'center' },
- {display: '规格型号', name: 'MODEL_TYPE_266', width: "6%", align: 'center' },
- {display: '电压等级 (V)', name: 'VOLTAGE_LEVEL_266_SHOW', width: "6%", align: 'center'},
- {display: '容量(kW)', name: 'CONTENT_266', width: "6%", align: 'center'},
- {display: '数量(台)', name: 'NUM_266', width: "6%", align: 'center'},
- {display: '单价(万元)', name: 'PRICE_266', width: "6%", align: 'center' },
- {display: '燃料', name: 'GAS_266', width: "5%", align: 'center' },
- {display: '供应商', name: 'PROVIDER_266', width: "6%", align: 'center'},
- {display: '购买日期(年月)', name: 'BUY_DATE_266', width: "7%", align: 'center' },
- {display: '装备存放场所', name: 'STORE_PLACE_266', width: "6%", align: 'center' },
- {display: '负责人', name: 'INPIRE_266', width: "6%", align: 'center' },
- {display: '办公电话', name: 'OFFICE_TEL_266', width: "6%", align: 'center'},
- {display: '手机', name: 'MOBILE_PHONE_266', width: "6%", align: 'center' },
- {display: '装备描述', name: 'IS_USED_266_SHOW', width: "6%", align: 'center' },
- {display: '调用状态', name: 'USED_STAT_266_SHOW', width: "6%", align: 'center' },
- { display: '维护时间', name: 'UPDATEDATE_266', align: 'center', width: "5%"}
- ],
- url :$.pathname() + '/ws/crud/CRUDService/queryQui',
- params : loadParams,
- sortName : 'UPDATEDATE_266',
- sortOrder : 'desc nulls last',
- rownumbers:true,
- // checkbox:true,
- height: '100%',
- width:"100%",
- pageSize: 10,
- percentWidthMode:true,
- });
- }
-
-
|