public ActionResult Edit(string id)
        {
            InspectResultExt InspectResultExt = new InspectResultExt();
            InspectResultExt.InspectResultId = int.Parse(id);

            IList<InspectResultExt> InspectResultExtList = base.genericMgr.FindAll<InspectResultExt>("select i from InspectResultExt as i where i.InspectResultId=?", id);
            if (InspectResultExtList.Count > 0)
            {
                InspectResultExt = InspectResultExtList[0];
            }
            if (string.IsNullOrEmpty(InspectResultExt.Checker))
            {
                com.Sconit.Entity.ACC.User user = SecurityContextHolder.Get();
                InspectResultExt.Checker = user.FullName;
            }
            return View(InspectResultExt);
        }
        public ActionResult Edit(InspectResultExt InspectResultExt)
        {
            try
            {
                if (string.IsNullOrEmpty(InspectResultExt.Checker))
                {
                    com.Sconit.Entity.ACC.User user = SecurityContextHolder.Get();
                    InspectResultExt.Checker = user.FullName;
                }
                if (!string.IsNullOrEmpty(InspectResultExt.File))
                {
                    FileStream fs = new FileStream(InspectResultExt.File, FileMode.Open, FileAccess.Read);
                    byte[] picBytes = new byte[fs.Length];
                    fs.Read(picBytes, 0, Convert.ToInt32(fs.Length));
                    InspectResultExt.Picture = picBytes;
                    fs.Close();
                }
                else
                {
                    InspectResultExt.Picture = base.genericMgr.FindById<InspectResultExt>(InspectResultExt.Id).Picture;
                }
                IList<InspectResultExt> InspectResultExtList = base.genericMgr.FindAll<InspectResultExt>("select i from InspectResultExt as i where i.InspectResultId=?", InspectResultExt.InspectResultId);
                if (InspectResultExtList.Count > 0)
                {
                    base.genericMgr.Update(InspectResultExt);
                }
                else
                {
                    base.genericMgr.Create(InspectResultExt);
                }
                SaveSuccessMessage("入场物流信息更新成功。");

            }
            catch (Exception ex)
            {
                SaveErrorMessage(ex.Message.ToString());
            }
            return View(InspectResultExt);
        }