Пример #1
0
        public JsonResult GetCustomerByID(string customerid)
        {
            var model = CustomBusiness.BaseBusiness.GetCustomerByID(customerid, CurrentUser.AgentID, CurrentUser.ClientID);

            model.Industrys = CloudSalesBusiness.Manage.IndustryBusiness.GetIndustrys();
            model.Extents   = CustomBusiness.GetExtents();
            JsonDictionary.Add("model", model);
            return(new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
Пример #2
0
 public ActionResult Create(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         ViewBag.Sources = new SystemBusiness().GetCustomSources(CurrentUser.AgentID, CurrentUser.ClientID).Where(m => m.IsChoose == 1).ToList();
     }
     else
     {
         ViewBag.Sources = new SystemBusiness().GetCustomSources(CurrentUser.AgentID, CurrentUser.ClientID);
     }
     ViewBag.ActivityID = id;
     ViewBag.Industrys  = CloudSalesBusiness.Manage.IndustryBusiness.GetIndustrys();
     ViewBag.Extents    = CustomBusiness.GetExtents();
     return(View());
 }