コード例 #1
0
        public void DeleteFollowUp(Model.CampaignTargetFileProvider request)
        {
            try
            {
                Model.CampaignFollowUp campaignFollowUp = new Model.CampaignFollowUp();
                CampaignFollowUpDAO campaignFollowUpDAO = new CampaignFollowUpDAO();
                campaignFollowUp.CampaignId = request.CampaignId;
                campaignFollowUp = campaignFollowUpDAO.CampaignFollowUpInq(campaignFollowUp);

                if (campaignFollowUp != null)
                    campaignFollowUpDAO.CampaignFollowUpDel(campaignFollowUp);
            }
            catch (Exception ex)
            {
                Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "DeleteFollowUp-BO");
                throw;
            }
        }
コード例 #2
0
ファイル: CampaignBO.cs プロジェクト: Yelena11/Refactored_App
        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());
            }
        }