public ActionResult FindPageList() { int count = 0; var list = MemberIntegralSetService.FindPageList(Request.Params, out count); return(ToDataGrid(list, count)); }
public ActionResult PayIntegral(MemberIntegralSet obj) { obj.CustomerObj = Request["CustomerObj"]; var re = MemberIntegralSetService.SaveOrUpdate(obj); return(Content(re.ToJson())); }
public ActionResult PayIntegral() { var customers = EnumToSelect(typeof(Pharos.Logic.CustomerType), selectValue: 0); customers.Remove(customers.FirstOrDefault(o => o.Selected)); ViewBag.customers = customers; var obj = MemberIntegralSetService.Find(o => o.Nature == 1 && o.CompanyId == CommonService.CompanyId) ?? new MemberIntegralSet() { Scale = 10, Nature = 1 }; return(View(obj)); }
public ActionResult SaveProductIntegral(int?id) { var customers = EnumToSelect(typeof(Pharos.Logic.CustomerType), selectValue: 0); customers.Remove(customers.FirstOrDefault(o => o.Selected)); ViewBag.customers = customers; var parents = ProductCategoryService.GetParentTypes().Select(o => new DropdownItem() { Value = o.CategorySN.ToString(), Text = o.Title }).ToList(); parents.Insert(0, new DropdownItem("", "请选择")); ViewBag.parenttypes = parents.ToJson(); var obj = id.HasValue ? MemberIntegralSetService.FindById(id.Value) : new MemberIntegralSet() { Scale = 10, Nature = 2 }; return(View(obj.IsNullThrow())); }
public ActionResult Delete(int[] ids) { return(new JsonNetResult(MemberIntegralSetService.Delete(ids))); }
public ActionResult LoadProductList(int?integralId) { var list = MemberIntegralSetService.LoadProductList(integralId); return(ToDataGrid(list, 0)); }
public ActionResult SaveProductIntegral(MemberIntegralSet obj) { var op = MemberIntegralSetService.SaveOrUpdate(obj); return(Content(op.ToJson())); }