Commit a07dcfd0 authored by eddie.woo's avatar eddie.woo

Merge branch 'dev_oracle' of http://code.tech.tax.asia.pwcinternal.com/root/atms into dev_oracle

parents 832bdea2 ebf3c7d4
...@@ -192,7 +192,8 @@ public class JXFP extends FunctionBase implements FreeRefFunction { ...@@ -192,7 +192,8 @@ public class JXFP extends FunctionBase implements FreeRefFunction {
} }
private static Date strToDate(String strDate) { private static Date strToDate(String strDate) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMM"); strDate = strDate + 15;
SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
ParsePosition pos = new ParsePosition(0); ParsePosition pos = new ParsePosition(0);
Date strtodate = formatter.parse(strDate, pos); Date strtodate = formatter.parse(strDate, pos);
return strtodate; return strtodate;
......
...@@ -2171,9 +2171,9 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>'); ...@@ -2171,9 +2171,9 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>');
var tabs = [ var tabs = [
{id: 0, text: $translate.instant('AutoCalculateTab')}, {id: 0, text: $translate.instant('AutoCalculateTab')},
{id: 1, text: $translate.instant('ManualInputTab')}, {id: 1, text: $translate.instant('ManualInputTab')}
// {id: 2, text: $translate.instant('ModelTab')}, // {id: 2, text: $translate.instant('ModelTab')},
{id: 2, text: $translate.instant('ValidationTab')} // {id: 2, text: $translate.instant('ValidationTab')}
]; ];
$scope.tabOptions = { $scope.tabOptions = {
dataSource: tabs, dataSource: tabs,
......
...@@ -15,13 +15,11 @@ frameworkModule.controller('appSideBarController', ['$scope', '$log', 'menuServi ...@@ -15,13 +15,11 @@ frameworkModule.controller('appSideBarController', ['$scope', '$log', 'menuServi
menuService.getMenusForDisplay(1).success(function (menuData) { menuService.getMenusForDisplay(1).success(function (menuData) {
$scope.menuData = menuData; $scope.menuData = menuData;
if ($scope.specialUser === 'simon') { $scope.menuData[2].subMenus[0].isVisible = true;
$scope.menuData[2].subMenus[0].isVisible = false; $scope.menuData[2].subMenus[1].isVisible = false;
$scope.menuData[2].subMenus[1].isVisible = false; $scope.menuData[2].subMenus[3].isVisible = false;
$scope.menuData[2].subMenus[3].isVisible = false; $scope.menuData[2].subMenus[4].isVisible = true;
$scope.menuData[2].subMenus[4].isVisible = false; $scope.menuData[2].subMenus[5].isVisible = true;
$scope.menuData[2].subMenus[5].isVisible = false;
}
$window.location.href = '#/adminHomePage'; $window.location.href = '#/adminHomePage';
}); });
}, 500); }, 500);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment