/********************************************************
 Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 创建人   : Berry Ding
 创建时间 : 2017-06-05
 说明     : 客户档案（租户）
 *********************************************************/
(function (win) {
    'use strict';
    angular.module('xrmApp').config(['$stateProvider', function ($stateProvider) {
        $stateProvider
            .state('main.odpaccount'/*客户列表*/, {
                url: '/odpaccount',
                templateUrl: 'Odp/Account/accountListView.html?v=' + win.htmlFileVersion,
                controller: 'odpAccountListController'
            })
            .state('main.odpaccount.editBusiness'/*商业只读*/, {
                url: '/editBusiness/:id',
                templateUrl: 'Odp/Account/businessEditView.html?v=' + win.htmlFileVersion,
                controller: 'odpAccountEditController'
            })
            .state('main.odpaccount.editHospital'/*医院只读*/, {
                url: '/editHospital/:id',
                templateUrl: 'Odp/Account/hospitalEditView.html',
                controller: 'odpAccountEditController'
            })
            .state('main.odpaccount.editRetail'/*门店只读*/, {
                url: '/editRetail/:id',
                templateUrl: 'Odp/Account/retailEditView.html?v=' + win.htmlFileVersion,
                controller: 'odpAccountEditController'
            })
            .state('main.odpaccount.editBasic'/*基层医疗机构只读*/, {
                url: '/editBasic/:id',
                templateUrl: 'Odp/Account/basicEditView.html?v=' + win.htmlFileVersion,
                controller: 'odpAccountEditController'
            })
            .state('main.odpaccount.editAgent'/*代理商只读*/, {
                url: '/editAgent/:id',
                templateUrl: 'Odp/Account/agentEditView.html',
                controller: 'odpAccountEditController'
            })
            .state('main.odpaccount.editChain'/*连锁总部只读*/, {
                url: '/editChain/:id',
                templateUrl: 'Odp/Account/chainEditView.html?v=' + win.htmlFileVersion,
                controller: 'odpAccountEditController'
            });
    }]);
})(window);