123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905 |
- var g;
- var mycol;
- var testData;
- var fd_id;
- // 下拉框的值
- var val;
- // var login_name = top.com.sinosoft.lz.system.user.LoginInfo.();
- // 获取用户部门
- var corpId = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_ids();
- // 获取用户Id
- var user_id = top.com.sinosoft.lz.system.user.LoginInfo.getUser_id();
- var corpName = top.com.sinosoft.lz.system.user.LoginInfo.getCorp_names();
- var role_id = top.com.sinosoft.lz.system.user.LoginInfo.getRoleids();
- var currDate = getNowFormatDate();
- var role = "R002105430210";
- var headType = "xq";
- var role1 = '"' + role + '"';
- var headType1 = '"' + headType + '"';
- var Prourl = $.pathname()
- + "/ws/xianlutingyun/XianlutingyunService/getProjectName";
- function initTree1($dom, setting, nodes) {
- $.fn.zTree.init($dom, setting, nodes);
- }
- $(function() {
- // ****布局
- var layout = $("#layout1").layout({
- leftWidth : 250,
- space : 10
- });
-
- function customHeightSet(contentHeight) {
- $(".layout_content").height(contentHeight - 30);
- }
- $("#layout1").layout({
- onEndResize : function() {
- var wi = $(".l-layout-content").width();
- wi = wi * 0.85;
- $(".accordition").css("width", (wi + 45) + "px");
- $(".leftnav").css("width", (wi + 5) + 'px');
- $(".parentNavDiv").css("width", wi + "px");
- }
- });
- $("#layout1").find(".l-layout-header-toggle").on("click",function(){
- $("#layout1").find(".l-layout-collapse-left-toggle").attr("tempW",$("#maingrid").find(".l-grid2").width());
- $("#maingrid").find(".l-grid2").css({width:"100%"});
-
- });
- $("#layout1").find(".l-layout-collapse-left-toggle").on("click",function(){
- $("#maingrid").find(".l-grid2").css({width:$(this).attr("tempW")});
- });
- function customHeightSet(contentHeight) {
- $(".cusBoxContent").height(contentHeight - 20);
- }
- var setting1 = {
- view : {
- selectedMulti : false
- },
- async : {
- dataType : 'JSON',
- contentType : "application/json"
- },
- callback : {
- onClick : nodeNick,
- onExpand: checkExpand
- }
- };
- var url = $.pathname() + "/ws/ReportHuiZong/HuiZongService/getYuAnTree";
- var nodes = getThing(url, {"comp_id":corpId});
- initTree1($("#reportTree"), setting1, nodes);
- $("#warningNumber").on("change",function() {
- var fdVal = $(this).val();
- if (fdVal) {
- var url = $.pathname()
- + "/ws/xianlutingyun/XianlutingyunService/getProjectTime";
- var params = {
- fd_id : fdVal
- };
- getProjectNames(url, params, "时间");
- } else {
- // $("#warningTime1").render();
- // $("#dateSelect").val("");
- $("#show").hide();
- $("#show1").hide();
- /*if ($("#show1").is(":hidden")) {
- $("#show1").show();
- $("#show2").hide();
- $("#show").hide();
- }*/
- }
- });
- var params = getParams(role,"1");
- getProjectNames(Prourl, params, "计划");
- showTitle("线路停运及恢复情况");
- totalShow("1", role, 'xq');
-
-
-
- //数据比对
- $("#compare").on("click",function(){
- var url = "/nwyj/page/business/em/report/DataCompare.html";
- var tp = $("#sel").val();
- url = encodeURI(url+"?corpName="+corpName+"?type="+tp+"?roleId="+role+"?corpId="+corpId);
- window.open(url);
- });
-
-
-
- $("#fullScreen").on("click",function(){
-
-
- });
-
- });
- // 树节点单击方法
- function nodeNick(event, treeId, treeNode) {
- if (!treeNode.isParent) {
- $("#sel").val(treeNode.id);
- role = treeNode.parentId.split("_")[0];
- headType = treeNode.type;
- role1 = '"' + treeNode.parentId.split("_")[0] + '"';
- headType1 = '"' + treeNode.type + '"';
- showTitle(treeNode.name);
- totalShow(treeNode.id, role, treeNode.type);
- clearTime();
-
- }
- }
- // 初始化表格
- function init(cols) {
- g = null;
- g = $("#maingrid")
- .quiGrid(
- {
- columns : eval('(' + cols + ')'),
- data : testData,
- // data:eval('('+testData+')'),
- /*height : '90%',*/
- width : "100%",
- alternatingRow : false,
- rowAttrRender : function(rowdata, rowid) {
- return "总计" == rowdata.COMP_NAME ? "style=\"background-color:#f2f2f2;\""
- : '';
- },
- rownumbers : true,
- usePager : false,
- enabledSort : false,
- onAfterShowData:function(){
- setContentHeight();
- }
- });
-
- }
- function print() {
- var report_types = $("#sel").val();
- var flag = $("#show").is(":hidden");
- var selectDate = "";
- if (flag) {
- selectDate = $("#warningTime1").val();
- } else {
- selectDate = $("#dateSelect").val() + " " + $("#warningTime2").val();
- }
- var condition = "REPORT_ID = '" + fd_id + "'";
- var sql = {
- /*"listId" : findId(report_types),*/
- "condition" : condition,
- "report_type" : report_types,
- "date" : selectDate,
- "id" : corpId,
- "json" : JSON.stringify(g.getData()),
- "flag" : "huizong",
- "warning_number" : $("#warningNumber").attr("relText")
- };
- var Columns = findColumn(report_types);
- var columns_sub = Columns.substring(0, Columns.lastIndexOf(","));
- if ('7' == report_types) {
- printExcelExport("", sql, "导出" + $("#title").text(), [
- 'FD_OBJECTID', 'REPORT_ID', 'TEST', columns_sub ], $("#title")
- .text(), 'yjxy');
- } else {
- printExcelExport("", sql, "导出" + $("#title").text(), [
- 'FD_OBJECTID', 'REPORT_ID', 'TEST', columns_sub ], $("#title")
- .text(), 'report');
- }
- }
- /**
- * 获取报表表头
- * @param val 报表类型
- * @param type 报表分类(统计、明细)
- */
- function getColumns(val, type) {
- //alert(val+":"+type);
- var urls = $.pathname()
- + "/ws/xianlutingyun/XianlutingyunService/getHuizongColumns";
- $.ajax({
- url : urls,
- type : 'post',
- timeout : 15000,
- async : false,
- data : {
- report_type : val,
- type : type
- },
- dataType : 'text',
- success : function(data) {
- mycol = data;
- },
- error : function(e) {
- $.messager.alert('查询失败!', '访问服务失败!', 'error');
- }
- });
- }
- /**
- * 获取行信息
- * @param value 报表类型
- * @param roleId
- */
- function getRows(value, roleId) {
- testData = null;
- var urls = $.pathname() + "/ws/xianlutingyun/XianlutingyunService/huizong";
- $.ajax({
- url : urls,
- type : 'post',
- timeout : 15000,
- async : false,
- data : {
- comp_id : corpId,
- report_type : value,
- roleId : roleId
- },
- dataType : 'json',
- success : function(data) {
- testData = data;
- fd_id = data.rows[0].REPORT_ID;
-
- },
- error : function(e) {
- $.messager.alert('查询失败!', '访问服务失败!', 'error');
- }
- });
- }
- /**
- * 获取响应编号
- * @param url
- * @param params
- * @param type
- */
- function getProjectNames(url, params, type) {
- $.ajax({
- url : url,
- type : 'post',
- timeout : 15000,
- async : false,
- data : params,
- dataType : 'json',
- success : function(data) {
- if (type == "计划") {
- $("#warningNumber").data("data", data);
- $("#warningNumber").render();
- } else if (type == "时间") {
- // $("#dateSelect").val("");
- if (data[0].timeType == "周期性") {
- $("#show").show();
- $("#show1").hide();
- $("#show2").show();
- $("#warningTime2").data("data", data);
- $("#warningTime2").render();
- } else {
- $("#show").hide();
- $("#warningTime1").data("data", data);
- $("#warningTime1").render();
- $("#show1").show();
- $("#show2").hide();
- }
- }
- },
- error : function(e) {
- $.messager.alert('删除失败!', '删除失败!', 'error');
- }
- });
- }
- /**
- * 查询
- */
- function checkMsg() {
- var newDataurl = $.pathname()
- + "/ws/xianlutingyun/XianlutingyunService/huizong";
- var project = $("#warningNumber").val();
- exportId = project;
- var flag = $("#show2").is(":hidden");
- //临时性
- var protime1 = $("#warningTime1").val();
- var protime2 = $("#warningTime2").val();
- var date = $("#dateSelect").val();
- var newDataParams = "";
- var reportType = $("#sel").val();
- var newTjParams = "";
- if (reportType != "7") {
- if (project=="" && date=="") {
- top.Dialog.alert('请选择编号或者填报时间再查询');
- return;
- }
- if(project=="" && date!=""){
- if (headType == "xq") {
- newDataParams = {
- report_type : reportType,
- comp_id : corpId,
- warning_number : "",
- date : date,
- roleId : role
- };
- }else{
- newTjParams = {
- compId : corpId,
- report_type : reportType,
- report_id : "",
- date : date
- };
- }
- }else if (project != "") {
- var reportId = $("#warningNumber").attr("relValue");
- if(flag){
- selectDate = protime1;
- }else if(!flag && date==""){
- selectDate = protime2;
- }else{
- selectDate = $("#dateSelect").val() + " " + $("#warningTime2").val();
- }
- if (headType == "xq") {
- newDataParams = {
- report_type : reportType,
- comp_id : corpId,
- warning_number : reportId,
- date : selectDate,
- roleId : role
- };
- } else {
- newTjParams = {
- compId : corpId,
- report_type : reportType,
- report_id : reportId,
- date : selectDate
- };
- }
- }
- } else {
- var time1 = $("#time1").val();
- var time2 = $("#time2").val();
- var time3 = "";
- var totalTime = "";
- if (time1 == "") {
- top.Dialog.alert("请选择起始时间");
- return;
- } else if (time2 == "") {
- time3 = getNowFormatDate();
- totalTime = time1 + ";" + time3;
- } else if (time1 != "" && time2 != "") {
- totalTime = time1 + ";" + time2;
- }
- newDataParams = {
- report_type : reportType,
- date : totalTime,
- roleId : role
- };
- }
- if (headType == "xq") {
- getNewData(newDataurl, newDataParams);
- init(mycol);
- } else {
- tjInit(mycol, newTjParams);
- }
- };
- function getNewData(url, params) {
- $.ajax({
- url : url,
- type : 'post',
- timeout : 15000,
- async : false,
- data : params,
- dataType : 'json',
- success : function(data) {
- testData = data;
- fd_id = data.rows[0].REPORT_ID;
- },
- error : function(e) {
- $.messager.alert('查询失败!', '访问服务失败!', 'error');
- }
- });
- }
- function clearTime() {
- $("#warningNumber").render();
- $("#warningTime2").render();
- $("#dateSelect").val("");
- if ($("#show1").is(":hidden")) {
- $("#show1").show();
- $("#show2").hide();
- $("#show").hide();
- }
- }
- /**
- * 汇总查询页面-导出功能
- */
- function export_report() {
-
- var report_types = $("#sel").val();
- var flag = $("#show").is(":hidden");
- var selectDate = "";
- if (flag) {
- selectDate = $("#warningTime1").val();
- } else {
- selectDate = $("#dateSelect").val() + " " + $("#warningTime2").val();
- }
- var condition = "REPORT_ID = '" + fd_id + "'";
- var sql = {
- /*"listId" : findId(report_types),*/
- "condition" : condition,
- "report_type" : report_types,
- "date" : selectDate,
- "id" : corpId,
- "json" : JSON.stringify(g.getData()),
- "flag" : "huizong",
- "warning_number" : $("#warningNumber").attr("relText")
- };
- var Columns = findColumn(report_types);
- var columns_sub = Columns.substring(0, Columns.lastIndexOf(","));
- if ('7' == report_types) {
- excelExport("", sql, "导出" + $("#title").text(), [
- 'FD_OBJECTID', 'REPORT_ID', 'TEST', columns_sub ], $("#title")
- .text(), 'yjxy');
- } else {
- excelExport("", sql, "导出" + $("#title").text(), [
- 'FD_OBJECTID', 'REPORT_ID', 'TEST', columns_sub ], $("#title")
- .text(), 'report');
- }
- }
- /**
- * 查询报表中不可用的字段
- * @param type 报表类型
- * @returns {String}
- */
- function findColumn(type) {
- var column = "";
- $.ajax({
- url : $.pathname() + "/ws/getReportId/ExportExcelService/getColumn",
- type : 'post',
- timeout : 15000,
- async : false,
- data : {
- report_type : type
- },
- dataType : 'json',
- success : function(data) {
- for (var i = 0; i < data.rows.length; i++) {
- column += data.rows[i].TABLE_COLUMN + ",";
- }
- },
- error : function(e) {
- $.messager.alert('获取列失败!', '访问服务失败!', 'error');
- }
- });
- return column;
- }
- function showDetail(Goindex, name, val, display, comp) {
-
- if (val == "未填报" || val == "0") {
- return;
- }
- else {
- var showType = $("#sel").val();
- if (showType == "1" || showType == "3" || showType == "5"
- || showType == "8" || showType=="4" || showType == "101") {
- if (showType == "8") {
- if (display.indexOf("人") == -1) {
- return;
- }
- }
- if (comp == "总计") {
- Goindex = "";
- var totalData = testData;
- if (totalData != "") {
- for (var i = 0; i < totalData["rows"].length - 1; i++) {
- Goindex += "'" + totalData["rows"][i]["FD_OBJECTID"]
- + "',";
- }
- Goindex = Goindex.substring(0, Goindex.lastIndexOf(","));
- }
- }
- var diag = new parent.Dialog();// 定义一个窗口对象
- diag.Top = 10;
- diag.Title = "详情查看";// 窗口标题
- diag.URL = "/nwyj/page/business/em/report/Data/Report1.html";// 窗口对应的页面
- diag.Height = 590;
- diag.Width = 1150;
- diag.showOkButton = false;
- diag.showCancelButton = false;
- diag.CancelEvent = function(){
-
-
- //$(parent.document.body).find("#frmright").height(bodyheight+30);
- $(parent.document.body).find("#frmrightChild").height($(window.document.body).height()+30);
- $(top.document.body).find("#frmright").height($(parent.document.body).height()+30);
- diag.close();
- };
- diag.ShowMaxButton = true;
- diag.show();// 显示窗口
- /**/
- diag.OnLoad = function() {
- diag.innerFrame.contentWindow.showDeatilMsg(Goindex, name,
- showType, display, comp);
- };
-
- }
- }
- return false;
- }
- function showMsg(rowdata, rowindex, value, column) {
- var display = column.display.replace("\<br\/\>", '');
- if (value == undefined || value == "undefined") {
- value = "";
- }
- return '<a href="javascript:void(0)" ' + 'title="'+value+'"' + 'onclick=showDetail("'
- + rowdata.FD_OBJECTID + '",' + '"' + column.name + '",' + '"'
- + value + '",' + '"' + display + '",' + '"' + rowdata.COMP_NAME
- + '")>' + value + '</a>';
- }
- // 跳转方法
- function _addStatus(rowdata, rowindex, value, column) {
- if (value == undefined || value == "undefined") {
- value = "";
- }
- var comp_id = '"' + rowdata.COMP_ID + '"';
- var name = '"' + value + '"';
- if ($("#sel").val() == "1") {
- if (rowdata.COMP_NAME == "总计") {
- return " <div style='background-color: #f2f2f2;font-color:white'><a href='javascript:newHtml("
- + comp_id
- + ","
- + name
- + ","
- + role1
- + ","
- + headType1
- + ")'>" + value + " </a></div>";
- } else {
- return " <div style='background-color: #dde5f0;'><a href='javascript:newHtml("
- + comp_id
- + ","
- + name
- + ","
- + role1
- + ","
- + headType1
- + ")'" +"title='"+value+"'>" + value + " </a></div>";
- }
- } else {
- if (rowdata.COMP_NAME == "总计") {
- return " <div style='background-color: #f2f2f2;font-color:white'><a href='javascript:newHtml1("
- + comp_id
- + ","
- + name
- + ","
- + role1
- + ","
- + headType1
- + ")'>" + value + " </a></div>";
- } else {
- return " <div style='background-color: #dde5f0;'><a href='javascript:newHtml1("
- + comp_id
- + ","
- + name
- + ","
- + role1
- + ","
- + headType1
- + ")'" +"title='"+value+"'>" + value + " </a></div>";
- }
- }
- }
- function getAlertMsg(comp_id) {
- window
- .open("/nwyj/page/business/em/report/baobiaoye/Report_Line_StoppageAndRecovery2.jsp?compId="
- + comp_id
- + "&reportType=7&compName&role="
- + role
- + "&headType=" + headType);
- }
- // 跳转页面
- function newHtml(comp_id, name, role, headType) {
- if (name == "总计") {
- return;
- } else {
- if (comp_id != corpId) {
- var goType = $("#sel").val();
- var url = "/nwyj/page/business/em/report/baobiaoye/Report_Line_StoppageAndRecovery1.jsp?compId="
- + comp_id
- + "&reportType="
- + goType
- + "&compName="
- + encodeURI(encodeURI(name))
- + "&role="
- + role
- + "&headType=" + headType;
- window.open(url);
- }
- }
- }
- function newHtml1(comp_id, name, role, headType) {
- if (name == "总计") {
- return;
- } else {
- if (comp_id != corpId) {
- var goType = $("#sel").val();
- window
- .open("/nwyj/page/business/em/report/baobiaoye/Report_Line_StoppageAndRecovery1.jsp?compId="
- + comp_id
- + "&reportType="
- + goType
- + "&compName="
- + encodeURI(encodeURI(name))
- + "&role="
- + role
- + "&headType=" + headType);
- }
- }
- }
- function checkYJ(rowdata, rowindex, value, column) {
- var compLevel = '';
- if ("网公司" == value) {
- compLevel = '1';
- }
- if ("省公司" == value) {
- compLevel = '2';
- }
- if ("地市局" == value) {
- compLevel = '3';
- }
- if ("县区局" == value) {
- compLevel = '4';
- }
- // return '1111';
- return " <div style='background-color: #dde5f0;'><a href='javascript:getAlertMsg("
- + compLevel + ")'"+"title='"+value+"'"+">" + value + " </a></div>";
- }
- var stat = "xq";
- //var typeStat = "";
- function totalShow(val, roleId, type) {
- $("body").eq(0).showLoading();
- if(type=="xq" && val!="7"){
- $("#compare").show();
- }else{
- $("#compare").hide();
- }
- var params = getParams(roleId,val);
- getProjectNames(Prourl, params, "计划");
-
- /*if (typeStat != val) {*/
-
- getColumns(val, type);// 获取表头
- /*}*/
- if (type == "xq") {
- /*if (typeStat != val) {*/
- getRows(val, roleId);// 获取行
- init(mycol);// 初始化表格
- //typeStat = val;
- /*}
- */
-
- if (stat == "") {
- stat = "xq";
- }
- /*if ($("#exportMsg").is(":hidden")) {
- $("#exportMsg").show();
- $("#compare").show();
- }*/
- $("#maingrid").show();
- $("#maingridx").hide();
- } else {
- /* var reportT = $("#sel").val(); */
-
- var Initparams = {
- compId : corpId,
- report_type : val,
- report_id : "",
- date : ""
- };
- /* if (typeStat != val) {*/
- tjInit(mycol, Initparams);
- //var params = getParams(roleId);
- /**/
- //getProjectNames(Prourl, params, "计划");
- //typeStat = val;
- /*}*/
- /*if (!$("#exportMsg").is(":hidden")) {
- $("#compare").hide();
- $("#exportMsg").hide();
- }*/
- $("#maingrid").hide();
- $("#maingridx").show();
- stat = "";
- }
- if (val == "7") {
- /*$("._buttons").css("top","55px");*/
- $(".showWarn").hide();
- $("#hideWarn").show();
- var timeVal = $("#time1").val();
- var timeVal2 = $("#time2").val();
- if (timeVal) {
- $("#time1").val("");
- }
- if (timeVal2) {
- $("#time2").val("");
- }
- } else {
- $(".showWarn").show();
- $("#hideWarn").hide();
- }
- $("body").eq(0).hideLoading();
- }
- function showTitle(val) {
- $("#title").html("");
- $("#title").html(corpName + val);
- }
- /**
- * 明细表初始化
- * @param cols 表头
- * @param Initparams
- */
- function tjInit(cols, Initparams) {
- g = null;
- g = $("#maingridx")
- .quiGrid(
- {
- columns : eval('(' + cols + ')'),
- url : $.pathname()
- + "/ws/ReportHuiZong/HuiZongService/getSearchResult",
- params : Initparams,
- /*height : '95%',*/
- width : "100%",
- percentWidthMode : true,
- usePager : false,
- enabledSort : false,
- groupColumnName : "COMP_NAME",
- groupRender : function(groupValue, groupData,
- groupColumnDisplay) {
- var reportDeptId = '"' + groupData[0].COMP_ID + '"';
- var reportComp = '"' + groupData[0].COMP_NAME + '"';
- var checkLevel = getThing($.pathname() +"/ws/ReportHuiZong/HuiZongService/checkLevel",{compId:groupData[0].COMP_ID},'text');
- if(checkLevel=="true"){
-
- text = "<span id='groupValue' class='groupValue' title='点击钻取' onclick=showDeptMsg("+reportDeptId+","+reportComp+")>填报部门:"+groupValue+"</span>";
- }else{
- text = "<span id='groupValue' class='groupValue'>填报部门:"+groupValue+"</span>";
- }
- return text;
- },
- onAfterShowData:function(){
- setContentHeight();
- }
- });
- // setContentHeight();
- }
- function showDeptMsg(id, name) {
- var reportT = $("#sel").val();
- window
- .open("/nwyj/page/business/em/report/baobiaoye/Report_Line_StoppageAndRecovery1.jsp?compId="
- + id
- + "&reportType="
- + reportT
- + "&compName="
- + encodeURI(encodeURI(name))
- + "&role="
- + role
- + "&headType=" + headType);
- }
- function checkExpand(event, treeId, treeNode){
- if(treeNode["flag"]=="true"){
-
- var treeObj = $.fn.zTree.getZTreeObj("reportTree");
- var allData = treeObj.getNodes();
- for(var i=0;i<allData.length;i++){
- var childNode = allData[i];
-
-
- if(childNode["open"]=="true" || childNode["open"]==true){
-
- if(childNode["id"]!=treeNode.id){
-
- treeObj.expandNode(childNode,false);
- break;
- }
- }
- }
- }
-
- }
- function getParams(roleId,report_type){
- var params = "";
- if ("8F6F2D6B24494CB6B1F1E0931E7AF87D" == corpId) {
- params = {
- compId : corpId,
- roleId : "",
- report_type:report_type
- };
- } else {
- params = {
- compId : corpId,
- roleId : roleId,
- report_type:report_type
- };
- }
- return params;
- }
- function setContentHeight(){
- $("#plan_detail").height($("#maingrid").height()+200);
- var contentHeight = $("#plan_detail").height();
- var height = contentHeight+30;
- $(window.document.body).find("#layout1").height(height);
- $(top.document.body).find("#frmright").height(height);
- }
|