Пример #1
0
        public JsonResult UserFollowPlan(string ids)
        {
            IEnumerable <long> enumerable = from item in ids.Split(new char[] { ',' }) select long.Parse(item);

            var data = FollowManagerApplication.UserFollowPlan(enumerable);

            return(base.Json(data));
        }
Пример #2
0
        public JsonResult List(FollowPlanQuery queryModel, string auditStatuses, int page, int rows)
        {
            queryModel.PageSize   = rows;
            queryModel.PageNumber = page;
            queryModel.shopId     = base.CurrentSellerManager.ShopId;
            QueryPageModel <FollowPlan> follows = FollowManagerApplication.GetFollowPan(queryModel);

            DataGridModel <FollowPlan> data = new DataGridModel <FollowPlan>
            {
                total = follows.Total,
                rows  = follows.Models.ToList()
            };

            return(base.Json(data));
        }
Пример #3
0
        public JsonResult ListDoctorContent(FollowSearch queryModel, long id, int page, int rows)
        {
            queryModel.PageSize   = rows;
            queryModel.PageNumber = page;
            queryModel.shopId     = base.CurrentSellerManager.ShopId;
            QueryPageModel <DoctorContentQuery> followcontent = FollowManagerApplication.ListDoctorContent(queryModel, id);

            DataGridModel <DoctorContentQuery> data = new DataGridModel <DoctorContentQuery>
            {
                total = followcontent.Total,
                rows  = followcontent.Models.ToList()
            };

            return(base.Json(data));
        }
Пример #4
0
        public JsonResult doctorlist(FollowSearch queryModel, string auditStatuses, int page, int rows)
        {
            queryModel.PageSize    = rows;
            queryModel.PageNumber  = page;
            queryModel.AuditStatus = (queryModel.AuditStatus == null ? auditStatuses : queryModel.AuditStatus);
            queryModel.shopId      = base.CurrentSellerManager.ShopId;
            QueryPageModel <FollowDoctorQuery> followcontent = FollowManagerApplication.GetFollowDoctor(queryModel);

            DataGridModel <FollowDoctorQuery> data = new DataGridModel <FollowDoctorQuery>
            {
                total = followcontent.Total,
                rows  = followcontent.Models.ToList()
            };

            return(base.Json(data));
        }
Пример #5
0
        public JsonResult BatchStop(string ids)
        {
            IEnumerable <long> enumerable = from item in ids.Split(new char[] { ',' }) select long.Parse(item);

            FollowManagerApplication.BatchStop(enumerable, base.CurrentSellerManager.ShopId);
            LogInfo info = new LogInfo
            {
                Date        = DateTime.Now,
                Description = "停用模板,Ids=" + ids,
                IPAddress   = base.Request.UserHostAddress,
                PageUrl     = "/Follow/BatchSaleOff",
                UserName    = base.CurrentSellerManager.UserName,
                ShopId      = base.CurrentSellerManager.ShopId
            };

            ServiceHelper.Create <IOperationLogService>().AddSellerOperationLog(info);
            return(base.Json(new { success = true }));
        }
Пример #6
0
 public JsonResult Creatdoctor(string cid, string title, string pic, string remark, string ids)
 {
     try
     {
         FollowManagerApplication.Creatdoctor(cid, title, pic, remark, ids, base.CurrentSellerManager.ShopId, base.CurrentSellerManager.Id);
         LogInfo info = new LogInfo
         {
             Date        = DateTime.Now,
             Description = "创建医嘱内容,Ids=" + ids,
             IPAddress   = base.Request.UserHostAddress,
             PageUrl     = "/Follow/Creatdoctor",
             UserName    = base.CurrentSellerManager.UserName,
             ShopId      = base.CurrentSellerManager.ShopId
         };
         ServiceHelper.Create <IOperationLogService>().AddSellerOperationLog(info);
         return(base.Json(new { success = true }));
     }
     catch (Exception exception)
     {
         return(base.Json(new { success = false, msg = exception.Message }));
     }
 }
Пример #7
0
 public JsonResult CreatedoctorContent(string cId, string ids, int day, string cont)
 {
     try
     {
         FollowManagerApplication.CreatedoctorContent(cId, ids, base.CurrentSellerManager.ShopId, day, cont);
         LogInfo info = new LogInfo
         {
             Date        = DateTime.Now,
             Description = "创建/修改关联计划,Ids=" + ids,
             IPAddress   = base.Request.UserHostAddress,
             PageUrl     = "/Follow/CreatedoctorContent",
             UserName    = base.CurrentSellerManager.UserName,
             ShopId      = base.CurrentSellerManager.ShopId
         };
         ServiceHelper.Create <IOperationLogService>().AddSellerOperationLog(info);
         return(base.Json(new { success = true }));
     }
     catch (Exception exception)
     {
         return(base.Json(new { success = false, msg = exception.Message }));
     }
 }
Пример #8
0
 public JsonResult CreateFollow(string name, string cId, string ids)
 {
     try
     {
         FollowManagerApplication.SaveFollow(name, cId, ids, base.CurrentSellerManager.ShopId, base.CurrentSellerManager.Id);
         LogInfo info = new LogInfo
         {
             Date        = DateTime.Now,
             Description = "新增编辑模板分类,Ids=" + ids,
             IPAddress   = base.Request.UserHostAddress,
             PageUrl     = "/Follow/CreateFollow",
             UserName    = base.CurrentSellerManager.UserName,
             ShopId      = base.CurrentSellerManager.ShopId
         };
         ServiceHelper.Create <IOperationLogService>().AddSellerOperationLog(info);
         return(base.Json(new { success = true }));
     }
     catch (Exception exception)
     {
         return(base.Json(new { success = false, msg = exception.Message }));
     }
 }
Пример #9
0
        public JsonResult Cancel(string ids)
        {
            try
            {
                IEnumerable <long> enumerable = from item in ids.Split(new char[] { ',' }) select long.Parse(item);

                FollowManagerApplication.CancelFollowPlan(enumerable, base.CurrentSellerManager.ShopId);
                LogInfo info = new LogInfo
                {
                    Date        = DateTime.Now,
                    Description = "取消随访,Ids=" + ids,
                    IPAddress   = base.Request.UserHostAddress,
                    PageUrl     = "/Follow/Cancel",
                    UserName    = base.CurrentSellerManager.UserName,
                    ShopId      = base.CurrentSellerManager.ShopId
                };
                ServiceHelper.Create <IOperationLogService>().AddSellerOperationLog(info);
                return(base.Json(new { success = true }));
            }
            catch (Exception exception)
            {
                return(base.Json(new { success = false, msg = exception.Message }));
            }
        }
Пример #10
0
        public JsonResult GetDoctor(string ids)
        {
            var data = FollowManagerApplication.GetDoctor(ids, base.CurrentSellerManager.ShopId);

            return(base.Json(new { success = true, data = data }));
        }