public ActionResult FindPageList() { int count = 0; var list = WholesalerBLL.FindPageList(Request.Params, out count); return(ToDataGrid(list, count)); }
public ActionResult LoadProductList(string sId) { int count = 0; var nvl = new System.Collections.Specialized.NameValueCollection(); var list = WholesalerBLL.FindOutboundGoodsList(sId, out count); return(ToDataGrid(list, count)); }
public ActionResult MoveType(string ids, int typeSn) { var sids = ids.Split(','); var list = WholesalerBLL.FindList(o => sids.Contains(o.Id)); list.Each(o => { o.ClassifyId = typeSn; }); return(new JsonNetResult(WholesalerBLL.Update(list))); }
public ActionResult Delete(string[] ids) { var list = WholesalerBLL.FindList(o => ids.Contains(o.Id)); var re = new OpResult(); if (OutboundGoodsBLL.IsExist(o => ids.Contains(o.ApplyOrgId))) { re.Message = "存在下单信息"; } else { re = WholesalerBLL.Delete(list); } return(new JsonNetResult(re)); }
public ActionResult Save(string id) { ViewBag.types = ListToSelect(SysDataDictService.GetWholesalerTypes().Select(o => new SelectListItem() { Value = o.DicSN.ToString(), Text = o.Title }), emptyTitle: "请选择"); var obj = new Logic.Entity.Supplier() { MasterState = 1, Designee = Sys.CurrentUser.UID, CreateDT = DateTime.Now }; if (!id.IsNullOrEmpty()) { obj = WholesalerBLL.FindById(id); } return(View(obj.IsNullThrow())); }
public ActionResult Save(Logic.Entity.Supplier obj) { var re = WholesalerBLL.SaveOrUpdate(obj); return(Content(re.ToJson())); }