USP_DATAFORMTEMPLATE_EDIT_VSECONSTITUENCYORG
The save procedure used by the edit dataform template "Organization VSE Constituency Edit Form".
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
@VSECONSTITUENCIES | xml | IN | VSE Constituencies |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDIT_VSECONSTITUENCYORG
(
@CHANGEAGENTID uniqueidentifier,
@VSECONSTITUENCIES xml
)
as
set nocount on;
declare @CURRENTDATE datetime;
if @CHANGEAGENTID is null
exec dbo.USP_CHANGEAGENT_GETORCREATECHANGEAGENT @CHANGEAGENTID output;
set @CURRENTDATE = getdate();
begin try
exec dbo.USP_VSECONSTITUENCY_UPDATEFROMXML @VSECONSTITUENCIES, @CHANGEAGENTID;
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch
return 0;