public RedirectToRouteResult UpdateToNcBatchNo(InventoryDetailCondition condition)
        {
            try
            {
                // 库存钢材信息
                var batchInfo = new Bll_TRC_ROLL_PRODCUT().GetByBatchNo(
                    condition?.batchNo,
                    condition?.gz,
                    condition?.zxbz,
                    condition?.wl,
                    condition?.ck,
                    condition?.zldj,
                    condition?.bzyq,
                    true).OrderBy(w => w.C_ID).ToList();

                bll.UpdateToNcBatchNo(condition?.ck, condition?.gz, condition?.zxbz,
                                      condition?.gg, condition?.batchNo, condition?.wl,
                                      condition?.zldj, condition?.bzyq, batchInfo);
            }
            catch (Exception ex)
            {
                ViewBag.ErrorMsg = ex.Message;
            }

            return(RedirectToAction(nameof(InventoryManager), new
            {
                errorMsg = ViewBag.ErrorMsg,
                isloadCondition = true,
            }));
        }
        public ViewResult InventoryDetail(InventoryDetailCondition condition, string errorMsg = "", bool isrefreshCondition = false)
        {
            if (isrefreshCondition)
            {
                condition = TempData["INVENTORY_DETIAL_CONDITION"] as InventoryDetailCondition;
            }

            if (string.IsNullOrEmpty(errorMsg) == false)
            {
                ViewBag.ErrorMsg = errorMsg;
            }

            // 库存钢材信息
            var batchInfo = new Bll_TRC_ROLL_PRODCUT().GetByBatchNo(
                condition?.batchNo,
                condition?.gz,
                condition?.zxbz,
                condition?.wl,
                condition?.ck,
                condition?.zldj,
                condition?.bzyq,
                true).OrderBy(w => w.C_ID).ToList();

            ViewBag.ListData = batchInfo;

            TempData["INVENTORY_DETIAL_CONDITION"] = condition;

            return(View());
        }