/// <summary>
 /// 按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnAddClick(object sender, RoutedEventArgs e)
 {
     var frm = new VATInvoiceRequestDetail();
     RedirectTo(frm);
 }
        private void ListEditExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            int id = e.Parameter is int ? (int) e.Parameter : 0;

            if (!VM.CanLineEditWithApproveStatus(id))
            {
                MessageBox.Show(ResVATInvoice.ApprovalLimit);
                return;
            }

            VATInvoiceRequest vatr = VM.GetItByLineId(id);
            if (vatr != null)
            {
                _queried = true;
                _requestQuery = false;
                var frm = new VATInvoiceRequestDetail(vatr.Id, PageMode.EditMode, this);
                RedirectTo(frm);
            }
        }