public ActionResult New(PickWindowTime pickWindowTime) { if (ModelState.IsValid) { //判断描述不能重复 if (base.genericMgr.FindAll<long>(selectCountPickWindowTimeStatement, new object[] { pickWindowTime.PickScheduleNo,pickWindowTime.ShiftCode})[0] > 0) { base.SaveErrorMessage(Resources.WMS.PickWindowTime.PickWindowTime_Errors_Existing_PickScheduleNoAndTime, pickWindowTime.PickScheduleNo,pickWindowTime.ShiftCode); } genericMgr.Create(pickWindowTime); SaveSuccessMessage(Resources.WMS.PickWindowTime.PickWindowTime_Added); return RedirectToAction("Edit/" + pickWindowTime.Id); } return View(pickWindowTime); }
public ActionResult Edit(PickWindowTime pickWindowTime) { if (ModelState.IsValid) { base.genericMgr.Update(pickWindowTime); SaveSuccessMessage(Resources.WMS.PickWindowTime.PickWindowTime_Updated); } return View(pickWindowTime); }