async void OnItemClick(object sender, ItemClickArgs e) { Rpt rpt = _fv.Data.To <Rpt>(); if (rpt != null && rpt.IsChanged) { if (!await Kit.Confirm("数据已修改,确认要放弃修改吗?")) { return; } rpt.RejectChanges(); } _fv.Data = await AtCm.First <Rpt>("报表-ID", new { id = e.Data.To <Rpt>().ID }); SelectTab("编辑"); }
void EditTemplate(Rpt p_rpt) { _ = AtRpt.ShowDesign(new AppRptDesignInfo(p_rpt)); }
public AppRptDesignInfo(Rpt p_rpt) { _rpt = p_rpt; Name = p_rpt.Name; }