public ActionResult Index() { ViewBag.cashiers = ListToSelect(SaleOrdersService.GetCashiers(), emptyTitle: "全部"); ViewBag.salers = ListToSelect(SaleOrdersService.GetSalers(), emptyTitle: "全部"); ViewBag.stores = ListToSelect(WarehouseService.GetList(true).Select(o => new SelectListItem() { Value = o.StoreId, Text = o.Title, Selected = Sys.CurrentUser.StoreId == o.StoreId }), emptyTitle: "全部"); ViewBag.apiCodes = ListToSelect(ApiLibraryService.GetAllApiLibrary().Select(a => new SelectListItem() { Value = a.ApiCode.ToString(), Text = a.Title }), emptyTitle: "全部"); return(View()); }
public object GetCashierList(int cid, string storeId) { return(SaleOrdersService.GetCashiers(storeId)); }