$(function () {
    if (BemsWebApplication.config.Group == 2) {
        var menuItems = {
            'navBusiness':
            [
                {
                    title: '계약 관리',
                    subMenus:
                    [
                        {
                            title: '계약 관리 코드',
                            subMenus:
                            [
                                { viewId: 'PartnerType', title: '거래처 코드 관리' },
                                { viewId: 'ContractClass', title: '근무 형태 코드 관리' },
                                { viewId: 'ContractType', title: '계약 종류 코드 관리' },
                                { viewId: 'ContractMethod', title: '계약 방법 코드 관리' },
                                { viewId: 'PaymentType', title: '지급 구분 코드 관리' },
                            ],
                        },
                        { viewId: 'ContractManagement', title: '계약 등록/조회' },
                    ],
                },
                {
                    title: '거래처 관리',
                    subMenus:
                    [
                        { viewId: 'ConstructionPartner', title: '공사 업체 관리' },
                        { viewId: 'ServicePartner', title: '용역 업체 관리' },
                        { viewId: 'LegalCheckPartner', title: '법정 검사기관 관리' },

                    ]
                },
            ]
        };
    } else {
        var menuItems = {
            'navBusiness':
            [
                {
                    title: '계약 관리',
                    subMenus:
                    [
                        {
                            title: '계약 관리 코드',
                            subMenus:
                            [
                                { viewId: 'PartnerType', title: '거래처 코드 관리' },
                                { viewId: 'ContractClass', title: '근무 형태 코드 관리' },
                                { viewId: 'ContractType', title: '계약 종류 코드 관리' },
                                { viewId: 'ContractMethod', title: '계약 방법 코드 관리' },
                                { viewId: 'PaymentType', title: '지급 구분 코드 관리' },
                            ]
                        },
                        {
                            title: '거래처 관리',
                            subMenus:
                            [
                                { viewId: 'ConstructionPartner', title: '공사 업체 관리' },
                                { viewId: 'ServicePartner', title: '용역 업체 관리' },
                                { viewId: 'LegalCheckPartner', title: '법정 검사기관 관리' },
                            ]
                        },
                       { viewId: 'ContractManagement', title: '계약 등록/조회' },
                       // { viewId: 'ContractHistory', title: '계약 이력 조회' },
                    ]
                },

                //{
                //    title: '예산 관리',
                //    subMenus:
                //    [
                //        { viewId: 'BudgetCodeClass', title: '예산 편성 코드 관리' },
                //        { viewId: 'BudgetPlan2', title: '예산 편성' },
                //        { viewId: 'BudgetExecute', title: '실적 등록' },
                //        { viewId: 'BudgetExecuteView', title: '예산 대비 실적 분석' },
                //        //{ viewId: 'BudgetPlan', title: '예산 편성' },
                //    ]
                //},
                //{
                //    title: 'LCC',
                //    subMenus:
                //    [
                //        { viewId: 'LCCView', title: 'LCC 조회' },
                //        { viewId: 'InvestmentCost', title: '초기 투자비 입력' },
                //    ]
                //},
            ]
        };
    }
    $SideMenu.pushSideMenu(menuItems);
});