protected override async Task callAction(HsActionKey actionKey, HsLabelValue item) { if (actionKey == SysActionKeys.UserDo1) //查看原始单据 { this.onOpenDJ(item, true); } else if (actionKey == SysActionKeys.UserDo2) //查看流程步骤 { await Navigation.PushAsync(new Form_HsLcspjl_Show(item)); } else if (actionKey == SysActionKeys.UserDo3) //审批 { Panel_HsLcspjl panel = new Panel_HsLcspjl(item); panel.UpdateComplete += new EventHandler <HsEventArgs <object> >(async(sender, e) => { try { await this.callRetrieve(false); } catch (Exception ex) { this.ShowError(ex.Message); } }); await Navigation.PushAsync(panel); } else { await base.callAction(actionKey, item); } }
protected override async Task modifyItem(HsLabelValue item) { Panel_HsLcspjl panel = new Panel_HsLcspjl(item) { AuditOnly = true }; await Navigation.PushAsync(panel); }