public ActionResult Delete(string snNum)
        {
            EquipmentProvider provider = new EquipmentProvider();
            int line = provider.Delete(snNum);

            if (line > 0)
            {
                this.ReturnJson.AddProperty("d", "success");
            }
            else
            {
                this.ReturnJson.AddProperty("d", "");
            }
            return(Content(this.ReturnJson.ToString()));
        }
        /// <summary>
        /// 删除设备
        /// </summary>
        /// <returns></returns>
        public ActionResult Delete()
        {
            List <string>     list      = WebUtil.GetFormObject <List <string> >("List");
            string            CompanyID = WebUtil.GetFormValue <string>("CompanyID");
            EquipmentProvider provider  = new EquipmentProvider(CompanyID);
            int        line             = provider.Delete(list);
            DataResult result           = new DataResult();

            if (line > 0)
            {
                result.Code    = (int)EResponseCode.Success;
                result.Message = string.Format("设备删除成功,受影响行数{0}行", line);
            }
            else
            {
                result.Code    = (int)EResponseCode.Exception;
                result.Message = "设备删除失败";
            }
            return(Content(JsonHelper.SerializeObject(result)));
        }