Commit 7d051625 authored by kevin's avatar kevin

Merge branch 'dev_mysql' of https://gitee.com/Memorydoc/atms into dev_mysql

parents 7c02aa53 a0047951
...@@ -475,7 +475,7 @@ ...@@ -475,7 +475,7 @@
pageSize: constant.page.pageSize pageSize: constant.page.pageSize
}, },
pager: { pager: {
showPageSizeSelector: true, showPageSizeSelector: false,
allowedPageSizes: constant.page.pageSizeArrary, allowedPageSizes: constant.page.pageSizeArrary,
showInfo: true showInfo: true
} }
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
<select class="selectpicker show-tick dropup" multiple data-live-search="true" <select class="selectpicker show-tick dropup" multiple data-live-search="true"
data-max-options="1" data-max-options="1"
data-size="10" data-size="10"
data-style="btn-primary" id ="contryList" data-style="btn-info" id ="contryList"
data-header="国家列表" data-header="国家列表"
data-content = "true" data-content = "true"
data-none-selected-text = "选择国家" data-none-selected-text = "选择国家"
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<select class="selectpicker show-tick dropup" multiple data-live-search="true" <select class="selectpicker show-tick dropup" multiple data-live-search="true"
data-width="auto" data-max-options="1" data-width="auto" data-max-options="1"
data-size="10" data-size="10"
data-style="btn-primary" id ="orgList" data-style="btn-info" id ="orgList"
data-header="公司列表" data-header="公司列表"
data-content = "true" data-content = "true"
data-icon-base = "tickIcon" data-icon-base = "tickIcon"
......
...@@ -1011,6 +1011,19 @@ ...@@ -1011,6 +1011,19 @@
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -2,74 +2,75 @@ ...@@ -2,74 +2,75 @@
<!--标题--> <!--标题-->
<div class="nav-wrapper"> <div class="nav-wrapper">
<div class="nav-header" translate="AdjustmentTableTitle"></div> <div class="nav-header" translate="AdjustmentTableTitle"></div>
<div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab" ng-click="toggleErrorTab()"> <div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab"
ng-click="toggleErrorTab()">
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}} <i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}}
</div> </div>
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width: 100%;margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;"></div>
<div class="col-sm-6 leftNav" style="width: 60%;"> </div>
<span class="text-bold" translate="SelectedOrganization"></span>: <!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
<span class="caret" style="float: right "></span> <span class="caret" style="float: right "></span>
</button> </button>
<ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1"> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li> <span style="margin-left:5px;float: left;">全选</span></li>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <li role="separator" class="divider" style="height: 1px;margin: 9px 0;
overflow: hidden;background-color: #e5e5e5;"></li> overflow: hidden;background-color: #e5e5e5;"></li>
<li ng-repeat="i in companyList"> <li ng-repeat="i in companyList">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<input type="checkbox" ng-model="i.checked" ng-change="selectOne()" <input type="checkbox" ng-model="i.checked" ng-change="selectOne()"
ng-checked="selectedOne" ng-checked="selectedOne"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
<span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span> <span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>-->
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <span class="text-bold" translate="InvoiceQJ"></span>:
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <div class="period-picker" style="display: inline-block">
readonly="readonly" ng-model="UploadPeriodTime"/> <input type="text" id="periodDatepicker" class="datepicker imp-subheader form-control"
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> style="width:120px;"
</div> readonly="readonly" ng-model="UploadPeriodTime"/>
<div ng-show="fileName" style="display:inline-block"> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> </div>
</div> <div ng-show="fileName" style="display:inline-block">
</div> <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div>
<div class="col-sm-6 rightNav" style="width: 40%; margin-top: 10px;"> <div class="form-group">
<button type="button" <button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'"
ngf-allow-dir="false" class="btn btn-vat-third" > accept=".xls,.xlsx" ngf-multiple="false"
{{'SelectFile' | translate}} ngf-allow-dir="false" class="btn btn-vat-third">
</button> {{'SelectFile' | translate}}
<button type="button" </button>
class="btn btn-vat-primary" <button type="button"
translate="TemplateBtn" class="btn btn-vat-primary"
ng-click="downloadTemplate()"></button> translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button" <button type="button"
class="btn btn-vat-primary topButton" class="btn btn-vat-primary topButton"
translate="AddImportBtn" translate="AddImportBtn"
ng-click="doUploadAT(importEnum.AddImport)"></button> ng-click="doUploadAT(importEnum.AddImport)"></button>
<button type="button" <button type="button"
class="btn btn-vat-primary topButton" class="btn btn-vat-primary topButton"
translate="CoverImportBtn" translate="CoverImportBtn"
ng-click="doUploadAT(importEnum.CoverImport)"></button> ng-click="doUploadAT(importEnum.CoverImport)"></button>
</div>
</div>
</div>
</div> </div>
<!--分页栏--> <!--分页栏-->
...@@ -79,7 +80,7 @@ ...@@ -79,7 +80,7 @@
</div> </div>
</div>--> </div>-->
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div class="dx-viewport grid-container">
<div id="importATStatusGridContainer" dx-data-grid="importATStatusGridOptions" <div id="importATStatusGridContainer" dx-data-grid="importATStatusGridOptions"
...@@ -97,7 +98,9 @@ ...@@ -97,7 +98,9 @@
<script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup"> <script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup">
<div class="modal-header"> <div class="modal-header">
<div class="modal-title" style="margin-bottom:10px"> <div class="modal-title" style="margin-bottom:10px">
{{remarksTitle}}<i class="fa fa-times" aria-hidden="true" style="float: right; font-size: 11px; color: #CF2D1B" ng-click="closePeriodSelectModal()"></i> {{remarksTitle}}<i class="fa fa-times" aria-hidden="true"
style="float: right; font-size: 11px; color: #CF2D1B"
ng-click="closePeriodSelectModal()"></i>
</div> </div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -1183,6 +1183,19 @@ ...@@ -1183,6 +1183,19 @@
$scope.setGridStyle = setGridStyle; $scope.setGridStyle = setGridStyle;
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -2,84 +2,79 @@ ...@@ -2,84 +2,79 @@
<!--标题--> <!--标题-->
<div class="nav-wrapper"> <div class="nav-wrapper">
<div class="nav-header" translate="OffBalanceSheetTitle"></div> <div class="nav-header" translate="OffBalanceSheetTitle"></div>
<div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab" ng-click="toggleErrorTab()"> <div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab"
ng-click="toggleErrorTab()">
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}} <i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}}
</div> </div>
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width:100%;margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
<div class="col-sm-6 leftNav" style="width: 60%;"> </div>
<span class="text-bold" translate="SelectedOrganization"></span>: <!--<span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect'
<span class="caret" style="float: right "></span> | translate)}}
</button> <span class="caret" style="float: right "></span>
<ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1"> </button>
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
<span style="margin-left:5px;float: left;">全选</span></li> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <span style="margin-left:5px;float: left;">全选</span></li>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0;
overflow: hidden;background-color: #e5e5e5;"></li> overflow: hidden;background-color: #e5e5e5;"></li>
<li ng-repeat="i in companyList"> <li ng-repeat="i in companyList">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<input type="checkbox" ng-model="i.checked" ng-change="selectOne()" <input type="checkbox" ng-model="i.checked" ng-change="selectOne()"
ng-checked="selectedOne" ng-checked="selectedOne"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
<span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span> <span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span>
</div> </div>
</li> </li>
</ul> </ul>-->
</div> <div class="form-group">
<span class="text-bold" translate="InvoiceQJ"></span>: <span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="margin-left:10px"> <div class="period-picker" style="display: inline-block;">
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div> </div>
<div ng-show="fileName" style="display:inline-block"> <div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div> </div>
</div> </div>
<div class="col-sm-6 rightNav " style="width: 40%;margin-top: 10px;"> <div class="form-group">
<button type="button" <button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'"
ngf-allow-dir="false" class="btn btn-vat-third"> accept=".xls,.xlsx" ngf-multiple="false"
{{'SelectFile' | translate}} ngf-allow-dir="false" class="btn btn-vat-third">
</button> {{'SelectFile' | translate}}
<button type="button" </button>
class="btn btn-vat-primary" <button type="button"
translate="TemplateBtn" class="btn btn-vat-primary"
ng-click="downloadTemplate()"></button> translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<!-- <button type="button" <button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" class="btn btn-vat-primary "
translate="AddImportBtn" translate="CoverImportBtn"
ng-click="doUploadBS(importEnum.AddImport)"></button>--> ng-click="doUploadBS(importEnum.CoverImport)"></button>
</div>
<button type="button"
class="btn btn-vat-primary topButton"
translate="CoverImportBtn"
ng-click="doUploadBS(importEnum.CoverImport)"></button>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn"> <div class="form-group">
<button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf" <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" <button class="btn btn-vat-primary " atms-permission permission-control-type="ngIf"
translate="ConverImportBtn" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>| translate="ConverImportBtn"
<button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf" ng-click="doUploadTbResult(importEnum.CoverImport)"></button>
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" |
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button> <button class="btn btn-vat-primary " atms-permission permission-control-type="ngIf"
</div> permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
</div> translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div> </div>
</div> </div>
...@@ -90,7 +85,7 @@ ...@@ -90,7 +85,7 @@
</div> </div>
</div>--> </div>-->
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div class="dx-viewport grid-container">
<div id="importPLStatusGridContainer" dx-data-grid="importPLStatusGridOptions" <div id="importPLStatusGridContainer" dx-data-grid="importPLStatusGridOptions"
...@@ -108,7 +103,9 @@ ...@@ -108,7 +103,9 @@
<script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup"> <script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup">
<div class="modal-header"> <div class="modal-header">
<div class="modal-title" style="margin-bottom:10px"> <div class="modal-title" style="margin-bottom:10px">
{{remarksTitle}}<i class="fa fa-times" aria-hidden="true" style="float: right; font-size: 11px; color: #CF2D1B" ng-click="closePeriodSelectModal()"></i> {{remarksTitle}}<i class="fa fa-times" aria-hidden="true"
style="float: right; font-size: 11px; color: #CF2D1B"
ng-click="closePeriodSelectModal()"></i>
</div> </div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -929,6 +929,18 @@ ...@@ -929,6 +929,18 @@
$scope.pagingOptions.totalItems = totalItemsCount; $scope.pagingOptions.totalItems = totalItemsCount;
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -2,84 +2,87 @@ ...@@ -2,84 +2,87 @@
<!--标题--> <!--标题-->
<div class="nav-wrapper"> <div class="nav-wrapper">
<div class="nav-header" translate="CashFlowDDTitle"></div> <div class="nav-header" translate="CashFlowDDTitle"></div>
<div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab" ng-click="toggleErrorTab()"> <div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab"
ng-click="toggleErrorTab()">
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}} <i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}}
</div> </div>
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width: 100%;margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
<div class="col-sm-6" style="width: 60%;"> </div>
<span class="text-bold" translate="SelectedOrganization"></span>: <!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' |
<span class="caret" style="float: right "></span> translate)}}
</button> <span class="caret" style="float: right "></span>
<ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1"> </button>
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
<span style="margin-left:5px;float: left;">全选</span></li> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <span style="margin-left:5px;float: left;">全选</span></li>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0;
overflow: hidden;background-color: #e5e5e5;"></li> overflow: hidden;background-color: #e5e5e5;"></li>
<li ng-repeat="i in companyList"> <li ng-repeat="i in companyList">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<input type="checkbox" ng-model="i.checked" ng-change="selectOne()" <input type="checkbox" ng-model="i.checked" ng-change="selectOne()"
ng-checked="selectedOne" ng-checked="selectedOne"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
<span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span> <span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span>
</div>
</li>
</ul>
</div>
<span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="margin-left:10px">
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<div class="col-sm-6 rightNav" style="width: 40%;margin-top: 10px;"> </li>
<button type="button" </ul>
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" </div>-->
ngf-allow-dir="false" class="btn btn-vat-third" > <div class="form-group">
{{'SelectFile' | translate}} <span class="text-bold" translate="InvoiceQJ"></span>:
</button> <div class="period-picker" style="display:inline-block;">
<button type="button" <input type="text" id="periodDatepicker" class="datepicker imp-subheader form-control" style="width:120px;"
class="btn btn-vat-primary" readonly="readonly" ng-model="UploadPeriodTime"/>
translate="TemplateBtn" <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
ng-click="downloadTemplate()"></button> </div>
<div ng-show="fileName" style="display:inline-block">
<button type="button" <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
class="btn btn-vat-primary topButton" </div>
translate="AddImportBtn" </div>
ng-click="doUploadCF(importEnum.AddImport)"></button> <div class="form-group">
<button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'"
accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third">
{{'SelectFile' | translate}}
</button>
<button type="button"
class="btn btn-vat-primary"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button" <button type="button"
class="btn btn-vat-primary topButton" class="btn btn-vat-primary "
translate="CoverImportBtn" translate="AddImportBtn"
ng-click="doUploadCF(importEnum.CoverImport)"></button> ng-click="doUploadCF(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary "
translate="CoverImportBtn"
ng-click="doUploadCF(importEnum.CoverImport)"></button>
</div>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn"> <div class="form-group">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf" <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" <button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
translate="ConverImportBtn" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>| translate="ConverImportBtn"
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf" ng-click="doUploadTbResult(importEnum.CoverImport)"></button>
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" |
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button> <button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
</div> permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
</div> translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div> </div>
</div> </div>
...@@ -90,7 +93,7 @@ ...@@ -90,7 +93,7 @@
</div> </div>
</div>--> </div>-->
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div class="dx-viewport grid-container">
<div id="importCFStatusGridContainer" dx-data-grid="importCFStatusGridOptions" <div id="importCFStatusGridContainer" dx-data-grid="importCFStatusGridOptions"
...@@ -108,7 +111,9 @@ ...@@ -108,7 +111,9 @@
<script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup"> <script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup">
<div class="modal-header"> <div class="modal-header">
<div class="modal-title" style="margin-bottom:10px"> <div class="modal-title" style="margin-bottom:10px">
{{remarksTitle}}<i class="fa fa-times" aria-hidden="true" style="float: right; font-size: 11px; color: #CF2D1B" ng-click="closePeriodSelectModal()"></i> {{remarksTitle}}<i class="fa fa-times" aria-hidden="true"
style="float: right; font-size: 11px; color: #CF2D1B"
ng-click="closePeriodSelectModal()"></i>
</div> </div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -368,7 +368,18 @@ ...@@ -368,7 +368,18 @@
var initPagingControl = function (totalItemsCount) { var initPagingControl = function (totalItemsCount) {
$scope.pagingOptions.totalItems = totalItemsCount; $scope.pagingOptions.totalItems = totalItemsCount;
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -2,77 +2,77 @@ ...@@ -2,77 +2,77 @@
<!--标题--> <!--标题-->
<div class="nav-wrapper"> <div class="nav-wrapper">
<div class="nav-header" translate="CertifiedInvoicesListTitle"></div> <div class="nav-header" translate="CertifiedInvoicesListTitle"></div>
<div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab" ng-click="toggleErrorTab()"> <div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab"
ng-click="toggleErrorTab()">
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}} <i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}}
</div> </div>
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width: 100%;margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;"></div>
<div style = "width:60%" class="col-sm-6 leftNav"> </div>
<span class="text-bold" translate="SelectedOrganization"></span>: <div class="form-group">
<div class="dropdown" style="margin-left:10px"> <!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <div class="dropdown" style="margin-left:10px">
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;">
<span class="caret" style="float: right "></span> {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
</button> <span class="caret" style="float: right "></span>
<ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1"> </button>
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
<span style="margin-left:5px;float: left;">全选</span></li> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <span style="margin-left:5px;float: left;">全选</span></li>
overflow: hidden;background-color: #e5e5e5;"></li> <li role="separator" class="divider" style="height: 1px;margin: 9px 0;
<li ng-repeat="i in companyList"> overflow: hidden;background-color: #e5e5e5;"></li>
<div class="checkbox-custom checkbox-default"> <li ng-repeat="i in companyList">
<input type="checkbox" ng-model="i.checked" ng-change="selectOne()" <div class="checkbox-custom checkbox-default">
ng-checked="selectedOne" <input type="checkbox" ng-model="i.checked" ng-change="selectOne()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> ng-checked="selectedOne"
<span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
</div> <span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span>
</li> </div>
</ul> </li>
</div> </ul>
<span class="text-bold" translate="InvoiceQJ"></span>: </div>-->
<div class="period-picker" style="margin-left:10px"> <label class="text-bold" translate="InvoiceQJ"><span>:</span></label>
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <div class="period-picker" style="display: inline-block">
readonly="readonly" ng-model="UploadPeriodTime"/> <input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader"
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> style="width:120px;"
</div> readonly="readonly" ng-model="UploadPeriodTime"/>
<div ng-show="fileName" style="display:inline-block"> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> </div>
</div> <div ng-show="fileName" style="display:inline-block">
</div> <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
<div style = "width:40%; margin-top: 10px;" class="col-sm-6 rightNav"> </div>
<button type="button" </div>
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" <div class="form-group">
ngf-allow-dir="false" class="btn btn-vat-third" > <button type="button"
{{'SelectFile' | translate}} ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'"
</button> accept=".xls,.xlsx" ngf-multiple="false"
<button type="button" ngf-allow-dir="false" class="btn btn-vat-third">
class="btn btn-vat-primary" {{'SelectFile' | translate}}
translate="TemplateBtn" </button>
ng-click="downloadTemplate()"></button> <button type="button"
class="btn btn-vat-primary"
<button type="button" translate="TemplateBtn"
class="btn btn-vat-primary topButton" ng-click="downloadTemplate()"></button>
translate="AddImportBtn"
ng-click="doUploadCIL(importEnum.AddImport)"></button>
<button type="button" <button type="button"
class="btn btn-vat-primary topButton" class="btn btn-vat-primary "
translate="CoverImportBtn" translate="AddImportBtn"
ng-click="doUploadCIL(importEnum.CoverImport)"></button> ng-click="doUploadCIL(importEnum.AddImport)"></button>
</div>
</div>
</div> <button type="button"
class="btn btn-vat-primary "
translate="CoverImportBtn"
ng-click="doUploadCIL(importEnum.CoverImport)"></button>
</div> </div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div class="dx-viewport grid-container">
<div id="importCILStatusGridContainer" dx-data-grid="importCILStatusGridOptions" <div id="importCILStatusGridContainer" dx-data-grid="importCILStatusGridOptions"
...@@ -90,7 +90,9 @@ ...@@ -90,7 +90,9 @@
<script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup"> <script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup">
<div class="modal-header"> <div class="modal-header">
<div class="modal-title" style="margin-bottom:10px"> <div class="modal-title" style="margin-bottom:10px">
{{remarksTitle}}<i class="fa fa-times" aria-hidden="true" style="float: right; font-size: 11px; color: #CF2D1B" ng-click="closePeriodSelectModal()"></i> {{remarksTitle}}<i class="fa fa-times" aria-hidden="true"
style="float: right; font-size: 11px; color: #CF2D1B"
ng-click="closePeriodSelectModal()"></i>
</div> </div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -413,7 +413,18 @@ ...@@ -413,7 +413,18 @@
} }
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
......
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<span class="text-bold" translate="SelectedOrganization"></span>: <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
</div>
<!--<span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width:200px;">
...@@ -30,50 +32,54 @@ ...@@ -30,50 +32,54 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div class="form-group">
<span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="display: inline-block">
<input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <button type="button"
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
readonly="readonly" ng-model="UploadPeriodTime"/> ngf-allow-dir="false" class="btn btn-vat-third" style="margin-top: 8px;">
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> {{'SelectFile' | translate}}
</div> </button>
<div ng-show="fileName" style="display:inline-block"> <button type="button"
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
</div> translate="TemplateBtn"
<button type="button" ng-click="downloadTemplate()"></button>
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px"> <button type="button"
{{'SelectFile' | translate}} class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
</button> translate="AddImportBtn"
<button type="button" ng-click="importFile(importEnum.AddImport)"></button>
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="TemplateBtn" <button type="button"
ng-click="downloadTemplate()"></button> class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
<button type="button" ng-click="importFile(importEnum.CoverImport)"></button>
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" </div>
translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button" <div class="form-group">
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
translate="CoverImportBtn" <button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
ng-click="importFile(importEnum.CoverImport)"></button> permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn"> permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf" translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div> </div>
</div>
</div>
<!--分页栏--> <!--分页栏-->
<!--<div class="form-group page-form-group" ng-show="!fileName"> <!--<div class="form-group page-form-group" ng-show="!fileName">
<div class="page-footer"> <div class="page-footer">
......
...@@ -424,6 +424,18 @@ ...@@ -424,6 +424,18 @@
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<span class="text-bold" translate="SelectedOrganization"></span>: <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
</div>
<!--<span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
...@@ -30,50 +32,54 @@ ...@@ -30,50 +32,54 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div class="form-group">
<span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="display: inline-block;">
<input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <button type="button"
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
readonly="readonly" ng-model="UploadPeriodTime"/> ngf-allow-dir="false" class="btn btn-vat-third" style="margin-top: 8px;">
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> {{'SelectFile' | translate}}
</div> </button>
<div ng-show="fileName" style="display:inline-block"> <button type="button"
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
</div> translate="TemplateBtn"
<button type="button" ng-click="downloadTemplate()"></button>
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px"> <button type="button"
{{'SelectFile' | translate}} class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
</button> translate="AddImportBtn"
<button type="button" ng-click="importFile(importEnum.AddImport)"></button>
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="TemplateBtn" <button type="button"
ng-click="downloadTemplate()"></button> class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
<button type="button" ng-click="importFile(importEnum.CoverImport)"></button>
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
ng-click="importFile(importEnum.CoverImport)"></button>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div> </div>
</div>
</div>
<div class="form-group">
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div>
<!--分页栏--> <!--分页栏-->
<!--<div class="form-group page-form-group" ng-show="!fileName"> <!--<div class="form-group page-form-group" ng-show="!fileName">
<div class="page-footer"> <div class="page-footer">
......
...@@ -416,6 +416,18 @@ ...@@ -416,6 +416,18 @@
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<span class="text-bold" translate="SelectedOrganization"></span>: <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
</div>
<!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
...@@ -30,49 +32,53 @@ ...@@ -30,49 +32,53 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div class="form-group">
<span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="display: inline-block;">
<input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:10}}</span>
</div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <button type="button"
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
readonly="readonly" ng-model="UploadPeriodTime"/> ngf-allow-dir="false" class="btn btn-vat-third" style="margin-top: 8px;">
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> {{'SelectFile' | translate}}
</div> </button>
<div ng-show="fileName" style="display:inline-block"> <button type="button"
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:10}}</span> class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
ng-click="importFile(importEnum.CoverImport)"></button>
</div>
<div class="form-group">
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div> </div>
<button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px">
{{'SelectFile' | translate}}
</button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
ng-click="importFile(importEnum.CoverImport)"></button>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div>
</div>
<!--分页栏--> <!--分页栏-->
<!--<div class="form-group page-form-group" ng-show="!fileName"> <!--<div class="form-group page-form-group" ng-show="!fileName">
......
...@@ -440,7 +440,18 @@ ...@@ -440,7 +440,18 @@
} }
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -5,10 +5,12 @@ ...@@ -5,10 +5,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<span class="text-bold" translate="SelectedOrganization"></span>: <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
</div>
<!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
...@@ -30,54 +32,60 @@ ...@@ -30,54 +32,60 @@
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>-->
<!--本年底、下年初的选择--> <!--本年底、下年初的选择-->
<span class="text-bold" translate="PreClassified"></span>: <div class="form-group">
<div class="option" style="display: inline-block"> <label class="text-bold" translate="PreClassified"><span>:</span></label>
<div id="endBeginButton" dx-select-box="endBeginOptions" style="width: 130px"></div> <div class="option" style="display: inline-block">
<div id="endBeginButton" dx-select-box="endBeginOptions" style="width: 130px"></div>
</div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <span class="text-bold" translate="InvoiceQJ"></span>:
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <div class="period-picker" style="display: inline-block;">
readonly="readonly" ng-model="UploadPeriodTime"/> <input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<div ng-show="fileName" style="display:inline-block"> <div class="form-group">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> <button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style=" margin-top: 8px;">
{{'SelectFile' | translate}}
</button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
ng-click="importFile(importEnum.CoverImport)"></button>
</div> </div>
<button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px">
{{'SelectFile' | translate}} <div class="form-group">
</button> <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button type="button" <button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="TemplateBtn" translate="ConverImportBtn"
ng-click="downloadTemplate()"></button> ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
<button type="button" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
translate="AddImportBtn" </div>
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="CoverImportBtn"
ng-click="importFile(importEnum.CoverImport)"></button>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div> </div>
</div>
</div>
<!--分页栏--> <!--分页栏-->
<!--<div class="form-group page-form-group" ng-show="!fileName"> <!--<div class="form-group page-form-group" ng-show="!fileName">
......
...@@ -418,6 +418,19 @@ ...@@ -418,6 +418,19 @@
} }
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
......
...@@ -5,74 +5,81 @@ ...@@ -5,74 +5,81 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<span class="text-bold" translate="SelectedOrganization"></span>: <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
<div class="dropdown" style="margin-left:10px"> </div>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <!--<span class="text-bold" translate="SelectedOrganization"></span>:
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> <div class="dropdown" style="margin-left:10px">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
<span class="caret" style="float: right "></span> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
</button> {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' |
<ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1"> translate)}}
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <span class="caret" style="float: right "></span>
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> </button>
<span style="margin-left:5px;float: left;">全选</span></li> <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<span style="margin-left:5px;float: left;">全选</span></li>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0;
overflow: hidden;background-color: #e5e5e5;"></li> overflow: hidden;background-color: #e5e5e5;"></li>
<li ng-repeat="i in companyList"> <li ng-repeat="i in companyList">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<input type="checkbox" ng-model="i.checked" ng-change="selectOne()" <input type="checkbox" ng-model="i.checked" ng-change="selectOne()"
ng-checked="selectedOne" ng-checked="selectedOne"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
<span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span> <span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>-->
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <span class="text-bold" translate="InvoiceQJ"></span>:
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <div class="period-picker" style="display: inline-block;">
readonly="readonly" ng-model="UploadPeriodTime"/> <input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
</div> </div>
<div ng-show="fileName" style="display:inline-block"> <div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div> </div>
<button type="button" <div class="form-group">
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" <button type="button"
ngf-allow-dir="false" class="btn btn-vat-third" style="margin-right:10px;margin-left:30px"> ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
{{'SelectFile' | translate}} ngf-allow-dir="false" class="btn btn-vat-third" style="margin-top: 8px;">
</button> {{'SelectFile' | translate}}
<button type="button" </button>
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" <button type="button"
translate="TemplateBtn" class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
ng-click="downloadTemplate()"></button> translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" <button type="button"
translate="AddImportBtn" class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
ng-click="importFile(importEnum.AddImport)"></button> translate="AddImportBtn"
ng-click="importFile(importEnum.AddImport)"></button>
<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" <button type="button"
translate="CoverImportBtn" class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
ng-click="importFile(importEnum.CoverImport)"></button> translate="CoverImportBtn"
ng-click="importFile(importEnum.CoverImport)"></button>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div> </div>
</div>
</div>
<div class="form-group">
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ConverImportBtn"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>|
<button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div>
</div>
<!--分页栏--> <!--分页栏-->
<!--<div class="form-group page-form-group" ng-show="!fileName"> <!--<div class="form-group page-form-group" ng-show="!fileName">
......
...@@ -464,6 +464,19 @@ ...@@ -464,6 +464,19 @@
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -9,11 +9,12 @@ ...@@ -9,11 +9,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="margin-bottom: -38px; width: 100%;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="col-sm-6 leftNav" style="width: 60%;"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
<span class="text-bold" translate="SelectedOrganization"></span>: </div>
<!--<span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" style="width:200px;" type="button" <button class="btn btn-default dropdown-toggle" style="width:200px;" type="button"
id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
...@@ -35,34 +36,33 @@ ...@@ -35,34 +36,33 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div class="form-group">
<label class="text-bold" translate="InvoiceQJ"><span>:</span></label>
<div class="period-picker" style="display: inline-block;">
<input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader"
style="width:120px;" readonly="readonly" ng-model="UploadPeriodTime" />
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileNameShow" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <button type="button" ngf-select="" type="file" ng-model="importExcelFile"
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
style="width:120px;" readonly="readonly" ng-model="UploadPeriodTime" /> ngf-allow-dir="false" class="btn btn-vat-third">
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> {{'SelectFile' | translate}}
</div> </button>
<div ng-show="fileNameShow" style="display:inline-block"> <button type="button" class="btn btn-vat-primary" translate="TemplateBtn"
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> ng-click="downloadTemplate()"></button>
</div>
</div>
<div class="col-sm-6 rightNav" style="width: 40%;margin-top: 10px;">
<button type="button" ngf-select="" type="file" ng-model="importExcelFile"
ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third">
{{'SelectFile' | translate}}
</button>
<button type="button" class="btn btn-vat-primary" translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button " class="btn btn-vat-primary topButton" translate="AddImportBtn"
ng-click="doUploadCPR(importEnum.AddImport)"></button>
<button type="button" class="btn btn-vat-primary topButton" translate="CoverImportBtn"
ng-click="doUploadCPR(importEnum.CoverImport)"></button>
<button type="button " class="btn btn-vat-primary topButton" translate="AddImportBtn"
ng-click="doUploadCPR(importEnum.AddImport)"></button>
<button type="button" class="btn btn-vat-primary topButton" translate="CoverImportBtn"
ng-click="doUploadCPR(importEnum.CoverImport)"></button>
</div>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn"> <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf" <button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
...@@ -72,9 +72,6 @@ ...@@ -72,9 +72,6 @@
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button> translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div> </div>
</div>
</div>
</div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
......
...@@ -384,7 +384,18 @@ ...@@ -384,7 +384,18 @@
var initPagingControl = function (totalItemsCount) { var initPagingControl = function (totalItemsCount) {
$scope.pagingOptions.totalItems = totalItemsCount; $scope.pagingOptions.totalItems = totalItemsCount;
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width: 100%; margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;"></div>
<div class="col-sm-6 leftNav " style="width: 60%;"> </div>
<span class="text-bold" translate="SelectedOrganization"></span>: <!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
...@@ -35,38 +35,33 @@ ...@@ -35,38 +35,33 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div class="form-group">
<span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="display: inline-block">
<input type="text" id="periodDatepicker" class=" form-control datepicker imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <button type="button"
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
readonly="readonly" ng-model="UploadPeriodTime"/> ngf-allow-dir="false" class="btn btn-vat-third" >
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> {{'SelectFile' | translate}}
</div> </button>
<div ng-show="fileName" style="display:inline-block"> <button type="button"
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> class="btn btn-vat-primary"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<button type="button"
class="btn btn-vat-primary topButton"
translate="CoverImportBtn"
ng-click="doUploadID(importEnum.CoverImport)"></button>
</div> </div>
</div>
<div class="col-sm-6 rightNav" style="width: 40%; margin-top: 10px;">
<button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" >
{{'SelectFile' | translate}}
</button>
<button type="button"
class="btn btn-vat-primary"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<!--<button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn"
ng-click="doUploadID(importEnum.AddImport)"></button>-->
<button type="button"
class="btn btn-vat-primary topButton"
translate="CoverImportBtn"
ng-click="doUploadID(importEnum.CoverImport)"></button>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn"> <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
<button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf" <button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf"
...@@ -76,11 +71,7 @@ ...@@ -76,11 +71,7 @@
<button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf" <button class="btn btn-vat-primary topButton" atms-permission permission-control-type="ngIf"
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button> translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div> </div>
</div>
</div>
</div>
</div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
......
...@@ -419,6 +419,19 @@ ...@@ -419,6 +419,19 @@
} }
}; };
//-------------------------------------kevin insert begin -------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------kevin insert end -------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -8,11 +8,12 @@ ...@@ -8,11 +8,12 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width: 100%; margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;"></div>
<div class="col-sm-6 col-xs-6 col-lg-6 leftNav" style="width: 60%;"> </div>
<!-- <div class="col-sm-6 col-xs-6 col-lg-6 leftNav" style="width: 60%;">
<span class="text-bold" translate="SelectedOrganization"></span>: <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
...@@ -36,41 +37,42 @@ ...@@ -36,41 +37,42 @@
</li> </li>
</ul> </ul>
</div> </div>
</div>-->
<div class="form-group">
<span class="text-bold" translate="InvoiceQJ"></span>: <span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="margin-left:10px"> <div class="period-picker" style="display: inline-block">
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;" <input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div> </div>
</div>
<div class="form-group">
<div ng-show="fileNameShow" style="display:inline-block"> <div ng-show="fileNameShow" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span> <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div> </div>
</div> </div>
<div class="col-sm-6 col-xs-6 col-lg-6 rightNav" style="width: 40%; margin-top: 10px" > <div class="form-group">
<button type="button" <button type="button"
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-allow-dir="false" class="btn btn-vat-third" > ngf-allow-dir="false" class="btn btn-vat-third" >
{{'SelectFile' | translate}} {{'SelectFile' | translate}}
</button> </button>
<button type="button" <button type="button"
class="btn btn-vat-primary" class="btn btn-vat-primary"
translate="TemplateBtn" translate="TemplateBtn"
ng-click="downloadTemplate()"></button> ng-click="downloadTemplate()"></button>
<button type="button" <button type="button"
class="btn btn-vat-primary topButton" class="btn btn-vat-primary "
translate="AddImportBtn" translate="AddImportBtn"
ng-click="doUploadIR(importEnum.AddImport)"></button> ng-click="doUploadIR(importEnum.AddImport)"></button>
<button type="button" <button type="button"
class="btn btn-vat-primary topButton" class="btn btn-vat-primary "
translate="CoverImportBtn" translate="CoverImportBtn"
ng-click="doUploadIR(importEnum.CoverImport)"></button> ng-click="doUploadIR(importEnum.CoverImport)"></button>
</div> </div>
</div>
</div>
</div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
......
...@@ -459,7 +459,18 @@ ...@@ -459,7 +459,18 @@
} }
}); });
}; };
//-------------------------------------------------kevin insert begin ---------------------------------------------
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
//-------------------------------------------------kevin insert end ---------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
......
...@@ -2,88 +2,91 @@ ...@@ -2,88 +2,91 @@
<!--标题--> <!--标题-->
<div class="nav-wrapper"> <div class="nav-wrapper">
<div class="nav-header" translate="ProfitLossTitle"></div> <div class="nav-header" translate="ProfitLossTitle"></div>
<div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab" ng-click="toggleErrorTab()"> <div class="alert alert-warning" style="width:400px;margin-bottom:5px;" ng-show="ImportErrorTab"
ng-click="toggleErrorTab()">
<i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}} <i class="fa fa-exclamation-circle" aria-hidden="true"></i>{{errorMsg}}
</div> </div>
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm" style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()" style="width: 100%;margin-bottom: -38px;"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="row"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;position: relative; top: 6px;"></div>
<div class="col-sm-6 leftNav" style="width: 60%;"> </div>
<span class="text-bold" translate="SelectedOrganization"></span>: <!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
{{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} {{checkedCompanyTypeList ? ((checkedCompanyTypeList)|limitString:maxTitleLength):('PleaseSelect' |
<span class="caret" style="float: right "></span> translate)}}
</button> <span class="caret" style="float: right "></span>
<ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1"> </button>
<li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()" <ul class="dropdown-menu" style="width: 380px;" aria-labelledby="dropdownMenu1">
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> <li><input type="checkbox" ng-model="selectedAll" ng-change="selectAll()"
<span style="margin-left:5px;float: left;">全选</span></li> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <span style="margin-left:5px;float: left;">全选</span></li>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0;
overflow: hidden;background-color: #e5e5e5;"></li> overflow: hidden;background-color: #e5e5e5;"></li>
<li ng-repeat="i in companyList"> <li ng-repeat="i in companyList">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<input type="checkbox" ng-model="i.checked" ng-change="selectOne()" <input type="checkbox" ng-model="i.checked" ng-change="selectOne()"
ng-checked="selectedOne" ng-checked="selectedOne"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
<span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span> <span style="margin-left:5px;text-align: left;float: left;">{{i.name}}</span>
</div>
</li>
</ul>
</div>
<span class="text-bold" translate="InvoiceQJ"></span>:
<div class="period-picker" style="margin-left:10px">
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:120px;"
readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
<div ng-show="fileName" style="display:inline-block">
<span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
</div>
</div> </div>
<div class="col-sm-6 rightNav" style="width: 40%; margin-top: 10px;"> </li>
<button type="button" </ul>
ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" </div>-->
ngf-allow-dir="false" class="btn btn-vat-third" > <div class="form-group">
{{'SelectFile' | translate}} <span class="text-bold" translate="InvoiceQJ"></span>:
</button> <div class="period-picker" style="display: inline-block">
<button type="button" <input type="text" id="periodDatepicker" class="datepicker imp-subheader form-control" style="width:120px;"
class="btn btn-vat-primary" readonly="readonly" ng-model="UploadPeriodTime"/>
translate="TemplateBtn" <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
ng-click="downloadTemplate()"></button> </div>
<div ng-show="fileName" style="display:inline-block">
<!-- <button type="button" <span title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:20}}</span>
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" </div>
translate="AddImportBtn" </div>
ng-click="doUploadPL(importEnum.AddImport)"></button>--> <div class="form-group">
<button type="button"
<button type="button" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'"
class="btn btn-vat-primary topButton" accept=".xls,.xlsx" ngf-multiple="false"
translate="CoverImportBtn" ngf-allow-dir="false" class="btn btn-vat-third">
ng-click="doUploadPL(importEnum.CoverImport)"></button> {{'SelectFile' | translate}}
</button>
<button type="button"
class="btn btn-vat-primary"
translate="TemplateBtn"
ng-click="downloadTemplate()"></button>
<!-- <button type="button"
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;"
translate="AddImportBtn"
ng-click="doUploadPL(importEnum.AddImport)"></button>-->
<button type="button"
class="btn btn-vat-primary "
translate="CoverImportBtn"
ng-click="doUploadPL(importEnum.CoverImport)"></button>
</div>
<div class="btn-wrapper" ng-if="!isShowImportTotalBtn"> <div class="form-group">
<button class="btn topButton btn-vat-primary" atms-permission permission-control-type="ngIf" <div class="btn-wrapper" ng-if="!isShowImportTotalBtn">
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" <button class="btn btn-vat-primary" atms-permission permission-control-type="ngIf"
translate="ConverImportBtn" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
ng-click="doUploadTbResult(importEnum.CoverImport)"></button>| translate="ConverImportBtn"
<button class=" topButton btn btn-vat-primary" atms-permission permission-control-type="ngIf" ng-click="doUploadTbResult(importEnum.CoverImport)"></button>
permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" |
translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button> <button class=" btn btn-vat-primary" atms-permission permission-control-type="ngIf"
</div> permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
</div> translate="AddImportBtn" ng-click="doUploadTbResult(importEnum.AddImport)"></button>
</div> </div>
</div> </div>
</div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
<div class="dx-viewport grid-container"> <div class="dx-viewport grid-container">
<div id="importPLStatusGridContainer" dx-data-grid="importPLStatusGridOptions" <div id="importPLStatusGridContainer" dx-data-grid="importPLStatusGridOptions"
...@@ -100,7 +103,9 @@ ...@@ -100,7 +103,9 @@
<script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup"> <script type="text/ng-template" id="tb-model-period-dropdown.html" class="tb-model-period-dropdow-popup">
<div class="modal-header"> <div class="modal-header">
<div class="modal-title" style="margin-bottom:10px"> <div class="modal-title" style="margin-bottom:10px">
{{remarksTitle}}<i class="fa fa-times" aria-hidden="true" style="float: right; font-size: 11px; color: #CF2D1B" ng-click="closePeriodSelectModal()"></i> {{remarksTitle}}<i class="fa fa-times" aria-hidden="true"
style="float: right; font-size: 11px; color: #CF2D1B"
ng-click="closePeriodSelectModal()"></i>
</div> </div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -230,33 +230,18 @@ ...@@ -230,33 +230,18 @@
}; };
/------------------------------------------kevin insert -----------------------------------------/ //-------------------------------------------------kevin insert begin ---------------------------------------------
//机构下拉设置
$scope.selectOrgOptions = {
displayExpr: 'name',
valueExpr: 'id',
width: '95%',
bindingOptions: {
value: 'checkedCompanyCodeList',
dataSource: 'companyList'
},
height: '30px',
placeholder: $translate.instant('PleaseSelected'),
showClearButton: true,
searchEnabled: true,
noDataText: $translate.instant('RevenueNoOrgData'),
showSelectionControls: true
};
var initCompanyList = function () { var exp = {
orgService.getOrgListByUserId().success(function (data) { showDropDownButton : true,
if (data) { bindingOptions : {
$scope.companyList = data; value : 'checkedCompanyCodeList',
} dataSource : 'companyList'
}); }
}; }
PWC.orgManySelect($scope, $translate, exp);
//----------------------------------------------------------------------------------------------- //-------------------------------------------------kevin insert end ---------------------------------------------
var getGridHeight = function () { var getGridHeight = function () {
if ($scope.isLoadComplete) { if ($scope.isLoadComplete) {
......
...@@ -65,11 +65,12 @@ ...@@ -65,11 +65,12 @@
</div> </div>
</div> </div>
</form>--> </form>-->
<form class="form-inline"> <form class="form-inline" style="margin-top: 10px;">
<div class="form-group" style="margin-bottom: -38px;width: 100%"> <div class="form-group">
<div class="import-wrapper"> <label class="text-bold" translate="SelectedOrganization" style=" top: -6px; position: relative;"><span>:</span></label>
<div class="col-sm-6 leftNav" style="width: 60%;"> <div dx-tag-box="selectOrgOptions" style="display: inline-block;"></div>
<span class="text-bold" translate="SelectedOrganization"></span>: </div>
<!-- <span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" style="width: 200px;" type="button" <button class="btn btn-default dropdown-toggle" style="width: 200px;" type="button"
id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;"> id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 200px;">
...@@ -91,13 +92,15 @@ ...@@ -91,13 +92,15 @@
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>-->
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <span class="text-bold" translate="InvoiceQJ"></span>:
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" <div class="period-picker" style="display: inline-block">
style="width:120px;" readonly="readonly" ng-model="UploadPeriodTime" /> <input type="text" id="periodDatepicker" class="datepicker form-control imp-subheader"
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> style="width:120px;" readonly="readonly" ng-model="UploadPeriodTime" />
</div> <i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
</div>
<!-- <label class="col-sm-2 control-label marTop">{{'SelectedOrganization' | translate}}:</label> <!-- <label class="col-sm-2 control-label marTop">{{'SelectedOrganization' | translate}}:</label>
<div class="col-sm-5 marTop"> <div class="col-sm-5 marTop">
<div dx-tag-box="selectOrgOptions" style="position: relative; left: 33px;"></div> <div dx-tag-box="selectOrgOptions" style="position: relative; left: 33px;"></div>
...@@ -108,24 +111,22 @@ ...@@ -108,24 +111,22 @@
readonly="readonly" ng-model="UploadPeriodTime"/> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style=" position: relative; right: relative; right: -100px; top: -26px;"></i> <i class="fa fa-calendar imp-subheader red-color" style=" position: relative; right: relative; right: -100px; top: -26px;"></i>
</div> --> </div> -->
</div> <div class="form-group">
<div class="col-sm-6 rightNav" style="margin-top: 10px; width: 40%"> <button type="button" ngf-select="" type="file" ng-model="importExcelFile"
<button type="button" ngf-select="" type="file" ng-model="importExcelFile" ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false"
ngf-drag-over-class="'dragover'" accept=".xls,.xlsx" ngf-multiple="false" ngf-allow-dir="false" class="btn btn-vat-third">
ngf-allow-dir="false" class="btn btn-vat-third"> {{'SelectFile' | translate}}
{{'SelectFile' | translate}} </button>
</button> <span ng-show="fileName" class="marTop"
<span ng-show="fileName" class="marTop" title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:10}}</span>
title="{{fileName}}">{{'FileName' | translate}}{{fileName | limitString:10}}</span> <button type="button" class="btn btn-vat-primary" translate="TemplateBtn"
<button type="button" class="btn btn-vat-primary" translate="TemplateBtn" ng-click="downloadTemplate()"></button>
ng-click="downloadTemplate()"></button> <button type="button" class="btn btn-vat-primary " translate="CoverImportBtn"
<button type="button" class="btn btn-vat-primary topButton" translate="CoverImportBtn" ng-click="doUploadRLIT(importEnum.CoverImport)"></button>
ng-click="doUploadRLIT(importEnum.CoverImport)"></button> <button type="button" class="btn btn-vat-primary " translate="AddImportBtn"
<button type="button" class="btn btn-vat-primary topButton" translate="AddImportBtn" ng-click="doUploadRLIT(importEnum.AddImport)"></button>
ng-click="doUploadRLIT(importEnum.AddImport)"></button> </div>
</div>
</div>
</div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
......
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
if (!Number.prototype.formatAmount) { if (!Number.prototype.formatAmount) {
Number.prototype.formatAmount = function (decPlaces, type) { Number.prototype.formatAmount = function (decPlaces, type) {
if(type){ if (type) {
return Number(decPlaces.toFixed(2)); return Number(decPlaces.toFixed(2));
} }
decPlaces = isNaN(decPlaces = Math.abs(decPlaces)) ? 2 : decPlaces; decPlaces = isNaN(decPlaces = Math.abs(decPlaces)) ? 2 : decPlaces;
var n = this.toFixed(decPlaces); var n = this.toFixed(decPlaces);
...@@ -132,9 +132,11 @@ ...@@ -132,9 +132,11 @@
} }
s = a.join("").replace(new RegExp("(\\d+)(\\d{" + d + "})\\d$"), "$1.$2"); s = a.join("").replace(new RegExp("(\\d+)(\\d{" + d + "})\\d$"), "$1.$2");
} if (b) s = s.substr(1); }
if (b) s = s.substr(1);
return (pm + s).replace(/\.$/, ""); return (pm + s).replace(/\.$/, "");
} return this + ""; }
return this + "";
}; };
...@@ -324,7 +326,7 @@ ...@@ -324,7 +326,7 @@
} }
value = new String(value); value = new String(value);
for (var i = 0, zeros = ''; i < (length - value.length) ; i++) { for (var i = 0, zeros = ''; i < (length - value.length); i++) {
zeros += '0'; zeros += '0';
} }
return zeros + value; return zeros + value;
...@@ -402,8 +404,18 @@ ...@@ -402,8 +404,18 @@
if (!Date.prototype.dateAdd) { if (!Date.prototype.dateAdd) {
Date.prototype.dateAdd = function (interval, number) { Date.prototype.dateAdd = function (interval, number) {
var d = this; var d = this;
var k = { 'y': 'FullYear', 'q': 'Month', 'm': 'Month', 'w': 'Date', 'd': 'Date', 'h': 'Hours', 'n': 'Minutes', 's': 'Seconds', 'ms': 'MilliSeconds' }; var k = {
var n = { 'q': 3, 'w': 7 }; 'y': 'FullYear',
'q': 'Month',
'm': 'Month',
'w': 'Date',
'd': 'Date',
'h': 'Hours',
'n': 'Minutes',
's': 'Seconds',
'ms': 'MilliSeconds'
};
var n = {'q': 3, 'w': 7};
eval('d.set' + k[interval] + '(d.get' + k[interval] + '()+' + ((n[interval] || 1) * number) + ')'); eval('d.set' + k[interval] + '(d.get' + k[interval] + '()+' + ((n[interval] || 1) * number) + ')');
return d; return d;
}; };
...@@ -915,7 +927,9 @@ ...@@ -915,7 +927,9 @@
} }
// Sort object keys // Sort object keys
data = _.chain(data).pairs().sortBy(function (x) { return x[0]; }).value(); data = _.chain(data).pairs().sortBy(function (x) {
return x[0];
}).value();
// Build new object // Build new object
data = _.object.apply(_, _.zip.apply(_, data)); data = _.object.apply(_, _.zip.apply(_, data));
...@@ -947,7 +961,9 @@ ...@@ -947,7 +961,9 @@
var chineseStr = ''; var chineseStr = '';
//分离金额后用的数组,预定义 //分离金额后用的数组,预定义
var parts; var parts;
if (money == '') { return ''; } if (money == '') {
return '';
}
money = parseFloat(money); money = parseFloat(money);
if (money >= maxNum) { if (money >= maxNum) {
//超出最大处理数字 //超出最大处理数字
...@@ -1034,7 +1050,9 @@ ...@@ -1034,7 +1050,9 @@
var chineseStr = ''; var chineseStr = '';
//分离金额后用的数组,预定义 //分离金额后用的数组,预定义
var parts; var parts;
if (money == '') { return ''; } if (money == '') {
return '';
}
money = parseFloat(money); money = parseFloat(money);
if (money >= maxNum) { if (money >= maxNum) {
//超出最大处理数字 //超出最大处理数字
...@@ -1128,9 +1146,10 @@ ...@@ -1128,9 +1146,10 @@
}, {}); }, {});
} }
}); });
}; }
;
PWC.warning = function(title, text, callback){ PWC.warning = function (title, text, callback) {
swal({ swal({
title: title, title: title,
text: text, text: text,
...@@ -1144,7 +1163,7 @@ ...@@ -1144,7 +1163,7 @@
}, },
callback); callback);
}; };
PWC.alert = function(title, text, callback){ PWC.alert = function (title, text, callback) {
swal({ swal({
title: title, title: title,
text: text, text: text,
...@@ -1160,7 +1179,7 @@ ...@@ -1160,7 +1179,7 @@
}; };
/------------------------------------------------kevin insert -----------------------------------/ /------------------------------------------------kevin insert -----------------------------------/
PWC.downloadCallBack = function(data,status, headers, fileName){ PWC.downloadCallBack = function (data, status, headers, fileName) {
var octetStreamMime = 'application/octet-stream'; var octetStreamMime = 'application/octet-stream';
var contentType = headers('content-type') || octetStreamMime; var contentType = headers('content-type') || octetStreamMime;
if (window.navigator.msSaveBlob) { if (window.navigator.msSaveBlob) {
...@@ -1183,7 +1202,38 @@ ...@@ -1183,7 +1202,38 @@
a.click(); a.click();
} }
} }
} };
/**
* @param scope angular 作用域
* @param translate 翻译器
*这里指定 dataSource 为 companyList
*/
PWC.orgManySelect = function (scope, translate, exp) {
var dataSource = "companyList";
var bindValue = "formParam.orgIds";
scope.selectOrgOptions = {
displayExpr: 'name',
valueExpr: 'id',
width: function() {
return window.innerWidth / 4.5;
},
bindingOptions: {
value: bindValue,
dataSource: dataSource
},
height: '35px',
placeholder: translate.instant('PleaseSelected'),
showClearButton: true,
searchEnabled: true,
noDataText: translate.instant('RevenueNoOrgData'),
showSelectionControls: true,
visible : true,
deferRendering : false
};
if(exp)
_.extend(scope.selectOrgOptions, exp);
};
/*-----------------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------------*/
})(window) })(window)
\ No newline at end of file
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
$scope.selectedPeriod = null; $scope.selectedPeriod = null;
$scope.showTotalSecondRow = false; $scope.showTotalSecondRow = false;
$scope.maxTitleLength = constant.maxButtonTitleLength; $scope.maxTitleLength = constant.maxButtonTitleLength;
$scope.companyList = []; $scope.companyList = [];
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
$scope.checkedCompanyCodeList = []; $scope.checkedCompanyCodeList = [];
...@@ -52,8 +51,6 @@ ...@@ -52,8 +51,6 @@
$scope.importExcelFile = null; $scope.importExcelFile = null;
$scope.UploadPeriodTime = null; $scope.UploadPeriodTime = null;
//写日志 //写日志
var logDto = { var logDto = {
ID: '', ID: '',
...@@ -288,6 +285,9 @@ ...@@ -288,6 +285,9 @@
ele1.datepicker("setDate", $scope.selectedDate); ele1.datepicker("setDate", $scope.selectedDate);
}; };
//-------------------------------------kevin insert begin -------------------------------------------
var initCompanyList = function () { var initCompanyList = function () {
orgService.getOrgListByUserId().success(function (data) { orgService.getOrgListByUserId().success(function (data) {
if (data) { if (data) {
...@@ -295,7 +295,36 @@ ...@@ -295,7 +295,36 @@
} }
}); });
}; };
var exp = {
showDropDownButton : true,
bindingOptions : {
value : 'checkedCompanyCodeList',
dataSource : 'companyList'
}
}
PWC.orgManySelect($scope, $translate, exp);
$scope.selectDataType = {
displayExpr: 'type',
valueExpr: 'code',
width: function() {
return window.innerWidth / 4.5;
},
bindingOptions: {
value: 'checkedFileCodeList',
dataSource: 'fileTypeList'
},
height: '30px',
placeholder: $translate.instant('PleaseSelected'),
showClearButton: true,
searchEnabled: true,
noDataText: $translate.instant('RevenueNoOrgData'),
showSelectionControls: true,
visible : true,
deferRendering : false
};
//-------------------------------------kevin insert end -------------------------------------------
$scope.selectOne = function () { $scope.selectOne = function () {
$scope.checkedCompanyList = []; $scope.checkedCompanyList = [];
angular.forEach($scope.companyList , function (i) { angular.forEach($scope.companyList , function (i) {
......
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
</div> </div>
<!--导航栏--> <!--导航栏-->
<div id="tab_total"> <div id="tab_total">
<form class="form-inline" id="navigationForm" name="navigationForm"> <form class="form-inline" id="navigationForm" name="navigationForm"style="margin-top: 10px;">
<div class="form-group" ng-style="setButtonWrapStyle()"> <!--<span class="text-bold" translate="SelectedOrganization"></span>:
<div class="import-wrapper">
<span class="text-bold" translate="SelectedOrganization"></span>:
<div class="dropdown" style="margin-left:10px"> <div class="dropdown" style="margin-left:10px">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 220px;"> data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 220px;">
...@@ -33,43 +31,53 @@ ...@@ -33,43 +31,53 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div class="form-group" style=" margin-top: 5px;">
<label class="control-label" translate="SelectedOrganization" style="position: relative; top: -9px;">:</label>
<div dx-tag-box="selectOrgOptions" style="display: inline-block; width: 300px!important;"></div>
</div> </div>
<span class="text-bold" translate="InvoiceQJ"></span>: <div class="form-group">
<div class="period-picker" style="margin-left:10px"> <label class="control-label" translate="InvoiceQJ"></label>:
<input type="text" id="periodDatepicker" class="datepicker imp-subheader" style="width:80px;" <div class="period-picker" style="margin-left:10px; display: inline-block">
readonly="readonly" ng-model="UploadPeriodTime"/> <input type="text" id="periodDatepicker" class="datepicker imp-subheader form-control"
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i> readonly="readonly" ng-model="UploadPeriodTime"/>
<i class="fa fa-calendar imp-subheader red-color" style="width:20px;"></i>
</div>
</div> </div>
<span class="text-bold" translate="SelectedDataType"></span>: <div class="form-group">
<div class="dropdown" style="margin-left:10px"> <label class="text-bold" translate="SelectedDataType" style=" position: relative; top: -5px;">:</label>
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" <!-- <div class="dropdown" style="margin-left:10px; display: inline-block">
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 180px;"> <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2"
{{checkedFileTypeList ? ((checkedFileTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}} data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style="width: 180px;">
<span class="caret" style="float: right "></span> {{checkedFileTypeList ? ((checkedFileTypeList)|limitString:maxTitleLength):('PleaseSelect' | translate)}}
</button> <span class="caret" style="float: right "></span>
<ul class="dropdown-menu" style="width: 180px;" aria-labelledby="dropdownMenu2"> </button>
<li><input type="checkbox" ng-model="selectedAllFileType" ng-change="selectAllFile()" <ul class="dropdown-menu" style="width: 180px;" aria-labelledby="dropdownMenu2">
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked> <li><input type="checkbox" ng-model="selectedAllFileType" ng-change="selectAllFile()"
<span style="margin-left:5px;float: left;">全选</span></li> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px" checked>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0; <span style="margin-left:5px;float: left;">全选</span></li>
<li role="separator" class="divider" style="height: 1px;margin: 9px 0;
overflow: hidden;background-color: #e5e5e5;"></li> overflow: hidden;background-color: #e5e5e5;"></li>
<li ng-repeat="i in fileTypeList"> <li ng-repeat="i in fileTypeList">
<div class="checkbox-custom checkbox-default"> <div class="checkbox-custom checkbox-default">
<input type="checkbox" ng-model="i.checked" ng-change="selectOneFileType()" <input type="checkbox" ng-model="i.checked" ng-change="selectOneFileType()"
ng-checked="selectedOneFile" ng-checked="selectedOneFile"
style="float: left;margin-left: 10px; margin-top: 7px; width: 15px"> style="float: left;margin-left: 10px; margin-top: 7px; width: 15px">
<span style="margin-left:5px;">{{i.type}}</span> <span style="margin-left:5px;">{{i.type}}</span>
</div> </div>
</li> </li>
</ul> </ul>
</div>-->
<div dx-tag-box="selectDataType" style="display: inline-block; position: relative; top: 5px;"></div>
</div> </div>
<button type="button" atms-permission permission-control-type="ngIf" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}" <div class="form-group">
class="btn btn-vat-primary" style="float:right; margin-right: 10px;margin-left: 30px;margin-top: 8px;" <button type="button" atms-permission permission-control-type="ngIf" permission-code="{{$root.vatPermission.dataImport.balanceSheet.importCode}}"
translate="ImportBtn" class="btn btn-vat-primary form-control"
ng-click="callInvoiceApi()"></button> translate="ImportBtn"
</div> ng-click="callInvoiceApi()"></button>
</div> </div>
</form> </form>
<div class="dt-init-wrapper"> <div class="dt-init-wrapper">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment