<!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="../lib/bootstrap/css/font-awesome.min.css">-->
    <link rel="stylesheet" href="http://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="../lib/bootstrap/css/build.css">
    <link rel="stylesheet" href="css/reset.css">
    <!--<link rel="stylesheet" href="css/fixed_css/960.css">-->
    <!--<link rel="stylesheet" href="css/fixed_css/defaultTheme.css">-->
    <!--<link rel="stylesheet" href="css/fixed_css/myTheme.css">-->
    <link rel="stylesheet" href="BulkGuaranteeInto/index.css">
    <script src="../lib/jquery-1.11.3.min.js"></script>
    <script src="../lib/bootstrap/js/bootstrap.min.js"></script>
    <!--<script src="../lib/jquery.fixedheadertable.min.js"></script>-->
    <script src="../lib/angular/angular.min.js"></script>
    <script src="../lib/angular/angular-sanitize.js"></script>
    <script src="../lib/angular/angular-ui-router.js"></script>

    <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>
</head>

<body style="overflow:hidden" ng-controller="plzrCtrl" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty() onselect=document.selection.empty()>
<div id="plzrTransfer">
    <form class="form-horizontal" id="form" name="fm" ng-submit="bulkGuaranteeTransfer()">
        <h4 class="title">担保品批量转入</h4>
        <div class="all">
            <div class="title">
                <div class="title_left">
                    <table class="main_table">
                        <tr>
                            <th class="checkboxTh" width="40">选择</th>
                            <th width="30">行号</th>
                            <th width="75">股东代码</th>
                            <th>证券代码</th>
                            <th>证券名称</th>
                            <th>拥股数量</th>
                            <th>可转入</th>
                            <th width="80">转入数量</th>
                            <th width="100">证券市值</th>
                            <th>盈亏比例(%)</th>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="content">
                <div class="content_left">
                    <table class="main_table">
                        <tr ng-repeat="item in stkList" ng-class="{'tdBackground':$odd}">
                            <td class="checkboxTd" width="40">
                                <div class="checkbox checkbox-info chooseBox">
                                    <input type="checkbox" class="forCheckBox" ng-click="calculate($index)" ng-disabled="item.checkboxAbled">
                                    <label></label>
                                </div>
                            </td>
                            <td width="30">{{$index + 1}}</td>
                            <td width="75">{{item.account_id}}</td>
                            <td>{{item.security_id}}</td>
                            <td>{{item.security_symbol}}</td>
                            <td>{{item.leaves_qty}}</td>
                            <td>{{item.leaves_qty - item.stk_sell}}</td>
                            <td width="80" class="inputQty form-group">
                                <input type="text" ng-class="{'tdBackground':$odd}" ng-change="inputNum($index)" onkeyup="value=value.replace(/^([^0-9]*)(?:0(?=[1-9]))?([1-9][0-9]*|0|)(([^0-9]*)([0-9]*))*$/,'$2')" class="form-control inputqty" ng-model="item.intonum" value="{{item.intonum}}">
                                <div class="addSub">
                                    <div class="addInnum" ng-click="addInnum($index)">
                                        <span class="addTri"></span>
                                    </div>
                                    <div class="subInnum" ng-click="subInnum($index)">
                                        <span class="subTri"></span>
                                    </div>
                                </div>
                            </td>
                            <td width="100">{{item.market_value}}</td>
                            <td ng-class="item.ykratio <= 0 ? 'greencolor' : 'redcolor'">{{item.ykratio}}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="footer">
            <div class="marketValue">
                合计转入市值：<span class="total-marketvalue">0.00</span>元&nbsp;&nbsp;(仅供参考，实际担保额度变化请以收盘清算为准)
            </div>
            <div class="footer-center">
                <div class="footer-left">
                    <span class="checkAll" ng-click="checkAll()">全选</span>
                    <span class="invertCheck" ng-click="invertSelect()">反选</span>
                </div>
            </div>
            <div class="submitBtn">
                <button type="submit" id="submitData" class="btnConfirm btn btn-info" ng-disabled="isRepeat">确认转入</button>
            </div>
        </div>
    </form>
</div>

<!--提交数据前loading框==开始-->
<div ng-if="isSubmit" class="maskBox" id="maskBox1">
    <div class="progressBox">
        <div class="proboxTitle text-center">{{valuemax}}个担保品正在转入......</div>
        <div class="progress">
            <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="{{valuenow}}" aria-valuemin="0" aria-valuemax="{{valuemax}}" ng-style="{width: (valuenow/valuemax)*100 + '%'}">
                {{valuenow +'/'+valuemax}}
            </div>
        </div>
    </div>
</div>
<!--提交数据前loading框==结束-->

<!--警告框-->
<prompt-dir></prompt-dir>

<!--提交确认框-->
<into-modal></into-modal>

<!--提交完成框-->
<into-submit></into-submit>

<script src="BulkGuaranteeInto/index.js"></script>
<script src="directives/directive.js"></script>

</body>
</html>
