/// <summary>
        /// 编辑项目
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void Btn_Edit_ClickAnsyc(object sender, System.Windows.RoutedEventArgs e)
        {
            if (RecordDataGrid.SelectedItem is Lib.MemberPayItem SelectedRec)
            {
                Lib.MemberPayItem RecCloneObj = CloneObject <Lib.MemberPayItem, Lib.MemberPayItem> .Trans(SelectedRec);

                PageMemberPayItemWin AddWin = new PageMemberPayItemWin(RecCloneObj);
                AddWin.Owner = AppSet.AppMainWindow;

                if (AddWin.ShowDialog().Value)
                {
                    ExcuteResult excuteResult = await DataMemberPayItemRepository.UpdateRecord(RecCloneObj);

                    if (excuteResult != null && excuteResult.State == 0)
                    {
                        PropertyInfo[] TargetAttris = SelectedRec.GetType().GetProperties();
                        PropertyInfo[] SourceAttris = RecCloneObj.GetType().GetProperties();
                        foreach (PropertyInfo item in SourceAttris)
                        {
                            var tempObj = TargetAttris.Where(x => x.Name.Equals(item.Name, StringComparison.Ordinal)).FirstOrDefault();
                            if (tempObj != null)
                            {
                                item.SetValue(SelectedRec, item.GetValue(RecCloneObj));
                            }
                        }
                    }
                    else
                    {
                        AppFuns.ShowMessage(excuteResult.Msg, Caption: "失败");
                    }
                }
            }
        }
        private async void Btn_Add_ClickAnsyc(object sender, System.Windows.RoutedEventArgs e)
        {
            Lib.MemberPayItem NewRecord = new Lib.MemberPayItem();

            PageMemberPayItemWin AddWin = new PageMemberPayItemWin(NewRecord);

            if (AddWin.ShowDialog().Value)
            {
                ExcuteResult excuteResult = await DataMemberPayItemRepository.AddRecord(NewRecord);

                if (excuteResult.State == 0)
                {
                    cvm.PayItems.Add(NewRecord);
                }
                else
                {
                    AppFuns.ShowMessage(excuteResult.Msg, Caption: "失败");
                }
            }
        }