123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- var g;
-
- var loadParams = {
- "listId" : '260',
- "condition" : 'IS_DEL=0'
- };
-
-
- function initComplete(){
-
- /**
- * 工具条
- */
- var roleCons = roleButtonArr();
- var toolBarOpt1 = {
- items : [ { text: '新增' ,click:"onAdd",iconClass: 'add1_tem' },//OK
- { text: '删除' ,click:"onDelete",iconClass: 'delete_tem'},
- { text: '修改' ,click:"onEdit",iconClass: 'update_tem'},
- { text: '查看详情',click:"onView",iconClass: 'view_tem' },
- { text: '查看历史版本' ,click:"onViewHistory",iconClass: 'icon_history' },
- { text: '导入' , click:"onImport",iconClass: 'import_tem'},
- { text: '导出' , click:"exportTotalData",iconClass: 'icon_export'},
- { text: '下载' ,click:"onDownLoad",iconClass: 'download_tem' }
- ],
-
- roleCons:""
- };
- /**
- * 树形列
- */
- var grid_option1 = {
- columns:[
- { name: 'FD_OBJECTID260', hide : true},
- { display: '姓名', name: 'EXPERT_NAME_260', align: 'center', width: "10%"},
- { display: '所属区域', name: 'EXPERT_AREA_260', align: 'center' , width: "20%"},
- { display: '所属单位', name: 'EXPERT_UNIT_260', align: 'center', width: "15%" },
- { display: '是否南网员工', name: 'IS_SNSTAFF_260', align: 'center', width: "10%" },
- { display: '专业特长', name: 'EXPERT_SPECIALTY_260', align: 'center', width: "10%" },
- { display: '手机', name: 'EXPERT_CAL_260', align: 'center' , width: "15%"},
- { display: '住址', name: 'EXPERT_ADDRESS_260', align: 'center', width: "20%" }
- ],
- rownumbers : true,
- checkbox : true,
- pageSize : 10,
- percentWidthMode : true
- };
-
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- width:960,
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"},
- toolBarOptions:toolBarOpt1
- };
-
- //
- g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
-
-
- /* g = $("#maingrid").quiGrid({
- columns:[
- { name: 'FD_OBJECTID260', hide : true},
- { display: '姓名', name: 'EXPERT_NAME_260', align: 'center', width: "10%"},
- { display: '所属区域', name: 'EXPERT_AREA_260', align: 'center' , width: "20%"},
- { display: '所属单位', name: 'EXPERT_UNIT_260', align: 'center', width: "15%" },
- { display: '是否南网员工', name: 'IS_SNSTAFF_260', align: 'center', width: "10%" },
- { display: '专业特长', name: 'EXPERT_SPECIALTY_260', align: 'center', width: "10%" },
- { display: '手机', name: 'EXPERT_CAL_260', align: 'center' , width: "15%"},
- { display: '住址', name: 'EXPERT_ADDRESS_260', align: 'center', width: "20%" }
- ],
- url :$.pathname() + '/ws/crud/CRUDService/queryQui',
- params : loadParams,
- sortName : 'UPDATEDATE_260 ',
- sortOrder : 'desc nulls last',
- rownumbers:true,
- checkbox:true,
- height: '100%',
- width:"100%",
- pageSize: 10,
- percentWidthMode:true,
- //顶部图标按钮栏
- toolbar:{
- items:[
- {text: '查看详情', click: onView, iconClass: 'icon_view'},
- { line : true },
- {text: '历史维护记录', click: historyUnit, iconClass: 'icon_history'},
- { line : true },
- {text: '专家统计信息', click: sumUnit, iconClass: 'icon_poll'},
- { line : true }
- ]
- }
- });*/
- }
-
- //查询
- function searchHandler(){
-
- var name = $('#EXPERT_NAME_260').val();//专家姓名
- var condition = " IS_DEL='0' ";
-
- if(name!=""){
- condition += " AND EXPERT_NAME LIKE '%" +name+"%'";
- }
-
- g.setOptions({//重置加载列表的参数
- params : {
- "listId" :'260' ,
- "condition" : condition
- }
- });
-
- g.setNewPage(1);
- g.loadData();//刷新列表
- }
- //详情
- function onView(){
- var rows = g.getSelectedRows();
- if(rows.length==0){
- top.Dialog.alert("请选择一条记录");
- return;
- }
- if(rows.length>1){
- top.Dialog.alert("只能选择一条记录");
- return;
- }
- var fd_id = rows[0].FD_OBJECTID260;
- window.location.href="expertinfo.jsp?"+fd_id;
- }
-
-
-
-
-
- function historyUnit(){
- top.Dialog.alert("历史维护记录");
- }
- function sumUnit(){
- top.Dialog.alert("专家统计信息");
- }
-
-
|