NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

IF EXISTS (SELECT 1 FROM sysobjects WHERE name = 'pr_grfp_subt_ref_ltr'
AND uid=user_id('flp'))
DROP PROC flp.pr_grfp_subt_ref_ltr

GO

/****************************************************************************
* Name: pr_grfp_subt_ref_ltr
*
* Author: AGOUD
*
* Purpose: Inserts reference letter letter path
*
* Modification Log:
* Date changed By Comments
* ------------ -------------- -------------------------------------
* 07/16/2007 Anand Goud Initial Creation
* 06/11/2012 Radhika Banda removed ref_ltr_cond_flag in update query as of DIS00089937 Reference Writer: redesign the upload process
*****************************************************************************/


CREATE PROCEDURE pr_grfp_subt_ref_ltr (
@personID numeric(10),
@applFiscalYear int,
@seqNum int,
@lastUpdatedUser varchar(8),
@isLogged char(1) = 'N'
)
AS
BEGIN
DECLARE @logID NUMERIC(10)
DECLARE @retCode INT

IF @@trancount = 0
SET CHAINED OFF

BEGIN TRAN

IF @isLogged = 'Y'
BEGIN
EXECUTE @logID = flp.pr_grfp_ins_chng_log 'grfp_ref', @lastUpdatedUser

IF @logID < 0
BEGIN
PRINT 'Error obtaining log ID'
ROLLBACK TRANSACTION
RETURN @logID
END

EXECUTE @retCode = flp.pr_grfp_log_ref @logID, 'UB', @personID, @applFiscalYear, @seqNum

IF @retCode < 0
BEGIN
PRINT 'Error logging grfp_ref (before update)'
ROLLBACK TRANSACTION
RETURN @retCode
END
END

UPDATE flp.grfp_ref
SET ref_ltr_subm_date = getDate(),
/* DIS00089937 Reference Writer: redesign the upload process : saving confidential fal will be done before submitting the letter*/
-- ref_ltr_cond_flag = @refIdentityConfidential,
last_updt_user = @lastUpdatedUser,
last_updt_tmsp = getDate(),
last_updt_pgm = 'grfp'
WHERE prsn_id = @personID
AND appl_fisc_yr = @applFiscalYear
AND seq_num = @seqNum


IF @@error != 0
BEGIN
PRINT 'Error inserting into flp.pr_grfp_subt_ref_ltr'
ROLLBACK TRANSACTION
RETURN -1
END


IF @isLogged = 'Y'
BEGIN
EXECUTE @retCode = flp.pr_grfp_log_ref @logID, 'UA', @personID, @applFiscalYear, @seqNum

IF @retCode < 0
BEGIN
PRINT 'Error loggin grfp_ref (after update)'
ROLLBACK TRANSACTION
RETURN @retCode
END
END


COMMIT TRAN
END

GO
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.