/*
 * 滚动条
 * */
function adjustScrollbar(){
    var mainTitleVal=jQuery(".float-left").eq(0).text();
    console.log(mainTitleVal);
    switch(mainTitleVal){
        case "企业域信息" :
            jQuery("#domainForm").height("100%");
            var contentActDivHg=jQuery("#contentActDiv").outerHeight(true);
            var weixinInfoHg=jQuery("#weixinInfo").outerHeight(true)+contentActDivHg;
            var mainHg=jQuery("#domainForm").height()-(contentActDivHg+weixinInfoHg);
            jQuery("#main").height(mainHg);
            var mainTitleHg=jQuery(".obpm-title-color").height()*1.5;
            var contentTableHg=jQuery("#main").height()-mainTitleHg;
            jQuery("#contentTable").height(contentTableHg);
            break;
        case "字段扩展管理" :
            var clientHeight = document.body.clientHeight;
            var toolbarHight = jQuery("#main-title").outerHeight();
            var searchbarHight = jQuery("#searchFormTable").outerHeight();
            jQuery("#contentTable").height(clientHeight - (toolbarHight + searchbarHight));
            break;
        case "部门信息":
            var clientHeight = document.body.clientHeight;
            var toolbarHight = jQuery("#main-title").outerHeight();
            jQuery("#contentTable").height(clientHeight - toolbarHight - 16);
            break;
        case "软件列表" :
            jQuery("#formList").height("100%");
            var contentActHg=jQuery("#contentActDiv").outerHeight(true);
            var mainHeight=jQuery("#formList").height()-contentActHg;
            var systemApplicationSettingHg=jQuery("#systemApplicationSetting").outerHeight(true);
            var searchbarHg = jQuery("#searchFormTable").outerHeight(true)+10;
            jQuery("#main").height(mainHeight);
            jQuery("#contentTable").height(mainHeight-(systemApplicationSettingHg+searchbarHg));
            break;
        case "所属用户" :
            var clientHeight = document.body.clientHeight;
            var toolbarHight = jQuery("#main-title").outerHeight();
            jQuery("#contentTable").height(clientHeight - toolbarHight );
            break;
        default:
            var clientHeight = document.body.clientHeight;
            var toolbarHight = jQuery("#main-title").outerHeight();
            var searchbarHight = jQuery("#searchFormTable").outerHeight();
            if(jQuery("#contentTable").height() != null && toolbarHight != null && searchbarHight !=null){
                jQuery("#contentTable").height(clientHeight - (toolbarHight + searchbarHight));
            }
            else if(jQuery("#contentTable").height() == 0 || jQuery("#contentTable").height() == null && searchbarHight ==null){
                jQuery("#content-table").height(clientHeight - toolbarHight );
            }
            break;
    }
}

/**
 * 统计图滚动条
 */
function summaryGraphScrollbar(){
    var clientHeight = document.body.clientHeight;
    var sec_tab_head = jQuery("#sec_tab_head").outerHeight();
    jQuery("#contentMainDiv").height(clientHeight- sec_tab_head);
}