12345678910111213141516171819202122232425262728 |
- angular.module('push')
- .controller('chooseUnitTypeCtrl', function ($scope, UtilService, accountModel) {
- if($scope.app){
- $scope.setStatusBar(0);
- }
- $scope.orgtypelist = accountModel.getOrgtypeList();
- var orgtype = -1;
- angular.forEach($scope.orgtypelist, function (val, ind) {
- val.selind = 0;
- });
- $scope.selectOrgType = function (orgt, index) {
- angular.forEach($scope.orgtypelist, function (val, ind) {
- val.selind = 0;
- });
- $scope.orgtypelist[index].selind = 1;
- orgtype = orgt;
- };
- $scope.goUnitIdentify = function () {
- if(orgtype == -1){
- UtilService.showMess("请选择单位类型!");
- return;
- }
- $scope.go("unitIdentify", {orgtype: orgtype});
- }
- });
|