public ActionResult Delete()
 {
     string OrderNum = WebUtil.GetFormValue<string>("OrderNum", string.Empty);
     OutStorageEntity entity = new OutStorageEntity();
     entity.OrderNum = OrderNum;
     Bill<OutStorageEntity, OutStoDetailEntity> bill = new OutStorageOrder();
     string returnValue = bill.Delete(entity);
     this.ReturnJson.AddProperty("d", returnValue);
     return Content(this.ReturnJson.ToString());
 }
        public ActionResult Delete()
        {
            string           OrderNum = WebUtil.GetFormValue <string>("OrderNum", string.Empty);
            OutStorageEntity entity   = new OutStorageEntity();

            entity.OrderNum = OrderNum;
            Bill <OutStorageEntity, OutStoDetailEntity> bill = new OutStorageOrder();
            string returnValue = bill.Delete(entity);

            this.ReturnJson.AddProperty("d", returnValue);
            return(Content(this.ReturnJson.ToString()));
        }
 public ActionResult DeleteBatch([ModelBinder(typeof(JsonBinder<List<string>>))] List<string> list)
 {
     if (!list.IsNullOrEmpty())
     {
         foreach (string orderNum in list)
         {
             OutStorageEntity entity = new OutStorageEntity();
             entity.OrderNum = orderNum;
             Bill<OutStorageEntity, OutStoDetailEntity> bill = new OutStorageOrder();
             string returnValue = bill.Delete(entity);
             this.ReturnJson.AddProperty("d", returnValue);
         }
     }
     return Content(this.ReturnJson.ToString());
 }
 public ActionResult DeleteBatch([ModelBinder(typeof(JsonBinder <List <string> >))] List <string> list)
 {
     if (!list.IsNullOrEmpty())
     {
         foreach (string orderNum in list)
         {
             OutStorageEntity entity = new OutStorageEntity();
             entity.OrderNum = orderNum;
             Bill <OutStorageEntity, OutStoDetailEntity> bill = new OutStorageOrder();
             string returnValue = bill.Delete(entity);
             this.ReturnJson.AddProperty("d", returnValue);
         }
     }
     return(Content(this.ReturnJson.ToString()));
 }
Example #5
0
        /// <summary>
        /// 批量删除出库单
        /// </summary>
        /// <returns></returns>
        public ActionResult Delete()
        {
            List <string> list      = WebUtil.GetFormObject <List <string> >("list");
            string        CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty);
            Bill <OutStorageEntity, OutStoDetailEntity> bill = new OutStorageOrder(CompanyID);
            string     returnValue = bill.Delete(list);
            DataResult result      = new DataResult();

            if (EnumHelper.GetEnumDesc <EReturnStatus>(EReturnStatus.Success) == returnValue)
            {
                result.Code    = (int)EResponseCode.Success;
                result.Message = "出库单删除成功";
            }
            else
            {
                result.Code    = (int)EResponseCode.Exception;
                result.Message = "出库单删除失败";
            }
            return(Content(JsonHelper.SerializeObject(result)));
        }