|
|
|
@ -92,6 +92,19 @@ define(['angular','../../analysis/org/analysis-org'], function (angular) {
|
|
|
|
|
var monthStr = $scope.params.year.getFullYear() + '-' + (('0' + mon).substr(-2));
|
|
|
|
|
$state.go('analysis_org.orgcommission.month', {monthStr: monthStr})
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
$scope.gotoMonth = function (mon) {
|
|
|
|
|
alert($scope.mon.monthstr);
|
|
|
|
|
var monthStr = $scope.params.year.getFullYear() + '-' + (('0' + mon).substr(-2));
|
|
|
|
|
$state.go('analysis_org.orgcommission.month', {monthStr: monthStr})
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.gotoReferrerMonth = function (mon) {
|
|
|
|
|
alert($scope.mon.monthstr);
|
|
|
|
|
var monthStr = $scope.params.year.getFullYear() + '-' + (('0' + mon).substr(-2));
|
|
|
|
|
$state.go('analysis_agent.agentcommission.month', {monthStr: monthStr})
|
|
|
|
|
};
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('orgCommissionMonthViewCtrl', ['$scope', 'monthData','$filter', function ($scope, monthData) {
|
|
|
|
|
$scope.monthData = monthData.data;
|
|
|
|
|