IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_gen_biz_base_proc]') AND type = 'P')
DROP PROCEDURE [dbo].[mps_gen_biz_base_proc]
GO
CREATE procedure [dbo].[mps_gen_biz_base_proc](
@cmpid int,
@bizid int
)
as
begin
set nocount on
-- 这里要判断一下，是否可以生成
 
exec sys_gen_joblink_updatedata_all @cmpid,@bizid 
exec mps_gen_biznew @cmpid , @bizid 
exec mps_gen_biznew_beforecreate @cmpid , @bizid 
exec mps_gen_biznew_aftercreate @cmpid , @bizid 
exec mps_gen_bizmodify @cmpid , @bizid 
exec mps_gen_bizmodify0 @cmpid , @bizid 
exec mps_gen_bizbrief @cmpid , @bizid 
exec mps_gen_bizquery @cmpid , @bizid 
exec mps_gen_bizquery_simple @cmpid , @bizid 
exec mps_gen_bizdownloaddetail @cmpid , @bizid 
exec mps_gen_bizfull  @cmpid , @bizid 
exec mps_gen_bizprint  @cmpid , @bizid 
exec mps_gen_bizmodify_detail_all @cmpid , @bizid 
exec mps_gen_biz_nextpage_all @cmpid , @bizid  
exec mps_gen_biz_newdetail_all @cmpid , @bizid   
exec mps_gen_biz_deletedetail_all @cmpid , @bizid
exec mps_gen_bizmodify_before  @cmpid , @bizid
exec mps_gen_bizcheck  @cmpid , @bizid
exec mps_gen_bizmodify_after @cmpid , @bizid
exec mps_gen_bizmodifydetail_before_all @cmpid , @bizid
exec mps_gen_bizmodifydetail_after_all @cmpid , @bizid
exec mps_gen_bizdeletedetail_before_all @cmpid , @bizid
exec mps_gen_bizdeletedetail_after_all @cmpid , @bizid
exec mps_gen_biznewdetail_before_all @cmpid , @bizid
exec mps_gen_biznewdetail_after_all @cmpid , @bizid

exec mps_gen_bizwrknew_start_all @cmpid , @bizid
exec mps_gen_bizwrknew_before_all @cmpid , @bizid
exec mps_gen_bizwrknew_after_all @cmpid , @bizid
exec mps_gen_bizwrkapply_before_all @cmpid , @bizid
exec mps_gen_bizwrkapply_after_all @cmpid , @bizid
exec mps_gen_bizwrklink_before_all @cmpid , @bizid
exec mps_gen_bizwrklink_after_all @cmpid , @bizid
exec mps_gen_wrk_message_end_all @cmpid ,@bizid 
exec mps_gen_wrk_message_start_all @cmpid ,@bizid 
exec mps_gen_wrk_message_back_all @cmpid ,@bizid 
exec mps_gen_bizalarm @cmpid , @bizid
exec mps_calc_bizrelation @cmpid , @bizid 
exec mps_gen_bizimport @cmpid , @bizid 
exec mps_gen_bizimport_web @cmpid , @bizid 
 
exec mps_gen_biz_auto @cmpid , @bizid 
exec mps_gen_biz_auto_web @cmpid , @bizid 
exec mps_gen_bizwrkauto_all @cmpid , @bizid 
 
set nocount off
end