Commit ca66441320db8cb5b1c4f963d2f35523ec5f96eb
Merge branch 'Develop-IPAD-MAC' into QA-IPAD-MAC
Showing
3 changed files
with
58 additions
and
41 deletions
400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs
@@ -328,8 +328,8 @@ namespace AIAHTML5.API.Models | @@ -328,8 +328,8 @@ namespace AIAHTML5.API.Models | ||
328 | { | 328 | { |
329 | conn = new SqlConnection(dbConnectionString); | 329 | conn = new SqlConnection(dbConnectionString); |
330 | cmd = new SqlCommand(); | 330 | cmd = new SqlCommand(); |
331 | - cmd.Connection = conn; | ||
332 | conn.Open(); | 331 | conn.Open(); |
332 | + cmd.Connection = conn; | ||
333 | cmd.CommandText = DBConstants.UPDATE_USER_PASSWORD; | 333 | cmd.CommandText = DBConstants.UPDATE_USER_PASSWORD; |
334 | cmd.CommandType = CommandType.StoredProcedure; | 334 | cmd.CommandType = CommandType.StoredProcedure; |
335 | cmd.Parameters.AddWithValue("@sLoginId", loginId); | 335 | cmd.Parameters.AddWithValue("@sLoginId", loginId); |
@@ -483,8 +483,8 @@ namespace AIAHTML5.API.Models | @@ -483,8 +483,8 @@ namespace AIAHTML5.API.Models | ||
483 | { | 483 | { |
484 | conn = new SqlConnection(dbConnectionString); | 484 | conn = new SqlConnection(dbConnectionString); |
485 | cmd = new SqlCommand(); | 485 | cmd = new SqlCommand(); |
486 | - cmd.Connection = conn; | ||
487 | conn.Open(); | 486 | conn.Open(); |
487 | + cmd.Connection = conn; | ||
488 | cmd.CommandText = DBConstants.UPDATE_LICENSE_TERM_STATUS; | 488 | cmd.CommandText = DBConstants.UPDATE_LICENSE_TERM_STATUS; |
489 | cmd.CommandType = CommandType.StoredProcedure; | 489 | cmd.CommandType = CommandType.StoredProcedure; |
490 | cmd.Parameters.AddWithValue("@sAccountNumber", accountNumber); | 490 | cmd.Parameters.AddWithValue("@sAccountNumber", accountNumber); |
@@ -543,8 +543,8 @@ namespace AIAHTML5.API.Models | @@ -543,8 +543,8 @@ namespace AIAHTML5.API.Models | ||
543 | { | 543 | { |
544 | conn = new SqlConnection(dbConnectionString); | 544 | conn = new SqlConnection(dbConnectionString); |
545 | cmd = new SqlCommand(); | 545 | cmd = new SqlCommand(); |
546 | - cmd.Connection = conn; | ||
547 | conn.Open(); | 546 | conn.Open(); |
547 | + cmd.Connection = conn; | ||
548 | cmd.CommandText = DBConstants.INSERT_LOGIN_DETAIL; | 548 | cmd.CommandText = DBConstants.INSERT_LOGIN_DETAIL; |
549 | cmd.CommandType = CommandType.StoredProcedure; | 549 | cmd.CommandType = CommandType.StoredProcedure; |
550 | cmd.Parameters.AddWithValue("@iUserId", userId); | 550 | cmd.Parameters.AddWithValue("@iUserId", userId); |
@@ -572,8 +572,8 @@ namespace AIAHTML5.API.Models | @@ -572,8 +572,8 @@ namespace AIAHTML5.API.Models | ||
572 | { | 572 | { |
573 | conn = new SqlConnection(dbConnectionString); | 573 | conn = new SqlConnection(dbConnectionString); |
574 | cmd = new SqlCommand(); | 574 | cmd = new SqlCommand(); |
575 | - cmd.Connection = conn; | ||
576 | conn.Open(); | 575 | conn.Open(); |
576 | + cmd.Connection = conn; | ||
577 | cmd.CommandText = DBConstants.INSERT_INCORRECT_LOGIN_ATTEMPTS; | 577 | cmd.CommandText = DBConstants.INSERT_INCORRECT_LOGIN_ATTEMPTS; |
578 | cmd.CommandType = CommandType.StoredProcedure; | 578 | cmd.CommandType = CommandType.StoredProcedure; |
579 | cmd.Parameters.AddWithValue("@iUserId", userId); | 579 | cmd.Parameters.AddWithValue("@iUserId", userId); |
@@ -637,8 +637,8 @@ namespace AIAHTML5.API.Models | @@ -637,8 +637,8 @@ namespace AIAHTML5.API.Models | ||
637 | { | 637 | { |
638 | conn = new SqlConnection(dbConnectionString); | 638 | conn = new SqlConnection(dbConnectionString); |
639 | cmd = new SqlCommand(); | 639 | cmd = new SqlCommand(); |
640 | - cmd.Connection = conn; | ||
641 | conn.Open(); | 640 | conn.Open(); |
641 | + cmd.Connection = conn; | ||
642 | cmd.CommandText = DBConstants.UPDATE_INCORRECT_LOGIN_ATTEMPTS; | 642 | cmd.CommandText = DBConstants.UPDATE_INCORRECT_LOGIN_ATTEMPTS; |
643 | cmd.CommandType = CommandType.StoredProcedure; | 643 | cmd.CommandType = CommandType.StoredProcedure; |
644 | cmd.Parameters.AddWithValue("@iUserId", userId); | 644 | cmd.Parameters.AddWithValue("@iUserId", userId); |
@@ -665,8 +665,8 @@ namespace AIAHTML5.API.Models | @@ -665,8 +665,8 @@ namespace AIAHTML5.API.Models | ||
665 | { | 665 | { |
666 | conn = new SqlConnection(dbConnectionString); | 666 | conn = new SqlConnection(dbConnectionString); |
667 | cmd = new SqlCommand(); | 667 | cmd = new SqlCommand(); |
668 | - cmd.Connection = conn; | ||
669 | conn.Open(); | 668 | conn.Open(); |
669 | + cmd.Connection = conn; | ||
670 | cmd.CommandText = DBConstants.DELETE_INCORRECT_LOGIN_ATTEMPTS; | 670 | cmd.CommandText = DBConstants.DELETE_INCORRECT_LOGIN_ATTEMPTS; |
671 | cmd.CommandType = CommandType.StoredProcedure; | 671 | cmd.CommandType = CommandType.StoredProcedure; |
672 | cmd.Parameters.AddWithValue("@iUserId", userId); | 672 | cmd.Parameters.AddWithValue("@iUserId", userId); |
@@ -724,8 +724,8 @@ namespace AIAHTML5.API.Models | @@ -724,8 +724,8 @@ namespace AIAHTML5.API.Models | ||
724 | { | 724 | { |
725 | conn = new SqlConnection(dbConnectionString); | 725 | conn = new SqlConnection(dbConnectionString); |
726 | cmd = new SqlCommand(); | 726 | cmd = new SqlCommand(); |
727 | - cmd.Connection = conn; | ||
728 | conn.Open(); | 727 | conn.Open(); |
728 | + cmd.Connection = conn; | ||
729 | cmd.CommandText = DBConstants.INSERT_LOGIN_ERROR_LOG; | 729 | cmd.CommandText = DBConstants.INSERT_LOGIN_ERROR_LOG; |
730 | cmd.CommandType = CommandType.StoredProcedure; | 730 | cmd.CommandType = CommandType.StoredProcedure; |
731 | cmd.Parameters.AddWithValue("@nvAccountNumber", accountNumber); | 731 | cmd.Parameters.AddWithValue("@nvAccountNumber", accountNumber); |
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -290,6 +290,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -290,6 +290,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
290 | } | 290 | } |
291 | //to disbale layer change slider | 291 | //to disbale layer change slider |
292 | $('.ui-slider').slider('disable'); | 292 | $('.ui-slider').slider('disable'); |
293 | + document.getElementById('txtlayerNumber').style.pointerEvents = "none"; | ||
293 | 294 | ||
294 | $scope.isLoading = true; | 295 | $scope.isLoading = true; |
295 | $('#spinner').css('visibility', 'visible'); | 296 | $('#spinner').css('visibility', 'visible'); |
@@ -304,6 +305,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -304,6 +305,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
304 | } | 305 | } |
305 | //to enable layer change slider | 306 | //to enable layer change slider |
306 | $('.ui-slider').slider('enable'); | 307 | $('.ui-slider').slider('enable'); |
308 | + document.getElementById('txtlayerNumber').style.pointerEvents = "auto"; | ||
307 | 309 | ||
308 | $scope.isLoading = false; | 310 | $scope.isLoading = false; |
309 | 311 | ||
@@ -9525,33 +9527,23 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -9525,33 +9527,23 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
9525 | } | 9527 | } |
9526 | 9528 | ||
9527 | $scope.LayerChangeBasedOnKeyPressed = function (e) { | 9529 | $scope.LayerChangeBasedOnKeyPressed = function (e) { |
9528 | - // Dissectible Anatomy > Should not display blank page if no layer is selected. | ||
9529 | - | ||
9530 | - | ||
9531 | - if (e.keyCode == 13) { | ||
9532 | - | ||
9533 | - if ($("#txtlayerNumber").val() == '') { | ||
9534 | - | ||
9535 | - $("#txtlayerNumber").val($rootScope.PreviouslayerNumbr); | ||
9536 | - } | ||
9537 | - else { | ||
9538 | - $rootScope.PreviouslayerNumbr = $("#txtlayerNumber").val(); | ||
9539 | - $scope.LayerChange(); | ||
9540 | - } | ||
9541 | - | ||
9542 | - | ||
9543 | - } | ||
9544 | 9530 | ||
9545 | // 'x' button is displaying inside the input box in IE browser. | 9531 | // 'x' button is displaying inside the input box in IE browser. |
9546 | if (e.keyCode == 38) { | 9532 | if (e.keyCode == 38) { |
9547 | 9533 | ||
9548 | - | ||
9549 | var layerInputVal = $("#txtlayerNumber").val(); | 9534 | var layerInputVal = $("#txtlayerNumber").val(); |
9550 | - if (layerInputVal != $rootScope.totalLayers) { | 9535 | + |
9536 | + if (layerInputVal < $rootScope.totalLayers) { | ||
9537 | + | ||
9551 | var layerInputValInc = parseInt(layerInputVal) + 1; | 9538 | var layerInputValInc = parseInt(layerInputVal) + 1; |
9552 | $scope.layerNumber = parseInt(layerInputValInc); | 9539 | $scope.layerNumber = parseInt(layerInputValInc); |
9553 | $("#txtlayerNumber").val($scope.layerNumber); | 9540 | $("#txtlayerNumber").val($scope.layerNumber); |
9554 | $rootScope.PreviouslayerNumbr = $scope.layerNumber; | 9541 | $rootScope.PreviouslayerNumbr = $scope.layerNumber; |
9542 | + | ||
9543 | + } | ||
9544 | + else { | ||
9545 | + | ||
9546 | + $("#txtlayerNumber").val($rootScope.totalLayers); | ||
9555 | } | 9547 | } |
9556 | 9548 | ||
9557 | 9549 | ||
@@ -9559,12 +9551,14 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -9559,12 +9551,14 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
9559 | 9551 | ||
9560 | // 'x' button is displaying inside the input box in IE browser. | 9552 | // 'x' button is displaying inside the input box in IE browser. |
9561 | if (e.keyCode == 40) { | 9553 | if (e.keyCode == 40) { |
9554 | + | ||
9562 | var layerInputVal = $("#txtlayerNumber").val(); | 9555 | var layerInputVal = $("#txtlayerNumber").val(); |
9563 | if (layerInputVal > 0) { | 9556 | if (layerInputVal > 0) { |
9564 | var layerInputValDec = parseInt(layerInputVal) - 1; | 9557 | var layerInputValDec = parseInt(layerInputVal) - 1; |
9565 | $scope.layerNumber = parseInt(layerInputValDec); | 9558 | $scope.layerNumber = parseInt(layerInputValDec); |
9566 | $("#txtlayerNumber").val($scope.layerNumber); | 9559 | $("#txtlayerNumber").val($scope.layerNumber); |
9567 | $rootScope.PreviouslayerNumbr = $scope.layerNumber; | 9560 | $rootScope.PreviouslayerNumbr = $scope.layerNumber; |
9561 | + | ||
9568 | } | 9562 | } |
9569 | } | 9563 | } |
9570 | 9564 | ||
@@ -9573,31 +9567,54 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -9573,31 +9567,54 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
9573 | 9567 | ||
9574 | $scope.LayerValueChangeBasedOnKeyUp = function (e) { | 9568 | $scope.LayerValueChangeBasedOnKeyUp = function (e) { |
9575 | 9569 | ||
9576 | - var keyUplayerNumber = parseInt($("#txtlayerNumber").val()); | ||
9577 | - | ||
9578 | - if (isNaN(keyUplayerNumber)) | ||
9579 | - { | ||
9580 | - document.getElementById("txtlayerNumber").value = ""; | ||
9581 | - } | ||
9582 | - else { | ||
9583 | - | ||
9584 | - if (keyUplayerNumber > $rootScope.totalLayers) { | 9570 | + |
9571 | + if (e.keyCode == 13) { | ||
9585 | 9572 | ||
9586 | - $("#txtlayerNumber").val($rootScope.totalLayers); | ||
9587 | - $scope.layerNumber = parseInt($rootScope.totalLayers); | 9573 | + if ($("#txtlayerNumber").val() == '') { |
9588 | 9574 | ||
9575 | + $("#txtlayerNumber").val($rootScope.PreviouslayerNumbr); | ||
9589 | } | 9576 | } |
9590 | else { | 9577 | else { |
9591 | 9578 | ||
9592 | - $("#txtlayerNumber").val(keyUplayerNumber); | ||
9593 | - $scope.layerNumber = parseInt(keyUplayerNumber); | 9579 | + $rootScope.PreviouslayerNumbr = $("#txtlayerNumber").val(); |
9594 | 9580 | ||
9581 | + var keyUplayerNumber = parseInt($("#txtlayerNumber").val()); | ||
9595 | 9582 | ||
9596 | - } | 9583 | + if (isNaN(keyUplayerNumber)) { |
9584 | + document.getElementById("txtlayerNumber").value = ""; | ||
9585 | + } | ||
9586 | + else { | ||
9597 | 9587 | ||
9598 | - } | 9588 | + if (keyUplayerNumber > $rootScope.totalLayers) { |
9589 | + | ||
9590 | + $("#txtlayerNumber").val($rootScope.totalLayers); | ||
9591 | + $scope.layerNumber = parseInt($rootScope.totalLayers); | ||
9599 | 9592 | ||
9593 | + } | ||
9594 | + else { | ||
9600 | 9595 | ||
9596 | + $("#txtlayerNumber").val(keyUplayerNumber); | ||
9597 | + $scope.layerNumber = parseInt(keyUplayerNumber); | ||
9598 | + | ||
9599 | + | ||
9600 | + } | ||
9601 | + $scope.LayerChange(); | ||
9602 | + } | ||
9603 | + } | ||
9604 | + } | ||
9605 | + else { | ||
9606 | + var layerInputVal = $("#txtlayerNumber").val(); | ||
9607 | + | ||
9608 | + if (layerInputVal <= $rootScope.totalLayers) { | ||
9609 | + | ||
9610 | + $("#txtlayerNumber").val(layerInputVal); | ||
9611 | + | ||
9612 | + } | ||
9613 | + else { | ||
9614 | + | ||
9615 | + $("#txtlayerNumber").val($rootScope.totalLayers); | ||
9616 | + } | ||
9617 | + } | ||
9601 | } | 9618 | } |
9602 | 9619 | ||
9603 | 9620 |
400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html
@@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
55 | <li class="visible-xs"><a href="" ng-click="LogoutUser()">Logout</a></li> | 55 | <li class="visible-xs"><a href="" ng-click="LogoutUser()">Logout</a></li> |
56 | <li class="hidden-xs marginR5 logOut" data-toggle="tooltip" data-placement="top" title="Logout"><a href="" ng-click="LogoutUser()"><i class="fa fa-power-off"></i></a></li> | 56 | <li class="hidden-xs marginR5 logOut" data-toggle="tooltip" data-placement="top" title="Logout"><a href="" ng-click="LogoutUser()"><i class="fa fa-power-off"></i></a></li> |
57 | </ul> | 57 | </ul> |
58 | - <div id="imaginary_container"> | 58 | + <div id="imaginary_container" style="visibility:hidden"> |
59 | <div class="input-group stylish-input-group paddTop5 hidden-sm"> | 59 | <div class="input-group stylish-input-group paddTop5 hidden-sm"> |
60 | <input type="text" class="form-control width120" placeholder="Search"> | 60 | <input type="text" class="form-control width120" placeholder="Search"> |
61 | <span class="input-group-addon"> | 61 | <span class="input-group-addon"> |