USP_DATAFORMTEMPLATE_EDIT_PROGRAMGLMAPPINGALL
The save procedure used by the edit dataform template "Program GL Mapping Edit All Form".
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter indicating the ID of the record being edited. |
@MAP | xml | IN | Program GL mapping |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDIT_PROGRAMGLMAPPINGALL
(
@ID uniqueidentifier,
@MAP xml,
@CHANGEAGENTID uniqueidentifier = null,
@CURRENTAPPUSERID uniqueidentifier
)
as
set nocount on;
begin try
if @CHANGEAGENTID is null
exec dbo.USP_CHANGEAGENT_GETORCREATECHANGEAGENT @CHANGEAGENTID output;
declare @CURRENTDATE datetime;
set @CURRENTDATE = getdate();
exec dbo.USP_PROGRAMGLMAPPING_UPDATEFROMXML @MAP, @CHANGEAGENTID, @CURRENTDATE, @CURRENTAPPUSERID;
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch
return 0;