Exemple #1
0
        /// <summary>
        /// 编辑入库单的详细项
        /// </summary>
        /// <returns></returns>
        public ActionResult EditDetail()
        {
            string             CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty);
            InStorDetailEntity entity    = WebUtil.GetFormObject <InStorDetailEntity>("Detail");
            Bill <InStorageEntity, InStorDetailEntity> bill = new InStorageOrder(CompanyID);
            string     returnValue = bill.EditDetail(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)));
        }