Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public ActionResult _PickRuleNew(String PickGroupCode)
 {
     PickRule pickRule = new PickRule();
     pickRule.PickGroupCode = PickGroupCode;
     return PartialView(pickRule);
 }