public DataResult FrozenStatus(Branch inputBranch)
        {
            #region 角色验证
            //总公司访问
            if (LoginUser.Type != 0 && LoginUser.Type != UserType.Company)
            {
                throw new DataOperationPermissions(BusinessResourceMessage.NoPower);
            }
            #endregion

            #region 输入验证
            if (!CommonValidator.isInt(inputBranch.ID.ToString()))
                throw new DataValidationException(string.Format(BusinessResourceMessage.Inexistent, "分社"));
            #endregion

            inputBranch.UpdaterId = LoginUser.ID;
            inputBranch.UpdaterName = LoginUser.Name;
            inputBranch.UpdateTime = DateTime.Now;
            branchService.FrozenBranch(inputBranch);
            dataResult.Code = ResponseStatusCode.Success;
            dataResult.Msg = BusinessResourceMessage.Success;
            return dataResult;
        }
        public DataResult DetailBranch(Branch inputBranch)
        {
            #region 角色验证
            //总公司/分社访问
            if (LoginUser.Type != 0 && LoginUser.Type == UserType.SpecialLine)
            {
                throw new DataOperationPermissions(BusinessResourceMessage.NoPower);
            }
            #endregion

            #region 输入验证
            //判断菜单进入、选择分社配置进入
            if (inputBranch.ID == 0)
            {
                //验证菜单进入用户是否有打开分社配置权限
                if (LoginUser.BranchId != null && LoginUser.Type == UserType.Branch)
                    inputBranch.ID = (int)LoginUser.BranchId;
                else
                    throw new DataOperationPermissions(BusinessResourceMessage.NoPower);
            }
            #endregion

            dataResult.Code = ResponseStatusCode.Success;
            dataResult.Msg = BusinessResourceMessage.Success;
            dataResult.Data = branchService.DetailBranch(inputBranch.ID);
            return dataResult;
        }