<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html ng-app="app">

<head>
    <title>信用投票结果查询</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/vote.css">
</head>

<body style="overflow:hidden;" ng-cloak ng-controller="creVotequery.ctrl" ng-class="{'default': isDefault, 'white': isWhite}" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty()>
    <!--请求数据前loading框==开始-->
    <div ng-show="isAsk" class="maskBox" id="maskBox" ng-class="{'default-maskBox': isDefault, 'white-maskBox': isWhite}">
        <div class="proBox"></div>
    </div>
    <!--请求数据前loading框==结束-->

    <div class="checkHead" ng-class="{'default-checkHead': isDefault, 'white-checkHead': isWhite}">
        <div class="left">
            共有 <span class="stkcodeNum">{{stkcodeNum}}</span> 条数据
        </div>
        <div class="center">
            <span class="text32">资金账号：</span>
            <span>{{UserInfo.USER_CREDITFUNDID}}</span>
        </div>
        <div class="right queryRight col-sm-offset-5" ng-class="{'default-query-date': isDefault, 'white-query-date': isWhite}">
            <span class="glyphicon glyphicon-search searchQuery"></span>
            <input type="text" class="borderInput creditInput" ng-model="compcode" placeholder="请输入证券代码" maxlength="6" onkeyup='this.value=this.value.replace(/\D/gi,"")'>
        </div>
    </div>
    <!--data-ng-init="load()"表格自适应可视区域-->
    <div class="container voteTable" id="voteTable" data-ng-init="load()">
        <div class="table-responsive tableResponsive cre-query" ng-class="{'default-table-scroll': isDefault, 'white-table-scroll': isWhite}" id="vote-table" style="overflow: scroll;height: 100%">
            <table class="table table-bordered text-center" ng-class="{'default-table': isDefault, 'white-table': isWhite}" style="border-left: none;">
                <thead class="tableHeader">
                    <tr>
                        <th width="8%">序号</th>
                        <th width="12%">证券代码</th>
                        <th width="12%">证券名称</th>
                        <th width="16%">关联证券代码</th>
                        <th width="20%">关联证券名称</th>
                        <th width="12%">投票议案</th>
                        <th width="12%">投票意见</th>
                        <th width="12%">投票数量</th>
                        <th width="20%">股东大会编码</th>
                        <th width="20%">股东大会名称</th>
                        <th width="12%">议案类型</th>
                        <th width="12%">议案名称</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="vquery in crevotequery| filter:{'security_id':compcode}">
                        <td>{{$index+1}}</td>
                        <td>{{vquery.security_id}}</td>
                        <td>{{vquery.security_symbol}}</td>
                        <td>{{vquery.link_security_id}}</td>
                        <td>{{vquery.link_security_symbol}}</td>
                        <td>{{vquery.voting_proposal}}</td>
                        <td>{{vquery.voting_proposal_type == '2' ? votingPreferenceFormat(vquery.voting_preference) : ''}}</td>
                        <td>{{vquery.voting_proposal_type == '2' ? '' : vquery.stk_bal}}</td>
                        <td>{{vquery.general_meeting_code}}</td>
                        <td>{{vquery.meeting_desc}}</td>
                        <td>{{vquery.voting_proposal_type | chinese}}</td>
                        <td>{{vquery.voting_prososal_desc}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="pagination-div">
           <button class="btn btn-default" ng-click="getQuery(compcode)">首页</button>
           <button class="btn btn-default" ng-disabled="ifNext" ng-click="nextQuery()">下一页</button>
        </div>
    </div>
    <!--Modal-->
    <prompt-dir></prompt-dir>
    <script src="../lib/jquery-1.11.3.min.js"></script>
    <script src="../lib/bootstrap/js/bootstrap.min.js"></script>
    <script src="../lib/angular/angular.js"></script>
    <script src="../lib/angular/angular-sanitize.js"></script>
    <script src="../lib/angular/angular-ui-router.js"></script>
    <!-- angularjs modules -->
    <script src="../_common/service_fcfg.js"></script>
    <script src="../_common/fy_client.js"></script>
    <script src="../_common/service.js"></script>
    <script src="../_common/fql.js"></script>
    <script src="../_common/lts_result.js"></script>
    <script src="controllers/voteresult.js"></script>
    <script src="directives/directive.js"></script>
</body>

</html>