async void OnSearch(object sender, string e) { if (e == "#全部") { LoadAll(); } else if (!string.IsNullOrEmpty(e)) { _lv.Data = await AtPublish.Query <Keyword>("发布-模糊查询关键字", new { id = $"%{e}%" }); } SelectTab("列表"); }
async void LoadAlbum(long p_id) { _lvAlbum.Data = await AtPublish.Query("文章-已选专辑", new { postid = p_id }); }
async void LoadKeyword(long p_id) { _lvKeyword.Data = await AtPublish.Query("文章-已选关键字", new { postid = p_id }); }
async void OnSearch(object sender, string e) { _lvPost.Data = await AtPublish.Query <Post>("文章-模糊查询", new { input = $"%{e}%" }); }
async void LoadAll() { _lvPost.Data = await AtPublish.Query <Post>("文章-管理列表"); }
async void LoadData() { _lv.Data = await AtPublish.Query("文章-未选关键字", new { postid = _postID }); }
async void OnNextPage(PageData e) { var ls = await AtPublish.Query("select id,Title,Cover,Summary,Url,TempType,AllowCoverClick,AllowComment from pub_post where IsPublish=1 order by Dispidx desc"); e.LoadPageData(ls); }
async void OnLoadTest(object sender, RoutedEventArgs e) { _lv.Data = await AtPublish.Query("select id,Title,Cover,Summary,Url,TempType,AllowCoverClick,AllowComment from pub_post where id=@id", new { id = _testID }); }
async void LoadAll() { _lv.Data = await AtPublish.Query <Keyword>("发布-所有关键字"); }
async void LoadAll() { _lv.Data = await AtPublish.Query <Album>("发布-所有专辑"); }