Commit c48a3e8029ba755e35dee4b6c70680d1e9285ca9

Authored by Birendra Kumar
1 parent 003306bf

add new sp file for export image count

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -6,7 +6,7 @@ function ($rootScope, $scope, Modules, $log, $location, $timeout, DataService, A
6 6 //$scope.pageToOpen = {
7 7 // name: 'MainMenu'
8 8 //};
9   - $rootScope.pageToOpen = 'app/widget/MainMenu.html';
  9 + $rootScope.pageToOpen = 'app/widget/MainMenu.html';
10 10 $rootScope.currentBodyViewId;
11 11 $rootScope.currentActiveModuleTitle = 'Welcome to A.D.A.M. Interactive Anatomy';//Modules[0].Name;
12 12 $rootScope.currentActiveViewTitle;
... ...
500-DBDump/AIA-StoredProcedures/usp_GetCountExportedImage.sql 0 → 100644
1 1 Binary files /dev/null and b/500-DBDump/AIA-StoredProcedures/usp_GetCountExportedImage.sql differ
... ...
500-DBDump/AIA-StoredProcedures/usp_InsertExportedImage.sql 0 → 100644
  1 +USE [AIADatabaseV5]
  2 +GO
  3 +/****** Object: StoredProcedure [dbo].[usp_InsertExportedImage] Script Date: 9/16/2019 10:39:34 AM ******/
  4 +SET ANSI_NULLS ON
  5 +GO
  6 +SET QUOTED_IDENTIFIER ON
  7 +GO
  8 +
  9 +-- =============================================
  10 +-- Developer: <Birendra Kumar>
  11 +-- Create date: <8/05/2018>
  12 +-- Application :AIAHTML5
  13 +-- Description: <Insert exported image based on user id and License Id>
  14 +-- [dbo].[usp_InsertExportedImage] 42374,34148,'pqr','124.jpg','male enterior','DA'
  15 +
  16 +-- =============================================
  17 +CREATE PROCEDURE [dbo].[usp_InsertExportedImage]
  18 + -- Add the parameters for the stored procedure here
  19 + @UserId INT,@LicenseId INT,@ImageName nvarchar(2000),@OriginalFileName nvarchar(1000),@Title nvarchar(1000),@ModuleName nvarchar(1000)
  20 +AS
  21 +BEGIN
  22 + -- SET NOCOUNT ON added to prevent extra result sets from
  23 + SET NOCOUNT ON;
  24 + BEGIN TRY
  25 + BEGIN TRANSACTION
  26 +DECLARE @InsertMessage char(2);
  27 +DECLARE @Id INT;
  28 +SET @InsertMessage='OK';
  29 +
  30 +
  31 + INSERT INTO LicenseImageExportDetail (LicenseId,ImageName,ExportedDate,UserId,OriginalFileName,Title,ModuleName)
  32 + VALUES( @LicenseId, @ImageName,GETDATE(),@UserId,@OriginalFileName,@Title,@ModuleName)
  33 +
  34 +COMMIT
  35 + SELECT @InsertMessage as SPStatus ;
  36 + END TRY
  37 + BEGIN CATCH
  38 + IF @@TRANCOUNT > 0
  39 + ROLLBACK TRANSACTION
  40 + SELECT Error_Message() as SPStatus
  41 + END CATCH
  42 +
  43 +END
  44 +GO
... ...