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/sMsXXHMainAfterDelete.sql

59 lines
1.4 KiB
MySQL

2 years ago
/****** Object: StoredProcedure [dbo].[sMsXXHMainAfterDelete] Script Date: 10/22/2013 13:50:35 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sMsXXHMainAfterDelete]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[sMsXXHMainAfterDelete]
GO
/****** Object: StoredProcedure [dbo].[sMsXXHMainAfterDelete] Script Date: 10/22/2013 13:50:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
Create PROCEDURE [dbo].[sMsXXHMainAfterDelete]
(@ps_BillNo varchar(40),
@ps_UserCode varchar(10),
@ps_UserName varchar(150),
@pi_Result int output,
@ps_Message varchar(2000) output
)
--WITH ENCRYPTION
AS
declare @vi_RtnValue integer
declare @vs_PcBillType varchar(10)
declare @vs_BillStatus varchar(10)
declare @vs_BulkBillNo varchar(40)
declare @vi_Count 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><EFBFBD><EFBFBD>'
BEGIN TRY
/*=================ɾ<><C9BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>=================*/
delete from import_cargo where contractno=@ps_BillNo
delete from import_appstate where contractno=@ps_BillNo
delete from import_KC where contractno=@ps_BillNo
/*=================<3D>ɹ<EFBFBD>=================*/
set @pi_Result=1
set @ps_Message='ɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD>'
return(1)
/*=================<3D><EFBFBD><ECB3A3><EFBFBD><EFBFBD>=================*/
END TRY
BEGIN CATCH
Set @pi_Result=-1
Set @ps_Message='<EFBFBD><EFBFBD>ͬɾ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>'
return(-1)
END CATCH
End
GO