You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/word/新协航_设计文档/数据库建表文档/1.0/sMsSysAfterDelete.sql

62 lines
1.6 KiB
MySQL

2 years ago
/****** Object: StoredProcedure [dbo].[sMsSysAfterDelete] Script Date: 10/22/2013 13:41:05 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sMsSysAfterDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[sMsSysAfterDelete]
GO
/****** Object: StoredProcedure [dbo].[sMsSysAfterDelete] Script Date: 10/22/2013 13:41:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create PROCEDURE [dbo].[sMsSysAfterDelete]
(@ps_BillNo varchar(40),
@ps_YwType varchar(4),
@ps_UserCode varchar(10),
@ps_UserName varchar(150),
@pi_Result int output,
@ps_Message varchar(2000) output
)
--WITH ENCRYPTION
AS
declare @vi_RtnValue integer
Begin
/*=================<3D><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=================*/
SET NOCOUNT ON;
set @pi_Result=-1
set @ps_Message='<EFBFBD><EFBFBD>ʼɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
BEGIN TRY
/*=================ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=================*/
if(@ps_YwType = '0111') --<EFBFBD>ɳ<EFBFBD><EFBFBD><EFBFBD>
begin
exec @vi_RtnValue = sMsWlPcAfterDelete @ps_BillNo, @ps_UserCode, @ps_UserName, @pi_Result output, @ps_Message output
if @vi_RtnValue <> 1 return (@vi_RtnValue)
end
if(@ps_YwType = 'Import_main') --ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͬ<EFBFBD><EFBFBD>Ϣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʒ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤ʹ<EFBFBD>á<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
begin
exec @vi_RtnValue = sMsXXHMainAfterDelete @ps_BillNo, @ps_UserCode, @ps_UserName, @pi_Result output, @ps_Message output
if @vi_RtnValue <> 1 return (@vi_RtnValue)
end
/*=================<3D>ɹ<EFBFBD>=================*/
set @pi_Result=1
set @ps_Message='ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>'
return(1)
END TRY
BEGIN CATCH
Set @pi_Result=-1
Set @ps_Message='ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>'
return(-1)
END CATCH
End
GO