public ActionResult _PickRuleNew(PickRule pickRule, string PickGroupCode, string Location) { if (ModelState.IsValid) { pickRule.PickGroupCode = PickGroupCode; pickRule.Location = Location; genericMgr.Create(pickRule); SaveSuccessMessage(Resources.WMS.PickRule.PickRule_Added); return RedirectToAction("_PickRuleEdit/" + pickRule.Id); } return PartialView(pickRule); }
public ActionResult _PickRuleEdit(PickRule pickRule, string PickGroupCode) { if (ModelState.IsValid) { ViewBag.PickGroupCode = PickGroupCode; pickRule.PickGroupCode = PickGroupCode; genericMgr.Update(pickRule); SaveSuccessMessage(Resources.WMS.PickRule.PickRule_Added); } TempData["TabIndex"] = 1; return PartialView(pickRule); }
public ActionResult _PickRuleNew(String PickGroupCode) { PickRule pickRule = new PickRule(); pickRule.PickGroupCode = PickGroupCode; return PartialView(pickRule); }