示例#1
0
        private void DeleteByCampaignType(Model.Campaign request)
        {
            try
            {
                Model.CampaignMainFrame campaignMainFrame    = new Model.CampaignMainFrame();
                CampaignMainFrameDAO    campaignMainFrameDAO = new CampaignMainFrameDAO();
                campaignMainFrame.CampaignId = request.CampaignId;
                campaignMainFrame            = campaignMainFrameDAO.CampaignMainFrameInq(campaignMainFrame);

                if (campaignMainFrame != null)
                {
                    campaignMainFrameDAO.CampaignMainFrameDel(campaignMainFrame);
                }

                Model.CampaignFollowUp campaignFollowUp    = new Model.CampaignFollowUp();
                CampaignFollowUpDAO    campaignFollowUpDAO = new CampaignFollowUpDAO();
                campaignFollowUp.CampaignId = request.CampaignId;
                campaignFollowUp            = campaignFollowUpDAO.CampaignFollowUpInq(campaignFollowUp);

                if (campaignFollowUp != null)
                {
                    campaignFollowUpDAO.CampaignFollowUpDel(campaignFollowUp);
                }

                Model.CampaignTargetFileProvider campaignTargetFileProvider    = new Model.CampaignTargetFileProvider();
                CampaignTargetFileProviderDAO    campaignTargetFileProviderDAO = new CampaignTargetFileProviderDAO();
                campaignTargetFileProvider.CampaignId = request.CampaignId;
                campaignTargetFileProvider            = campaignTargetFileProviderDAO.CampaigTargetFileInq(campaignTargetFileProvider);

                if (campaignTargetFileProvider != null)
                {
                    campaignTargetFileProviderDAO.CampaigTargetFileDel(campaignTargetFileProvider);
                }
            }
            catch (Exception ex)
            {
                Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "DeleteByCampaignType-BO");
                throw new Exception(ex.Message.ToString());
            }
        }
 public CampaignMainFrame CampaignMainframeInq(CampaignMainFrame request)
 {
     return(campaignMainFrameDAO.CampaignMainFrameInq(request));
 }