public ActionResult New(ItemAverage itemAverage)
        {
            if (ModelState.IsValid)
            {
                IList<ItemAverage> itemAverageList = base.genericMgr.FindAll<ItemAverage>("from ItemAverage as i where i.Item=?", itemAverage.Item);
                if (itemAverageList.Count > 0)
                {
                    SaveErrorMessage("物料已经存在");

                }
                else{
                base.genericMgr.Create(itemAverage);
                SaveSuccessMessage("添加成功");
                return RedirectToAction("List");
                }
            }
            return View(itemAverage);
        }
        public ActionResult New(ItemAverage itemAverage)
        {
            if (ModelState.IsValid)
            {
                IList<ItemAverage> itemAverageList = genericMgr.FindAll<ItemAverage>("from ItemAverage as i where i.Item=?", itemAverage.Item);
                if (itemAverageList.Count > 0)
                {
                    SaveErrorMessage(Resources.EXT.ControllerLan.Con_ItemAlreadyExists);

                }
                else{
                this.genericMgr.CreateWithTrim(itemAverage);
                SaveSuccessMessage(Resources.EXT.ControllerLan.Con_AddedSuccessfully);
                return RedirectToAction("List");
                }
            }
            return View(itemAverage);
        }