Commit 7467395507d3f4cb370e163d864241ed529efd3d

Authored by Birendra
2 parents cddb25ff a716b737

merge Merge branch 'SiteLicenseReportBug' into AIA_Develop

400-SOURCECODE/AIAHTML5.API/Constants/DBConstants.cs
... ... @@ -42,5 +42,6 @@ namespace AIAHTML5.API.Constants
42 42 public const string INSERT_EXPORTED_IMAGE = "usp_InsertExportedImage";
43 43 public const string GET_USER_DETAIL_BYLOGIN_AND_ACCOUNT = "usp_GetUserDetailsByLoginIdandAccount";
44 44 public const string GET_USER_LOGIN_STATUS = "usp_ManageUserLoginStatus";
  45 + public const string INSERT_SITE_LOGIN_LOG = "usp_InsertSiteLoginLog";
45 46 }
46 47 }
47 48 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.API/Controllers/ClientController.cs
... ... @@ -52,10 +52,6 @@ namespace AIAHTML5.API.Controllers
52 52 }
53 53 else
54 54 {
55   - //ser user = new User();
56   - //user.LoginFailureCauseId = AIAConstants.INVALID_CLIENT;
57   - //dynamic userinfo = user;
58   - //response = new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent(userInfo) };
59 55 logger.Debug("IVALID CLIENT");
60 56 response = new HttpResponseMessage { StatusCode = HttpStatusCode.OK, Content = new StringContent(AIAConstants.INVALID_CLIENT) };
61 57 }
... ...
400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs
... ... @@ -1239,21 +1239,6 @@ namespace AIAHTML5.API.Models
1239 1239 dt = new DataTable();
1240 1240 da.Fill(dt);
1241 1241  
1242   - //if (dt != null && dt.Rows.Count > 0)
1243   - //{
1244   - // siteUrl = new SiteUrl();
1245   - // foreach (DataRow dr in dt.Rows)
1246   - // {
1247   - // siteUrl.Id = Convert.ToInt32(dr["Id"]);
1248   - // siteUrl.SiteIp = dr["SiteIp"].ToString();
1249   - // siteUrl.SiteIpTo = dr["SiteIpTo"].ToString();
1250   - // siteUrl.SiteMasterIpTo = dr["SiteMasterIpTo"].ToString();
1251   - // siteUrl.IsMaster = Convert.ToInt32(dr["IsMaster"]);
1252   -
1253   - // }
1254   - //}
1255   -
1256   - //return siteUrl;
1257 1242 return dt;
1258 1243 }
1259 1244  
... ... @@ -1276,24 +1261,39 @@ namespace AIAHTML5.API.Models
1276 1261 dt = new DataTable();
1277 1262 da.Fill(dt);
1278 1263  
1279   - //if (dt != null && dt.Rows.Count > 0)
1280   - //{
1281   - // siteUrl = new SiteUrl();
1282   - // foreach (DataRow dr in dt.Rows)
1283   - // {
1284   - // siteUrl.Id = Convert.ToInt32(dr["Id"]);
1285   - // siteUrl.SiteIp = dr["SiteIp"].ToString();
1286   - // siteUrl.SiteIpTo = dr["SiteIpTo"].ToString();
1287   - // siteUrl.SiteMasterIpTo = dr["SiteMasterIpTo"].ToString();
1288   - // siteUrl.IsMaster = Convert.ToInt32(dr["IsMaster"]);
1289   -
1290   - // }
1291   - //}
1292   -
1293   - //return siteUrl;
1294 1264 return dt;
1295 1265  
1296 1266 }
  1267 + internal int InsertSiteLoginDetails(String strAcccountNumber, String strUrlReferer, string strEdition)
  1268 + {
  1269 + int result = 0;
  1270 + SqlConnection conn = null;
  1271 + try
  1272 + {
  1273 + conn = new SqlConnection(dbConnectionString);
  1274 + SqlCommand cmd = new SqlCommand();
  1275 + conn.Open();
  1276 + cmd.Connection = conn;
  1277 + cmd.CommandText = DBConstants.INSERT_SITE_LOGIN_LOG;
  1278 + cmd.CommandType = CommandType.StoredProcedure;
  1279 + cmd.Parameters.AddWithValue("@nvAccountNumber", strAcccountNumber);
  1280 + cmd.Parameters.AddWithValue("@nvReferalUrl", strUrlReferer);
  1281 + cmd.Parameters.AddWithValue("@nvEdition", strEdition);
  1282 + cmd.Parameters.AddWithValue("@nvHttpReferer", null);
  1283 + result = cmd.ExecuteNonQuery();
  1284 + }
  1285 + catch (SqlException ex)
  1286 + {
  1287 + logger.Fatal("Exception in InsertSiteLoginDetails for strAcccountNumber= " + strAcccountNumber + ", Exception= " + ex.Message + ", STACKTRACE=" + ex.StackTrace);
  1288 + throw;
  1289 + }
  1290 + finally
  1291 + {
  1292 + conn.Dispose();
  1293 + }
  1294 +
  1295 + return result;
  1296 + }
1297 1297 internal DataTable GetEditionsForModesty(int licenceId, int buildingLevelAcc)
1298 1298 {
1299 1299 logger.Debug(" inside GetEditionsForModesty for licenceId= " + licenceId);
... ...
400-SOURCECODE/AIAHTML5.API/Models/Users.cs
... ... @@ -507,38 +507,21 @@ namespace AIAHTML5.API.Models
507 507  
508 508 public static User ValidateSiteLogin(String strSiteIP, String strAcccountNumber, String strUrlReferer, string strEdition, int intSiteId)
509 509 {
510   - Int32 intUserId = 0;
511 510 bool isExpired = false;
512 511 User userInfo = null;
513   - //try {
514   - Int16 intErrorID = ErrorHelper.E_NO_ERROR;
515   - String strStatus = AIAConstants.STATUS_OK;
516   -
  512 +
517 513 int intLicenseId = 0;
518 514 int intEditionId = Convert.ToInt16(strEdition);
519 515  
520 516 DateTime dtLogDate = DateTime.Now;
521   - //strSiteIP = (String)objRequest.GetData(AIAConstants.SITE_IP);
522   - //strAcccountNumber = (String)objRequest.GetData(AIAConstants.ACCOUNT_NUMBER);
523   - //intEditionId = Convert.ToInt16(objRequest.GetData(AIAConstants.EDITION_ID));
524   - //strUrlReferer = (String)objRequest.GetData(AIAConstants.URL_REFERER);
525   - //strEdition = (String)objRequest.GetData(AIAConstants.EDITION_ID);
526   - //intSiteId = (Int32)objRequest.GetData(AIAConstants.SITE_ID);
527   - //AdminDAL.AdminDal.GetLicenseBySiteIdDataTable dtLicense = new ADAM.AIA50.AdminDAL.AdminDal.GetLicenseBySiteIdDataTable();
  517 +
528 518 if (string.IsNullOrEmpty(strAcccountNumber))
529 519 {
530   - //----logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.ACCOUNT_NUMBER_NOT_NULL, strSiteIP, strEdition, strUrlReferer);
531   - //intErrorID = ErrorHelper.E_ACCOUNT_NUMBER_NOT_NULL;
532   - //strStatus = AIAConstants.STATUS_NOT_OK;
533   -
534 520 userInfo.LoginFailureCauseId = ErrorHelper.E_ACCOUNT_NUMBER_NOT_NULL;
535 521 }
536 522 else if (string.IsNullOrEmpty(strEdition))
537 523 {
538 524 strEdition = "0";
539   - //----logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.EDITION_ID_NOT_NULL, strSiteIP, strEdition, strUrlReferer);
540   - //intErrorID = ErrorHelper.E_EDITION_ID_NOT_NULL;
541   - //strStatus = AIAConstants.STATUS_NOT_OK;
542 525 userInfo.LoginFailureCauseId = ErrorHelper.E_EDITION_ID_NOT_NULL;
543 526  
544 527 }
... ... @@ -548,10 +531,8 @@ namespace AIAHTML5.API.Models
548 531 DataTable dtLicense = objDBModel.GetLicenseBySiteId(intSiteId);
549 532 if (dtLicense.Rows.Count > 0)
550 533 {
551   - //foreach (DataRow licRow in dtLicense.Rows)
552   - //{
  534 +
553 535 DataRow licRow = dtLicense.Rows[0];
554   - //isExpired = LicenseHelper.IsLicenseExpired(licRow["Id"]);
555 536 userInfo = new User();
556 537 userInfo.LicenseInfo = AIAHTML5.API.Models.Users.getLicenseDetails(Convert.ToInt32(licRow["Id"]));
557 538  
... ... @@ -629,39 +610,26 @@ namespace AIAHTML5.API.Models
629 610  
630 611  
631 612 // get exported image detail
632   - //note: not tested
633 613 userInfo.UserExportImageDetail = getExportedImageDetail(userInfo.LicenseId);
634   -
  614 +
  615 + // insert login details
  616 + objDBModel.InsertSiteLoginDetails(strAcccountNumber, strSiteIP, strEdition);
  617 +
635 618 }
636 619 else
637 620 {
638   - // logAuthenticationTryForAccountNumber(strAcccountNumber, dtLogDate, ErrorHelper.LICENSE_INACTIVE, strSiteIP, Convert.ToString(intEditionId), strUrlReferer);
639   - // intErrorID = ErrorHelper.E_LICENCE_IS_INACTIVE;
640   - // strStatus = AIAConstants.STATUS_NOT_OK;
641 621 userInfo.LoginFailureCauseId = ErrorHelper.LICENSE_INACTIVE;
642 622 }
643 623 }
644 624 else
645 625 {
646 626  
647   - // intErrorID = ErrorHelper.E_EDITION_NOT_LINKED_WITH_SITE;
648   - // strStatus = AIAConstants.STATUS_NOT_OK;
649 627 userInfo.LoginFailureCauseId = ErrorHelper.E_EDITION_NOT_LINKED_WITH_SITE;
650 628 }
651   - //}
  629 +
652 630 }
653 631 }
654   - //objResponse.ErrorCode = intErrorID;
655   - //objResponse.Status = strStatus;
656   - //objResponse.ErrorDesc = ErrorHelper.GetInstance().GetErrorDescriptionHelper(intErrorID).ToString();
657   - //} catch (Exception objExp) {
658   - // objResponse.Status = GlobalConstant.STATUS_NOT_OK;
659   - // objResponse.ErrorCode = GlobalConstant.RUN_TIME_EXCEPTION;
660   - // objResponse.strErrorDesc = objExp.Message;
661   - //}
662   - //if (isExpired != null && (bool)isExpired["result"])
663   - // objResponse.strErrorDesc = objResponse.strErrorDesc.Replace("{0}", (string)isExpired["date"]);
664   - //return intUserId;
  632 +
665 633 return userInfo;
666 634 }
667 635  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
... ... @@ -311,7 +311,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
311 311 }
312 312 else
313 313 {
314   - $rootScope.errorMessage = "This Curriculum file is not supported! Please try again.";
  314 + $rootScope.errorMessage = AIAConstants.CB_FILE_FORMAT_ISSUE;
315 315 $("#messageModal").modal('show');
316 316 }
317 317  
... ... @@ -337,7 +337,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
337 337 $("#btnConvertOpen").removeAttr("style");
338 338 $("#btnImportOpen").css({"display":"none"}) ;
339 339 $("#btnConvertDownLoad").css({"display":"none"}) ;
340   - $rootScope.confirmMessage = "This curriculum is not completely converted to new format. Please contact ADAM or recreate it .\nDo you still want to open it?";
  340 + $rootScope.confirmMessage =AIAConstants.OPEN_CB_OLD_TO_NEW_ISSUE;
341 341 $timeout(function () {
342 342 $rootScope.newCurriculumObject=curriculumobject;
343 343 $("#cbMessageModal").modal('show');
... ... @@ -464,7 +464,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
464 464 }
465 465 else
466 466 {
467   - $rootScope.errorMessage = "This Curriculum file is not supported! Please try again.";
  467 + $rootScope.errorMessage = AIAConstants.CB_FILE_FORMAT_ISSUE;"";
468 468 $("#messageModal").modal('show');
469 469 }
470 470  
... ... @@ -481,7 +481,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
481 481 $("#btnConvertOpen").css({"display":"none"}) ;
482 482 $rootScope.newCurriculumObject=curriculumobject;
483 483 $rootScope.convertedfileName=myfileName;
484   - $rootScope.confirmMessage = "This curriculum is not completely converted to new format. Please contact ADAM or recreate it .\nDo you still want to save in new format?";
  484 + $rootScope.confirmMessage =AIAConstants.CONVERT_CB_OLD_TO_NEW_ISSUE;
485 485 $timeout(function () {
486 486 $("#cbMessageModal").modal('show');
487 487 }, 200);
... ... @@ -1451,7 +1451,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
1451 1451 }
1452 1452 else
1453 1453 {
1454   - $rootScope.errorMessage = "This Curriculum file is not supported! Please try again.";
  1454 + $rootScope.errorMessage = AIAConstants.CB_FILE_FORMAT_ISSUE;
1455 1455 $("#messageModal").modal('show');
1456 1456  
1457 1457 }
... ... @@ -1475,7 +1475,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
1475 1475 $("#btnConvertDownLoad").css({"display":"none"}) ;
1476 1476 $("#btnConvertOpen").css({"display":"none"}) ;
1477 1477 $rootScope.newCurriculumObject=curriculumobject;
1478   - $rootScope.confirmMessage = "This curriculum is not completely converted to new format. Please contact ADAM or recreate it .\nDo you still want to import it?";
  1478 + $rootScope.confirmMessage = AIAConstants.IMPORT_CB_OLD_TO_NEW_ISSUE;
1479 1479 $timeout(function () {
1480 1480 $("#cbMessageModal").modal('show');
1481 1481 }, 200);
... ... @@ -2421,7 +2421,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $
2421 2421 if (!annotation.hasOwnProperty(shapeStates) || !annotation.hasOwnProperty(paintCanvasState))
2422 2422 {
2423 2423 $rootScope.UnsaveCurriculum = true;
2424   - $rootScope.errorMessage = 'This slide has some legacy version annotations and also not compatible with new format. Please contact ADAM or recreate it.';
  2424 + $rootScope.errorMessage =AIAConstants.CB_OLD_SLIDE_ANNOTATION_ISSUE;
2425 2425 $("#messageModal").modal('show');
2426 2426 windowData.annotationData="";
2427 2427 }
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -622,16 +622,20 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
622 622 $("#helplinkId").append("<li><a target='_blank' href='" + aboutADAM + "'> About A.D.A.M. </li>");
623 623  
624 624 }
625   - $scope.EnableDisableExportImage=function()
  625 + $scope.DisableDemoAccountOption=function()
626 626 {
627 627 //enable export image for instructors edition and for superadmin .disable for demo/test user
628 628 if ((($rootScope.userData.EditionId == 1) || ($rootScope.userData.EditionId == 2) || ($rootScope.userData.EditionId == 0)) && ($rootScope.userData.UserTypeId != 8)) {
629 629  
630   - $('#exportImageAnchor').removeClass('exportImage');
631 630 }
632 631 else
633 632 {
  633 + //disable for demo user
634 634 $('#exportImageAnchor').addClass('exportImage');
  635 + $('#newCurriculumid').addClass('newCurriculum');
  636 + $("#printAVAnchor").addClass("PrintViewer");
  637 + $("#printAllAVAnchor").addClass("PrintViewer");
  638 + $("#printPreviewAnchor").addClass("PrintPreview");
635 639 }
636 640  
637 641 }
... ... @@ -2191,7 +2195,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2191 2195 $("#openPictureId").removeClass("OpenPitures");
2192 2196 $("#openAnimationId").removeClass("OpenPitures");
2193 2197 $rootScope.disableMenuoption = "disableMenuoption";
2194   - $rootScope.newCurriculum = "newCurriculum";
  2198 + $rootScope.ConvertCurriculum = "newCurriculum";
  2199 + $("#newCurriculumid").addClass("newCurriculum");
2195 2200 $rootScope.openCurriculum = "openCurriculum";
2196 2201 $rootScope.saveCurriculam = "saveCurriculam";
2197 2202 $("#printAVAnchor").removeClass("PrintViewer");
... ... @@ -2212,7 +2217,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2212 2217 $("#openPictureId").removeClass("OpenPitures");
2213 2218 $("#openAnimationId").removeClass("OpenPitures");
2214 2219 $rootScope.disableMenuoption = "disableMenuoption";
2215   - $rootScope.newCurriculum = "newCurriculum";
  2220 + $("#newCurriculumid").addClass("newCurriculum");
  2221 + $rootScope.ConvertCurriculum = "newCurriculum";
2216 2222 $rootScope.openCurriculum = "openCurriculum";
2217 2223 $rootScope.saveCurriculam = "saveCurriculam";
2218 2224 $("#printAVAnchor").removeClass("PrintViewer");
... ... @@ -2231,7 +2237,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2231 2237 $("#openPictureId").removeClass("OpenPitures");
2232 2238 $("#openAnimationId").removeClass("OpenPitures");
2233 2239 $rootScope.disableMenuoption = "disableMenuoption";
2234   - $rootScope.newCurriculum = "newCurriculum";
  2240 + $("#newCurriculumid").addClass("newCurriculum");
  2241 + $rootScope.ConvertCurriculum = "newCurriculum";
2235 2242 $rootScope.openCurriculum = "openCurriculum";
2236 2243 $rootScope.saveCurriculam = "saveCurriculam";
2237 2244 $("#printAVAnchor").removeClass("PrintViewer");
... ... @@ -2250,7 +2257,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2250 2257 $("#openPictureId").removeClass("OpenPitures");
2251 2258 $("#openAnimationId").removeClass("OpenPitures");
2252 2259 $rootScope.disableMenuoption = "disableMenuoption";
2253   - $rootScope.newCurriculum = "newCurriculum";
  2260 + $("#newCurriculumid").addClass("newCurriculum");
  2261 + $rootScope.ConvertCurriculum = "newCurriculum";
2254 2262 $rootScope.openCurriculum = "openCurriculum";
2255 2263 $rootScope.saveCurriculam = "saveCurriculam";
2256 2264 $("#printAVAnchor").addClass("PrintViewer");
... ... @@ -2263,7 +2271,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2263 2271 $("#openResourceId").addClass("openResources");
2264 2272 $("#annotationButton").addClass("disableMenuoption");
2265 2273 $("#Menuoptionid").addClass("disableMenuoption");
2266   - $rootScope.newCurriculum = "";
  2274 + $("#newCurriculumid").removeClass("newCurriculum");
  2275 + $rootScope.ConvertCurriculum = "";
2267 2276 $rootScope.openCurriculum = "";
2268 2277 $rootScope.saveCurriculam = "saveCurriculam";
2269 2278  
... ... @@ -2279,12 +2288,14 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2279 2288 //close while back from cb
2280 2289 $rootScope.CloseAnnotationTool();
2281 2290 $rootScope.CloseListManager();
  2291 + $scope.DisableDemoAccountOption();
2282 2292  
2283 2293 }
2284 2294 else if ($location.url() == "/curriculum-builder-detail") {
2285 2295 $("#fileMenuAnchor").removeClass("disableFileMenu");
2286 2296 $("#Menuoptionid").addClass("disableMenuoption");
2287   - $rootScope.newCurriculum = "";
  2297 + $("#newCurriculumid").removeClass("newCurriculum");
  2298 + $rootScope.ConvertCurriculum = "";
2288 2299 $rootScope.openCurriculum = "";
2289 2300 $rootScope.saveCurriculam = "";
2290 2301 $("#openResourceId").removeClass("openResources");
... ... @@ -2295,6 +2306,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2295 2306 $("#printAllAVAnchor").addClass("PrintViewer");
2296 2307 $("#printPreviewAnchor").addClass("PrintPreview");
2297 2308 $("#exportImageAnchor").addClass("exportImage");
  2309 + $scope.DisableDemoAccountOption();
2298 2310 }
2299 2311 else if ($location.url() == "/adam-images-detail") {
2300 2312 $("#annotationButton").removeClass("disableMenuoption");
... ... @@ -2308,7 +2320,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2308 2320 $("#openPictureId").removeClass("OpenPitures");
2309 2321 $("#openAnimationId").removeClass("OpenPitures");
2310 2322 $rootScope.disableMenuoption = "disableMenuoption";
2311   - $rootScope.newCurriculum = "newCurriculum";
  2323 + $("#newCurriculumid").addClass("newCurriculum");
  2324 + $rootScope.ConvertCurriculum = "newCurriculum";
2312 2325 $rootScope.openCurriculum = "openCurriculum";
2313 2326 $rootScope.saveCurriculam = "saveCurriculam";
2314 2327 $("#printAVAnchor").removeClass("PrintViewer");
... ... @@ -2328,7 +2341,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2328 2341 $("#openPictureId").removeClass("OpenPitures");
2329 2342 $("#openAnimationId").removeClass("OpenPitures");
2330 2343 $rootScope.disableMenuoption = "disableMenuoption";
2331   - $rootScope.newCurriculum = "newCurriculum";
  2344 + $("#newCurriculumid").addClass("newCurriculum");
  2345 + $rootScope.ConvertCurriculum = "newCurriculum";
2332 2346 $rootScope.openCurriculum = "openCurriculum";
2333 2347 $rootScope.saveCurriculam = "saveCurriculam";
2334 2348 $("#printAVAnchor").addClass("PrintViewer");
... ... @@ -2347,7 +2361,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2347 2361 $("#openPictureId").removeClass("OpenPitures");
2348 2362 $("#openAnimationId").removeClass("OpenPitures");
2349 2363 $rootScope.disableMenuoption = "disableMenuoption";
2350   - $rootScope.newCurriculum = "newCurriculum";
  2364 + $("#newCurriculumid").addClass("newCurriculum");
  2365 + $rootScope.ConvertCurriculum = "newCurriculum";
2351 2366 $rootScope.openCurriculum = "openCurriculum";
2352 2367 $rootScope.saveCurriculam = "saveCurriculam";
2353 2368 $("#printAVAnchor").addClass("PrintViewer");
... ... @@ -2441,12 +2456,13 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2441 2456 $("#optiontSetting").removeClass("disableSubMenu");
2442 2457  
2443 2458 $("#listManagerBody *").prop('disabled',false);
2444   -
  2459 +
  2460 + $('#exportImageAnchor').removeClass('exportImage');
2445 2461 $("#printAVAnchor").removeClass("PrintViewer");
2446 2462 $("#printAllAVAnchor").removeClass("PrintViewer");
2447 2463 $("#printPreviewAnchor").removeClass("PrintPreview");
2448 2464 $rootScope.panelNameWithCb = paneld;
2449   - $scope.EnableDisableExportImage();
  2465 + $scope.DisableDemoAccountOption();
2450 2466 }
2451 2467 else if(paneld.match('AAImagePanel'))
2452 2468 {
... ... @@ -2456,12 +2472,13 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2456 2472 $("#annotationToolBarOptions").removeClass("disableSubMenu");
2457 2473  
2458 2474 $("#listManagerBody *").prop('disabled',false);
2459   -
  2475 +
  2476 + $('#exportImageAnchor').removeClass('exportImage');
2460 2477 $("#printAVAnchor").removeClass("PrintViewer");
2461 2478 $("#printAllAVAnchor").removeClass("PrintViewer");
2462 2479 $("#printPreviewAnchor").removeClass("PrintPreview");
2463 2480 $rootScope.panelNameWithCb = paneld;
2464   - $scope.EnableDisableExportImage();
  2481 + $scope.DisableDemoAccountOption();
2465 2482 }
2466 2483 else if(paneld.match('aiImagePanel'))
2467 2484 {
... ... @@ -2469,11 +2486,12 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2469 2486 $("#Menuoptionid").removeClass("disableMenuoption");
2470 2487 $("#annotationToolBarOptions").removeClass("disableSubMenu");
2471 2488  
  2489 + $('#exportImageAnchor').removeClass('exportImage');
2472 2490 $("#printAVAnchor").removeClass("PrintViewer");
2473 2491 $("#printAllAVAnchor").removeClass("PrintViewer");
2474 2492 $("#printPreviewAnchor").removeClass("PrintPreview");
2475 2493 $rootScope.panelNameWithCb = paneld;
2476   - $scope.EnableDisableExportImage();
  2494 + $scope.DisableDemoAccountOption();
2477 2495 }
2478 2496 else if(paneld.match('picImagePanel'))
2479 2497 {
... ... @@ -2481,11 +2499,12 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2481 2499 $("#Menuoptionid").removeClass("disableMenuoption");
2482 2500 $("#annotationToolBarOptions").removeClass("disableSubMenu");
2483 2501  
  2502 + $('#exportImageAnchor').removeClass('exportImage');
2484 2503 $("#printAVAnchor").removeClass("PrintViewer");
2485 2504 $("#printAllAVAnchor").removeClass("PrintViewer");
2486 2505 $("#printPreviewAnchor").removeClass("PrintPreview");
2487 2506 $rootScope.panelNameWithCb = paneld;
2488   - $scope.EnableDisableExportImage();
  2507 + $scope.DisableDemoAccountOption();
2489 2508 }
2490 2509 else if(paneld.match('ciImagePanel'))
2491 2510 {
... ... @@ -2493,11 +2512,12 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
2493 2512 $("#Menuoptionid").removeClass("disableMenuoption");
2494 2513 $("#annotationToolBarOptions").removeClass("disableSubMenu");
2495 2514  
  2515 + $('#exportImageAnchor').removeClass('exportImage');
2496 2516 $("#printAVAnchor").removeClass("PrintViewer");
2497 2517 $("#printAllAVAnchor").removeClass("PrintViewer");
2498 2518 $("#printPreviewAnchor").removeClass("PrintPreview");
2499 2519 $rootScope.panelNameWithCb = paneld;
2500   - $scope.EnableDisableExportImage();
  2520 + $scope.DisableDemoAccountOption();
2501 2521 }
2502 2522 else if(paneld.match('caImagePanel'))
2503 2523 {
... ...
400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
... ... @@ -543,7 +543,12 @@ AIA.constant(&quot;AIAConstants&quot;, {
543 543 "PLEASE_ENTER_SEARCH_TEXT": "Please enter the text to search.",
544 544 "SETTINGS_SAVED": "Your current settings has been saved.",
545 545 "SETTING_SAVE_ERROR":"There is some error in saving your current settings. Please try after sometime.",
546   - "SAVE_ANIMATION_ERROR":"There is some error while saving your animation. Please try after sometime."
  546 + "SAVE_ANIMATION_ERROR":"There is some error while saving your animation. Please try after sometime.",
  547 + "CB_FILE_FORMAT_ISSUE":"This Curriculum file is not supported! Please try again.",
  548 + "CONVERT_CB_OLD_TO_NEW_ISSUE":"The system detected some legacy functionality in the selected curriculum that cannot be fully converted to the new format (.json). Please consider recreating the curriculum using the newer version of the curriculum builder, or contact ADAM.\nDo you want to proceed with the conversion?",
  549 + "OPEN_CB_OLD_TO_NEW_ISSUE":"The selected curriculum is in a legacy format. The system detected some legacy functionality in the curriculum that cannot be completely converted to the new format (.json), and it may not work correctly. Please consider recreating the curriculum using the newer version of the curriculum builder, or contact ADAM.\nDo you want to continue to open the curriculum?",
  550 + "IMPORT_CB_OLD_TO_NEW_ISSUE":"The selected curriculum is in a legacy format. The system detected some legacy functionality in the curriculum that cannot be completely converted to the new format (.json), and it may not work correctly. Please consider recreating the curriculum using the newer version of the curriculum builder, or contact ADAM.\nDo you want to continue to import the curriculum?",
  551 + "CB_OLD_SLIDE_ANNOTATION_ISSUE":"This slide contains some legacy version annotations that are not compatible with the newer format of the Curriculum Builder. Please consider recreating the curriculum using the newer version of the curriculum builder, or contact ADAM."
547 552 })
548 553  
549 554  
... ...
400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html
... ... @@ -11,8 +11,8 @@
11 11 <li ng-class="disableMenuoption"><a href="#">Open Test</a></li>
12 12 <li ng-class="disableMenuoption"><a href="#">Save Test As</a></li>
13 13 <li role="separator" class="divider"></li>
14   - <li ng-class="newCurriculum" ng-click="ConvertCurriculum()"><a href="#" >Convert Old To New Curriculum</a></li>
15   - <li ng-class="newCurriculum" ng-click="CreateNewCurriculum()"><a href="#" >New Curriculum</a></li>
  14 + <li ng-class="ConvertCurriculum" ng-click="ConvertCurriculum()"><a href="#" >Convert Curriculum (.sldshw to .json)</a></li>
  15 + <li id="newCurriculumid"><a href="#" ng-click="CreateNewCurriculum()" >New Curriculum</a></li>
16 16 <li ng-class="openCurriculum" ng-click="OpenExistingCurriculum($event)"><a href="#">Open Existing Curriculum</a></li>
17 17 <li ng-class="saveCurriculam" ng-click="saveCurricullam(false)"><a href="curriculum-builder-detail">Save Curriculum As</a></li>
18 18 <li role="separator" class="divider"></li>
... ...