Ejemplo n.º 1
0
        public ActionResult Deletes(string strIds, ListPosEndPoints request)
        {
            ResultMsg result       = new ResultMsg();
            int       successCount = 0;
            int       errorCount   = 0;

            if (!string.IsNullOrEmpty(strIds))
            {
                string[] sId = strIds.Split(',');
                foreach (var id in sId)
                {
                    int intId = 0;
                    if (int.TryParse(id, out intId))
                    {
                        result = request.Delete(intId);
                        if (result.Code == 1)
                        {
                            successCount += 1;
                        }
                        else
                        {
                            errorCount += 1;
                        }
                    }
                }
            }
            result.CodeText = "删除成功" + successCount + "个终端,失败" + errorCount + "个";
            return(Json(result));
        }
Ejemplo n.º 2
0
        public virtual ActionResult List(ListPosEndPoints request)
        {
            string pageHtml = string.Empty;

            if (ModelState.IsValid)
            {
                request.Query(out pageHtml);
                ViewBag.pageHtml = MvcHtmlString.Create(pageHtml);
            }
            request.Ready();
            return(View("List", request));
        }
Ejemplo n.º 3
0
 public ActionResult Suspend(int id, ListPosEndPoints request)
 {
     return(Json(request.Suspend(id)));
 }
Ejemplo n.º 4
0
 public ActionResult Export(ListPosEndPoints request)
 {
     _logger.LogWithSerialNo(LogTypes.PosExport, SerialNoHelper.Create(), 0);
     return(List(request));
 }
Ejemplo n.º 5
0
 public ActionResult Resume(int id, ListPosEndPoints request)
 {
     return(Json(request.Resume(id)));
 }