Ejemplo n.º 1
0
 public ActionResult Index(int listid, string lstname, string cmpnyid = "")
 {
     if (listid != 0)
     {
         if (TempData["Message"] != null)
         {
             ViewBag.message = TempData["Message"];
         }
         ViewBag.listid = listid;
         var listname = context.Prospecting_Lists.Where(x => x.listid == listid).FirstOrDefault().listname;
         ViewBag.listname = listname;
         var citycirclelist = context.SPgetCitycirclelist(listid).Select(xx => new SelectListItem {
             Value = xx.ToString(), Text = xx.ToString()
         }).ToList();
         var Biztypelist = context.SPgetbiztype(listid).Select(xx => new SelectListItem {
             Value = xx.ToString(), Text = xx.ToString()
         }).ToList();
         var Titlelist = context.SPgettitle().Select(xx => new SelectListItem {
             Value = xx.ToString(), Text = xx.ToString()
         }).ToList();
         ViewData["citycirclelist"] = citycirclelist;
         ViewData["Biztypelist"]    = Biztypelist;
         ViewData["Titlelist"]      = Titlelist;
         if (cmpnyid != "")
         {
             TempData["compnyid"] = cmpnyid;
         }
         //return View("testlist");
         return(View());
     }
     else
     {
         return(RedirectToAction("Index", "ProspectListsAdmin"));
     }
 }
        public ActionResult Index()
        {
            try
            {
                ViewData["CityCircle"] = context.SpgetProspectingselectlist().Select(xx => new SelectListItem {
                    Value = xx.listid.ToString(), Text = xx.listname
                }).ToList();
                ViewData["Titlelist"] = context.SPgettitle().Select(xx => new SelectListItem {
                    Value = xx.ToString(), Text = xx.ToString()
                }).ToList();
                ViewData["Templatelist"] = context.SpGetEmailtemplatelist().Select(xx => new SelectListItem {
                    Value = xx.TemplateId.ToString(), Text = xx.TemplateName.ToString()
                }).ToList();

                if (TempData["Message"] != null)
                {
                    ViewBag.Message = TempData["Message"];
                }
            }
            catch (Exception ex)
            {
                cm.ErrorExceptionLogingByService(ex.ToString(), "EmailSendFrom" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "Index", "NA", "NA", "NA", "WEB");
            }

            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult AddUpdateContact(ContactDetails objcont)
        {
            var Titlelist = context.SPgettitle().Select(xx => new SelectListItem {
                Value = xx.ToString(), Text = xx.ToString()
            }).ToList();

            ViewData["Titlelist"] = Titlelist;
            if (Request.QueryString["CompanyId"] != null)
            {
                int CompidIddecrypt = Convert.ToInt32(CryptorEngine.Decrypt(cm.Code_Decrypt(Convert.ToString(Request.QueryString["CompanyId"]))));
                objcont.companyid = CompidIddecrypt;
            }

            if (Request.QueryString["contactid"] != null)
            {
                int ConIddecrypt = Convert.ToInt32(CryptorEngine.Decrypt(cm.Code_Decrypt(Convert.ToString(Request.QueryString["contactid"]))));
                objcont.contactid = ConIddecrypt;
                // objcont.contactid = Convert.ToInt32(Request.QueryString["contactid"]);
            }
            if (Request.QueryString["compname"] != null)
            {
                ViewBag.compname = Convert.ToString(Request.QueryString["compname"]);
            }
            if (objcont.contactid != 0)
            {
                var contdata = context.SpGetContactDataforeditClient(objcont.contactid, User.Identity.Name, objcont.companyid).FirstOrDefault();
                if (contdata != null)
                {
                    // objcont.contactid = contdata.contactid;
                    objcont.contactfullname    = contdata.contactfullname;
                    objcont.contactemail       = contdata.contactemail;
                    objcont.contactcellphone   = contdata.contactcellphone;
                    objcont.contactphone       = contdata.contactphone;
                    objcont.titlestandard      = contdata.titlestandard;
                    objcont.linkedinprofileurl = contdata.linkedinprofileurl;
                    objcont.combinednotes      = contdata.contactnotes;
                    objcont.companyid          = contdata.companyid;
                }
            }

            return(View(objcont));
        }
Ejemplo n.º 4
0
        // GET: ProspectViewListClient
        public ActionResult Index(int listid, string lstname)
        {
            try
            {
                if (listid != 0)
                {
                    if (TempData["Message"] != null)
                    {
                        ViewBag.message = TempData["Message"];
                    }

                    ViewBag.listid = listid;
                    var listname = context.Prospecting_Lists.Where(x => x.listid == listid).FirstOrDefault().listname;
                    ViewBag.listname = listname;
                    var citycirclelist = context.SPgetCitycirclelist(listid).Select(xx => new SelectListItem {
                        Value = xx.ToString(), Text = xx.ToString()
                    }).ToList();
                    var Biztypelist = context.SPgetbiztype(listid).Select(xx => new SelectListItem {
                        Value = xx.ToString(), Text = xx.ToString()
                    }).ToList();
                    var Titlelist = context.SPgettitle().Select(xx => new SelectListItem {
                        Value = xx.ToString(), Text = xx.ToString()
                    }).ToList();
                    ViewData["citycirclelist"] = citycirclelist;
                    ViewData["Biztypelist"]    = Biztypelist;
                    ViewData["Titlelist"]      = Titlelist;
                }
                else
                {
                    return(RedirectToAction("Index", "ProspectListsClient"));
                }
            }
            catch (Exception ex)
            {
                cm.ErrorExceptionLogingByService(ex.ToString(), "ProspectViewListClient" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "Index", "NA", "NA", "NA", "WEB");
            }
            return(View());
        }
Ejemplo n.º 5
0
 public ActionResult Index()
 {
     try
     {
         var citycirclelist = context.Spgetcitycircleemail().Select(xx => new SelectListItem {
             Value = xx.ToString(), Text = xx.ToString()
         }).ToList();
         var Biztypelist = context.Spgetbiztypeemail().Select(xx => new SelectListItem {
             Value = xx.ToString(), Text = xx.ToString()
         }).ToList();
         var Titlelist = context.SPgettitle().Select(xx => new SelectListItem {
             Value = xx.ToString(), Text = xx.ToString()
         }).ToList();
         ViewData["citycirclelist"] = citycirclelist;
         ViewData["Biztypelist"]    = Biztypelist;
         ViewData["Titlelist"]      = Titlelist;
     }
     catch (Exception ex)
     {
         cm.ErrorExceptionLogingByService(ex.ToString(), "ProspectFilterList" + ":" + new StackTrace().GetFrame(0).GetMethod().Name, "Index", "NA", "NA", "NA", "WEB");
     }
     return(View());
 }