public ActionResult CampaignFollowUp(ACM.Model.CampaignFollowUp cmpFollowUp) { ACM.Model.CampaignFollowUp CampFollowUp = new ACM.Model.CampaignFollowUp(); if (cmpFollowUp != null && cmpFollowUp.CampaignId == 0) { cmpFollowUp.CampaignId = Convert.ToInt32(Session["CampaignId"]); } else { CampFollowUp.CampaignId = Convert.ToInt32(cmpFollowUp.CampaignId); } var campaignFollowUp = campaignServiceClient.CampaignFollowUpInq(CampFollowUp); if (campaignFollowUp == null) { campaignFollowUp = new Model.CampaignFollowUp(); campaignFollowUp.CampaignId = CampFollowUp.CampaignId; } var FollowUpList = campaignServiceClient.GetMasterDropDownDataforMasterTables("FollowUpId", "FollowUpDescription", "FollowUp"); ViewBag.FollowUpList = new SelectList(FollowUpList, "id", "name"); return(PartialView(campaignFollowUp)); }
public string CampaignFollowUpDel(Model.CampaignFollowUp request) { try { CampaignFollowUpBO campaignFollowUp = new CampaignFollowUpBO(); return(campaignFollowUp.CampaignFollowUpDel(request)); } catch (Exception ex) { Error.WriteException(TraceEventType.Error, ex.Message.ToString(), "CampaignMod"); throw; } }
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; } }
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; } }
public ActionResult CampaignFollowUp(ACM.Model.CampaignFollowUp cmpFollowUp) { ACM.Model.CampaignFollowUp CampFollowUp = new ACM.Model.CampaignFollowUp(); if (cmpFollowUp != null && cmpFollowUp.CampaignId == 0) cmpFollowUp.CampaignId = Convert.ToInt32(Session["CampaignId"]); else CampFollowUp.CampaignId = Convert.ToInt32(cmpFollowUp.CampaignId); var campaignFollowUp = campaignServiceClient.CampaignFollowUpInq(CampFollowUp); if (campaignFollowUp == null) { campaignFollowUp = new Model.CampaignFollowUp(); campaignFollowUp.CampaignId = CampFollowUp.CampaignId; } var FollowUpList = campaignServiceClient.GetMasterDropDownDataforMasterTables("FollowUpId", "FollowUpDescription", "FollowUp"); ViewBag.FollowUpList = new SelectList(FollowUpList, "id", "name"); return PartialView(campaignFollowUp); }
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()); } }
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 string CampaignFollowUpDel(Model.CampaignFollowUp request) { CampaignFollowUpBO campaignFollowUp = new CampaignFollowUpBO(); return(campaignFollowUp.CampaignFollowUpDel(request)); }
public Model.CampaignFollowUp CampaignFollowUpInq(Model.CampaignFollowUp request) { CampaignFollowUpBO campaignFollowUp = new CampaignFollowUpBO(); return(campaignFollowUp.CampaignFollowUpInq(request)); }
public List <Model.CampaignFollowUp> CampaignFollowUpInfo(Model.CampaignFollowUp request) { CampaignFollowUpBO campaignFollowUp = new CampaignFollowUpBO(); return(campaignFollowUp.CampaignFollowUpInfo(request)); }