private void PaymentRequestEditExecuted(object sender, ExecutedRoutedEventArgs e)
        {
            int id = e.Parameter is int ? (int) e.Parameter : 0;

            if (!VM.CanPREditWithApproveStatus(id))
            {
                MessageBox.Show(ResPayment.ApprovalError);
                return;
            }

            var prd = new PaymentRequestDetail(id, PageMode.EditMode);
            RedirectTo(prd);
        }
 /// <summary>
 /// 新增付款申请
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnPaymentRequestAddClick(object sender, RoutedEventArgs e)
 {
     var frm = new PaymentRequestDetail();
     RedirectTo(frm);
 }