USP_DATAFORMTEMPLATE_EDITLOAD_DESIGNATION_3

The load procedure used by the edit dataform template "Designation Edit Form 3"

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN The input ID parameter used to load the fields defined on the form.
@DATALOADED bit INOUT Output parameter indicating whether or not data was actually loaded.
@DESIGNATIONREPORT1CODEID uniqueidentifier INOUT Report code 1
@DESIGNATIONREPORT2CODEID uniqueidentifier INOUT Report code 2
@USERID nvarchar(450) INOUT Lookup ID
@VANITYNAME nvarchar(512) INOUT Public name
@TSLONG bigint INOUT Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record.
@VSECATEGORYID uniqueidentifier INOUT VSE category
@STARTDATE datetime INOUT Start date
@ENDDATE datetime INOUT End date
@DESIGNATIONUSECODEID uniqueidentifier INOUT Use code
@VSESUBCATEGORYID uniqueidentifier INOUT VSE subcategory
@ISREVENUEDESIGNATION bit INOUT Revenue designation

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDITLOAD_DESIGNATION_3
                    (
                        @ID uniqueidentifier,
                        @DATALOADED bit = 0 output,            
                        @DESIGNATIONREPORT1CODEID uniqueidentifier = null output,
                        @DESIGNATIONREPORT2CODEID uniqueidentifier = null output,
                        @USERID nvarchar(450) = null output,
                        @VANITYNAME nvarchar(512) = null output,
                        @TSLONG bigint = 0 output,
                        @VSECATEGORYID uniqueidentifier = null output,
                        @STARTDATE datetime = null output,
                        @ENDDATE datetime = null output,
                        @DESIGNATIONUSECODEID uniqueidentifier = null output,
                        @VSESUBCATEGORYID uniqueidentifier = null output,
                        @ISREVENUEDESIGNATION bit = null output
                    )
                    as
                        set nocount on;

                        set @DATALOADED = 0;
                        set @TSLONG = 0;

                        select
                            @DATALOADED = 1,
                            @DESIGNATIONREPORT1CODEID = DESIGNATIONREPORT1CODEID,
                            @DESIGNATIONREPORT2CODEID = DESIGNATIONREPORT2CODEID,
                            @TSLONG = TSLONG,
                            @USERID = USERID,
                            @VANITYNAME = VANITYNAME,
                            @VSECATEGORYID = VSECATEGORYID,
                            @STARTDATE = STARTDATE,
                            @ENDDATE = ENDDATE,
                            @DESIGNATIONUSECODEID = DESIGNATIONUSECODEID,
                            @VSESUBCATEGORYID = VSESUBCATEGORYID,
                            @ISREVENUEDESIGNATION = ISREVENUEDESIGNATION
                        from
                            dbo.DESIGNATION
                        where ID = @ID;

                        return 0;