USP_DATAFORMTEMPLATE_ADD_MKTVENDORLIST
The save procedure used by the add dataform template "Marketing Vendor List Add Form".
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | INOUT | The output parameter indicating the ID of the record added. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
@NAME | nvarchar(43) | IN | Name |
@DESCRIPTION | nvarchar(255) | IN | Description |
@CODE | nvarchar(10) | IN | Code |
@LISTCATEGORYCODEID | uniqueidentifier | IN | Category |
@VENDORID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@RECORDSOURCEID | uniqueidentifier | IN | Record source |
@BASERENTALCOST | money | IN | Base rental cost |
@BASERENTALCOSTBASISCODE | tinyint | IN | Base rental cost basis code |
@BASEEXCHANGECOST | money | IN | Base exchange cost |
@BASEEXCHANGECOSTBASISCODE | tinyint | IN | Base exchange cost basis code |
@CODEVALUEID | uniqueidentifier | IN | Code value ID |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
@SITEID | uniqueidentifier | IN | Site |
Definition
Copy
CREATE procedure dbo.[USP_DATAFORMTEMPLATE_ADD_MKTVENDORLIST]
(
@ID uniqueidentifier = null output,
@CHANGEAGENTID uniqueidentifier = null,
@NAME nvarchar(43) = '',
@DESCRIPTION nvarchar(255) = '',
@CODE nvarchar(10) = '',
@LISTCATEGORYCODEID uniqueidentifier = null,
@VENDORID uniqueidentifier,
@RECORDSOURCEID uniqueidentifier,
@BASERENTALCOST money = 0,
@BASERENTALCOSTBASISCODE tinyint = 1,
@BASEEXCHANGECOST money = 0,
@BASEEXCHANGECOSTBASISCODE tinyint = 1,
@CODEVALUEID uniqueidentifier = null,
@CURRENTAPPUSERID uniqueidentifier,
@SITEID uniqueidentifier = null
)
as
set nocount on;
begin try
exec dbo.[USP_DATAFORMTEMPLATE_ADD_MKTLIST]
@ID output,
@CHANGEAGENTID,
@NAME,
@DESCRIPTION,
@CODE,
@LISTCATEGORYCODEID,
@VENDORID,
@RECORDSOURCEID,
@BASERENTALCOST,
@BASERENTALCOSTBASISCODE,
@BASEEXCHANGECOST,
@BASEEXCHANGECOSTBASISCODE,
@CODEVALUEID,
@CURRENTAPPUSERID,
@SITEID;
end try
begin catch
exec dbo.[USP_RAISE_ERROR];
return 1;
end catch
return 0;