123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- var corp_ids = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();//登陆单位ID
- var getUser_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id()+""; //登录人ID
- $(function(){
- $(parent.document.body).find("iframe").height($(window.document.body).height()+60);
- $(top.document.body).find("iframe").height($(window.document.body).height()+60);
- //加载时添加
- // $("#PROFESSIONAL_262").initCanstSelect('BM_TEAMERTYPE');
- // $("#PROFESSIONAL_262").render();
- //
- // $("#VOLTAGE_LEVEL_262").initCanstSelect('BM_DYDJ');
- // $("#VOLTAGE_LEVEL_262").render();
- //
- // $("#TEAM_QUARTERS_262").initCanstSelect('BM_TEAMER_QUARTERS');
- // $("#TEAM_QUARTERS_262").render();
- //
- // $('#SEX_262').initCanstSelect('BM_Gender');
-
-
- if((window.location.href).indexOf('?')>-1){
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '261',
- objectID : teamid3
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- $("#titlename").html(data.TEAM_NAME_261+"人员信息");
- },
- error : function(e){
- top.Dialog.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- /** 绑定更多的按钮点击事件 */
- // $more = $("#more"); // 更多按钮
- // $more.bind('click', function() {
- // more();
- // });
- $searchOne = $("#searchOne");//查询图标绑定查询事件
- $searchOne.bind('click', function() {
- searchHandler();
- });
- $("#back").hover(function(){
- $(this).attr("src","/nwyj/images/temp/back_hover.png");
- },function(){
- $(this).attr("src","/nwyj/images/temp/back.png");
- });
- });
- var SD_XIANLU="";
- var SD_XIANLANG="";
- var BD_YICI="";
- var BD_ERCI="";
- var PD_XIANLU="";
- var PD_XIANLANG="";
- var PD_DIANFANG="";
- var PD_BAODIAN="";
- var TONGXING="";
- var WANGLUO="";
- var SHIYAN="";
- var g;
- //列表加载参数
- var teamid;//队伍id
- var TEAM_MEMBER_NUMBER = "";//队伍人数
-
- var condition;
- var loadParams;
- var teamid2;
- var teamid3 = "";
- var corpId;
- function initComplete(){
- teamid = (window.location.href).split('?')[1];//固定的队伍第一个id
- teamid2 = (window.location.href).split('?')[2];//0和新id
-
- if(teamid==""||teamid.length==0){
- top.Dialog.alert("请从队伍查看页面进入!");
- window.location.href="/nwyj/page/business/am/resource/team/team.jsp";
- }
-
- if(teamid2=="0"){
- teamid3 = teamid;
- }else{
- teamid3 = teamid2;
- }
-
- condition = " TEAM_ID='"+ teamid + "' AND IS_DEL='0' ";
-
- loadParams = {
- "listId" : '262',
- "condition" : condition,
- direction:'ASC',
- sort: 'SORT_NO'
- };
-
- //顶部图标按钮栏
- var roleCons = roleButtonArr();
- var toolBarOpt1 = {
- items:[
- {text: '新增', click: "addUnit", iconClass: 'add1_tem',id:"10000"},
- {text: '删除', click: "deleteUnit", iconClass: 'delete_tem',id:"10002"},
- {text: '修改', click: "updateUnit", iconClass: 'update_tem',id:"10001"},
- // {text: '详情', click: "onView", iconClass: 'view_tem',id:"10003"},
- {text: '导入', click: "showImportDialog", iconClass: 'import_tem',id:"10004"},
- {text: '导出', click: "exportTotalData", iconClass: 'export_tem',id:"10006"},
- {text: '发送短信', click:"sendMsg" , iconClass: 'sendmsg_tem',id:"10204"},
- {text: '发送邮件', click:"sendEmail" , iconClass: 'sendemail_tem',id:"10205"},
- {text: '上移', click:"moveUp" , iconClass: 'shangyi_tem',id:"10209"},
- {text: '下移', click:"moveDown" , iconClass: 'xiayi_tem',id:"10209"},
- {text: '置顶', click:'moveDownMax1(1)', iconClass : 'zhiding_tem', id:"10209", disabled : false}
- // {text: '历史维护', click:"historyUnit", iconClass: 'history_tem',id:"10201"},
- // {text: '汇总', click:"sumUnit" , iconClass: 'poll_tem',id:"10200"},
- ],
- roleCons:roleCons
- };
- /**
- * 树形列
- */
- var grid_option1 ={
- columns: [
- // { display: '单位名称', name: 'TEAM_UNIT_262_SHOW', align: 'center', width: "10%"},
- // { display: '队伍名称及编号', name: 'TEAM_NAME_262', align: 'center', width: "10%"},
- { display: '姓名', name: 'NAME_262', align: 'center', width: "10%",isPrimaryKey:true,
- // render : function(rowdata, value) {
- // return '<a href="javascript:void(0)" '
- // + 'onclick=jumpPage("'
- // + rowdata.FD_OBJECTID262
- // +'")>'+ rowdata.NAME_262 +'</a>';
- // }
- render : function(rowdata, rowindex, value, column) {
- return "<a href='javascript:;' style='width:100%;height:100%;display:block' title='" + value + "' onclick='openDetail(" + rowindex + ")'>" + value + "</a>";
- }
- },
- { display: '人员编号', name: 'CODE_262', align: 'center', width: "10%"},
- { display: '身份证号码', name: 'ID_NUMBER_262', align: 'center', width: "10%"},
- // { display: '出生年月', name: 'BIRTH_DATE_262', align: 'center', width: "150px"},
- { display: '性别', name: 'SEX_262_SHOW', align: 'center', width: "10%"},
- // { display: '本工种工龄', name: 'WORK_TYPE_AGE_262', align: 'center', width: "150px"},
- { display: '所在部门', name: 'DEPT_ID_262', align: 'center', width: "10%"},
- { display: '职务岗位', name: 'DEPT_QUARTERS_262', align: 'center', width: "10%"},
- // { display: '技术职称', name: 'TECHNICAL_TITLE_262', align: 'center', width: "150px"},
- // { display: '技能等级', name: 'SKILL_LEVEL_262', align: 'center', width: "150px"},
- { display: '专业', name: 'PROFESSIONAL_262_SHOW', align: 'center', width: "10%"},
- { display: '电压等级', name: 'VOLTAGE_LEVEL_262_SHOW', align: 'center', width: "10%"},
- { display: '联系手机', name: 'TELEPHONE_262', align: 'center', width: "10%"},
- // { display: '抢险经历', name: 'RESCUE_EXP_262', align: 'center', width: "150px"},
- { display: '队伍岗位', name: 'TEAM_QUARTERS_262_SHOW', align: 'center', width: "10%"}
- ],
- rownumbers:true,
- checkbox:true,
- pageSize: 10,
- percentWidthMode:true
- };
-
- var options1={
- url :'/nwyj/ws/crud/CRUDService/queryQui',
- params:loadParams,
- height: '100%',
- width:"100%",
- gridOptions:grid_option1,
- singleRecodeOptions:{a:"aa"},
- paperOpration:{showInput:"true"},
- toolBarOptions:toolBarOpt1
- };
- g=gridAndSingleRecode=$("#maingrid").quickgridAndSingleRecode(options1);
-
-
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '261',
- objectID : teamid
- };
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- async:false, //异步
- dataType : 'json',
- success : function(data){
- corpId=data.TEAM_COMP_ID_261;
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
-
-
- }
-
- //查询
- function searchHandler(){
- var name = $('#NAME_262').val();//名字
- // var sex = $('#SEX_262').val();//性别
- // var dept = $('#DEPT_QUARTERS_262').val();//职务岗位
- // var title = $('#TECHNICAL_TITLE_262').val();//技术职称
- // var skill = $('#SKILL_LEVEL_262').val();//技能等级
- // var pro = $('#PROFESSIONAL_262').val();//专业
- // var vol = $('#VOLTAGE_LEVEL_262').val();//电压等级
- // var quarters = $('#TEAM_QUARTERS_262').val();//队伍岗位
-
- var condition = " TEAM_ID='"+ teamid +"' AND IS_DEL='0' ";
-
-
- if(name!=""&&name!="请输入应急队伍人员的姓名"){
- condition += " AND NAME LIKE '%" +name+"%'";
- }
- // if(sex!=""){
- // condition += " AND SEX='"+sex+"'";
- // }
- // if(dept!=""){
- // condition += " AND DEPT_QUARTERS = '" +dept+"'";
- // }
- // if(title!=""){
- // condition += " AND TECHNICAL_TITLE = '" +title+"'";
- // }
- // if(skill!=""){
- // condition += " AND SKILL_LEVEL = '" +skill+"'";
- // }
- // if(pro!=""){
- // condition += " AND PROFESSIONAL = '" +pro+"'";
- // }
- // if(vol!=""){
- // condition += " AND VOLTAGE_LEVEL = '" +vol+"'";
- // }
- // if(quarters!=""){
- // condition += " AND TEAM_QUARTERS = '" +quarters+"'";
- // }
-
- g.setOptions({//重置加载列表的参数
- params : {
- "listId" :'262' ,
- "condition" : condition,
- direction:'ASC',
- sort: 'SORT_NO'
- }
- });
-
- // g.setNewPage(1);
- g.rend();//刷新列表
- }
-
-
- //新增队伍人员
- function addUnit(){
-
- /*if(corp_ids != corpId){
- top.Dialog.alert("只有本单位人员才能录入数据!");
- return;
- }*/
- //获取队伍id
- // if(teamid2=="0"){
- // var teamid = (window.location.href).split('?')[1];
- // window.location.href="teamerupdate-in.jsp?xz?"+teamid;
- // }else{
- // var teamid = (window.location.href).split('?')[2];
- // window.location.href="teamerupdate-in.jsp?xz?"+teamid;
- // }
- window.location.href="teamerupdate-in.jsp?xz?"+teamid+"?"+teamid2;
- }
-
- //修改队伍人员信息
- function updateUnit(){
- //选中人员信息
- 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_OBJECTID262;
-
- var TYPEIN_PEOPLE = rows[0].TYPEIN_PEOPLE_262;
-
- if(getUser_id!=TYPEIN_PEOPLE){
- top.Dialog.alert("只能维护本人录入的数据!");
- return;
- }
-
- if(teamid2=="0"){
- var teamid = (window.location.href).split('?')[1];
- window.location.href="teamerupdate-in.jsp?xg?"+fd_id+"?"+teamid+"?"+teamid;
- }else{
- var teamid1 = (window.location.href).split('?')[1];
- var teamid = (window.location.href).split('?')[2];
- window.location.href="teamerupdate-in.jsp?xg?"+fd_id+"?"+teamid+"?"+teamid1;
- }
- }
-
-
- function initValue(){
- var fd_teamid;
- if(teamid2=="0"){
- fd_teamid = teamid;
- }else{
- fd_teamid = teamid2;
- }
- var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
- var params = {
- classid : '261',
- objectID : fd_teamid
- };
-
- $.ajax({
- url : url,
- type : 'post',
- timeout : 60000,
- data : params,
- dataType : 'json',
- success : function(data){
- TEAM_MEMBER_NUMBER = data.TEAM_MEMBER_NUMBER_261;//队伍人数
- SD_XIANLU = data.SD_XIANLU_261;//输电线路
- SD_XIANLANG = data.SD_XIANLANG_261;//输电线缆
- BD_YICI = data.BD_YICI_261;//变电一次
- BD_ERCI = data.BD_ERCI_261;//变电二次
- PD_XIANLU = data.PD_XIANLU_261;//信息通信
- PD_XIANLANG = data.PD_XIANLANG_261;//海缆
- PD_DIANFANG = data.PD_DIANFANG_261;//物资
- PD_BAODIAN = data.PD_BAODIAN_261;//消防
- TONGXING = data.TONGXING_261;//后勤保障
- /*WANGLUO = data.WANGLUO_261;//网络
- SHIYAN = data.SHIYAN_261;//试验
- */// alert(TEAM_MEMBER_NUMBER + "***" + SD_XIANLU + "***" + SD_XIANLANG + "***");
-
- },
- error : function(e){
- $.messager.alert('系统提示信息', '访问服务失败!', 'error');
- }
- });
- }
-
- var Zhuanye;
- //删除用队伍总人数
- function deleteall(a,b,c,d,e,f,m,h,n,j,k){
- Zhuanye = "TEAM_MEMBER_NUMBER='"+(Number(TEAM_MEMBER_NUMBER )-rowsLength)+"',SD_XIANLU='"+(Number(SD_XIANLU )-a)+"'," +
- "SD_XIANLANG='"+(Number(SD_XIANLANG )-b)+"',BD_YICI='"+(Number(BD_YICI )-c)+"',BD_ERCI='"+(Number(BD_ERCI )-d)+"'," +
- "PD_XIANLU='"+(Number(PD_XIANLU )-e)+"',PD_XIANLANG='"+(Number(PD_XIANLANG )-f)+"',PD_DIANFANG='"+(Number(PD_DIANFANG )-m)+"'," +
- "PD_BAODIAN='"+(Number(PD_BAODIAN )-h)+"',TONGXING='"+(Number(TONGXING )-n)+"',WANGLUO='"+(Number(WANGLUO )-j)+"',SHIYAN='"+(Number(SHIYAN )-k)+"'";
- $.post($.pathname() +"/ws/EmcPlan/EmgencyPlanService/tremUpdate/", {
- //应急队伍各个类型人数:字段名 + 人数 例如:应急保电人数:PD_BAODIAN:1
- comp_id : Zhuanye,
- //将应急队伍ID作为公共变量在这里取就行。
- fd_id : teamid,//应急队伍ID
- }, function(result) {
- if (result.Msg.sucsess == true) {
- $.messager.alert("删除成功",null,null,null,-1);
- } else {
- top.Dialog.alert("删除失败");
- return;
- }
- }, "json");
- }
- var rowsLength;
- //删除
- function deleteUnit(){
- initValue();//点击删除之前取系统里队伍人员的歌类型的值
- var rows = g.getSelectedRows();
- rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要删除的记录!");
- return;
- }
- var a="0";var b="0";var c="0";var d="0";var e="0";var f="0";var m="0";var h="0";var n="0";var j="0";var k="0";
- var ids = "";
- for ( var i = 0; i < rowsLength; i++) {
- ids += rows[i].FD_OBJECTID262 + ",";
-
- var TYPEIN_PEOPLE = rows[0].TYPEIN_PEOPLE_262;
-
- if(getUser_id!=TYPEIN_PEOPLE){
- top.Dialog.alert("只能删除本人录入的数据!");
- return;
- }
-
- if(rows[i].PROFESSIONAL_262=="1"){
- a++;
- }else if(rows[i].PROFESSIONAL_262=="2"){
- b++;
- }else if(rows[i].PROFESSIONAL_262=="3"){
- c++;
- }else if(rows[i].PROFESSIONAL_262=="4"){
- d++;
- }else if(rows[i].PROFESSIONAL_262=="5"){
- e++;
- }else if(rows[i].PROFESSIONAL_262=="6"){
- f++;
- }else if(rows[i].PROFESSIONAL_262=="7"){
- m++;
- }else if(rows[i].PROFESSIONAL_262=="8"){
- h++;
- }else if(rows[i].PROFESSIONAL_262=="9"){
- n++;
- }else if(rows[i].PROFESSIONAL_262=="10"){
- j++;
- }else if(rows[i].PROFESSIONAL_262=="11"){
- k++;
- }
-
- }
- // alert("a+b+c+d+e+f+m+h+n+j+k:****"+a+b+c+d+e+f+m+h+n+j+k);
- top.Dialog.confirm("确定要删除吗?|删除", function() {
- // 删除记录
-
- $.post($.pathname() +"/ws/crud/CRUDService/delete/", {
- "objectIDs" : ids,
- classid : 262
- }, function(result) {
- if (result.Msg.sucsess == true) {
- deleteall(a,b,c,d,e,f,m,h,n,j,k);//修改应急队伍总人数
- // $.messager.alert("删除成功",null,null,null,-1);
- initValue();//删除成功后再取一下队伍各类型人数
- // 刷新表格数据
- g.rend();
- } else {
- top.Dialog.alert("删除失败!");
- }
- }, "json");
-
- });
- }
-
- //点击查看
- function jumpPage(id){
- if(teamid2!="0"){
- window.location.href="teamerinfo-in.jsp?"+id+"?"+teamid2;
- }else{
- window.location.href="teamerinfo-in.jsp?"+id+"?0";
-
- }
- }
- //点击主键跳转详细信息页面
- this.openDetail = function(rowindex) {
- var row = g.getRow(rowindex);
- var fd_id = row.FD_OBJECTID262;
- if(teamid2!="0"){
- // window.location.href="teamerinfo-in.jsp?"+fd_id+"?"+teamid2;
- $.indexOpenNextWindow("/nwyj/page/business/am/resource/team/teamerinfo-in.jsp?"+fd_id+"?"+teamid2);
- }else{
- // window.location.href="teamerinfo-in.jsp?"+fd_id+"?0";
- $.indexOpenNextWindow("/nwyj/page/business/am/resource/team/teamerinfo-in.jsp?"+fd_id+"?0");
- }
- };
- function showPrimaryKey(obj,index){
- var fd_id = obj.FD_OBJECTID262;
- if(teamid2!="0"){
- // window.location.href="teamerinfo-in.jsp?"+fd_id+"?"+teamid2;
- $.indexOpenNextWindow("/nwyj/page/business/am/resource/team/teamerinfo-in.jsp?"+fd_id+"?"+teamid2);
- }else{
- // window.location.href="teamerinfo-in.jsp?"+fd_id+"?0";
- $.indexOpenNextWindow("/nwyj/page/business/am/resource/team/teamerinfo-in.jsp?"+fd_id+"?0");
- }
- }
-
- //详情
- 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_OBJECTID262;
- if(teamid2=="0"){
- window.location.href="teamerinfo-in.jsp?"+fd_id+"?0";
- }else{
- window.location.href="teamerinfo-in.jsp?"+fd_id+"?"+teamid2;
- }
- }
-
- //导入
- function showImportDialog(){
- /*if(corp_ids != corpId){
- top.Dialog.alert("只有本单位人员才能录入数据!");
- return;
- }
- */
- window.location.href="teamer-import-inside.jsp?"+teamid;
- }
-
- //导出
- function exportTotalData(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.confirm("是否导出所有的应急队伍信息?|确定", function() {
- excelExport(262,loadParams,"应急队伍人员信息","IS_DEL,UPDATEDATE,FD_OBJECTID,CERTIFICATE,TEAM_SYSTEM,TEAM_ID,SORT_NO");});
- return;
- }
- var ids = "";
- for ( var i = 0; i < rowsLength; i++) {
- ids += "'"+rows[i].FD_OBJECTID262+"'" + ",";
- }
- var temp = ids.substring(0,ids.length-1);
-
- var condition = " IS_DEL='0' ";
- condition += " AND FD_OBJECTID IN (" + temp + ") " ;
- var sql = {
- "listId" :'262' ,
- "condition" : condition,
- direction:'ASC',
- sort: 'SORT_NO'
- };
- excelExport(262,sql,"应急队伍人员信息","IS_DEL,UPDATEDATE,FD_OBJECTID,CERTIFICATE,TEAM_SYSTEM,TEAM_ID,SORT_NO");
-
- }
-
- //发送短信
- function sendMsg(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要发送的人员信息!");
- return;
- }
-
- var name = "";
- var iphone = "";
- for ( var i = 0; i < rowsLength; i++) {
- name += rows[i].NAME_262 + ";";
- iphone += rows[i].TELEPHONE_262 + ";";
- }
-
- addMsg(name,iphone);
- }
- //发送邮件
- function sendEmail(){
- window.location.href = "mailto:example@example.com";
- }
-
- //历史记录
- function historyUnit(){
-
- }
- //汇总
- function sumUnit(){
-
- }
-
- /***********************************移动*************************************/
- //上移
- function moveUp(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要移动的记录!");
- return;
- }
-
- if (rows.length > 1) {
- top.Dialog.alert("只能选择一条记录");
- return;
- }
- if (rows[0].__index == 0) {
- top.Dialog.alert("已经移动到顶端!");
- return;
- }
-
- var up_id = g.getRow(rows[0].__index-1).FD_OBJECTID262;
- var fd_id = rows[0].FD_OBJECTID262;
- var up_sort = g.getRow(rows[0].__index-1).SORT_NO_262;
- var fd_sort = rows[0].SORT_NO_262;
- getMoveSort("EMC_AM_TEAM_PERSONNEL",up_id,fd_id,up_sort,fd_sort,g,rows[0].__index-1);
-
- }
- //下移
- function moveDown(){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要移动的记录!");
- return;
- }
-
- if (rows.length > 1) {
- top.Dialog.alert("只能选择一条记录");
- return;
- }
-
- if(rows[0].__index+1==g.getData().length){
- top.Dialog.alert("已经移动到底端!");
- return;
- }
-
- var up_id = g.getRow(rows[0].__index+1).FD_OBJECTID262;
- var fd_id = rows[0].FD_OBJECTID262;
- var up_sort = g.getRow(rows[0].__index+1).SORT_NO_262;
- var fd_sort = rows[0].SORT_NO_262;
- getMoveSort("EMC_AM_TEAM_PERSONNEL",up_id,fd_id,up_sort,fd_sort,g,rows[0].__index+1);
- }
-
- //置顶方法
- function moveDownMax1(max){
- var rows = g.getSelectedRows();
- var rowsLength = rows.length;
- if (rowsLength == 0) {
- top.Dialog.alert("请选中要移动的记录!");
- return;
- }
-
- if (rows.length > 1) {
- top.Dialog.alert("只能选择一条记录");
- return;
- }
-
- var fd_id = rows[0].FD_OBJECTID262;
- //选中人的虚拟机构ID需要根据改ID去查询当前ID下挂着的人最小的序号
- var xuniId = rows[0].TEAM_ID_262;
- moveDownMax("EMC_AM_TEAM_PERSONNEL","SORT_NO",max,xuniId,"TEAM_ID",fd_id,g);
- }
-
-
- function goBack(){
- window.location.href="team.jsp";
- // window.location.href="teaminfo.jsp?"+teamid+"?"+teamid2;
- }
-
- $.messager=top.Dialog;
|