12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- app.controller('StdNoticeEmsCtrl', [ '$rootScope', '$scope', '$http', '$location', '$q', '$timeout', '$sce', function($rootScope, $scope, $http, $location, $q, $timeout, $sce) {
- $scope.changeName = function($event) {
- if ($event.target.value == '' || $event.target.value.length < 3)
- return;
- // if ($event.keyCode == 13) {
- // $scope.queryJudge($.trim($event.target.value));
- // }
- }
-
- $scope.changeCertId = function($event) {
- if ($event.target.value == '' || $event.target.value.length < 3)
- return;
- // if ($event.keyCode == 13) {
- // $scope.queryJudge($.trim($event.target.value));
- // }
- }
-
- $scope.login = function() {
- var std_name = document.getElementById('std_name').value;
- var cert_id = document.getElementById('cert_id').value;
- if (!std_name) {
- alert('请输入姓名!');
- return;
- }
- if (!cert_id) {
- alert('请输入身份证!');
- return;
- }
- $scope.queryNotice($.trim(std_name),$.trim(cert_id));
- }
-
- $scope.queryNotice = function(std_name,cert_id) {
- $rootScope.ajaxRequest({
- url : '../std/notice/info.htm',
- data : {
- std_name : std_name,
- cert_id : cert_id
- }
- }, function(response) {
- $scope.stdNotice = response.map.StdNotice;
- })
- }
-
-
- $timeout(function() {
- $('#login_name').focus();
- // $scope.launchFullscreen();
- }, 100);
- } ]);
|