Apply for Zend Framework Certification Training

AngularJs





$scope.usertransactionlist = function(flag){
if(flag == 0)
{
            
            $scope.searchParameter.user_id  = $('#userdata').val();
            $scope.searchParameter.user_type = $scope.selectUserTypeModel;
            $scope.searchParameter.billingsfilter_dateFrom  
                                             = $('#combillings_billingsfilter_dateFrom').val();
            $scope.searchParameter.billingsfilter_dateTo  
                                             = $('#combillings_billingsfilter_dateTo').val(); 
           
            $scope.supplierpopupusertext = $("#userdata :selected").text();
            $scope.supplierpopuptag = true;
            $scope.supplierpopuptext = $("#selectUserType :selected").text();
            $scope.fromdatepopuptag = true;
            $scope.fromdatepopuptext = jQuery('#combillings_billingsfilter_dateFrom').val();
            $scope.todatepopuptag = true;
            $scope.todatepopuptext = jQuery('#combillings_billingsfilter_dateTo').val();
   }
   var req = {
                    method: 'POST',
                    url: base_url+'/distributor/Creditmanagement/usertransactionlist/',
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    data: {user_id: $scope.searchParameter.user_id,
                        billingsfilter_dateFrom:$scope.searchParameter.billingsfilter_dateFrom,
                        billingsfilter_dateTo:$scope.searchParameter.billingsfilter_dateTo,
                        user_type:$scope.searchParameter.user_type
                    }
                    
}
$http(req).success(function (response, status, headers, config) {
               if (angular.isDefined(response.Status)) {
                        if (angular.isDefined(response.Status.status)) {
                            if (response.Status.status == 'success') {
                                
                                $scope.suppliertransactionlists = response.LedgerDetail;
                                $scope.notfound = 1;

                               
                            }
                            if (response.Status.status == 'failure') {
                                
                                $scope.suppliertransactionlists = [];
                            }
                        }
                    }

                                     
 }).error(function (data, status, headers, config) {
                    
                    
                    //error
                });
       //$scope.setsupplerdetail();
};                                   

< Using AngularJs Call data From Text File In Json format Last >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top