コード例 #1
0
ファイル: MoveController.cs プロジェクト: zjftuzi/yun_gitwms
        /// <summary>
        /// 根据移库单唯一编号删除移库单
        /// </summary>
        /// <returns></returns>
        public ActionResult DeleteSingle()
        {
            string CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty);
            string SnNum     = WebUtil.GetFormValue <string>("SnNum", string.Empty);

            MoveOrderEntity entity = new MoveOrderEntity();

            entity.SnNum     = SnNum;
            entity.CompanyID = CompanyID;

            Bill <MoveOrderEntity, MoveOrderDetailEntity> bill = new MoveOrder(CompanyID);
            string     returnValue = bill.Delete(entity);
            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)));
        }
コード例 #2
0
 public ActionResult Delete()
 {
     string orderNum = WebUtil.GetFormValue<string>("OrderNum", string.Empty);
     if (!orderNum.IsEmpty())
     {
         Bill<MoveOrderEntity, MoveOrderDetailEntity> bill = new MoveOrder();
         MoveOrderEntity entity = new MoveOrderEntity();
         entity.OrderNum = orderNum;
         string returnValue = bill.Delete(entity);
         this.ReturnJson.AddProperty("d", returnValue);
     }
     return Content(this.ReturnJson.ToString());
 }
コード例 #3
0
        public ActionResult Delete()
        {
            string orderNum = WebUtil.GetFormValue <string>("OrderNum", string.Empty);

            if (!orderNum.IsEmpty())
            {
                Bill <MoveOrderEntity, MoveOrderDetailEntity> bill = new MoveOrder();
                MoveOrderEntity entity = new MoveOrderEntity();
                entity.OrderNum = orderNum;
                string returnValue = bill.Delete(entity);
                this.ReturnJson.AddProperty("d", returnValue);
            }
            return(Content(this.ReturnJson.ToString()));
        }
コード例 #4
0
 public ActionResult DeleteBatch([ModelBinder(typeof(JsonBinder <List <string> >))] List <string> list)
 {
     if (!list.IsNullOrEmpty())
     {
         foreach (string orderNum in list)
         {
             Bill <MoveOrderEntity, MoveOrderDetailEntity> bill = new MoveOrder();
             MoveOrderEntity entity = new MoveOrderEntity();
             entity.OrderNum = orderNum;
             string returnValue = bill.Delete(entity);
             this.ReturnJson.AddProperty("d", returnValue);
         }
     }
     return(Content(this.ReturnJson.ToString()));
 }
コード例 #5
0
 public ActionResult DeleteBatch([ModelBinder(typeof(JsonBinder<List<string>>))] List<string> list)
 {
     if (!list.IsNullOrEmpty())
     {
         foreach (string orderNum in list)
         {
             Bill<MoveOrderEntity, MoveOrderDetailEntity> bill = new MoveOrder();
             MoveOrderEntity entity = new MoveOrderEntity();
             entity.OrderNum = orderNum;
             string returnValue = bill.Delete(entity);
             this.ReturnJson.AddProperty("d", returnValue);
         }
     }
     return Content(this.ReturnJson.ToString());
 }