Ejemplo n.º 1
0
        public ActionResult Resumes(string strIds, ListDistributors 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.Resume(intId);
                        if (result.Code == 1)
                        {
                            successCount += 1;
                        }
                        else
                        {
                            errorCount += 1;
                        }
                    }
                }
            }
            result.CodeText = "启用成功" + successCount + "个经销商,失败" + errorCount + "个";
            return(Json(result));
        }
Ejemplo n.º 2
0
 public void ChangeDistributor(object sender, PropertyChangedEventArgs e)
 {
     ListDistributors.ForEach(d =>
     {
         if (d.Name != ((DistributorOrderData)sender).Name)
         {
             d.IsSelected = false;
         }
     });
 }
Ejemplo n.º 3
0
        public virtual ActionResult List(ListDistributors request)
        {
            string pageHtml = string.Empty;

            if (ModelState.IsValid)
            {
                request.Query(out pageHtml);
                ViewBag.pageHtml = MvcHtmlString.Create(pageHtml);
            }
            return(View("List", request));
        }
Ejemplo n.º 4
0
 public ActionResult SendSmsMessage(ListDistributors request)
 {
     return(List(request));
 }
Ejemplo n.º 5
0
 public ActionResult Export(ListDistributors request)
 {
     _logger.LogWithSerialNo(LogTypes.DistributorExport, SerialNoHelper.Create(), 0);
     return(List(request));
 }
Ejemplo n.º 6
0
 public ActionResult Delete(int id, ListDistributors request)
 {
     return(Json(request.Delete(id)));
 }
Ejemplo n.º 7
0
 public ActionResult Suspend(int id, ListDistributors request)
 {
     return(Json(request.Suspend(id)));
 }