Ejemplo n.º 1
0
        public ActionResult FindPageList()
        {
            int count = 0;
            var list  = WholesalerBLL.FindPageList(Request.Params, out count);

            return(ToDataGrid(list, count));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        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)));
        }
Ejemplo n.º 4
0
        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));
        }
Ejemplo n.º 5
0
        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()));
        }
Ejemplo n.º 6
0
        public ActionResult Save(Logic.Entity.Supplier obj)
        {
            var re = WholesalerBLL.SaveOrUpdate(obj);

            return(Content(re.ToJson()));
        }